Question

phones saturated animal deaths 124 33 8 81 49 31 6 55 181 38 8 80...

phones saturated animal deaths
124 33 8 81
49 31 6 55
181 38 8 80
4 17 2 24
22 20 4 78
152 39 6 52
75 30 7 88
54 29 7 45
43 35 6 50
41 31 5 69
17 23 4 66
22 21 3 45
16 8 3 24
10 23 3 43
63 37 6 38
170 40 8 72
125 38 6 41
12 25 4 38
221 39 7 52
171 33 7 52
97 38 6 66
254 39 8 89

a) First study the simple linear regression model for the heart attack death rates, on the only basis of the number of phones. Determine whether the number of phone is associated significantly with the heart attack death rate. b) Write the multiple linear regression model for the heart attack death rates on the basis of the number of phones and the proportion of saturated fat. Compute the associated least squares coefficient estimates. c) Test whether at least one of the predictors number of phones, or proportion of saturated fat, is useful in predicting the heart attack death rate. d) Compute the R2 statistic, and the residual standard error for the models in questions (b) and (c). Would you say that adding the proportion of saturated fat to the model significantly improves the accuracy? e) Write the multiple linear regression model for the heart attack rates on the basis of the number of phones, the proportion of saturated fat, and the proportion of animal fat. Compute the associated least squares coefficient. f) A country has the following features: 108 phones per 1000 inhabitants; 33% of saturated fat for men between the ages of 55 and 59; 7% of animal fat for men between the ages of 55 and 59. Predict the heart attack death rate for men between the ages of 55 and 59 in that country. g) Which coefficient estimates are significantly non-zero?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

We may solve it via simple R-codes. To import the data, save the above table via copy-paste in a test file. Then, below is the R-command for import.

-----------------------------------------------------------------------------------------------------

> library(readr)
> dat <- read_delim("dat.txt", " ", escape_double = FALSE, trim_ws = TRUE)

-----------------------------------------------------------------------------------------------------

The above table is now a data-frame named dat in R.

(a) The regression equation to estimate would be deathso +Bi *phones . The R-command would be as below.

-----------------------------------------------------------------------------------------------------

> summary(lm(dat$deaths ~ dat$phones))

Call:
lm(formula = dat$deaths ~ dat$phones)

Residuals:
    Min      1Q Median      3Q     Max
-24.157 -14.190 -2.637 12.219 32.762

Coefficients:
            Estimate Std. Error t value Pr(>|t|)  
(Intercept) 46.23633    5.77111   8.012 1.14e-07 ***
dat$phones   0.12002    0.05044   2.379   0.0274 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 17.47 on 20 degrees of freedom
Multiple R-squared: 0.2206,   Adjusted R-squared: 0.1817
F-statistic: 5.662 on 1 and 20 DF, p-value: 0.02741

-----------------------------------------------------------------------------------------------------

As can be seen, the regression equation is now deaths = 46.23633 + 0.12002 * phones .

Also, the phones variable is significantly associated to the deaths variable, as the null hypothesis H_0 : eta_1 = 0 would be rejected under usual 5% significance level (the p-value is 0.0274, which would be significant under 5% alpha level, but not under 1% alpha level).

(b) The regression equation to estimate would be deaths = 30 + 31 * phones + 32 * saturated . The R-command would be as below.

-----------------------------------------------------------------------------------------------------

> summary(lm(dat$deaths ~ dat$phones + dat$saturated))

Call:
lm(formula = dat$deaths ~ dat$phones + dat$saturated)

Residuals:
    Min      1Q Median      3Q     Max
-22.311 -13.582 -3.174 14.342 32.402

Coefficients:
              Estimate Std. Error t value Pr(>|t|)
(Intercept)   35.55464   16.56005   2.147   0.0449 *
dat$phones     0.07895    0.07849   1.006   0.3271
dat$saturated 0.47073    0.68276   0.689   0.4989
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 17.7 on 19 degrees of freedom
Multiple R-squared: 0.2397,   Adjusted R-squared: 0.1596
F-statistic: 2.994 on 2 and 19 DF, p-value: 0.07407

-----------------------------------------------------------------------------------------------------

The regression equation would be hence deaths 35.55464-0.07895 * phones + 0.47073 * saturated .

(c) The test of overall significance that H_0 : eta_1 = eta_2 = 0 would have the F-statistic as 1-R2n-k) following the F distribution with k,n-k-1 degree of freedom. Here, n=22 and k=3 (number of parameters to be estimated). That is computed in the regression result in the last line as 2.994, having the p-value 0.07407. The test of overall significance would fail to reject the null hypothesis that H_0 : eta_1 = eta_2 = 0 under usual 5% significance level. Hence, we may conclude that, with 95% confidence level, at least one of the explanatory variable - number of phones or proportion of saturated fat, is not useful in predicting the death rate.

(d) The R-square is given to be 0.2397 or 23.97%. The residual standard error would be RSS Vn-k , where RSS is the residual sum of square. It is given in the output as 17.7, but we may calculate it as by the R-commands below.

-----------------------------------------------------------------------------------------------------

> sqrt(sum(summary(lm(dat$deaths ~ dat$phones + dat$saturated))$resid^2)/19)
[1] 17.69967

-----------------------------------------------------------------------------------------------------

This would be approxed as 17.7, as given. The $resid beside the summary function would give the residuals, and those are squared, and then divided by degree of freedom n-k=22-3=19. The sqrt function is to calculate the square root.

(e) The regression equation to estimate would be deaths-30 + 31 * phones + 32 * saturated + 33 * animal . The R-command would be as below.

-----------------------------------------------------------------------------------------------------

> summary(lm(dat$deaths ~ dat$phones + dat$saturated + dat$animal))

Call:
lm(formula = dat$deaths ~ dat$phones + dat$saturated + dat$animal)

Residuals:
    Min      1Q Median      3Q     Max
-24.134 -10.675 -1.435   9.321 29.800

Coefficients:
               Estimate Std. Error t value Pr(>|t|)
(Intercept)   23.999566 15.978866   1.502   0.1504
dat$phones    -0.006173   0.081298 -0.076   0.9403
dat$saturated -0.479869   0.757034 -0.634   0.5341
dat$animal     8.483500   3.846205   2.206   0.0406 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 16.13 on 18 degrees of freedom
Multiple R-squared: 0.4014,   Adjusted R-squared: 0.3017
F-statistic: 4.024 on 3 and 18 DF, p-value: 0.02357

-----------------------------------------------------------------------------------------------------

The regression would hence be as deaths-23.999566-0.006173* phones 0.479869 saturated+8.4835 animal.

(f) The prediction for the given values would be widehat{deaths} = 23.999566 - 0.006173 * 108 - 0.479869 *33 + 8.4835*7 or leaths- 66.8817 , which is the heart attack death rate prediction for that age.

(g) Yet the test for overall significance is positive, meaning that the null that all the slope coefficients are equal to zero, can be rejected under 5% significance, not all the coefficients are significant individually.

As can be seen in the regression output, only animal's coefficient is significantly different from zero. Rest have p-values greater than 5% or 0.05, which is why we may say that their individual nulls H_0 : eta_1 = 0 and Ho: 62-O would be fail to be rejected.

Add a comment
Know the answer?
Add Answer to:
phones saturated animal deaths 124 33 8 81 49 31 6 55 181 38 8 80...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Applied Econometrics Use the dataset attached on blackboard and answer the following questions: First study the...

    Applied Econometrics Use the dataset attached on blackboard and answer the following questions: First study the simple linear regression model for the heart attack death rates, on the only basis of the number of phones. Determine whether the number of phone is associated significantly with the heart attack death rate. Write the multiple linear regression model for the heart attack death rates on the basis of the number of phones and the proportion of saturated fat. Compute the associated least...

  • Number of Components Inspection Time 33 85 14 50 7 31 18 59 16 52 12...

    Number of Components Inspection Time 33 85 14 50 7 31 18 59 16 52 12 41 24 72 43 100 6 21 12 42 18 64 8 25 31 79 13 49 12 30 20 62 18 52 20 59 24 73 43 101 17 59 13 45 22 67 13 45 24 69 a-1. Estimate the linear, quadratic, and cubic regression models. Report the Adjusted R2 for each model. (Round answers to 4 decimal places.) a-2. Which model...

  • Game   Point_Differential   Assists   Rebounds   Turnovers   Personal_Fouls 1   15   15   38   11   9 2   36   20   43 &

    Game   Point_Differential   Assists   Rebounds   Turnovers   Personal_Fouls 1   15   15   38   11   9 2   36   20   43   8   13 3   16   21   29   7   13 4   45   22   46   11   11 5   12   11   40   7   22 6   -10   10   31   13   26 7   11   19   45   11   7 8   12   16   32   16   14 9   3   16   27   18   15 10   19   9   34   17   17 11   40   16   41   9   17 12   44   12   29   9   22 13   16  ...

  • Allan is a 55-year-old man. He used to play football in high school and be fairly...

    Allan is a 55-year-old man. He used to play football in high school and be fairly active as a younger man, but now his physique is best described as husky at 6 feet tall and 215 pounds. He has worked as a real estate salesman for many years despite the fact that he's not especially social, so he experiences a fair bit of job stress and insecurity. Allan had a relatively minor heart attack (from coronary atherosclerosis) that weakened him...

  • The first two are the instructions to the assignment and the last two are the data

    the first two are the instructions to the assignment and the last two are the data MATH.1220 Management Calculus Project #1 Wal Mart Dry Goods Sales 2002-2003 The following items are a guide for responses to be addressed in project one. Note that WalMart's fiscal year starts the first week of February. This means that when analyzing the data, week 26 s actually week 30 (26+4 weeks for January) in 2002 or the end of July 2002. Also, week 52...

  • Attendance # of concessions Billboard Charts Concert Revenue 30650 8 56 1531762 80997 1 87 4047180...

    Attendance # of concessions Billboard Charts Concert Revenue 30650 8 56 1531762 80997 1 87 4047180 93686 8 24 5805972 44405 4 99 2516538 77767 4 39 4197208 95780 7 35 6226065 82701 7 86 4123048 50165 8 29 3465110 50619 5 93 2843474 36259 7 86 1866318 52013 5 35 2670798 97447 7 71 5756817 69982 7 97 3681670 31789 10 72 2072149 73159 5 41 5064323 51172 8 1 2901564 54187 9 17 3170058 56681 7 1 3316764...

  • INN MARGIN ROOMS NEAREST OFFICE COLLEGE INCOME DISTTWN 1 61 3203 0.1 549 8 37 12.1 2 34 2810 1.5 496 17.5 39 0.4...

    INN MARGIN ROOMS NEAREST OFFICE COLLEGE INCOME DISTTWN 1 61 3203 0.1 549 8 37 12.1 2 34 2810 1.5 496 17.5 39 0.4 3 46 2890 1.9 254 20 39 12.2 4 31.9 3422 1 434 15.5 36 2.7 5 57.4 2687 3.4 678 15.5 32 7.9 6 47.5 3080 2.4 488 13.5 31 6.7 7 54.4 2756 1.1 832 14.5 35 6.9 8 46.2 2244 0.7 496 15.5 38 8.9 9 54.1 2862 1.4 809 16.5 33 3...

  • We assume that our wages will increase as we gain experience and become more valuable to our employers. Wages also incre...

    We assume that our wages will increase as we gain experience and become more valuable to our employers. Wages also increase because of inflation. By examining a sample of employees at a given point in time, we can look at part of the picture. How does length of service (LOS) relate to wages? The data here (data197.dat) is the LOS in months and wages for 60 women who work in Indiana banks. Wages are yearly total income divided by the...

  • We assume that our wages will increase as we gain experience and become more valuable to...

    We assume that our wages will increase as we gain experience and become more valuable to our employers. Wages also increase because of inflation. By examining a sample of employees at a given point in time, we can look at part of the picture. How does length of service (LOS) relate to wages? The data here (data273.dat) is the LOS in months and wages for 60 women who work in Indiana banks. Wages are yearly total income divided by the...

  • Student stress at final exam time comes partly from the uncertainty of grades and the consequence...

    Student stress at final exam time comes partly from the uncertainty of grades and the consequences of those grades. Can knowledge of a midterm grade be used to predict a final exam grade? A random sample of 200 BCOM students from recent years was taken and their percentage grades on assignments, midterm exam, and final exam were recorded. Let’s examine the ability of midterm and assignment grades to predict final exam grades. The data are shown here: Assignment Midterm FinalExam...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT