Here's a problem I thought of that I don't know how to approach: You have a fair coin that you keep

gorgeousgen9487 2022-07-14 Answered
Here's a problem I thought of that I don't know how to approach:
You have a fair coin that you keep on flipping. After every flip, you perform a hypothesis test based on all coin flips thus far, with significance level α, where your null hypothesis is that the coin is fair and your alternative hypothesis is that the coin is not fair. In terms of α, what is the expected number of flips before the first time that you reject the null hypothesis?
Edit based on comment below: For what values of α is the answer to the question above finite? For those values for which it is infinite, what is the probability that the null hypothesis will ever be rejected, in terms of α?
Edit 2: My post was edited to say "You believe that you have a fair coin." The coin is in fact fair, and you know that. You do the hypothesis tests anyway. Otherwise the problem is unapproachable because you don't know the probability that any particular toss will come up a certain way.
You can still ask an expert for help

Expert Community at Your Service

  • Live experts 24/7
  • Questions are typically answered in as fast as 30 minutes
  • Personalized clear answers
Learn more

Solve your problem for the price of one coffee

  • Available 24/7
  • Math expert for every subject
  • Pay only if we can solve it
Ask Question

Answers (1)

Answered 2022-07-15 Author has 22 answers
EDIT: This answer was unclear for OP at first, so I tried to make it clearer through a new approach. Apparently it arose another legitimate doubt, so I tried now to put both answers together and clarify them even more. (Still I might be wrong, but I'll try to express myself better)
What you look for, is the expected number of tosses before we do a Type I error (rejecting H 0 when it was true). The probability of that is precisely α (that's another way to define it).
So P ( T y p e   I   e r r o r ) = α
Let X n be the event of rejecting n t h test.
Now, E [ X 1 ] = α stands for the expected number of games (a game is starting to test in the way we do a new coin) where H 0 was rejected on the first throw. E [ X 1 + X 2 ] = E [ X 1 ] + E [ X 2 ] is the expected number of games where H 0 is rejected either on the first or the second throw. Note that with most α this will be lower than 1, so the expectation for a single game is not to reject H 0 yet.
When do we expect to have rejected H 0 ? Precisely when the number of expected games in which we reject H 0 is 1. Therefore, we look for n such as
E [ X 1 + X 2 + . . . + X n ] = 1 E [ X 1 + X 2 + . . . + X n ] = E [ n X 1 ] = n E [ X 1 ] = n α = 1 n = 1 α
The other answer goes like this: Let the variable T count the number of tests before rejecting one. We look for E[T].
Also, using previous notation, P ( X n ) = α ( 1 α ) n 1 (I'm aware this implies independence between the events X n and X n 1 but since I'm looking for the expected value, for the linearity of the Expected Value, it shouldn't be a problem, though I'm aware I'm not being polite with notation).
E [ T ] = n = 1 n P ( X n ) = n = 1 n α ( 1 α ) n 1 = α n = 1 n ( 1 α ) n 1 = α n = 0 ( n + 1 ) ( 1 α ) n = α ( n = 0 n ( 1 α ) n + n = 0 ( 1 α ) n ) = α ( 1 α α 2 + 1 α ) E [ T ] = 1 α

We have step-by-step solutions for your answer!

Expert Community at Your Service

  • Live experts 24/7
  • Questions are typically answered in as fast as 30 minutes
  • Personalized clear answers
Learn more

You might be interested in

asked 2022-06-24
The results of a significance test for the difference of two proportions would be the same as a chi-squared test for independence for two variables with two levels.
Group of answer choices:
asked 2022-06-04
The following computer output shows an estimated equation. Here; W: Weekly wage.
MALE: Gender, takes the value of 1 if the worker is male and 0 if female.
EDU: Education Level,
EDU1=1 if the worker has no formal education and 0 otherwise,
EDU2=1 if the worker has primary education and 0 otherwise,
EDU3=1 if the workerhas secondary and high school degree and 0 otherwise,
EDU4=1 if the worker hasbachelor, master, and/or Ph.D. degree and 0 otherwise.
EXP: Experience (thenumber of years being employed).
Dependent Variable: W
Method: Least Squares
Date: 01/02/21 Time: 09:15
Sample: 1 935
Included observations: 935
Variable Coefficient Std. Error t-Statistic Prob.
C 508.7969 49.56471 10.26531 0.0000
MALE 486.2831 20.27897 23.97967 0.0000
EDU2 37.93184 35.58875 1.065838 0.2868
EDU3 153.9977 40.51264 3.801225 0.0002
EDU4 251.2214 40.92353 6.138799 0.0000
EXP 10.28997 2.548076 4.038331 0.0001
R-squared 0.461610 Mean dependent var 957.9455
Adjusted R-squared 0.458713 S.D. dependent var 404.3608
S.E. of regression 297.4973 Akaike info criterion 14.23508
Sum squared resid 82220789 Schwarz criterion 14.26615
Log likelihood -6648.902 Hannan-Quinn criter. 14.24693
F-statistic 159.3033 Durbin-Watson stat 0.446774
Prob(F-statistic) 0.000000
a) Write out the estimated wage model below (use 1-digit for decimal):
b) Check the statistical significance of EXP, and EDU2 at 5 % level respectively(hypothesis tests) below: 6
c) Interpret the coefficient of determination below:
d) Interpret the coefficients of MALE, EDU3, and EXP below:
asked 2022-04-18
What are two reasons that some people in the field believe significance testing should be banned? Explain your two reasons.
asked 2022-07-05
Dantzig's unsolved homework problems
An event in George Dantzig's life became the origin of a famous story in 1939 while he was a graduate student at UC Berkeley. Near the beginning of a class for which Dantzig was late, professor Jerzy Neyman wrote two examples of famously unsolved statistics problems on the blackboard. When Dantzig arrived, he assumed that the two problems were a homework assignment and wrote them down. According to Dantzig, the problems "seemed to be a little harder than usual", but a few days later he handed in completed solutions for the two problems, still believing that they were an assignment that was overdue.
What were the two unsolved problems which Dantzig had solved?
asked 2021-05-28
Find the margin of error for the given values of c,s, and n. c=0.95, s=2.2, n=64
asked 2020-12-28
A. Look for the definitions of the following terms related to hypothesis testing.
1. Null Hypothesis
2. Level of Significance
3. Type I error
asked 2021-06-13
For a test of H0: p=0.5, the z test statistic equals 1.74. Find the p-value for Ha: p>0.5.
a) 0.0446
b) 0.0409
c) 0.892
d) 0.9591
e) 0.0818
f) 0.9554

New questions