Question

In: Statistics and Probability

The dataset "chickwts" you can access in R Weight    Feed 1 179 horsebean 2 160...

The dataset "chickwts" you can access in R

Weight    Feed

1 179 horsebean

2 160 horsebean

3 136 horsebean

4 227 horsebean

5 217   horsebean

6 168   horsebean

Let X1, .... X6 be random variables for the 6 different feedtypes. Let

xj =∑ xij /n

and


s2 =∑ (xij -xj )^2 / n

be estimators for the mean and variance of the chickweights for each of the feedtypes. Find the values of thee estimators for each. Assume these random variables are independent. use your estimates for expected value and variance to assign constants c1..c6 such that

E(c1X1 + ...c6X6) = 300

Separately select constants such that, d1, ... d6

Var(d1X1 +...d6X6) = 2500

Are these constants the same? Could they ever be?

Solutions

Expert Solution

All R commands are shown in bold.

Determine the levels of feed.

levels(chickwts$feed)

[1] "casein" "horsebean" "linseed" "meatmeal" "soybean" "sunflower"

Mean and variance of the chickweights for each of the feedtypes are

> mean(chickwts$weight[chickwts$feed == "casein"])
[1] 323.5833333

> mean(chickwts$weight[chickwts$feed == "horsebean"])
[1] 160.2
> mean(chickwts$weight[chickwts$feed == "linseed"])
[1] 218.75
> mean(chickwts$weight[chickwts$feed == "meatmeal"])
[1] 276.9090909
> mean(chickwts$weight[chickwts$feed == "soybean"])
[1] 246.4285714
> mean(chickwts$weight[chickwts$feed == "sunflower"])
[1] 328.9166667

Variance of each feedtypes are

> var(chickwts$weight[chickwts$feed == "casein"])
[1] 4151.719697
> var(chickwts$weight[chickwts$feed == "horsebean"])
[1] 1491.955556
> var(chickwts$weight[chickwts$feed == "linseed"])
[1] 2728.568182
> var(chickwts$weight[chickwts$feed == "meatmeal"])
[1] 4212.090909
> var(chickwts$weight[chickwts$feed == "soybean"])
[1] 2929.956044
> var(chickwts$weight[chickwts$feed == "sunflower"])
[1] 2384.992424

We can assign any random values to c1..c5 and then calculate c6 such that E(c1X1 + ...c6X6) = 300

Let c1 = c2 = c3 = c4 = c5 = 0.2

then,

0.2 * (323.5833333 + 160.2 + 218.75 + 276.9090909 + 246.4285714) + c6 328.9166667 = 300

=> 245.1741991 + c6 328.9166667 = 300

=> c6 = (300 - 245.1741991) / 328.9166667 = 0.1667

Thus, c1 = c2 = c3 = c4 = c5 = 0.2 and c6 = 0.1667 makes

E(c1X1 + ...c6X6) = 300

Similarly, we can assign any random values to d1..d5 and then calculate d6 such that  Var(d1X1 +...d6X6) = 2500

Let d1 = d2 = d3 = d4 = d5 = 0.2

Var(d1X1 +...d6X6) = 2500

=> d12 Var(X1) + ... + d62 Var(X1) = 2500

then, 0.04 * (4151.719697 + 1491.955556 + 2728.568182 + 4212.090909 + 2929.956044) + d6 2384.992424 = 2500

=> 620.5716155 + d6 2384.992424 = 2500

=> c6 = (2500 - 620.5716155) / 2384.992424 = 0.788

Thus, d1 = d2 = d3 = d4 = d5 = 0.2 and d6 = 0.788 makes

Var(d1X1 +...d6X6) = 2500

No, these constants are not same.


Related Solutions

(data) broiler weight. cumulative feed input (Weight) 0.58 (Feed input) 1 (Weight) 1.1 (Feed input) 2...
(data) broiler weight. cumulative feed input (Weight) 0.58 (Feed input) 1 (Weight) 1.1 (Feed input) 2 (Weight) 1.2. (Feed input) 3 (Weight) 1.3 (Feed input) 4 (Weight)1.95 (Feed input) 5 (Weight)2.55 (Feed input) 6 1/ You want to know the relationship between feed intake and broiler weight. a/ Propose a parametric model of this relationship. Discuss the rationale for such a model. b/ Propose an estimation method for the parameters. Discuss briefly the properties of your estimator. c/ Estimate the...
The dataset ”chickwts” you can access in R by typing Courtelary 80.2 17.0 15 12 9.96...
The dataset ”chickwts” you can access in R by typing Courtelary 80.2 17.0 15 12 9.96 Delemont 83.1 45.1 6 9 84.84 Franches-Mnt 92.5 39.7 5 5 93.40 Moutier 85.8 36.5 12 7 33.77 Neuveville 76.9 43.5 17 15 5.16 Porrentruy 76.1 35.3 9 7 90.57 Infant.Mortality Courtelary 22.2 Delemont 22.2 Franches-Mnt 20.2 Moutier 20.3 Neuveville 20.6 Porrentruy 26.6 I. Let X1; ...X6 be random variables for the 6 different columns. Let xj =∑ xij /n and s^2 =∑(xij -...
Fitting a linear model using R a. Read the Toluca.txt dataset into R (this dataset can...
Fitting a linear model using R a. Read the Toluca.txt dataset into R (this dataset can be found on Canvas). Now fit a simple linear regression model with X = lotSize and Y = workHrs. Summarize the output from the model: the least square estimators, their standard errors, and corresponding p-values. b. Draw the scatterplot of Y versus X and add the least squares line to the scatterplot. c. Obtain the fitted values ˆyi and residuals ei . Print the...
Step 1. Access a dataset with store records at AmazingMartEU2.xlsx and view in Excel Step 2....
Step 1. Access a dataset with store records at AmazingMartEU2.xlsx and view in Excel Step 2. Describe the dataset in your own words. Step 3. Come up with questions to answer using this dataset: Which products are sales leaders by quantity? Which products are profit leaders by state and by country? Which products are loss leaders by state and by country?? Sales target met by category by year? Which customer segment is most profitable overall and by country? Which products...
R programming a. obtain the dataset ChickWeight b. obtain the mean weight at 16 days for...
R programming a. obtain the dataset ChickWeight b. obtain the mean weight at 16 days for all chicks on that diet
in ACL (access control List) : 1.How do you determine who can access object x? 2....
in ACL (access control List) : 1.How do you determine who can access object x? 2. How do you determine which objects user y can access? 3. What happens if a file is deleted?
Please do these questions in the R language 1. Load the cars dataset into R. It...
Please do these questions in the R language 1. Load the cars dataset into R. It is a built-in dataset. 2. Do an str() to determine the number of observations and variables. Enter your answer as a comment. 3. Plot speed on x axis and distance on y axis. 4. Find the correlation between speed and distance. What does the magnitude and sign indicate? Enter your answer as a comment. 5. Build a linear regression model with speed as the...
R Problem Set: #Work with the inbuilt dataset "Cars" View(cars) This will show you the dataset...
R Problem Set: #Work with the inbuilt dataset "Cars" View(cars) This will show you the dataset on 2 variables speed and distance. ?cars This will explain what the variables mean. #Q1) Describe the dataset. What are the main findings? #Q2) Design a relevant question to model using linear regressions #Q3) Run the regression and report the std error, t-stat, p value and f stat. #Q4) Is this a valid regression? Is the normality assumption justified? Show clearly. #Q5) Are there...
For this step, you should draw an E-R Diagram for this dataset. To this goal, you...
For this step, you should draw an E-R Diagram for this dataset. To this goal, you should conduct the following steps: 1. Identify the entities and composite entities 2. Identify the entities’ attributes and primary key 3. Identify the relationships among the entities and between entities and composite entities 4. Specify the relationships' integrities
Instructions tell you how to get the data in R R has built in dataset called...
Instructions tell you how to get the data in R R has built in dataset called Iris. This famous (Fisher's or Anderson's) iris data set gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica. We are interested in estimating the length of Petal (Y) using the length of Sepal (X). First, load the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT