STA201 Assignment 3 Solution
Problem 1
The owner of a second-hand car dealership wants to study the relationship between the age of a
car and its selling price. Listed below is a random sample of 12 used cars sold at
...
STA201 Assignment 3 Solution
Problem 1
The owner of a second-hand car dealership wants to study the relationship between the age of a
car and its selling price. Listed below is a random sample of 12 used cars sold at the dealership
during the last year.
Age (years) 9 7 11 12 8 7 8 11 10 12 6 6
Price (thousand $) 8.1 6 3.6 4 5 10 7.6 8 8 6 8.6 8
a. Draw a scatter diagram and comment on the relation between the age of the car and its
selling price.
b. Determine the Pearson correlation coefficient and the coefficient of determination and
interpret it.
Problem 2
At a business case competition, two judges were tasked with scoring (out of 1000) the case reports
submitted by 12 teams. Using the following data, we would like to examine the association
between the scores of the two judges.
Judge 1 650 760 740 700 590 620 700 690 900 500 610 700
Judge 2 900 720 690 850 920 800 890 920 1000 690 700 760
a. Compute the Spearman rank correlation between the scores of the two judges.
b. Comment on the association between the scores of the two judges.
Problem 3
An electric company is studying the relationship between the energy consumption (in thousand
kilowatt-hours) and the number of rooms in a private single-family residence. A random sample of
10 homes yielded the following.
Number of Rooms 12 9 14 6 10 8 10 10 5 7
Energy Consumption (thousand kWh) 9 7 10 5 8 6 8 10 4 7
a. Determine the regression equation of energy consumption on the number of rooms.
b. Interpret the model.
c. What is the predicted energy consumption, in thousand kWh, for a six-room house.
d. Comment on the goodness of fit of the model.
Problem 4
Designers of backpacks use exotic material to make packs that fit comfortably and distribute
weight to eliminate pressure points. For fitting a regression model of price of backpack on the
capacity (cubic inches) and comfort rating of backpacks, data for 10 backpacks are used. Comfort
was measured using a rating from 1 to 5, with a rating of 1 denoting average comfort and a rating
of 5 denoting excellent comfort. The output of the regression model is as follows on the next page:
a. Determine the estimated regression equation that can be used to predict the price of a
backpack given the capacity and the comfort rating.
b. Interpret the model.
c. Predict the price for a backpack with a capacity of 4500 cubic inches and a comfort rating of
4.
d. Comment on the goodness of fit of the model.
4
Problem 5
Suppose that we are working with some doctors on heart attack patients. The dependent variable
is whether the patient has had a second heart attack within 1 year (yes=1). We have two
independent variables, one is age of the patient and the other is a score on the anxiety scale (a
higher score means more anxious). After applying logistic regression model, we have the following
output:
a. Determine the estimated logistic regression equation.
b. Calculate the odds ratio and interpret.
[Show More]