Solved Exercises on Lines of Best Fit in Grade 8

Master lines of best fit: positive correlation, negative correlation, and making predictions through these 3 detailed exercises.

Solution: Exercises 1 to 3
1 Positive Correlation Line of Best Fit
Exercise 1
The table shows hours studied and test scores for 6 students:
Hours Studied: 1, 2, 3, 4, 5, 6
Test Scores: 60, 65, 70, 78, 85, 90
Draw a scatter plot, sketch the line of best fit, and estimate the score for 7 hours of study.
Definition:

Line of best fit: A straight line drawn through a scatter plot that best represents the relationship between two variables. It minimizes the distance between the line and all data points.

Line of best fit creation method:
  1. Plot all data points on a scatter plot
  2. Visually identify the general trend of the points
  3. Draw a line that passes through the middle of the points
  4. Ensure roughly equal points above and below the line
  5. Extend the line to make predictions
Data Points
(1,60), (2,65), (3,70), (4,78), (5,85), (6,90)
Slope
≈ 6 points per hour
Step 1: Plot the data points

Independent variable (x-axis): Hours Studied = [1, 2, 3, 4, 5, 6]

Dependent variable (y-axis): Test Scores = [60, 65, 70, 78, 85, 90]

Step 2: Draw the line of best fit

Visual inspection shows an upward trend

Draw a line passing through approximately (1,60) and (6,90)

The line should have roughly equal points above and below

Step 3: Calculate the slope

Slope = (90 - 60) / (6 - 1) = 30 / 5 = 6

For every additional hour of study, test score increases by about 6 points

Step 4: Make predictions

To predict score for 7 hours of study:

Using the line equation: y = mx + b

y = 6(7) + 54 = 42 + 54 = 96

Estimated score for 7 hours of study: 96 points
Final answer:

The line of best fit shows a strong positive correlation. A student studying 7 hours would likely score around 96 points.

Applied rules:

• Equal distribution: Same number of points above and below the line

• Minimize distances: Line should be as close as possible to all points

• Linear approximation: Line represents average relationship between variables

2 Negative Correlation Line of Best Fit
Exercise 2
The table shows temperature (°F) and heating costs ($) for 6 months:
Temperature: 75, 70, 65, 60, 55, 50
Heating Costs: $40, $50, $60, $75, $85, $100
Draw a scatter plot, sketch the line of best fit, and estimate heating cost at 45°F.
Definition:

Negative correlation line: A line of best fit with a negative slope, indicating that as one variable increases, the other decreases.

Data Points
(75,40), (70,50), (65,60), (60,75), (55,85), (50,100)
Slope
≈ -2.4 per degree
Step 1: Organize the data

Independent variable (x-axis): Temperature = [75, 70, 65, 60, 55, 50]

Dependent variable (y-axis): Heating Costs = [40, 50, 60, 75, 85, 100]

Step 2: Plot the points

Points form a clear downward-sloping pattern

Higher temperatures correspond to lower heating costs

Step 3: Draw the line of best fit

Line passes through approximately (75,40) and (50,100)

Shows strong negative correlation between temperature and heating costs

Step 4: Calculate slope and make predictions

Slope = (100 - 40) / (50 - 75) = 60 / (-25) = -2.4

Prediction for 45°F: y = -2.4(45) + 220 = -108 + 220 = $112

Estimated heating cost at 45°F: $112
Final answer:

The line of best fit shows a strong negative correlation. At 45°F, heating costs would be approximately $112.

Applied rules:

• Negative slope: Line goes down from left to right

• Inverse relationship: One variable increases as the other decreases

• Rate of change: Calculate how much y changes per unit change in x

3 Making Predictions with Line of Best Fit
Exercise 3
A line of best fit has the equation y = 2.5x + 15, where x represents hours of exercise and y represents calories burned.
a) How many calories are burned after 3 hours of exercise?
b) How long would someone need to exercise to burn 80 calories?
Definition:

Line equation: y = mx + b, where m is the slope (rate of change) and b is the y-intercept (value when x = 0).

Equation
y = 2.5x + 15
Slope
m = 2.5
Y-intercept
b = 15
Step 1: Understand the equation

y = 2.5x + 15

m = 2.5 (calories burned per hour of exercise)

b = 15 (baseline calories burned even with 0 exercise)

Step 2: Part (a) - Calories burned after 3 hours

Substitute x = 3 into the equation:

y = 2.5(3) + 15 = 7.5 + 15 = 22.5 calories

Step 3: Part (b) - Time needed to burn 80 calories

Substitute y = 80 and solve for x:

80 = 2.5x + 15

80 - 15 = 2.5x

65 = 2.5x

x = 65 ÷ 2.5 = 26 hours

Step 4: Interpret results

After 3 hours of exercise: 22.5 calories burned

To burn 80 calories: 26 hours of exercise needed

a) 22.5 calories after 3 hours
b) 26 hours to burn 80 calories
Final answer:

a) After 3 hours of exercise, 22.5 calories are burned.
b) To burn 80 calories, 26 hours of exercise are needed.

Applied rules:

• Direct substitution: Replace x with known value to find y

• Algebraic manipulation: Solve for unknown variable when given y

• Interpretation: Understand real-world meaning of slope and intercept

Lines of Best Fit Summary
y = mx + b
Line Equation
Slope Formula
m = (y₂-y₁)/(x₂-x₁)
Rate of change
Y-Intercept
Value at x=0
Starting value
Prediction
Substitute values
Make estimates
Key definitions:

Line of Best Fit: A straight line drawn through a scatter plot that best represents the relationship between two variables

Slope (m): Rate of change, showing how much y changes for each unit change in x

Y-intercept (b): Value of y when x equals zero

Equal Distribution: Roughly equal points above and below the line
Minimize Distances: Line should be as close as possible to all data points
Tips, Laws, and Key Concepts
Tip 1: The line should pass through the "middle" of the data points.
Tip 2: Don't connect all the dots - draw one continuous line.
Tip 3: Use the line equation to make accurate predictions.
Tip 4: Be cautious about extrapolating beyond the data range.
Analysis Method:
  1. Plot data: Create accurate scatter plot with labeled axes
  2. Visual inspection: Observe overall trend and direction
  3. Draw line: Sketch line that best represents the data
  4. Calculate slope: Find rate of change between two points
  5. Find intercept: Determine y-value when x=0
  6. Make predictions: Use equation for future estimates
Important Laws:

• Equal points rule: Approximately half the points should be above and half below the line

• Minimize error: The line should minimize the total distance to all points

• Real-world context: Always interpret results in practical terms

• Limitations: Predictions are most accurate within the data range

Common Mistakes: Drawing line through every point, ignoring outliers, making predictions outside data range.
Exam Tips: Practice drawing lines by eye, understand slope interpretation, memorize equation format.

Questions & Answers

Question: How do I know if my line of best fit is correct? Is there a mathematical way to check?

Answer: Great question! While we don't calculate the exact "best" line in grade 8, here's how to evaluate your line:

  • Equal distribution: Count points above and below - they should be roughly equal
  • Central tendency: The line should pass through the middle of the data cluster
  • Minimize distances: Most points should be relatively close to the line
  • Follows trend: The line should match the overall direction of the data

For advanced checking, in higher grades you'll learn about "least squares regression" which mathematically minimizes the sum of squared distances from points to the line.

The most important thing is that your line captures the relationship between the variables accurately.

Question: What's the difference between connecting the dots and drawing a line of best fit?

Answer: These are fundamentally different approaches:

  • Connecting dots: Draws straight lines between consecutive points, showing exact values but no overall trend
  • Line of best fit: Shows the general relationship between variables, smoothing out individual variations

Example: If you're plotting monthly sales data, connecting dots shows exact sales for each month. A line of best fit shows the overall trend - whether sales are generally increasing, decreasing, or staying steady over time.

The line of best fit helps identify patterns that might be obscured by daily or monthly fluctuations.

Question: When is it appropriate to make predictions using a line of best fit, and when should I be careful?

Answer: Prediction accuracy depends on the range of your data:

  • Safe predictions (interpolation): Making estimates within the range of your data points
  • Risky predictions (extrapolation): Making estimates far outside your data range

Example: If your data shows exercise time from 1-5 hours, predicting calories burned for 3 hours is safe. Predicting for 20 hours would be risky because the relationship might not continue linearly.

Always consider whether the linear relationship makes sense beyond your observed data. Look for physical or logical constraints that might change the relationship.

Detailed Summary: Lines of Best Fit
Core Definitions:

Line of Best Fit: A straight line drawn through a scatter plot that best represents the relationship between two variables. It minimizes the total distance between the line and all data points.

Correlation: The measure of how closely two variables are related. Can be positive, negative, or none.

Slope (m): The steepness of the line, representing the rate of change (how much y changes when x increases by 1).

Y-intercept (b): The point where the line crosses the y-axis (the value of y when x = 0).

Fundamental Rules and Principles:

• Equal Distribution Rule: Approximately half the data points should be above the line and half below

• Minimization Principle: The line should minimize the total distance to all data points

• Linearity Assumption: The line assumes a linear relationship between variables

• Single Line Rule: Only one continuous line should represent the relationship

Step-by-Step Procedures:
  1. Data Preparation: Organize data into ordered pairs (x, y)
  2. Scatter Plot: Plot all data points on coordinate axes
  3. Trend Identification: Visually assess the general direction of the data
  4. Line Drawing: Draw a line through the middle of the data points
  5. Slope Calculation: Select two points on the line and calculate m = (y₂-y₁)/(x₂-x₁)
  6. Y-intercept: Find where the line crosses the y-axis
  7. Equation Formation: Write in form y = mx + b
  8. Prediction: Substitute values to make estimates
Examples - Simple: Height vs. age for children (positive correlation)
Examples - Advanced: Stock prices vs. time (may show complex patterns)
Common Pitfalls: Connecting all points, ignoring outliers, extrapolating too far
Key Tips: Balance points above/below, use real-world context, check reasonableness
Memorization Aid: "y = mx + b" → "y equals slope times x plus b" (slope-intercept form)
Memory Trick: Positive slope = uphill, Negative slope = downhill
Takeaway: Lines of best fit help us understand and predict relationships between variables
Key Learning Outcomes:

Students should be able to identify patterns in scatter plots, draw appropriate lines of best fit, calculate slopes and intercepts, make reasonable predictions, and understand the limitations of linear models.