Write code that when you are given the range and probability distribution of a random variable X. (i.e X ="the number of heads showing on 2 flipped fair coins":
range = (0,1,2)
probability distribution: [.25, .5, .25]
Such that the code returns the expected value, standard deviation, and variance of the random variable . thanks!
Solution :
expected value = X * P(X)
= 0 *0.25 + 1 * 0.5 + 2 *0.25
= ( 0+ 0.5 + 0.5 )
= 1
Standard deviation =
==X 2 * P(X) - 2
= [ 02 * 0.25+ 12 *0.5 + 22 *0.25 ] - (1)2
= [( + 0+ 0.5+ 1) - 1]
= 1.5 - 1
=0.5 =0.7071
variance =X 2 * P(X) - 2
=[ 02 * 0.25+ 12 *0.5 + 22 *0.25 ] - (1)2
= [( + 0+ 0.5+ 1) - 1]
= 1.5 - 1
=0.5
Write code that when you are given the range and probability distribution of a random variable...
Graph using Rstudio: 1. Suppose four distinct, fair coins are tossed. Let the random variable X be the number of heads. Write the probability mass function f(x). Graph f(x). 2. For the probability mass function obtained, what is the cumulative distribution function F(x)? Graph F(x). 3. Find the mean (expected value) of the random variable X given in part 1 4. Find the variance of the random variable X given in part 1.
Problem 3 Consider the random variable X of the previous question. a. Find the probability distribution of YX-1 b. Find the Expected Value of Y Problem2 Let X be the number of heads in three tosses of a fair coin. a. Display the probability distribution of X b. Find the Expected Value of X c. Find the Variance of X
The probability distribution of a random variable X is given below. 35 Given the mean -4.97 Find the variance (Var(X) and the standard deviation, respectively. a) [1738.95, 41.70] b) (65.33, 8.08 c) [1180.00, 34.35 d) 19.00, 3.00] e) 150.00, 7.07 f None of the above. The probability distribution of a random variable X is given below. 35 Given the mean -4.97 Find the variance (Var(X) and the standard deviation, respectively. a) [1738.95, 41.70] b) (65.33, 8.08 c) [1180.00, 34.35 d)...
Let random variable x represent the number of heads when a fair coin is tossed two times. a) construct a table describing probability distribution b) determine the mean and standard deviation of x (round to 2 decimal places)
The probability distribution of a random variable X is given. -198 -195 -191 -188 -185 p(X x) 0.20 0.25 0.30 0.15 0.10 Compute the mean, variance, and standard deviation of X. (Round your answers to two decimal places.) mean variance standard deviation Need Help? Read it
he probability distribution of a random variable x is given. -196 -195 191 -189 -185 p(X = x) 0.20 0.25 0.15 0.10 0.30 Compute the mean, variance, and standard deviation of X. (Round your answers to two decimal places.) mean variance standard deviation
12. The total number of heads for a coin flipped four times is a random variable X with the following probability distribution P(X-0) 0.0625 PX-1) 0.2500 P(X-2) 0.3750 POX-3) 0.2500 P(X-4) 0.0625 Draw a graph of the density function. 13. The total number of heads for a coin flipped four times is a random variable X with the following probability distribution. P(X-0) 0.10 P(X-1) 0.40 P(X-2) 0.20 P(X-3) 0.10 P(X-4) 0.20 Determine the mean and variance of x.
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...
#5 please 2. Find the probability distribution function for the random variable representing picking a random real number between -1 and 1. (This is a piecewise defined function.) 3. Compute the mean of the random variable with density function if x>0 ed f(r) = if r < 0. 0 4. Compute the mean of the random variable with density function 2e (1 - cos x) if x >0 if r<O. f (x) = 5 Compute the variance and standard deviation...
Find the variance of 1 - 2X, when the random variable X is the number of heads when 3 coins are tossed.