In: Statistics and Probability
Consider a discrete random variable with the following probability mass function
x | 0 | 1 | 2 | 3 | 4 | 5 |
p(x) | 0.1 | 0.1 | 0.2 | 0.3 | 0.2 | 0.1 |
Generate a random sample of size n =10000 from this
distribution. Construct a bar diagram of the observed frequencies
versus the expected frequencies.(using R)