Question

In: Statistics and Probability

Suppose a coin is tossed 100 times and the number of heads are recorded. We want...

Suppose a coin is tossed 100 times and the number of heads are recorded. We want to test whether the coin is fair. Again, a coin is called fair if there is a fifty-fifty chance that the outcome is a head or a tail. We reject the null hypothesis if the number of heads is larger than 55 or smaller than 45.

Write your H_0 and H_A in terms of the probability of heads, say p.

Find the Type I error rate if the null hypothesis is true.

Calculate the power of the test if the true chance of head is 0.4

Find the p-value if the observed number of heads is 65.

Solutions

Expert Solution

Null Hypothesis H0: p = 0.5

Alternative hypothesis HA: p 0.5

Standard error of sample proportion = = 0.05

We reject the null hypothesis if the number of heads is larger than 55 or smaller than 45.

Type I error rate = Probability to reject the null hypothesis when it is true

= P(p < 0.45 | p = 0.5) + P(p > 0.55 | p = 0.5)

= P[Z < (0.45 - 0.5) / 0.05] + P[Z > (0.55 - 0.5) / 0.05]

= P[Z < -1] + P[Z > 1]

= 0.1587 + 0.1587

= 0.3174

Standard error of sample proportion for p =0.4 = = 0.049

Power of the test if the true chance of head is 0.4 = Probability to reject the null hypothesis when p = 0.4

= P(p < 0.45 | p = 0.4) + P(p > 0.55 | p = 0.4)

= P[Z < (0.45 - 0.4) / 0.049] + P[Z > (0.55 - 0.4) / 0.049]

= P[Z < 1.02] + P[Z > 3.06]

= 0.8461 + 0.0011

= 0.8472

If the observed number of heads is 65, sample proportion, = 65/00 = 0.65

Test statistic, z = ( - p) / Std error = (0.65 - 0.5) / 0.05 = 3

For two tail test, p-value = 2 * P(z > 3) = 0.0027


Related Solutions

a) A coin is tossed 4 times. Let X be the number of Heads on the...
a) A coin is tossed 4 times. Let X be the number of Heads on the first 3 tosses and Y be the number of Heads on the last three tossed. Find the joint probabilities pij = P(X = i, Y = j) for all relevant i and j. Find the marginal probabilities pi+ and p+j for all relevant i and j. b) Find the value of A that would make the function Af(x, y) a PDF. Where f(x, y)...
If a fair coin is tossed 25 times, the probability distribution for the number of heads,...
If a fair coin is tossed 25 times, the probability distribution for the number of heads, X, is given below. Find the mean and the standard deviation of the probability distribution using Excel Enter the mean and round the standard deviation to two decimal places. x   P(x) 0   0 1   0 2   0 3   0.0001 4   0.0004 5   0.0016 6   0.0053 7   0.0143 8   0.0322 9   0.0609 10   0.0974 11   0.1328 12   0.155 13   0.155 14   0.1328 15   0.0974 16  ...
A fair coin is tossed r times. Let Y be the number of heads in these...
A fair coin is tossed r times. Let Y be the number of heads in these r tosses. Assuming Y=y, we generate a Poisson random variable X with mean y. Find the variance of X. (Answer should be based on r).
A coin is tossed 6 times. Let X be the number of Heads in the resulting...
A coin is tossed 6 times. Let X be the number of Heads in the resulting combination. Calculate the second moment of X. (A).Calculate the second moment of X (B). Find Var(X)
A coin is tossed three times. X is the random variable for the number of heads...
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.
A coin is tossed 400 times, landing heads up 219 times. Is the coin fair?
A coin is tossed 400 times, landing heads up 219 times. Is the coin fair?
1. A (maybe unfair) coin is tossed 100 times and 40 heads are obtained. At significance...
1. A (maybe unfair) coin is tossed 100 times and 40 heads are obtained. At significance level α= 10%, do you think that the coin is fair? Use large-sample test for hypothesis testing.
A fair coin is tossed four times. Let X denote the number of heads occurring and...
A fair coin is tossed four times. Let X denote the number of heads occurring and let Y denote the longest string of heads occurring. (i) determine the joint distribution of X and Y (ii) Find Cov(X,Y) and ρ(X,Y).
Suppose that you tossed a coin 1000 times in which 560 of the tosses were heads...
Suppose that you tossed a coin 1000 times in which 560 of the tosses were heads while 440 were tails. Can we reasonably say that the coin is fair? Justify your answer. Hint: use the concept of p-values. To evaluate the resulting probability, use an approximation by way of the CLT. Why does this offer a good approximation? Use a z-table or R to evaluate the N(0,1) cdf.
Q7 A fair coin is tossed three times independently: let X denote the number of heads...
Q7 A fair coin is tossed three times independently: let X denote the number of heads on the first toss (i.e., X = 1 if the first toss is a head; otherwise X = 0) and Y denote the total number of heads. Hint: first figure out the possible values of X and Y , then complete the table cell by cell. Marginalize the joint probability mass function of X and Y in the previous qusetion to get marginal PMF’s.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT