This page includes Step-by-Step instructions to use MS Excel to calculate the regression equation for the Water/Temperature example.  


Example: Assume that during a three-hour period spent outside, a person recorded the temperature and their water consumption.  

Estimate the amount of water needed based on a given temperature of 95 degrees Fahrenheit.  To do that, use MS Excel to find the Least Squares Linear Regression Equation for the line of best  fit for the temperature and the amount of water consumed.  

Temperature (F) Water Consumption (oz)
99

48

85 27
97 48
75 16
92 32
85 25
83 20

 


Two ways to get the equation of the line of best fit using MS Excel:  

*It may help to print this page out as you work through the Excel worksheet.*

Preliminaries: Make sure you have the Data Analysis Tool Pak loaded.  Click here for additional information on the ToolPak.  Use the "back" button on your browser to return to this page.


 Entering the data


Procedure for finding the line of best fit

  1. From the main menu select Tools>Data Analysis
  2. From the Data Analysis dialog box, scroll down and select Regression. Click OK.
  3. The Regression dialog box should appear.

  1. Click OK.  Now the excel worksheet will be highlighted blue. 
  2. Save your work. Select FILE > SAVE AS. Call the data set ExcelDataReg.

Learn the Procedure for calculating linear regression equations

 

Simple Linear Regression Menu    Dictionary

STATS @ MTSU