Question 1
Suppose we wanted to predict the selling price of a house using its size in a certain area of a city. A random sample of six houses were selected from the area. The data is presented in the following table with size given in hundreds of square feet, and sale price in thousands of dollars:
|
Size (Xi) |
12 |
15 |
18 |
21 |
24 |
27 |
|
Price (Yi) |
60 |
85 |
75 |
105 |
120 |
110 |
We are interested in fitting the following simple linear regression model:
This can also be written in matrix form as Y = Xβ + ε
a) Calculate X′X, (X′X)-1 and X′Yand then calculate the least squares estimates of β0 andβ1.
b) Calculate the variance-covariance matrix of b, and use it to perform a t-test to test the null hypothesis that β1 = 0. Use α = 0.05.
Use the matrix approach to calculate the following:
c) Calculate a 95% confidence interval for the mean of Ywhen X= 20.
d) Calculate a 95% prediction interval for an individual new value of Ywhen X= 20.
Question 1 Suppose we wanted to predict the selling price of a house using its size...
Question 1 (The following data is from Q1 of HW2) Suppose we wanted to predict the selling price of a house using its size in a certain area of a city. A random sample of six houses were selected from the area. The data is presented in the following table with size given in hundreds of square feet, and sale price in thousands of dollars: Size (X121518 21 24 27 Price (Y)6085 75 105 120 110 We are interested in...
Question 1 Suppose we wanted to predict the selling price of a house using its size in a certain area of a city. A random sample of six houses were selected from the area. The data is presented in the following table with size given in hundreds of square feet, and sale price in thousands of dollars. Size (Xi) 12 15 18 21 24 27 Price (Yi) 60 85 75 105 120 110 a) Find the least squares estimate for the...
The AAA Club of a small town Emergency Road Service (ERS) to its members. By tracking the weather conditions the Club can divert resources from other Club activities to the ERS for projected peak days. This will lead to better services for Club members and also greatly reduces stress on the Club staff. So they want to determine if the number of calls the Club will receive in a day is predictable from the weather forecast given on the previous...
[a] We want to predict the price of houses from the size of the house (sarft). Please graph a scatterplot and see if the association is linear enough. (20 pts) There is a fairly linear association with very few outliers. Statkey Descriptive Statistics for Two Quantitative Variables Summary Statistics sih 013695 293546014 77.192 102713 445 650000 Sample Siee 0.788 140.211 11204 145 600000 550000 Scatterplot Controls a Show Regression Line 450000 300000 50000 1500 [b] Find the regression equation for...
A real estate agent would like to know if the number of bedrooms in a house can be used to predict the selling price of the house. More specifically, he wants to know whether a larger number of bedrooms leads to a higher selling price. Records for 25 houses that recently sold in the area were selected at random, and data on the number of bedrooms (x) and the selling price y (in $000s) for each house were used to...
(h) Construct a 99% confidence interval for
β0.
5.1.) Suppose that a researcher, using data on class size (CS) and average test scores from 100 third-grade classes, estimate the simple linear regression: Test Score = 520.4-5.82 x CS, n= 100, R2 = 0.08. (20.4) (2.21) (a) A classroom has 22 students. What is the model's prediction for that classroom's average test score? (b) Last year a classroom had 19 students, and this year it has 23 students. What is the...
Use the Excel output in the below table to do (1) through (6) for each ofβ0, β1, β2, and β3. y = β0 + β1x1 + β2x2 + β3x3 + ε df = n – (k + 1) = 16 – (3 + 1) = 12 Excel output for the hospital labor needs case (sample size: n = 16) Coefficients Standard Error t Stat p-value Lower 95% Upper 95% Intercept 1946.8020 504.1819 3.8613 0.0023 848.2840 3045.3201 XRay (x1) 0.0386...
1. For power sources from Warehouse A, we know that the voltage of each power source is independent of the others and is Gaussian with mean 10 and variance 1. Let the voltage of the 20 power sources in a given shipment be denoted by Xi, X2,... X20- [7] (a) Suppose we put the 20 power sources from a given shipment from Warehouse A in series. Find an interval (a, b) such that the total voltage Y-222, Xi is within...
Question 6 An auto manufacturing company wanted to investigate how the price of one of its car models depreciates with age. The research department at the company took a sample of eight cars of this model and collected the following information on the ages in years) and prices in hundreds of dollars) of these cars. Age 3 3 4 6 2 2 2 3 Price 73 78 64 43 87 81 75 79 Find the least squares regression line equation...