Download presentation
Presentation is loading. Please wait.
Published byGeorge Newton Modified over 9 years ago
1
Guide to Using Excel For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 6th Ed. Chapter 13: Introduction to Linear Regression and Correlation Analysis By Groebner, Shannon, Fry, & Smith Prentice-Hall Publishing Company Copyright, 2005
2
Chapter 13 Excel Examples Correlation Coefficient Correlation Coefficient Midwest Distribution Regression Analysis Regression Analysis Midwest Distribution Regression Analysis Fitzpatrick and Associates Regression Analysis for Description Regression Analysis for Description Car Mileage
3
Chapter 13 Excel Examples Regression Analysis for Prediction Regression Analysis for Prediction Freedom Hospital Residual Analysis Residual Analysis Freedom Hospital
4
Correlation Analysis - Midwest Distribution Issue: The company wants to analyze the relationship between salary and years with the company. Objective: Use Excel to help test whether a significant relations exists between salary and years with the company. Data file is Midwest.xls
5
Open File Midwest.xls To construct the scatter diagram see the Personal Computers tutorial in Chapter 2. Correlation Analysis – Midwest Distribution.
6
First click on Tools, then Data Analysis and finally on Correlation. Correlation Analysis – Midwest Distribution.
7
Define ranges for Variables. Click on O.K. Correlation Analysis – Midwest Distribution.
8
The Excel output shows the correlation between Sales and Years with Midwest. Correlation Analysis – Midwest Distribution.
9
Regression Analysis - Midwest Distribution Issue: The marketing manager wants to determine the relationship between sales and years with the company. Objective: Use Excel to test whether the apparent linear relationship is statistically significant. Data file is Midwest.xls
10
Open File Midwest.xls Regression Analysis – Midwest Distribution
11
Click on Tools, then Data Analysis and finally Regression Regression Analysis – Midwest Distribution
12
Identify Data ranges for the X and Y variables. Click on O.K. Regression Analysis – Midwest Distribution
13
The output shows the correlation coefficient and the coefficients for the regression equation. Regression Analysis – Midwest Distribution
14
Regression Analysis - Fitzpatrick & Associates Issue: The Fitzpatrick analysts want to model the relationship between profits and number of employees. Objective: Use Excel to test whether the apparent linear relationship is statistically significant. Data file is Fortune 50.xls
15
Open File Fortune 50.xls Regression Analysis – Fitzpatrick & Associates
16
Click on Chart Wizard button, then XY Scatter Regression Analysis – Fitzpatrick & Associates
17
Define Data ranges in chart wizard. Note: Excel requires the data to be in adjacent columns with the X variable on the left. Regression Analysis – Fitzpatrick & Associates
18
Finish steps in Chart Wizard. Regression Analysis – Fitzpatrick & Associates
19
To find regression model, return to Data sheet. Regression Analysis – Fitzpatrick & Associates
20
Click on Tools, then Data Analysis and finally Regression Regression Analysis – Fitzpatrick & Associates
21
Identify Data ranges for the X and Y variables. Click on O.K. Regression Analysis – Fitzpatrick & Associates
22
The output shows the correlation coefficient and the coefficients for the regression equation. Regression Analysis – Fitzpatrick & Associates
23
Regression Analysis - Car Mileage Issue: Analysts want to determine the relationship between EPA highway mileage and automobile horsepower. Objective: Use Excel to test whether the apparent linear relationship is statistically significant. Data file is Automobiles.xls
24
Open File Automobiles.xls Regression Analysis – Car Mileage
25
Click on Tools, then Data Analysis and finally Regression Regression Analysis – Car Mileage
26
Identify Data ranges for the X and Y variables. Click on O.K. Regression Analysis – Car Mileage
27
The output shows the correlation coefficient and the coefficients for the regression equation. Regression Analysis – Car mileage
28
Regression Analysis for Prediction - Freedom Hospital Issue: The administrator has been requested by the hospital’s board of directors to develop a model that can be used to predict the total charges for a geriatric patient. Objective: Use Excel to develop a statistically significant prediction model. Data file is Patients.xls
29
Open File Patients.xls File contains values for 138 patients. Regression Analysis for Prediction – Freedom Hospital
30
To develop the model first click on Tools, then Data Analysis and finally on Regression. Regression Analysis for Prediction – Freedom Hospital
31
Define range for Variables and select the Alpha value (.05). Click on O.K. Regression Analysis for Prediction – Freedom Hospital
32
The Excel output shows both the correlation coefficient and the coefficients of the linear regression model. Regression Analysis for Prediction – Freedom Hospital
33
To determine prediction interval, return to data sheet, click on PHStat, then Regression and finally Simple Linear Regression. Regression Analysis for Prediction – Freedom Hospital
34
Specify the Cell Range for the X and Y variables. Then click the Confidence Interval box and specify the value for X and the Confidence Level. Regression Analysis for Prediction – Freedom Hospital
35
The output shows the 95% confidence interval for both the Average Value of Y and for an Individual Value of Y. Regression Analysis for Prediction – Freedom Hospital
36
Issue: The administrators want to determine whether the prediction model developed is a valid use of regression analysis or whether it violates some of the necessary assumptions. Objective: The administrators want to determine whether the prediction model developed is a valid use of regression analysis or whether it violates some of the necessary assumptions. Objective: Use Excel to analyze the residuals from the model. Data file is Patients.xls Use Excel to analyze the residuals from the model. Data file is Patients.xls Residual Analysis - Freedom Hospital
37
Open file Patients.xls Residual Analysis – Freedom Hospital
38
First click on Tools, then Data Analysis and then on Regression. Residual Analysis – Freedom Hospital
39
Define range for X and Y Variables and then check boxes for Residuals and Residual Plots. Residual Analysis – Freedom Hospital
40
At the bottom of the regression output (note the row number) the residual for each observation is given. Residual Analysis – Freedom Hospital
41
The regression output will also plot the residuals. Residual Analysis – Freedom Hospital
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.