# 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="https://2063668468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9RcwqzNNsjo496JLJ2Ob%2Fuploads%2FOuqBuQntihJcJWMyITm6%2Fimage.png?alt=media&#x26;token=984e5739-0a07-4ba5-974c-e58472ea6a98" alt=""><figcaption></figcaption></figure>

**What-If Simulator:**

<figure><img src="https://2063668468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9RcwqzNNsjo496JLJ2Ob%2Fuploads%2FqoPy5agR2NaxwPT10yGl%2Fimage.png?alt=media&#x26;token=d4a22eca-bd34-4b52-a769-6a561fd6a484" alt=""><figcaption></figcaption></figure>

**Actionable Insight:**

<figure><img src="https://2063668468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9RcwqzNNsjo496JLJ2Ob%2Fuploads%2FhXHFdVpGmwNQgXNSeNg6%2Fimage.png?alt=media&#x26;token=3c1ba3d8-70c1-4141-b5ad-5ac8dde41cb1" alt=""><figcaption></figcaption></figure>
