Question

In: Statistics and Probability

question 1 In the datasets package, there is a dataframe ChickWeight. The weights of the chicks...

question 1

In the datasets package, there is a dataframe ChickWeight. The weights of the chicks are recorded in gram and the variable time is measured in days. Run a regression model to show how the passage of time influences the weight of the chicks. Based on the regression results, which of the following are true?(choose all correct)

a.The chicks weigh about 27 grams when they hatch.

b.We accept the null hypothesis that time has no effect on the weight of the chicks.

c.The chicks gain about 8.8 grams per day.

d.We can reject the null hypothesis that time has no effect on the weight of the chicks.

Solutions

Expert Solution

Sol:

Rcode:

attach(ChickWeight)
mod =lm(weight ~Time,data = ChickWeight)
summary(mod)
output:

attach(ChickWeight)
mod =lm(weight ~Time,data = ChickWeight)
summary(mod)


Call:
lm(formula = weight ~ Time, data = ChickWeight)

Residuals:
Min 1Q Median 3Q Max
-138.331 -14.536 0.926 13.533 160.669

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 27.4674 3.0365 9.046 <2e-16 ***
Time 8.8030 0.2397 36.725 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 38.91 on 576 degrees of freedom
Multiple R-squared: 0.7007,   Adjusted R-squared: 0.7002
F-statistic: 1349 on 1 and 576 DF, p-value: < 2.2e-16

SLope=8.8

weight /time=8.8

For unit increase in day ,chick increases by 8.8

F(1,576)=1349

p= 2.2e-16

p<0.05

Reject H0

Accept Ha

MARK

OPTION C

and Option D

c.The chicks gain about 8.8 grams per day.

d.We can reject the null hypothesis that time has no effect on the weight of the chicks.


Related Solutions

In the datasets package, there is a dataframe ChickWeight. The weights of the chicks are recorded...
In the datasets package, there is a dataframe ChickWeight. The weights of the chicks are recorded in gram and the variable time is measured in days. Run a regression model to show how the passage of time influences the weight of the chicks. Based on the regression results, which of the following are true? (answer may 1 or more) a.The chicks weigh about 27 grams when they hatch. b.We accept the null hypothesis that time has no effect on the...
Load the USArrests sample dataset from the built-in datasets (data(USArrests)) into R using a dataframe (Note:...
Load the USArrests sample dataset from the built-in datasets (data(USArrests)) into R using a dataframe (Note: Row names are states, not numerical values!). Use the kmeans package to perform a clustering of the data with increasing values of k from 2 to 10 - you will need to decide whether or not to center/scale the observations - justify your choice. Plot the within-cluster sum of squares for each value of k - what is the optimal number of clusters? Use...
load the MASS library in R. A. Package ‘MASS’ which provides a description of the datasets...
load the MASS library in R. A. Package ‘MASS’ which provides a description of the datasets available in the MASS package. Then, answer each of the following questions using the appropriate test statistic and following formal steps of hypothesis testing. A:Test of equal or given proportions: Use the “bacteria” data set to answer the question, “did the drug treatment have a significant effect of the presence of the bacteria compared with the placebo?” B: F-test: Use the “cats” data set...
1. The incubation time for a breed of chicks is normally distributed with a mean of...
1. The incubation time for a breed of chicks is normally distributed with a mean of 28 days and standard deviation of approximately 1 day. Look at the figure below and answer the following questions. If 1000 eggs are being incubated, how many chicks do we expect will hatch in the following time periods? (Note: In this problem, let us agree to think of a single day or a succession of days as a continuous interval of time. Assume all...
1. The incubation time for a breed of chicks is normally distributed with a mean of...
1. The incubation time for a breed of chicks is normally distributed with a mean of 28 days and standard deviation of approximately 1 day. Look at the figure below and answer the following questions. If 1000 eggs are being incubated, how many chicks do we expect will hatch in the following time periods? (Note: In this problem, let us agree to think of a single day or a succession of days as a continuous interval of time. Assume all...
Solve it by R Use the ‘cement’ dataset in ‘MASS’ package to answer the question. (1)...
Solve it by R Use the ‘cement’ dataset in ‘MASS’ package to answer the question. (1) Conduct the multiple linear regression, regress y value on x1, x2, x3 and x4 (without intercept). Report the estimated coefficients. Which predictor variables have strong linear relationship with response variable y at significance level 0.05? (2) What is the adjusted R square of your regression? What is the interquartile range (IQR) of the residuals from your regression? (3) Conduct a best subset regression (with...
Risk Management course question. On Monday, Wile E. is expecting to receive a package (package A)...
Risk Management course question. On Monday, Wile E. is expecting to receive a package (package A) from Acme Distributing containing an anvil valued at $100. Based on his past experience with the delivery service, Wile E. estimates that this package has a 15% chance of being lost in shipment. 1. What is the random variable in this scenario? 2. Is Wile E.’s probability estimate an a priori (theoretical) probability or statistical (empirical) probability? Justify your answer. 3. Create a table...
Question 1 It is known that the weights of Persian cats form a normal distribution. A...
Question 1 It is known that the weights of Persian cats form a normal distribution. A random sample of 20 Persian cats was collected and the sample mean and the standard deviation were 4.5kg and 1.2kg, respectively. It is known that the weights of Persian cats form a normal distribution. A random sample of 20 Persian cats was collected and the sample mean and the standard deviation were 4.5kg and 1.2kg, respectively. Construct an interval where the population mean will...
Second time posting: Actual question is How would you structure the datasets to analyze this relationship?...
Second time posting: Actual question is How would you structure the datasets to analyze this relationship? For some reason everyone discusses the trade and economic growth as if this is a writing class but Im just trying to figure out how to answer the question about analyzing the relationship with datasets. THANKS Lets say you are interested in how levels of trade for countries influence economic growth. How would you structure the dataset to analyze this relationship
The following is a preview of the dataframe products: item cost profit sold_out 1 A 46...
The following is a preview of the dataframe products: item cost profit sold_out 1 A 46 15 FALSE 2 B 50 5 TRUE 3 C 28 10 FALSE 4 D 38 12 FALSE 5 E 20 5 TRUE Write the code that returns the items with profit equal or greater than 12: Output: item cost profit sold_out 1 A 46 15 FALSE 4 D 38 12 FALSE
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT