probability of raining each day = p = 0.01
q = 0.99
What is the expected number of days until we see a rainy day?
I think the answer is
E(X) = 0.99 / 0.01 = 99
But the correct answer is
1 + E(X) = 1 + 99 = 100
Why do you add 1?
Last edited by shrek; 07-17-2008 at 02:31 PM.
There are two formulae use in proofing the Expected Value and Variance of a geometric distribution.
[1] fx= pq^x.
[2] fx= pq^(1-x).
I'm used to the first formula, using the first formula:
E(X)= q/p and
Var(X)= q/p^2. Why 1/p?
You are referring to two common versions of Geometric distribution, in which one begins at 0 and the other begins at 1, i.e. one is a shift of the other by 1, like X = Y + 1.
One is use to model "the number of non-rainy days before the first rainy day" while the other is "the number of days until the first rainy day (inclusive)". So the question asking the later while you are answering the former. You may further read the article from wikipedia.
|
|