Question

In: Statistics and Probability

Can someone provide guidance for g-i for the following question? Someone already responded to a-f. Age...

Can someone provide guidance for g-i for the following question? Someone already responded to a-f. Age (years) Amount of Activity (hours) 7 4.3 9 3.2 10 1.0 13 1.5 12 1.2 15 0.8 9 3.0 12 4.0 15 1.5 14 1.9

A psychologist believed that as children get older, they engage in more “inactive activities” such as playing computer games, watching TV and surfing the internet. She collected data from 10 children. She recorded the age of each child and the amount of activity (in hours) the child engaged in per week. The table below gives the data for this hypothetical study (it is also available in activity.txt).

a. Using R, obtain a scatterplot of the data. Discuss the relationship between age and activity based on the scatterplot.

b. Using R, obtain the simple linear regression linear regression line predicting activity from age.

c. Interpret the intercept and slope of the regression line

d. By hand, predict the amount of activity for age = 14

e. By hand, calculate the residual for age = 14

f. Using R output, test the null hypothesis that the slope coefficient is zero using the p-value approach. Write one sentence interpreting the meaning of this result. Make sure to report the test statistic and p-value.

g. Using R, obtain and report the 95% CI for the slope coefficient. Explain how we can use it to make a decision about the null hypothesis from part (f).

h. Using R output, test the null hypothesis that the population coefficient of determination is zero using the p-value approach, and write one sentence interpreting your result. Make sure to report the test statistic and p-value.

i. How do the test statistics in (f) and (h) mathematically relate to each other?

Solutions

Expert Solution

> age=c(7,9,10,13,12,15,9,12,15,14)
> act=c(4.3,3.2,1,1.5,1.2,0.8,3,4,1.5,1.9)
> fit=lm(act~age)

g)

> confint(fit,'age',0.95)
2.5 % 97.5 %
age -0.5907166 -0.02156407

Confidence interval does not contain 0 , it means that slope coefficient does not equal to zero.

h)

> summary(fit)

Call:
lm(formula = act ~ age)

Residuals:
Min 1Q Median 3Q Max
-1.72982 -0.37719 0.06404 0.37127 1.88246

Coefficients:
Estimate Std. Error t value Pr(>|t|)   
(Intercept) 5.7912 1.4675 3.946 0.00426 **
age -0.3061 0.1234 -2.481 0.03807 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 1.021 on 8 degrees of freedom
Multiple R-squared: 0.4348, Adjusted R-squared: 0.3641
F-statistic: 6.154 on 1 and 8 DF, p-value: 0.03807

R2 is nothing but the square of correlation coefficient. This can be tested by using t test as follows.

> cor.test(age,act)

Pearson's product-moment correlation

data: age and act
t = -2.4807, df = 8, p-value = 0.03807
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
-0.91085597 -0.05088912
sample estimates:
cor
-0.6593879

since p value is less than 0.05 we say that correlation is not equal to zero and ultimately coefficient of determination also not equal to zero


Related Solutions

Could someone please provide the answers to f) & g) of the below question? Suppose we...
Could someone please provide the answers to f) & g) of the below question? Suppose we have one risky asset Stock I and a risk-free asset. Stock I has an expected return of 25% and a beta of 2. The risk-free asset’s return is 6%. a. Calculate the expected returns and betas on portfolios with x% invested in Stock I and the rest invested in the risk-free asset, where x% = 0%, 25%, 75%, 100%, 125%, and 150%. b. What...
Can someone provide an expanded explanation on the statement that the Higgs field is already 3/4...
Can someone provide an expanded explanation on the statement that the Higgs field is already 3/4 detected? Link to ref (@nic, sorry I left it off, do a quick search on Higgs to find the right location on page)
PARTS A-F ARE ALREADY SOLVED. I just need G - I Martin Office Supplies paid a...
PARTS A-F ARE ALREADY SOLVED. I just need G - I Martin Office Supplies paid a $3 dividend last year. The dividend is expected to grow at a constant rate of 6 percent over the next four years. The required rate of return is 12 percent (this will also serve as the discount rate in this problem). Use Appendix B for an approximate answer but calculate your final answer using the formula and financial calculator methods. a. Compute the anticipated...
Can someone please explain how to do the steps for this? I already have part a...
Can someone please explain how to do the steps for this? I already have part a completed but I need help with b-e. Thank you. Problem 1: (a) What is spurious regression? Explain. (b) Assuming , randomly generate 1000 observations of variables X and Y using the following equations: Report the graphs of X and Y. (c) Run the regression: and report the estimated results. (d) What did you expect about the magnitudes and R-square? How are the estimated values...
can someone please provide answer to this question for 10 marks Provide a case summary of...
can someone please provide answer to this question for 10 marks Provide a case summary of the case “Lee v Lee’s Air Farming Ltd [1960] UKPC 33” using the IRAC method. What legal principle came out of this case in relation to why the court lifted the corporate veil in this case? (10 m
Here is some additional information on this, I can also provide what I have already, what...
Here is some additional information on this, I can also provide what I have already, what is in bold is what needs to be taken care of. Gentry Inc. is a mid-sized tech firm (200 employees and $300 million in revenue) and has been privately held since the firm’s inception ten years ago. The organization’s board of directors is keen on expanding the operations globally to take advantage of a growing market. Based on reports from the research and development...
**Only answer G-J, I already did A-F** 2. Measuring the height of a California redwood tree...
**Only answer G-J, I already did A-F** 2. Measuring the height of a California redwood tree is very difficult because these trees grow to heights over 300 feet. People familiar with these threes understand that the height of a California redwood tree is related to other characteristics of the tree, including the diameter of the tree at the breast height of a person (in inches), the thickness of the bark of the tree (in inches), the distance from the closest...
Can someone explain the logic behind this question? The addition of 1 g of which of...
Can someone explain the logic behind this question? The addition of 1 g of which of the following compounds to distilled water would cause the least change in pH? a) Cs(OH) b)HCl c) LiH d) LiOH I know that HCL is a strong acid which elimates that since it will affect PH. In class we had to memorize that group I metals with OH are strong bases making which LiOH and CsOH follow. The answer is A. The solution to...
Can someone please answer these 3 by Friday? Problem 2 Let D, E, F, G, and...
Can someone please answer these 3 by Friday? Problem 2 Let D, E, F, G, and H be events such that P(D) = 0.7, P(E) = 0.6, P(F) = 0.8, P(G) = 0.9, and P(H) = 0.5. Suppose that Dc, E, Fc, Gc, and H are independent. (a) Find the probability that all of the events D, E, F, G, and H occur. (b) Find the probability that at least one of the events D, E, F, G, and H...
This is one discussion question that I was hoping to get guidance on: What is the...
This is one discussion question that I was hoping to get guidance on: What is the correlation between, and evidence behind, market concentration and price levels? Do you find any relationship between lack of competition and other economic variables? What are the ethical ramifications of market concentration?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT