Method of Indicators for computing expectation

Click For Summary

Discussion Overview

The discussion revolves around the computation of the expected value and variance of the number of 'head runs' in a series of coin flips, using the indicator method. Participants explore the setup of the problem, the application of the indicator method, and alternative approaches to derive the expected value and variance.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant introduces the problem of calculating E[X] and Var[X] for the number of head runs in n flips of a biased coin.
  • Another participant suggests defining X_i as an indicator variable for the start of a run of heads, proposing to use the sum of these indicators to find E[X].
  • A different participant expresses skepticism about the effectiveness of the indicator method when p is not equal to 1/2, suggesting it may be simpler to analyze the case of a fair coin first.
  • One participant shares a derived formula for E[X] after lengthy calculations, indicating a potential simpler probabilistic approach may exist, possibly involving the indicator method.
  • Another participant acknowledges the derived formula and inquires about the calculation of E[X_i * X_j] to proceed with finding Var[X].
  • Further discussion includes considerations for different cases when calculating E[X_i * X_j], such as when j equals i, j equals i+1, or j is greater than i+1.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the effectiveness of the indicator method for different values of p, and there are multiple approaches and formulas proposed without agreement on a single method or solution.

Contextual Notes

Some participants express uncertainty regarding the applicability of the indicator method for biased coins and the complexity of calculating E[X_i * X_j] for variance, indicating potential limitations in their current understanding or approach.

houston07
Messages
1
Reaction score
0
Hi,

I have the following problem: Suppose you have a coin that has chance p of landing heads. Suppose you flip the coin n times and let X denote the number of 'head runs' in n flips. A 'head run' is defined as any sequence of heads. For example the sequence HHTHHHHHTTTTHHTHT contains 4 head runs. Given this information, compute E[X] and Var[X].

I cannot understand how to set up the indicator method that will allow me to solve this problem quickly.
 
Physics news on Phys.org
houston07 said:
Hi,

I have the following problem: Suppose you have a coin that has chance p of landing heads. Suppose you flip the coin n times and let X denote the number of 'head runs' in n flips. A 'head run' is defined as any sequence of heads. For example the sequence HHTHHHHHTTTTHHTHT contains 4 head runs. Given this information, compute E[X] and Var[X].

I cannot understand how to set up the indicator method that will allow me to solve this problem quickly.
Define X_i = 1 if flip i is the start of a run of heads,
= 0 otherwise.

To find E[X] you will need to compute E[\sum X_i].

To find Var[X] you will need to compute, in addition, E[\sum X_i X_j], where the sum runs over all pairs i, j with i < j.
 
Seems interesting, but hard problem. I suspect that the indicator method does not work in case of p \neq 1/2. It is easier to consider a fair coin with p=1/2 at the beginning.
 
After a messy, lengthy calculations (not the indicator method) an unexpectedly simple formula for the E(x) occurred:

E(x)=p*(p+n*q) ; q=1-p

I was shocked! Indeed, there must be a simple probabilistic approach that replaces involved calculations and hard analysis. Maybe really the indicator method. Still needs to think about this problem.
 
Eero said:
After a messy, lengthy calculations (not the indicator method) an unexpectedly simple formula for the E(x) occurred:

E(x)=p*(p+n*q) ; q=1-p

I was shocked! Indeed, there must be a simple probabilistic approach that replaces involved calculations and hard analysis. Maybe really the indicator method. Still needs to think about this problem.

E(X1)=p and E(Xi)=pq for i>1 so E(X) = p+(n-1)pq = p^2 + npq
 
Nice one bpet!

I would not come into this as soon. Do you have a clue how to determine E(Xi*Xj) now, to calculate Var(X)?
 
Eero said:
Nice one bpet!

I would not come into this as soon. Do you have a clue how to determine E(Xi*Xj) now, to calculate Var(X)?

Thanks! Similar way, more cases to consider e.g. j=i, j=i+1, j>i+1.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 15 ·
Replies
15
Views
7K
  • · Replies 28 ·
Replies
28
Views
3K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K