We will use Excel to simulate 400 values
First we get the cumulative distribution and the random number interval for the random variable.
X | P(X) | Cumulative Probability | Random number from | Random number To |
0 | 0.1 | 0.1 | 0 | 0.1 |
1 | 0.2 | 0.3 | 0.1 | 0.3 |
2 | 0.3 | 0.6 | 0.3 | 0.6 |
3 | 0.3 | 0.9 | 0.6 | 0.9 |
4 | 0.1 | 1 | 0.9 | 1 |
To simulate X we use the following
a) Prepare the following sheet
Copy the Row s to make 400 trials. Paste the X as values to avoid changes to X.
Get the following
b) Count the number of Xs and divide by 400 to get the distribution of Xs
get this
We can see that the simulated probability is very much indicative of the actual probability P(X). The accuracy will increase as we increase the number of simulations.
As per classical probability theory, the discrete probability P(X) is the proportion of times particular values of X (X=0,1,2,3,4) would occur in the long run if we keep generating the values of X. Hence the simulation trial tries to replicate this situation of generating Xs and calculate the proportions for a sufficiently large number of trials.
c) The expectation of X is
The expected value of is
The variance of X is
the standard deviation of X is
The mean and standard deviation of the simulated values is calculated below
get these values
We can see that the simulated mean is 2.18 and the theoretical mean of X is 2.1. The simulated standard deviation is 1.0911 and the theoretical standard deviation of X is 1.1358.
These values are close.
2) Consider a random variable with the following probability distribution: P(X-0)-0., Px-1)-0.2, PX-2)-0.3, PX-3) -0.3, and PX-4)-0.1 A. Generate 400 values of this random variable with the given pro...
2) Consider a random variable with the following probability distribution: P(X = 0) = 0.1, P(X=1) =0.2, P(X=2) = 0.3, P(X=3) = 0.3, and P(X=4)= 0.1. A. Generate 400 values of this random variable with the given probability distribution using simulation. B. Compare the distribution of simulated values to the given probability distribution. Is the simulated distribution indicative of the given probability distribution? Explain why or why not. C. Compute the mean and standard deviation of the distribution of simulated...
A discrete random variable X has probability mass function P() 0.1 0.2 0.2 0.2 0.3 Use the inverse transform method to generate a random sample of size from the distribution of X. Construct a relative frequency table and compare the empirical with the theoretical probabilities. Repeat using the R sample function. 1000
2. Consider a random variable with the following probability distribution: P(X=0) = 0.1, P(X=1) = 0.2, P(X=2) = 0.4, and P(X=3) = 0.3 a. Find P(X<=1) b. Find P(1<X<=3)
6. The distribution law of random variable X is given -0.4 -0.2 0 0.1 0.4 0.3 0.2 0.6 Xi Pi Find the variance of random variable X. 7. Let X be a continuous random variable whose probability density function is: f(x)=Ice + ax, ifXE (0,1) if x ¢ (0:1) 0, Find 1) the coefficient a; 2) P(O.5 X<0.7); 3) P(X>3). Part 3. Statistics A sample of measurements is given Y 8 4 2 2 0 8. Compute the coefficient of...
2. (-13 Points) DETAILS TANFIN12 8.3.002. The probability distribution of a random variable x is given. MY NOTES 12 -2 0 2 4 PCX = ) 0.3 0.1 0.2 0.2 0.2 Compute the mean, variance, and standard deviation of X. (Round your answers to two decimal places.) mean variance standard deviation The probability distribution of a random variable X is given. 1 View 2 3 4 P(X = x) 0.3 0.4 0.2 0.1 Compute the mean, variance, and standard deviation...
6. The distribution law of random variable X is given -0.4 |-0.2 |0 0.1 0.4 0.3 0 0.6 0.2 Pi Find the variance of random variable X. nrohahility density function is:
1. Two independent random variables X and y are given with their distribution laws 4 P 07 0.1 0.2 P 0.2 0.3 0.5 Find 1) the variance of random variable Y 2) the distribution law of random variable Z-0.5Y+x END TEST IN PROBABL ITY THEORY AND STAISTICS Variant 1 1. Two independent random vanables X and Y are given with their distribution laws: 2 0.7 0.1 P 0.2 0.3 0.5 0.2 Find 1) the variance of random varñable Y 2)...
Consider the following probability distribution: x P(x) 1 0.1 2 ? 3 0.2 4 0.3 What must be the value of P(2) if the distribution is valid? A. 0.6 B. 0.5 C. 0.4 D. 0.2 What is the mean of the probability distribution? A. 2.5 B. 2.7 C. 2.0 D. 2.9
Random variable X has a distribution: P(x=0)=0.2 ; P(x=1)=0.3 ; P(x=2)=0.1 & P(x=3)=0.3 ; P(x=4)=0.1. Find: a) E(x) and Var(x) b) Find Fx(Xo) c) Find quantile of order 1/4 and median d) Find P(2<=x<=4)
Consider the probability distribution shown below: X 10 12 18 20 p(x) 0.2 0.3 0.1 0.4 Find the standard deviation of X.