Question: Using R, assume a discrete random variable X follows a discrete distribution, where the possible values of X are 0, 2, 4, 6, with the
Using R, assume a discrete random variable X follows a discrete distribution, where the possible values of X are 0, 2, 4, 6, with the corresponding probabilities 0.3, 0.2, 0.2, and 0.3, respectively. Generate a sample of 10000 values from the given discrete distribution and see how close the sample mean and standard deviation to the theoretical values.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
