Question
13.1)The cost of a home depends on the number of bedrooms in the house. Suppose the following data is recorded for homes in a given
13.1)The cost of a home depends on the number of bedrooms in the house. Suppose the following
data is recorded for homes in a given town
price (in thousands) 300 250 400 550 317 389 425 289 389 559
No. bedrooms 3 3 4 5 4 3 6 3 4 5
Make a scatterplot, and t the data with a regression line. On the same graph, test the hypothesis
that an extra bedroom costs $60,000 against the alternative that it costs more.
13.2) It is well known that the more beer you drink, the more your blood alcohol level rises. Suppose
we have the following data on student beer consumption
Student 1 2 3 4 5 6 7 8 9 10
Beers 5 2 9 8 3 7 3 5 3 5
BAL 0.10 0.03 0.19 0.12 0.04 0.095 0.07 0.06 0.02 0.05
Make a scatterplot and t the data with a regression line. Test the hypothesis that another beer
raises your BAL by 0.02 percent against the alternative that it is less.
13.3 )For the same Blood alcohol data, do a hypothesis test that the intercept is 0 with a two-sided
alternative.
13.4 )The lapse rate is the rate at which temperature drops as you increase elevation. Some hardy
students were interested in checking empirically if the lapse rate of 9.8 degrees C/km was accu-
rate for their hiking. To investigate, they grabbed their thermometers and their Suunto wrist
altimeters and found the following data on their hike
elevation (ft) 600 1000 1250 1600 1800 2100 2500 2900
temperature (F) 56 54 56 50 47 49 47 45
Draw a scatter plot with regression line, and investigate if the lapse rate is 9.8C/km. (First, it
helps to convert to the rate of change in Fahrenheit per feet with is 5.34 degrees per 1000 feet.)
Test the hypothesis that the lapse rate is 5.34 degrees per 1000 feet against the alternative that
it is less than this.
In R language
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started