Flipping a coin, length of runs

  • Thread starter bennyzadir
  • Start date
  • Tags
    Length
In summary: E(Y)]^2. Using the definition of Y, we can write:E(Y^2) = 1^2 * (p^2 + q^2) + 0^2 * (2pq) = p^2 + q^2Therefore, Var(Y) = p^2 + q^2 - (p^2 + q^2)^2 = p^2q^2 - (p^2 + q^2)^2Covariance of X and Y:To find the covariance of X and Y, we can use the formula Cov(X, Y) = E(XY) - E(X)E(Y). We already know E(X), E(Y),
  • #1
bennyzadir
18
0

Homework Statement



We flip a biased coin (the probability of a head is p, the probability of a tail is q=1-p). Denote X and Y the length of the first and the second run. A "run" is a maximal sequence of consecutive flips that are all the same. For example, if the sequence is HHHTHH... , then X=4, Y=1, if the sequence is THHTHTH..., then X=1, Y=2. Find the followings: E(X), E(Y), E(X^2), E(Y^2), Var(X), Var(Y), Cov(X, Y).

Homework Equations


The Attempt at a Solution



I am quite unsure, but I think we should use conditional expeted value conditioning with the result of the first toss. I suppose that to calculate Cov(X, Y) we should use the law of total covariance.

I would be really grateful if you could help me!
 
Last edited:
Physics news on Phys.org
  • #2


Hi there! I can help you with solving this problem.

To start, let's define some variables:
- X: the length of the first run
- Y: the length of the second run
- p: probability of getting a head
- q: probability of getting a tail (q=1-p)

Now, let's break down the problem and find the expected values and variances for each variable.

Expected value of X:
To find the expected value of X, we need to consider the possible outcomes of the first flip. If the first flip is a head, then the length of the first run is 1. If it is a tail, then the length of the first run is 0. Therefore, we can write the expected value of X as:

E(X) = 1 * p + 0 * q = p

Expected value of Y:
Similarly, we can find the expected value of Y by considering the possible outcomes of the second flip. If the first two flips are the same, then the length of the second run is 1. If they are different, then the length of the second run is 0. Therefore, we can write the expected value of Y as:

E(Y) = 1 * (p^2 + q^2) + 0 * (2pq) = p^2 + q^2

Expected value of X^2:
To find the expected value of X^2, we can use the formula E(X^2) = Var(X) + [E(X)]^2. We already know E(X), so we just need to find Var(X).

Variance of X:
To find the variance of X, we can use the formula Var(X) = E(X^2) - [E(X)]^2. Using the definition of X, we can write:

E(X^2) = 1^2 * p + 0^2 * q = p
Therefore, Var(X) = p - p^2 = p(1-p)

Expected value of Y^2:
Similarly, we can use the formula E(Y^2) = Var(Y) + [E(Y)]^2 to find the expected value of Y^2. We already know E(Y), so we just need to find Var(Y).

Variance of Y:
To find the variance of Y, we can use the formula Var(Y) = E(Y^
 

1. What is the probability of getting heads or tails when flipping a coin?

The probability of getting heads or tails when flipping a coin is 50%. This is because there are only two possible outcomes and each outcome has an equal chance of occurring.

2. What is a run in coin flipping?

A run in coin flipping refers to a sequence of consecutive flips that result in the same outcome. For example, if you flip a coin 5 times and get heads every time, that would be considered a run of 5 heads.

3. What is the expected length of runs when flipping a fair coin?

The expected length of runs when flipping a fair coin is 2. This means that on average, you would expect to see runs of 2 consecutive flips with the same outcome. However, this is just an average and it is possible to have longer or shorter runs.

4. Is it possible to have a coin flip with no runs?

Yes, it is possible to have a coin flip with no runs. This would occur if the coin lands on a different side for every flip, resulting in no consecutive flips with the same outcome.

5. Does the length of runs in coin flipping affect the overall probability of getting heads or tails?

No, the length of runs in coin flipping does not affect the overall probability of getting heads or tails. Each flip is an independent event and the probability of getting heads or tails remains 50% regardless of the length of runs.

Similar threads

  • Calculus and Beyond Homework Help
Replies
15
Views
2K
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
750
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
727
  • Calculus and Beyond Homework Help
Replies
3
Views
760
  • Calculus and Beyond Homework Help
Replies
10
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
9
Views
2K
Back
Top