Question: use R studio to answer this question b) Define a random variable at_least_four_heads that takes input a sample vector and outputs 1 if there are

use R studio to answer this question b) Define a random variable "at_least_four_heads" that takes input a sample vector and outputs 1 if there are atleast three heads, and zero otherwise. ```{r}

```

Use the replicate function, to run 100000 simulations of this random variable. Use this information to compute the probability distribution of "at_least_four_heads". Compare this with the theoretical distribution computed in class.

```{r}

```

Compute the empirical expected value and the variance of "at_least_four_heads". Compare this with the theoretical expected value and variance. ```{r}

```

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 General Management Questions!