Predictive Modeling in Excel (2024)

For predictive analytics, Excel? Really Really?

Usually, that is the first reaction I get when I bring the subject up.

When I show how we can explore Excel's versatile nature to create predictive models for our data science and analytics ventures, this is accompanied by an incredulous look.

If the stores around you started gathering consumer data, should they follow a data-based approach to sell their goods?

Let me ask you a question. Can their revenue/sales be predicted or the number of goods estimated?

Now you have to wonder how they are going to construct a complex mathematical model in the world that can predict these things?

And it may be beyond their reach to study analytics or recruit an analyst. The good news is here-they don't need to.

Without having to write complicated code that flies over most people's heads, Microsoft Excel gives us the opportunity to conjure predictive models.

In MS Excel, we can easily construct a simple model such as linear regression that can help us perform analysis in a few simplesteps.

What is Linear Regression?

It is a linear approach to statistically model the relationship between the dependent variable (the variable you want to predict) and the independent variables (the factors used for predicting).Linear regression gives us an equation like this:

Y=M1*X1+M2*X2+.............+MnXn+C

Here, we have Y as our dependent variable, X’s are the independent variables and all M’s are the coefficients. Coefficients are basically the weights assigned to the features, based on their importance and C is the constant which is basically the intercept.

Getting the All-Important Analysis ToolPack Excel Add-in

To perform a regression analysis in Excel, we first need to enable Excel’sAnalysis ToolPak Add-in.The Analysis ToolPak in Excel is an add-in program that provides data analysis tools for statistical and engineering analysis.

To add it in your workbook, follow these steps.

Step 1 – Excel Options

Go toFiles->Options:

Step 2 – Locate Analytics ToolPak

Go toAdd-inson the left panel ->Manage Excel Add-ins->Go:

Step 3 – Add Analytics ToolPak

Select the “Analysis ToolPak” and pressOK:

You have successfully added the Analysis ToolPak in Excel! You can check it by going to theDatabar in the Ribbon.

Let’s start building our predictive model in Excel!

Implementing Linear Regression in Excel

Here is the problem statement we will be working with:

"The company Apple wants to predict the price of I-Pad by considering the following factors Screen(type), Storage capacity, Connectivity(type) and Gen"

Predictive Modeling in Excel (1)

->Encode the data in order to perform the regression analysis: Assigning numeric value to categorical data set.

Predictive Modeling in Excel (2)

Step 1 – Select Regression

Go toData->Data Analysis:

Go to Data Analysis in the Data ToolPak, select Regression and pressOK:

Step 2 – Select Options

In this step, we will select some of the options necessary for our analysis, such as :

  • Input y range – The range of independent factor
  • Input x range – The range of dependent factors
  • Output range – The range of cells where you want to display the results

Analyzing our Predictive Model’s Results in Excel

Theeasypartwasapplyingthelinearregressionmodel.Nowcomesthetrickypartofour study,interpretingtheoutcomesofthepredictivemodelinExcel.

In the summary, we have 3 types of output and we will cover them one-by-one:

  • Regression statistics table
  • Regression coefficients table
  • Residual Table

Regression Statistics Table

The regression statistics table tells us how well the line of best fit defines the linear relationship between the independent and dependent variables. Two of the most important measures are the R squared and Adjusted R squared values.

TheR-squaredstatistic is the indicator ofgoodness of fitwhich tells us how much variance is explained by the line of best fit. R-squared value ranges from 0 to 1. In our case, we have the R-squared value of 0.93 which means that our line is able to explain 93% of the variance - a good sign.

Predictive Modeling in Excel (3)

But there is a problem - as we keep adding more variables, our R squared value will keep increasing even though the variable might not be having any effect.Adjusted R-squaredsolves this problem and is a much more reliable metric.

Regression Coefficient Table

The Coefficient table breaks down the components of the regression line in the form of coefficients.

Predictive Modeling in Excel (4)

Residual Table

The residual table reflects how much the predicted value varies from the actual value. It consists of the values predicted by our model:

Predictive Modeling in Excel (5)

Making Predictions in Excel!

Predictive Modeling in Excel (6)

Predictive Modeling in Excel (7)

--> The RMSE is 8% that indicates the variability in our predicted model is 8% when compared with the original model.

--> Our model has predicted the price range as per the specifications that was given as input. The detailed model will be reflected in the video attached.

That’s the power of linear regression done simply in Microsoft Excel.

#BusinessToys #DataScience #DataAnalytics #ExcelAnalytics #PassionForData #DataScientist
Predictive Modeling in Excel (2024)

FAQs

Can you do predictive modeling in Excel? ›

Excel provides the Data Analysis ToolPak for more sophisticated predictive analytics. This includes performing regression analysis. For more complex predictive analytics, Excel offers the Data Analysis ToolPak. This add-on provides a variety of advanced statistical analysis tools, including Regression analysis.

How to do predicted values in Excel? ›

On the Data tab, in the Forecast group, click Forecast Sheet. In the Create Forecast Worksheet box, pick either a line chart or a column chart for the visual representation of the forecast. In the Forecast End box, pick an end date, and then click Create.

How accurate is Excel forecast function? ›

When it comes to basic forecasting, Excel can be useful, but it isn't as precise as inventory planning software. If you're dealing with changing market dynamics and need customized and accurate predictions, it's recommended to use advanced software like Inventory Planner.

Is Excel good for financial Modelling? ›

Financial Modeling is a tool to understand and perform analysis on an underlying business to guide decision-making, most often built in Excel.

What is a 90% prediction interval? ›

Known mean, known variance
Prediction intervalz
75%1.15
90%1.64
95%1.96
99%2.58

What is the 95% prediction interval for a particular person having 30 contacts? ›

The 95% prediction interval for a particular person making 30 calls is 8 = 33.4.

What is the difference between a 95 confidence interval and a 95 prediction interval? ›

A prediction interval includes a wider range of values than a confidence interval. A prediction interval is less certain than a confidence interval. A prediction interval predicts an individual number, whereas a confidence interval predicts the mean value.

How to do predictive regression Excel? ›

How to do a regression analysis in Excel
  1. Enter your data into Excel. ...
  2. Install Data Analysis ToolPak plugin. ...
  3. Open "Data Analysis" to reveal the dialog box. ...
  4. Enter variable data. ...
  5. Select output options. ...
  6. Analyze your results. ...
  7. Create a scatter plot. ...
  8. Add regression trendline.
Jun 24, 2022

What is the formula for predicted value? ›

The predicted value of y i is defined to be y^ i = a x i + b, where y = a x + b is the regression equation. The residual is the error that is not explained by the regression equation: e i = y i - y^ i. hom*oscedastic, which means "same stretch": the spread of the residuals should be the same in any thin vertical strip.

How do you calculate predicted value? ›

The predicted value of y (" ") is sometimes referred to as the "fitted value" and is computed as y ^ i = b 0 + b 1 x i . Below, we'll look at some of the formulas associated with this simple linear regression method. In this course, you will be responsible for computing predicted values and residuals by hand.

What is predictive modeling for beginners? ›

Predictive modeling is the process of using known results to create a statistical model that can be used for predictive analysis, or to forecast future behaviors. It's a tool within predictive analytics, a field of data mining that tries to answer the question: “What is likely to happen next?”

What is an example of a predictive model? ›

Examples include using neural networks to predict which winery a glass of wine originated from or bagged decision trees for predicting the credit rating of a borrower. Predictive modeling is often performed using curve and surface fitting, time series regression, or machine learning approaches.

Which prediction model is the most accurate? ›

1 Regression models. Regression models are one of the most widely used statistical models for predictive analytics. They allow you to estimate the relationship between one or more independent variables (also called predictors or features) and a dependent variable (also called response or outcome).

What automation can be done in Excel? ›

Excel automation can encrypt the data, compress it, and transfer it to others—regardless of their physical location. Each of these steps is easily automated for safe collaborations. Users often make small errors when transferring data between spreadsheets and other resources.

Can you create 3D models in Excel? ›

On Windows and macOS, Word, Excel, PowerPoint, and Outlook support inserting 3D models directly into your documents, workbooks or presentations to illustrate a point. You can rotate models 360 degrees or tilt up and down to show a specific feature of an object.

How to do regression prediction in Excel? ›

To run the regression, arrange your data in columns as seen below. Click on the “Data” menu, and then choose the “Data Analysis” tab. You will now see a window listing the various statistical tests that Excel can perform. Scroll down to find the regression option and click “o*k”.

Top Articles
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 5911

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.