#### How to do regression with non numeric data in Excel

Regression analysis is a statistical method that is used to find the relationship between two or more variables. Typically, the variables are numeric. However, it is also possible to do regression analysis with non-numeric data.

Categorical data is data that can be categorized into groups, such as gender, age, or product type.

Regression analysis with non-numeric data can be used to predict future behavior, such as which products a customer is likely to buy or which customers are likely to churn.

There are two ways to do regression analysis with non-numeric data in Excel:

## Using the Multiple Regression tool

The Multiple Regression tool in Excel provides a robust method for incorporating non-numeric data. Here’s a step-by-step guide:

- Click on the Data tab.
- In the Analysis group, select Data Analysis.
- In the Data Analysis dialog box, choose Multiple Regression and click OK.
- Specify the range of the dependent variable (y), independent variables (x), and the categorical variable (z) in the corresponding boxes.

Excel will generate results, including coefficients, p-values, and R-squared values, providing insights into the relationship between variables.

## Using the CHISQ.TEST function

Select the cell where you want to put the p-value.

Enter the following formula: =CHISQ.TEST(known_y_values, known_x_values, known_z_values)

where:

- known_y_values is the range of the dependent variable (y) values.
- known_x_values is the range of the independent variables (x) values.
- known_z_values is the range of the categorical variable (z) values.

The Multiple Regression tool can be used to do regression analysis with multiple independent variables.

The CHISQ.TEST function can be used to test the significance of the relationship between the dependent variable and the independent variables.

Integrating non-numeric data into regression analysis in Excel empowers businesses to derive meaningful insights, make informed decisions, and stay competitive in an ever-evolving landscape.