Asked by bkba6c
Install the R package SemiPar to get access to the elec.temp data...
Install the R package SemiPar to get access to the elec.temp data set for electricity usage vs temperature (in Farenheit) in a house1 . Using R but not the lm command in R, do the following.
(a) Perform a simple linear regression using temperature as the predictor variable and the logarithm of the electricity usage as the response. Find the least square estimate for the coefficients.
(b) Conduct a hypothesis test (via a t-test) to test whether electricity usage is associated with the temperature in the house. Use a significance level of 0.05 for the test. What is the p-value of this test?
(c) Construct a prediction interval for the electricity usage when the temperature is 70 degrees Farenheit
and 40 degrees Farenheit.
(d) Compute SSE, SSR and SST o and repeat part (b) using an F-test. Would you expect the results to be the same or different? What is the p-value? Is there a difference in using a t-test as opposed to an
F-test?
(e) Find the 95% confidence band for the regression line using the Working-Hotelling approach and plot
it together with the data scatter plot and the least-squares line.
Image transcription text
Exercise 5: (15 pts) Install the R package SemiPar to get access to the elec.temp data set for electricity usage vs temperature (in Farenheit) in a house . Using R but not the Im command in R, do the following. (a) Perform a simple linear regression using temperature as the predictor variable and the logarithm of the electricity usage as the response. Find the least square estimate for the coefficients. (b) Conduct a hypothesis test (via a t-test) to test whether electricity usage is associated with the tem- perature in the house. Use a significance level of 0.05 for the test. What is the p-value of this test? (c) Construct a prediction interval for the electricity usage when the temperature is 70 degrees Farenheit and 40 degrees Farenheit. (d) Compute SSE, SSR and SSTo and repeat part (b) using an F-test. Would you expect the results to be the same or different? What is the p-value? Is there a difference in using a t-test as opposed to an F-test? (e) Find the 95% confidence band for the regression line using the Working-Hotelling approach and plot it together with the data scatter plot and the least-squares line.
Answered by sherlynrebzz
Unlock full access to Course Hero
Explore over 16 million step-by-step answers from our library
Subscribe to view answertetur adipiscing elit. Nam lacinia pulvinar to
ur la
Fusce dui l
dictum vitae odio. Don
gue
gue
gue
gue
gue
gue
gue
gue
gue
gue
et, consectetur adipiscing eliipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus
ec facilisis. Pellentesque dapibus efficitur laoreet.
gue
Fusce
ipiscing elit. Nam lacinia pulvinar tortor nec fa
, dictum vitae odi
llent0, consectetur adipiscing elit. Nam laci
ffur laor
gue
ultrices ac magna. Fusce dui lectus, con
xoxxxlec faclxlxec facacinia
ipsum dolo
gue
gue v
ec fac
gue vel laoreet ac, dictum vitae odio. Donec aliq
sque dapibus efficitur laoreet.,m risus ante, d
gue
gue
Fusce dui l
usce dui lectus, cong0Fusce dui lectus, congue vel laoreetgue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit am
gue
gue
gue
or nec facilisis. Pellentesquea. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
gue
Fusce
, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit am
trices ac masfacilisis. Pellentesque
gue
gue vel laoreet aor nec facilisis. Pellentesque dapibus efficitur laorrem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pe
gue
gue
gue
gue
gue
gue
gue
gue
gue
gue
gue
dictum vitae odio. Donec aliqusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsu
gue
gue
Fusce
gue
sum dolor sit afficitur laoreet. Nam risus ante, dapibus a molestie consequ
nec facilisis.sus ante, dapibus a molestie consequat, ultrices ac magna. Fus
acinia pulvinaripiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellen
gue
ac, dictumentesque dapibu
facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna.
gue
gue
gue
gue
gue
gue
gue
gue
gue
gue
gue
gue
gue
gue
ia pulvinar tortor nec faciliusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, con
gue
gue
Fusce
cing elit. Nam lacinia p
gue
xt,toi,xitiisciiticticiec fac
gue
gue
gue
gue
gue
gue
gue
gue
gue
ffic
- ce dui lectus, congue vel laoreet ac, dictum vit
- inia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a mole
gue
gue
gue
gue
gue
gue
gue
gue
icitur laoreet. Nam risus ante, dapibus a molestie conse
onec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor
fficitur laoreet. Nam risu
acinia pulvinar tortor nec facil