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.
The probability that any given fair coin lands on head is 0.50
1) Let X be the number of heads when 4 coins are tossed. We can say that X has a Binomial distribution with parameters, number of trails (number of coins tossed) n=4 and success probability (The probability that any given fair coin lands on head) p=0.50
The Probability mass function of X is given by
ans: The Probability mass function f(x) is
In the tabular form, the Probability mass function f(x) is
x | f(x) |
0 | 0.0625 |
1 | 0.25 |
2 | 0.375 |
3 | 0.25 |
4 | 0.0625 |
R code to graph this (without using the R built in binomial function dbinom )
---
#set the values of x
x<-0:4
#get the values of f(x)
fx<-choose(4,x)*0.5^4
#plot f(x)
plot(x,fx,typ="l",main="probability mass function
f(x)",ylab="f(x)")
---
#get this graph
2. The cumulative distribution function F(X) is
ans: The cumulative distribution function F(X) is
In the tabular form, the cumulative distribution function F(X) is
x | f(x) | F(x) |
0 | 0.0625 | 0.0625 |
1 | 0.25 | 0.3125 |
2 | 0.375 | 0.6875 |
3 | 0.25 | 0.9375 |
4 | 0.0625 | 1 |
R code to graph F(x), without using the builtin function pbinom.
---
#set the values of x
x<-0:4
#get the values of f(x)
fx<-choose(4,x)*0.5^4
#get the cumulative distribution F(x)
Fx<-cumsum(fx)
#plot F(x)
plot(x,Fx,typ="l",main="Cumulative distribution
F(x)",ylab="F(x)")
---
#get this graph
3. The expected value of X is
The expected value can also be calculate using the formula for expectation for Binomial distribution
ans: the mean (expected value) of the random variable X is 2
4. The variance of X can be obtained using the formula for the variance for Binomial distribution
The variance can also be calculated using the f(x).
First we find the expectation of
The variance of X is
ans: the variance of the random variable X is 1
Graph using Rstudio: 1. Suppose four distinct, fair coins are tossed. Let the random variable X...
A fair coin is tossed four times and let x represent the number of heads which comes out a. Find the probability distribution corresponding to the random variable x b. Find the expectation and variance of the probability distribution of the random variable x
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)
2.1 Let Y denote the number of "heads” that occur when two coins are tossed. a. Derive the probability distribution of Y. b. Derive the cumulative probability distribution of Y. c. Derive the mean and variance of Y.
Let X be a continuous random variable with cumulative
distribution function F(x) = 1 − X−α x ≥ 1
where α > 0. Find the mean, variance and the rth moment of
X.
Question 1: Let X be a continuous random variable with cumulative distribution function where a >0. Find the mean, variance and the rth moment of X
Problem 7. Suppose that a coin will be tossed repeatedly 100 times; let N be the number of Heads obtained from 100 fips of this coin. But you are not certain that the coin is a fair coin.it might be somewhat biased. That is, the probability of Heads from a single toss might not be 1/2. You decide, based on prior data, to model your uncertainty about the probability of Heads by making this probability into random variable as wl....
A fair coin is tossed n times. Let X be the number of heads in this n toss. Given X = x, we generate a Poisson random variable Y with mean x. Find Var[Y]. Answer depends on n.
A coin is tossed three times. X is the random variable for the number of heads occurring. a) Construct the probability distribution for the random variable X, the number of head occurring. b) Find P(x=2). c) Find P(x³1). d) Find the mean and the standard deviation of the probability distribution for the random variable X, the number of heads occurring.
5. Let X be a discrete random variable. The following table shows its possible values r and the associated probabilities P(X -f(x) 013 (a) Verify that f(x) is a probability mass function (b) Calculate P(X < 1), P(X < 1), and P(X < 0.5 or X > 2). (c) Find the cumulative distribution function of X ompute the mean and the variance of
A fair coin is tossed twice. Let X and Y be random variables such that: -X = 1 if the first toss is heads, and X = 0 otherwise. -Y = 1 if both tosses are heads, and Y = 0 otherwise. Determine whether or not X and Y are independent. So far, I have determined the the joint probability distribution as follows: x = 0 x = 1 y = 0 2/4 1/4 y = 1 0 1/4