Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A discrete random variable $X$ has possible values 0, 1, 2, 3, 4, 5, 6, 7, 8 with the following partial probability distribution. The missing

A discrete random variable $X$ has possible values 0, 1, 2, 3, 4, 5, 6, 7, 8 with the following partial probability distribution. The missing probabilities $\prob(X=7)$ and $\prob(X=8)$ are equal to each other.

```{r, echo = FALSE} set.seed(20221021) x = 0:8 p = rnorm(7,5,2.1) p = sort(round(p / sum(p) * 0.84, 2)) p1 = tibble(x = x, p = c(p, rep(NA,2)))

p1_tab = p1 %>% mutate(x = str_c(x)) %>% pivot_wider(names_from = x, values_from = p) %>% mutate(x = "P(X=x)", .before = `0`)

p1_tab %>% kable() %>% kable_styling(position = "center", full_width = FALSE) ```

### 1A

Put the values `x = 0:8` and `p =` the tabled probabilities into a data frame with columns `x` and `p`. Write code to calculate the missing values for $\prob(X=7) = \prob(X = 8)$ and replace the missing values with these calculated values into your data frame. Verify that the sum of all probabilities is 1.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

A Cp-Theory Problem Book Functional Equivalencies

Authors: Vladimir V Tkachuk

1st Edition

3319243853, 9783319243856

More Books

Students also viewed these Mathematics questions

Question

6. Talk among students, such as giving help or socializing

Answered: 1 week ago