5. The following output from R presents the results from computing a linear model. In our data example we are interested to study the relationship between TV budget and sales This R output is for a simple data set that contains, in thousands of dollars, TV budget for 200 different markets along with the Sales, in thousands of units, for each market. summary (model1) ## ## Call: ## Lm (formula = Sales - TV, data = train) ## ## Residuals: ## Min 10 Median 30 Маx ## -8.5816 -1.7845 -0.2533 2.1715 6.9345 ## ## Coefficients: Estimate Std. Error t value Pr(>|t|) ## (Intercept) 6.764098 0.607592 11.13 <2e-16 ***k ## TV 0.050284 0.003463 14.52 <2e-16 *** ## -- ## Signif. codes: O '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 '' 1 #2# ## Residual standard error: 3.204 on 120 degrees of freedom ## Multiple R-squared: 0.6373, Adjusted R-squared: 0.6342 ## F-statistic: 210.8 on 1 and 120 DF, p-value: < 2.2e-16 confint(model1) ## 2.5 % 97.5 % ## (Intercept) 5.56110868 7.96708701 ## TV 0.04342678 0.05714057 a. Compute the standard deviation of errors. b. Construct a 95% confidence interval for slope B1. c. Using alpha=0.05, test whether B, is different from zero

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
icon
Concept explainers
Question
5. The following output from R presents the results from computing a linear model.
In our data example we are interested to study the relationship between TV budget and sales This R output
is for a simple data set that contains, in thousands of dollars, TV budget for 200 different markets along
with the Sales, in thousands of units, for each market.
summary (model1)
##
## Call:
## Lm (formula = Sales - TV, data = train)
##
## Residuals:
##
Min
10 Median
30
Маx
## -8.5816 -1.7845 -0.2533 2.1715
6.9345
##
## Coefficients:
Estimate Std. Error t value Pr(>|t|)
## (Intercept) 6.764098
0.607592
11.13
<2e-16 ***k
## TV
0.050284
0.003463
14.52
<2e-16 ***
## --
## Signif. codes:
O '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 '' 1
#2#
## Residual standard error: 3.204 on 120 degrees of freedom
## Multiple R-squared: 0.6373, Adjusted R-squared: 0.6342
## F-statistic: 210.8 on 1 and 120 DF, p-value: < 2.2e-16
confint(model1)
##
2.5 %
97.5 %
## (Intercept) 5.56110868 7.96708701
## TV
0.04342678 0.05714057
a. Compute the standard deviation of errors.
b. Construct a 95% confidence interval for slope B1.
c. Using alpha=0.05, test whether B, is different from zero
Transcribed Image Text:5. The following output from R presents the results from computing a linear model. In our data example we are interested to study the relationship between TV budget and sales This R output is for a simple data set that contains, in thousands of dollars, TV budget for 200 different markets along with the Sales, in thousands of units, for each market. summary (model1) ## ## Call: ## Lm (formula = Sales - TV, data = train) ## ## Residuals: ## Min 10 Median 30 Маx ## -8.5816 -1.7845 -0.2533 2.1715 6.9345 ## ## Coefficients: Estimate Std. Error t value Pr(>|t|) ## (Intercept) 6.764098 0.607592 11.13 <2e-16 ***k ## TV 0.050284 0.003463 14.52 <2e-16 *** ## -- ## Signif. codes: O '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 '' 1 #2# ## Residual standard error: 3.204 on 120 degrees of freedom ## Multiple R-squared: 0.6373, Adjusted R-squared: 0.6342 ## F-statistic: 210.8 on 1 and 120 DF, p-value: < 2.2e-16 confint(model1) ## 2.5 % 97.5 % ## (Intercept) 5.56110868 7.96708701 ## TV 0.04342678 0.05714057 a. Compute the standard deviation of errors. b. Construct a 95% confidence interval for slope B1. c. Using alpha=0.05, test whether B, is different from zero
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Correlation, Regression, and Association
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman