> For the complete documentation index, see [llms.txt](https://docs.predicteasy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.predicteasy.com/data-modelling/regression.md).

# Regression

**Definition:** Regression modeling predicts a continuous outcome or numerical value. It estimates the relationship between one dependent variable and one or more independent variables by fitting a line or curve to the data.

**Example:** Predicting house prices based on features like area, number of bedrooms, and location, predicting sales based on advertising expenditure, estimating the temperature based on time of day and weather conditions.

**Steps:**

**1. Select Independent Columns (X):**&#x20;

* Identify and choose the independent columns in your dataset.&#x20;
* These columns, often referred to as features or predictors, are the variables that will be used to predict the dependent variable(Y).&#x20;

**2. Select Dependent Column (Y):**

* Identify the dependent variable or target variable (Y) that you aim to predict.
* This column represents the output or the variable to be predicted based on the other independent variables (X).

**3. Cross-Validation:**

* Determine the level or number of folds for cross-validation. Cross-validation is a resampling technique used to assess how the results of a predictive model will generalize to an independent dataset.
* Common methods include k-fold cross-validation, where the dataset is divided into k subsets or folds. The model is trained on k-1 folds and tested on the remaining fold, repeated k times.

## **Reports:**

**Summary:**

<figure><img src="/files/UHFYBI0Lh3qq8SeHjvb5" alt=""><figcaption></figcaption></figure>

**What-If Simulator:**

<figure><img src="/files/UX0zJaO9r6feryAI9tjm" alt=""><figcaption></figcaption></figure>

**Actionable Insight:**

<figure><img src="/files/GVYfePNDAPi4i6JkxC8W" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.predicteasy.com/data-modelling/regression.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
