Question: * * Please show R code below thank you * * 1 . 1 5 ( 2 point ) Let's work on getting conditional means

**Please show R code below thank you**
1.15(2 point) Let's work on getting conditional means now. What is the theoretical condi-
tional mean of Y given x?
1.16(1 point) What is E[Y|x=0]?
1.17(1 point) Let's see how far is our sample from the theoretical sample. Given that we are
working with continuous random variables, it is unlikely that any of our observations has x to
be exactly 0. But maybe we can include a bit of a range close to 0 and see if we can plot that
distribution. To do that, first create a data frame data2, which filters rows to have values of
x between -0.25 and 0.25.
1.18(1 point) Plot the histogram of y for data2 to see if the values seem centered around
what we estimated in 1.16.
1.19(1 point) Estimate the average value of y in data2. How does this compare with
0
 **Please show R code below thank you** 1.15(2 point) Let's work

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!