Context:FIT1058_MOC, FIT2086_MOC Β· Bernoulli trial (one success/failure experiment) + binomial (successes across n i.i.d. trials) Β· pmf uses the Binomial Coefficient Β· mean/variance via linearity of indicator sums Β· the two-outcome member of the parametric zoo
Quick Revision
π― Objective: Bernoulli atom: Xβ{0,1}, Pr(X=1)=p β sum n i.i.d. atoms βΉ Pr(Z=k)=(knβ)pk(1βp)nβk.
Definition β X=1 with probability p (success), X=0 with 1βp β any two-outcome experiment (coin, pass/fail, on/off).
Compact pmf form β p(xβ£ΞΈ)=ΞΈx(1βΞΈ)1βx on xβ{0,1}, written XβΌBe(ΞΈ) in FIT2086βs ΞΈβ[0,1] notation β the exponents act as selectors, collapsing to ΞΈ at x=1 and 1βΞΈ at x=0.
Moments β E(X)=p; Var(X)=E(X2)βE(X)2=pβp2=p(1βp) (since X2=X); variance max at p=21β (value 0.25), zero at pβ{0,1}.
Sequences β i.i.d. = same p, independent trials; the atom of binomial (count successes) and geometric (wait for first).
2. The Binomial Distribution
Definition β ZβΌBin(n,p) (FIT2086 writes MβΌBin(ΞΈ,n)) = the number of successes m(x)=βj=1nβxjβ across n i.i.d. Bernoulli trials; the count M is itself an RV over {0,1,β¦,n}.
pmf derivation β one specific k-success sequence has probability βi=1nβp(xiββ£ΞΈ)=pk(1βp)nβk; (knβ) placements (Binomial Coefficient) βΉ Pr(Z=k)=(knβ)pk(1βp)nβk.
Why the coefficient is needed β for 1β€kβ€nβ1several sequences carry k successes; k=2,n=4 admits the six orderings 1100,1010,1001,0110,0101,0011 βΉ p(m=2β£ΞΈ)=(24β)ΞΈ2(1βΞΈ)2.
Additivity in n(FIT2086) β M1ββΌBin(ΞΈ,n1β) and M2ββΌBin(ΞΈ,n2β) with the sameΞΈ βΉ M1β+M2ββΌBin(ΞΈ,n1β+n2β) β immediate from the definition as a sum of Bernoulli variates, so pooling batches simply adds trial counts.
Reading the pmf term by term(the standard βinterpret this factorβ exam question):
Factor in (mnβ)ΞΈm(1βΞΈ)nβm
Interpretation
ΞΈm
probability of seeing msuccesses
(1βΞΈ)nβm
probability of the event not occurring nβm times, i.e. nβmfailures
ΞΈm(1βΞΈ)nβm
probability of m successes and nβm failures in one particular ordering
(mnβ)
the number of orderings of m successes among n trials
βk=inβ(knβ)ΞΈk(1βΞΈ)nβk
probability of i or more successes, irrespective of ordering
Every specific sequence is equally likely when ΞΈ=21β β P(aΒ namedΒ sequence)=ΞΈn regardless of how many 1s it contains, so (0,0,1,0,1,1,0,0,1,1) and (0,0,β¦,0) both have (21β)10=1/1024 β the (mnβ) factor is what makes counts unequal while sequences stay equal.
3. Moments via Indicator Sums
Decompose β Z=βi=1nβXiβ with Bernoulli Xiβ.
E(Z)=np β sum of means (linearity β no independence needed).
Var(Z)=np(1βp) β variances add only under independence; Ο=np(1βp)β.
Shape β mass skewed toward np; ΞΈ and 1βΞΈ produce mirror-image distributions.
π Exam Execution Trace & Applied Exercises
1. Manual Execution Trace Layout
ZβΌBin(4,21β):
Step / State
Quantity
Value
1
Pr(Z=2)=(24β)(21β)4
6β 161β=83β
2
E(Z)=np
2
3
Var(Z)=np(1βp)
1 (Ο=1)
2. Applied Exercise β telephone sales (FIT2086)
Problem: each call yields a sale with probability 0.08, independently; the salesman makes 12 calls, so MβΌBin(0.08,12). Find (i) E[M]; (ii) P(Mβ€2); (iii) P(Mβ₯2).
Final Extracted Output:0.96 expected sales; P(Mβ€2)β0.935; P(Mβ₯2)β0.249. Key move: β2 or moreβ is the complement of Mβ€1, not of Mβ€2 β the boundary value m=2 sits inside both one-sided events, so P(Mβ€2)+P(Mβ₯2)>1.
3. Applied Exercise β fair-coin tails by hand (Studio 2)
Problem: (i) P(mβ₯2) heads in n=4 tosses of a fair coin; (ii) P(mβ₯5) ones in n=10 Bernoulli(21β) draws.
Final Extracted Output:11/16=0.6875; β0.623. Key move: with ΞΈ=21β every term shares the factor (21β)n, so the sum collapses to 2n1ββ(knβ) β pure counting. For (ii), β5 or moreβ complements mβ€4, so pbinom takes kβ1.
When It Flips: the indicator sum is the showcase of linearity β instant E=np. Binomial fixes n and counts successes; the geometric fixes the first success and varies the trial count.
π‘ Common Mistake:Bernoulli has no separate R family β generate it as a binomial with size = 1. And pbinom(q) is P(Mβ€q)inclusive β for P(Mβ₯2) pass q = 1 with lower.tail = FALSE.
β οΈ Common Mistakes
π‘ Linearity needs no independence, variance does β E=np always holds; Var=np(1βp) requires independent trials.
π‘ Renaming success swaps pβ1βp β which outcome is βsuccessβ is a modelling choice; keep it fixed through the calculation.
π‘ Additivity requires a shared ΞΈ β M1β+M2ββΌBin(ΞΈ,n1β+n2β) holds only when both batches share the success probability; differing ΞΈ leaves no binomial at all.
π‘ Calling a β₯3-outcome experiment binomial β a football match (win/draw/loss) or a die roll is not a binomial experiment; it becomes one only if you redefine the outcome as a single yes/no (βdid they win?β). Continuous measurements never qualify. Selection drill β Parametric Probability Distributions.
π‘ Confusing βthis sequenceβ with βthis many successesβ β a named sequence has probability ΞΈm(1βΞΈ)nβm with no(mnβ); the coefficient appears only when the event is a count.
π§ Active Recall
Derive the binomial pmf (knβ)pk(1βp)nβk.
Hint: One sequence Γ count.
Answer
Short answer: A specific k-success sequence has pk(1βp)nβk; there are (knβ) such sequences.
Why:Mutually exclusive β sequences are disjoint events; multiply within, add across placements.
How do linearity and independence give E=np and Var=np(1βp)?
Hint: Indicator decomposition.
Answer
Short answer:Z=βXiβ; E(Z)=βp=np; Var(Z)=βp(1βp)=np(1βp).
Why:Independence for variance only β expectation is linear unconditionally; covariances must vanish for variances to add.
Why is Var(X)=p(1βp) for a single Bernoulli trial, and where is it maximised?
Hint: Exploit X2=X.
Answer
Short answer:E(X2)=E(X)=p βΉ Var=pβp2=p(1βp); maximised at p=21β (value 0.25).
Why:Maximum uncertainty β a fair trial is the least predictable; degenerate pβ{0,1} gives zero variance.