Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unit 4 Part B Concept: Best fit Line EQ: How do we create a line of best fit to represent data? Vocabulary: R – correlation coefficient y = mx + b slope.

Similar presentations


Presentation on theme: "Unit 4 Part B Concept: Best fit Line EQ: How do we create a line of best fit to represent data? Vocabulary: R – correlation coefficient y = mx + b slope."— Presentation transcript:

1 Unit 4 Part B Concept: Best fit Line EQ: How do we create a line of best fit to represent data? Vocabulary: R – correlation coefficient y = mx + b slope 4.2.4: Fitting Linear Functions to Data1

2 Standard… S.ID.6cFit a linear function for a scatter plot that suggests a linear association. 4.2.4: Fitting Linear Functions to Data2

3 Introduction The relationship between two variables can be estimated using a function. The equation can be used to estimate values that are not in the observed data set. To determine which type of equation should be used for a data set, first create a scatter plot of the data. Data that has a linear shape, or can be approximated by a straight line, can be fitted to a linear equation. Points in the data set can be used to find a linear equation that is a good approximation for the data. Only two points are needed to draw a line. 3 4.2.4: Fitting Linear Functions to Data

4 Introduction, continued Drawing a line through two data points on the same coordinate plane as the scatter plot helps display how well the line matches the data set. If the line is a good fit for the data, some data points will be above the line and some data points will be below the line. After creating a graphical representation of a line that fits the data, find the equation of this line using the two known points on the line. Use the two known points on the line to calculate the slope and y-intercept of the line. 4 4.2.4: Fitting Linear Functions to Data

5 Key Concepts A scatter plot that can be estimated with a linear function will look approximately like a line. A line through two points in the scatter plot can be used to find a linear function that fits the data. If a line is a good fit for a data set, some of the data points will be above the line and some will be below the line. The general equation of a line in point-slope form is y = mx + b, where m is the slope and b is the y-intercept. 5 4.2.4: Fitting Linear Functions to Data

6 Key Concepts, continued To find the equation of a line with two known points, calculate the slope and y-intercept of a line through the two points. Slope is the change in y divided by the change in x; a line through the points (x 1, y 1 ) and (x 2, y 2 ) has a slope of. 6 4.2.4: Fitting Linear Functions to Data

7 Key Concepts, continued To find the y-intercept, or b in the equation y = mx + b, replace m with the calculated slope, and replace x and y with values of x and y from a point on the line. Then solve the equation for b. For example, for a line with a slope of 2 containing the point (1, –3), m = 2, y = –3, and x = 1; –3 = (2)(1) + b, and –5 = b. 7 4.2.4: Fitting Linear Functions to Data

8 Guided Practice Example 1 A weather team records the weather each hour after sunrise one morning in May. The hours after sunrise and the temperature in degrees Fahrenheit are in the table to the right. 8 4.2.4: Fitting Linear Functions to Data Hours after sunrise Temperature in ˚F 052 153 256 357 460 563 664 767

9 Guided Practice: Example 1, continued Can the temperature 0–7 hours after sunrise be represented by a linear function? If yes, find the equation of the function. 9 4.2.4: Fitting Linear Functions to Data

10 Guided Practice: Example 1, continued 1.Create a scatter plot of the data. Let the x-axis represent hours after sunrise and the y-axis represent the temperature in degrees Fahrenheit. 10 4.2.4: Fitting Linear Functions to Data Temperature (°F) Hours after sunrise

11 Guided Practice: Example 1, continued 2.Determine if the data can be represented by a linear function. The graph of a linear equation is a line. If the data looks like it could fit a line, then a linear equation could be used to represent the data. The temperatures appear to increase in a line, and a linear equation could be used to represent the data set. 11 4.2.4: Fitting Linear Functions to Data

12 Guided Practice: Example 1, continued 3.Draw a line to estimate the data set. Two points in the data set can be used to draw a line that estimates that data. When the line is drawn, some of the data values should be above the line, and some should be below the line. A line through (2, 56) and (6, 64) looks like a good fit for the data. 12 4.2.4: Fitting Linear Functions to Data

13 Guided Practice: Example 1, continued 13 4.2.4: Fitting Linear Functions to Data Temperature (°F) Hours after sunrise

14 Guided Practice: Example 1, continued 4.Find the equation of the line. The general equation of a line in point-slope form is y = mx + b, where m is the slope, and b is the y-intercept. Find the slope, m, of the line through the two chosen points. The slope is. For any two points (x 1, y 1 ) and (x 2, y 2 ), the slope is. 14 4.2.4: Fitting Linear Functions to Data

15 Guided Practice: Example 1, continued For the two points (2, 56) and (6, 64), the slope is. Next, find the y-intercept, b. Use the general equation of a line to solve for b. Substitute x and y from a known point on the line, and replace m with the calculated slope. y = mx + b For the point (2, 56): 56 = 2(2) + b; b = 52 15 4.2.4: Fitting Linear Functions to Data

16 Guided Practice: Example 1, continued Replace m and b with the calculated values in the general equation of a line. y = 2x + 52 The temperature between 0 and 7 hours after sunrise can be approximated with the equation y = 2x + 52. 16 4.2.4: Fitting Linear Functions to Data ✔

17 Guided Practice: Example 1, continued 17 4.2.4: Fitting Linear Functions to Data

18 Guided Practice Example 3 Automated tractors can mow lawns without being driven by a person. A company runs trials using fields of different sizes, and records the amount of time it takes the tractor to mow each field. The field sizes are measured in acres. 18 4.2.4: Fitting Linear Functions to Data Acres Time in hours 515 710 22 1732.3 1846.8 2034 2239.6 2575 3070 40112

19 Guided Practice: Example 3, continued Can the time to mow acres of a field be represented by a linear function? If yes, find the equation of the function. 19 4.2.4: Fitting Linear Functions to Data

20 Guided Practice: Example 3, continued 1.Create a scatter plot of the data. Let the x-axis represent the acres and the y-axis represent the time in hours. 20 4.2.4: Fitting Linear Functions to Data Time Acres

21 Guided Practice: Example 3, continued 2.Determine if the data can be represented by a linear function. The graph of a linear equation is a line. If the data looks like it could fit a line, then a linear equation could be used to represent the data. The temperatures appear to increase in a line, and a linear equation could be used to represent the data set. 21 4.2.4: Fitting Linear Functions to Data

22 Guided Practice: Example 3, continued 3.Draw a line to estimate the data set. Two points in the data set can be used to draw a line that estimates the data. When the line is drawn, some of the data values should be above the line, and some should be below the line. A line through (7, 10) and (40, 112) looks like a good fit for the data. 22 4.2.4: Fitting Linear Functions to Data

23 Guided Practice: Example 3, continued 23 4.2.4: Fitting Linear Functions to Data Time Acres

24 Guided Practice: Example 3, continued 4.Find the equation of the line. The general equation of a line in point-slope form is y = mx + b, where m is the slope, and b is the y-intercept. Find the slope, m, of the line through the two chosen points. The slope is. For any two points (x 1, y 1 ) and (x 2, y 2 ), the slope is. 24 4.2.4: Fitting Linear Functions to Data

25 Guided Practice: Example 3, continued For the two points (7, 10) and (40, 112), the slope is. Next, find the y-intercept, b. Use the general equation of a line to solve for b. Substitute x and y from a known point on the line, and replace m with the calculated slope. y = mx + b 25 4.2.4: Fitting Linear Functions to Data

26 Guided Practice: Example 3, continued For the point (7, 10): 10 = 3.1(7) + b; b = –12 Replace m and b with the calculated values in the general equation of a line. y = 3.1x – 12 The amount of time to mow the acres of a field can be represented using the equation y = 3.1x – 12. 26 4.2.4: Fitting Linear Functions to Data ✔

27 Guided Practice: Example 3, continued 27 4.2.4: Fitting Linear Functions to Data

28 Resource http://www.shodor.org/interactivate/activities/Regression/ 28


Download ppt "Unit 4 Part B Concept: Best fit Line EQ: How do we create a line of best fit to represent data? Vocabulary: R – correlation coefficient y = mx + b slope."

Similar presentations


Ads by Google