Variance of binomial distribution - 1 trial

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
operationsres
Messages
99
Reaction score
0

Homework Statement



For n trials, [itex]S_n[/itex] can be seen as the sum of n independent single trials [itex]X_i[/itex], i = 1,2,...,n, with [itex]\mathbb{E}[X_i][/itex]=p and Var[itex][X_i]=p(1-p)[/itex].2. What I don't understand

I don't understand why Var[itex][X_i]=p(1-p)[/itex].

We know that: Var[itex][X_i]=\mathbb{E}[(X_i - \mathbb{E}[X_i])^2] = \mathbb{E}[X_i^2 - 2X_i\mathbb{E}[X_i] + \mathbb{E}[X_i]^2] = \mathbb{E}[X_i^2] - \mathbb{E}[X_i]^2[/itex].

Taking [itex]\mathbb{E}[X_i]^2[/itex], we have [itex]\mathbb{E}[X_i]^2=p^2[/itex].

Taking [itex]\mathbb{E}[X_i^2][/itex], we have [itex]\mathbb{E}[X_i^2]=\mathbb{E}[\prod_{i=1}^2X_i] = \prod_{i=1}^2 \mathbb{E}[X_i] = \mathbb{E}[X_i]^2 = p^2[/itex].

So Var[itex][X_i]= p^2 - p^2 = 0 \not= p(1-p)[/itex], which contradicts what my lecture notes say.
 
Physics news on Phys.org
operationsres said:

Homework Statement



For n trials, [itex]S_n[/itex] can be seen as the sum of n independent single trials [itex]X_i[/itex], i = 1,2,...,n, with [itex]\mathbb{E}[X_i][/itex]=p and Var[itex][X_i]=p(1-p)[/itex].


2. What I don't understand

I don't understand why Var[itex][X_i]=p(1-p)[/itex].

We know that: Var[itex][X_i]=\mathbb{E}[(X_i - \mathbb{E}[X_i])^2] = \mathbb{E}[X_i^2 - 2X_i\mathbb{E}[X_i] + \mathbb{E}[X_i]^2] = \mathbb{E}[X_i^2] - \mathbb{E}[X_i]^2[/itex].

Taking [itex]\mathbb{E}[X_i]^2[/itex], we have [itex]\mathbb{E}[X_i]^2=p^2[/itex].

Taking [itex]\mathbb{E}[X_i^2][/itex], we have [itex]\mathbb{E}[X_i^2]=\mathbb{E}[\prod_{i=1}^2X_i] = \prod_{i=1}^2 \mathbb{E}[X_i] = \mathbb{E}[X_i]^2 = p^2[/itex].

So Var[itex][X_i]= p^2 - p^2 = 0 \not= p(1-p)[/itex], which contradicts what my lecture notes say.

No, [itex]E X_i^2 \neq p^2.[/itex] In fact, [itex]E f(X_i) = \sum_{k} P\{X_i = k\} f(k)[/itex] for any function f, so we get [itex]E X_i^2 = p.[/itex]

RGV
 
Enlightening post, thank you.

I guess my error was assuming that X_i was independent in:
[itex]\mathbb{E}[X_i^2]=\mathbb{E}[\prod_{i=1}^2X_i] = \prod_{i=1}^2 \mathbb{E}[X_i] = \mathbb{E}[X_i]^2 = p^2[/itex].?But they're the same event so that would be non-sensical...
 
Use the definition of variance of a discrete variable.