Main content

## Statistics and probability

### Course: Statistics and probability > Unit 5

Lesson 3: Introduction to trend lines- Fitting a line to data
- Estimating the line of best fit exercise
- Eyeballing the line of best fit
- Estimating with linear regression (linear models)
- Estimating equations of lines of best fit, and using them to make predictions
- Line of best fit: smoking in 1945
- Estimating slope of line of best fit
- Equations of trend lines: Phone data
- Linear regression review

© 2023 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# Equations of trend lines: Phone data

Paige collected data on how long she spent on her phone compared to how much battery life was remaining (in hours) throughout the day. Here is the data:

Time spent on phone (hours) | 1 | 2 | 3, point, 5 | 4 | 6 | 7 | 8 | 9 | |

Battery life remaining (hours) | 8 | 7 | 7 | 5, point, 5 | 5 | 3, point, 5 | 2, point, 5 | 2, point, 5 |

She then made this scatterplot:

Now she wants a trend line to describe the relationship between how much time she spent on phone and the battery life remaining. She drew three possible trend lines:

## Want to join the conversation?

- How do you find the slope of the graph?(18 votes)
- Find two good points and count change in y (rise)/change in x (run)(14 votes)

- I do not understand how the last one is 11.7 I got 11.8?(10 votes)
- The trend line is 𝑦 = −0.75𝑥 + 9, where 𝑥 is the time spent on the phone (in hours) and 𝑦 is the expected battery life remaining (in hours).

Paige wants to turn her phone off when there's 15 minutes of battery life remaining.

15 minutes = 1∕4 hours ⇒ 𝑦 = 1∕4 = −0.75𝑥 + 9 ⇒

⇒ 𝑥 = (1∕4 − 9)∕(−0.75) = 11.6666... ≈ 11.7

So, Paige can use her phone for approximately 11.7 hours before she needs to turn it off.(19 votes)

- I still don't understand how to find the slope of a scatterplot when answers are not provided? How do you get the slope-intercept equation if the values are all over the place?(10 votes)
- You don't have to find the slope-intercept equation for the points. You need it for the trend line.(4 votes)

- I don't get the rounding thing what do you have to round?(8 votes)
- Yes but I did the rounding and it was wrong. all the rounding did not work and i did exacts and i got them all right. if i rounded then it came up wrong.(7 votes)

- i'm finding it hard to find the numbers that the line goes through. for example it says "the line goes through (0,9) and (4,6). where did these numbers comes from and how were they spotted. please help me with some steps or anything...(7 votes)
- The coordinates were on the purple line. If you look at the y-intercept, it is (0,9). If you go down to the next whole number point, it is (4,6).(5 votes)

- why was this insanely difficult for me? the estimating equations of lines took me an hour, and I didnt even get it done!(8 votes)
- How do you get 15 to be 1/4's?(4 votes)
- All our other values are in hours, so we would like to express 15 minutes in hours. Since there are 60 minutes in an hour, 15 minutes = 15/60 hours. Dividing top and bottom by 15 gives us 1/4.(5 votes)

- Hi, where can I find the lesson that goes into details as to the maths behind the calculation done above? That is, if line goes thorugh (0,9) and (4,6), then the slope is equal to (6-0)/(4-9) = -0.75? How do we know which way to do the substitution?

My calculation would have been to say that we know that in y=ax+b, b has to be equal to 9 given that it's the intercept. From there, we know that 6 = 4a + 9, so we can derive that a = -0.75. But I want to learn the technique used above.(5 votes)- From trigonometry, slope of the line is nothing but the height divided by base in a right angle triangle. So let say there are two points (0,9) and (4,6), imagine a right angle triangle created out these two points, now the base is (x2-x1) and height is (y2-y1) and hypotenuse the is line itself. Hence the slope will now be (y2-y1)/(x2-x1).(2 votes)