<< Chapter < Page Chapter >> Page >
y ^ = a + bx

where a = y ¯ - b x ¯ and b = Σ ( x - x ¯ ) ( y - y ¯ ) Σ ( x - x ¯ ) 2 .

x ¯ and y ¯ are the averages of the x values and the y values, respectively. The best fit line always passes through the point ( x ¯ , y ¯ ) .

The slope b can be written as b = r ( s y s x ) where s y = the standard deviation of the y values and s x = the standard deviation of the x values. r is the correlation coefficient which is discussed in the next section.

Least squares criteria for best fit

The process of fitting the best fit line is called linear regression . The idea behind finding the best fit line is based on the assumption that the data are scattered about a straight line. The criteria for the best fit line is that the sum of the squared errors (SSE) is minimized, that is made as small as possible. Any other line you might choose would have a higher SSE than the best fit line. This best fit line is called the least squares regression line .

Computer spreadsheets, statistical software, and many calculators can quickly calculate the best fit line and create the graphs. The calculations tend to be tedious if done by hand. Instructions to use the TI-83, TI-83+, and TI-84+ calculators to find the best fit line and create a scatterplot are shown at the end of this section.

Third exam vs final exam example:

The graph of the line of best fit for the third exam/final exam example is shown below:

Scatterplot of the third exam scores by final exam scores and its line of best fit.

The least squares regression line (best fit line) for the third exam/final exam example has the equation:

y ^ = -173.51 + 4.83x
  • Remember, it is always important to plot a scatter diagram first. If the scatter plot indicates that there is a linear relationship betweenthe variables, then it is reasonable to use a best fit line to make predictions for y given x within the domain of x -values in the sample data, but not necessarily for x -values outside that domain.
  • You could use the line to predict the final exam score for a student who earned a grade of 73 on the third exam.
  • You should NOT use the line to predict the final exam score for a student who earned a grade of 50 on the third exam, because 50 is not within the domain of the x-values in the sample data, which are between 65 and 75.

Understanding slope

The slope of the line, b, describes how changes in the variables are related. It is important to interpret the slope of the line in the context of the situation represented by the data. You should be able to write a sentence interpreting the slope in plain English.

INTERPRETATION OF THE SLOPE: The slope of the best fit line tells us how the dependent variable (y) changes for every one unit increase in the independent (x) variable, on average.

    Third exam vs final exam example

  • Slope: The slope of the line is b = 4.83.
  • Interpretation: For a one point increase in the score on the third exam, the final exam score increases by 4.83 points, on average.

Using the ti-83+ and ti-84+ calculators

    Using the linear regression t test: linregttest

  1. In the STAT list editor, enter the X data in list L1 and the Y data in list L2, paired so that the corresponding (x,y) values are next to each other in the lists. (If a particular pair of values is repeated, enter it as many times as it appears in the data.)
  2. On the STAT TESTS menu, scroll down with the cursor to select the LinRegTTest. (Be careful to select LinRegTTest as some calculators may also have a different item called LinRegTInt.)
  3. On the LinRegTTest input screen enter: Xlist: L1 ; Ylist: L2 ; Freq: 1
  4. On the next line, at the prompt β or ρ, highlight "≠ 0" and press ENTER
  5. Leave the line for "RegEq:" blank
  6. Highlight Calculate and press ENTER.

1. Image of calculator input screen for LinRegTTest with input matching the instructions above. 2.Image of corresponding output calculator output screen for LinRegTTest: Output screen shows: Line 1. LinRegTTest; Line 2. y = a + bx; Line 3. beta does not equal 0 and rho does not equal 0; Line 4. t = 2.657560155; Line 5. df = 9; Line 6. a = 173.513363; Line 7. b = 4.827394209; Line 8. s = 16.41237711; Line 9. r squared = .4396931104; Line 10. r = .663093591

The output screen contains a lot of information. For now we will focus on a few items from the output, and will return later to the other items.

  • The second line says y=a+bx. Scroll down to find the values a=-173.513, and b=4.8273 ; the equation of the best fit line is y ^ = -173.51 + 4.83 x
  • The two items at the bottom are r 2 = .43969 and r =.663. For now, just note where to find these values; we will discuss them in the next two sections.

    Graphing the scatterplot and regression line

  1. We are assuming your X data is already entered in list L1 and your Y data is in list L2
  2. Press 2nd STATPLOT ENTER to use Plot 1
  3. On the input screen for PLOT 1, highlight On and press ENTER
  4. For TYPE: highlight the very first icon which is the scatterplot and press ENTER
  5. Indicate Xlist: L1 and Ylist: L2
  6. For Mark: it does not matter which symbol you highlight.
  7. Press the ZOOM key and then the number 9 (for menu item "ZoomStat") ; the calculator will fit the window to the data
  8. To graph the best fit line, press the "Y=" key and type the equation -173.5+4.83X into equation Y1. (The X key is immediately left of the STAT key). Press ZOOM 9 again to graph it.
  9. Optional: If you want to change the viewing window, press the WINDOW key. Enter your desired window using Xmin, Xmax, Ymin, Ymax

Questions & Answers

if three forces F1.f2 .f3 act at a point on a Cartesian plane in the daigram .....so if the question says write down the x and y components ..... I really don't understand
Syamthanda Reply
hey , can you please explain oxidation reaction & redox ?
Boitumelo Reply
hey , can you please explain oxidation reaction and redox ?
Boitumelo
for grade 12 or grade 11?
Sibulele
the value of V1 and V2
Tumelo Reply
advantages of electrons in a circuit
Rethabile Reply
we're do you find electromagnetism past papers
Ntombifuthi
what a normal force
Tholulwazi Reply
it is the force or component of the force that the surface exert on an object incontact with it and which acts perpendicular to the surface
Sihle
what is physics?
Petrus Reply
what is the half reaction of Potassium and chlorine
Anna Reply
how to calculate coefficient of static friction
Lisa Reply
how to calculate static friction
Lisa
How to calculate a current
Tumelo
how to calculate the magnitude of horizontal component of the applied force
Mogano
How to calculate force
Monambi
a structure of a thermocouple used to measure inner temperature
Anna Reply
a fixed gas of a mass is held at standard pressure temperature of 15 degrees Celsius .Calculate the temperature of the gas in Celsius if the pressure is changed to 2×10 to the power 4
Amahle Reply
How is energy being used in bonding?
Raymond Reply
what is acceleration
Syamthanda Reply
a rate of change in velocity of an object whith respect to time
Khuthadzo
how can we find the moment of torque of a circular object
Kidist
Acceleration is a rate of change in velocity.
Justice
t =r×f
Khuthadzo
how to calculate tension by substitution
Precious Reply
hi
Shongi
hi
Leago
use fnet method. how many obects are being calculated ?
Khuthadzo
khuthadzo hii
Hulisani
how to calculate acceleration and tension force
Lungile Reply
you use Fnet equals ma , newtoms second law formula
Masego
please help me with vectors in two dimensions
Mulaudzi Reply
how to calculate normal force
Mulaudzi
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Collaborative statistics: custom version modified by r. bloom. OpenStax CNX. Nov 15, 2010 Download for free at http://legacy.cnx.org/content/col10617/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Collaborative statistics: custom version modified by r. bloom' conversation and receive update notifications?

Ask