You are on page 1of 6

Math 1030 Linear

Regression LAB

1. Consider the height and weight of 10 subjects given below. We seek to determine if there is a
correlation between a person’s height and weight.

x=height (in) 69 71 70 67 75 66 71 71 67 65
y-weight (lbs) 151 159 163 153 198 126 163 185 133 140

200

150
Weight in LBS

100
Series1

50

0
60 65 70 75 80
Height in Inches

a. Create a scatter plot of the data. Does there appear to be a correlation between the
height of a person and their weight? If so is it positive or negative?

Yes, it is a positive correlation.

b. Draw a line of best fit on the scatter plot. Pick any two points on your line and find the
equation of the line in slope intercept form by hand (hint: y=mx+b)

y=7x+93

c. In the context of the problem what does the slope represent? 



(Give your answer in a complete sentence describing how a change in height is related 

to a change in weight)

The slope describes the rate of change, as the taller you are the more you will weigh.


d. Use your line of best fit to predict a person’s weight who is 68 inches tall

7(68)+93= 569lbs

2. A Math teacher is interested in studying the relationship between the level of stress before an
exam and the score on the exam. The following data gives the stress level and the students’ score
on the exam.

Stress test Score


(x) 6.5 4 2.5 7.2 8 3.4 5.5 9 7.5 3.8 7 3
Final Exam score
(y) 81 96 98 68 63 84 71 57 70 86 64 90

100
R² = 0.849

75
Score on Test

50
Series1

25

0
0 2.25 4.5 6.75 9
Stress Level

a. Draw a line of best fit on the scatter plot. Pick any two points on the line of best fit and find
the equation of the line in slope intercept form by hand (hint: y=mx+b)
y=-6x+48
b. In the context of the problem what does the slope represent? 

(Give your answer in a complete sentence describing how a change in a person’s stress level
is related to a change in their test score)

The slope shows us that the higher the students stress level was, the worse their
score was on the test. Or that the lower their stress level was the better they did
on the test.

c. Use your line of best fit to predict the final exam score for a student with a stress score of 10.

-6(10)+48= -12

3. A sample of seven households was obtained, and information on their income and food
expenditures for the past month was collected. The data (in hundreds of dollars) are:

Monthly food expense

1000 y = 0.2019x + 186.9


R² = 0.8589

750
Food Expence

500
Series1

250

0
0 1000 2000 3000 4000
Monthly Income
170
Income (US dollars) (x) 2200 3200 1600 3700 1200 2700 0
Food Expend (US dollars) (y) 700 800 500 1000 400 600 600

(a) Make a scatterplot of the points using EXCEL and include with your Lab (include a title and
label axis).

(b) What is the correlation (positive, negative, neither)?


This graph describes a positive correlation.


(c) Find the equation of line of best fit that describes Income to Food Expenditures (hint
y = mx + b ) using EXCEL

(d) In the context of the problem what does the slope represent? 

(Give you answer in a complete sentence describing how a change in income is 

related to a change in food expense)
The slope represents the rate of change, where the more money you make monthly
correlates with how much of that money you spend on food each month. More monthly
income means you will spend more on food each month.


(e) Use your line of best fit to predict the food expense for a family with $5200.


0.2019(5200)+186.9= $1236.78
4. The following table presents data on x= the number of oil changes per year and y = the cost of
repairs for a sample of 10 cars from a given region:

Annual Oil changes/Repair Cost


700 y = -88.235x + 673.53
R² = 0.8182

525
Cost of repairs

350 Series1

175

0
0 1.5 3 4.5 6
Number of Oil Changes

Number of oil changes per year


(x) 3 5 2 3 1 4 6 4 3 0
Cost of Repairs $ (y) 300 300 500 400 700 400 100 250 450 600

(a) Make a scatterplot of the points in EXCEL and include with your Lab (include a title and
label axis).

(b) What is the correlation (positive, negative, neither)?


This Graph describes a negative correlation.


(c) Find the equation of line of best fit that describes the cost on the number of oil 

changes in EXCEL 


(d) In the context of the problem what does the slope represent? 

(Give you answer in a complete sentence describing how a change in the number of 

oil changes is related to the change in the cost of repairs)
In this graph the slope describes that the more frequently you change your oil the less you will
have to pay for repairs.


(e) Use your line of best fit to predict the cost of car repairs for a car that had 7 oil changes per
year.
-8824(7)+673.53= $55.85

You might also like