L10 - Binomial distribution PDF
Document Details
Uploaded by SilentAntigorite9958
University of North Carolina at Chapel Hill
Tags
Summary
These lecture notes cover the binomial distribution, including examples and calculations. The focus is on the probability of getting a specific number of successes in a set number of trials.
Full Transcript
Lecture 10 DCB 4e, Sec. 4.3 %LQRPLDOGLVWULEXWLRQ 6XSSRVHZHUDQGRPO\VHOHFWIRXULQGLYLGXDOVWRSDUWLFLSDWHLQWKLV H[SHULPHQW:KDWLVWKHSUREDELOLW\WKDWH[DFWO\RIWKHPZLOOUHIXVHWR DGPLQLVWHUWKHVKRFN" 6XSSRVHZHUDQGRPO\VHOHFWIRXULQGLYLGXDOVWRSDUWLFLSDWHLQWKLV H[SHULPHQW...
Lecture 10 DCB 4e, Sec. 4.3 %LQRPLDOGLVWULEXWLRQ 6XSSRVHZHUDQGRPO\VHOHFWIRXULQGLYLGXDOVWRSDUWLFLSDWHLQWKLV H[SHULPHQW:KDWLVWKHSUREDELOLW\WKDWH[DFWO\RIWKHPZLOOUHIXVHWR DGPLQLVWHUWKHVKRFN" 6XSSRVHZHUDQGRPO\VHOHFWIRXULQGLYLGXDOVWRSDUWLFLSDWHLQWKLV H[SHULPHQW:KDWLVWKHSUREDELOLW\WKDWH[DFWO\RIWKHPZLOOUHIXVHWR DGPLQLVWHUWKHVKRFN" /HW VFDOOWKHVHSHRSOH$OOHQ $ %ULWWDQ\ % &DUROLQH & DQG'DPLDQ ' (DFKRQHRIWKHIRXUVFHQDULRVEHORZZLOOVDWLVI\WKHFRQGLWLRQRI³H[DFWO\ RIWKHPUHIXVHVWRDGPLQLVWHUWKHVKRFN´ 6XSSRVHZHUDQGRPO\VHOHFWIRXULQGLYLGXDOVWRSDUWLFLSDWHLQWKLV H[SHULPHQW:KDWLVWKHSUREDELOLW\WKDWH[DFWO\RIWKHPZLOOUHIXVHWR DGPLQLVWHUWKHVKRFN" /HW VFDOOWKHVHSHRSOH$OOHQ $ %ULWWDQ\ % &DUROLQH & DQG'DPLDQ ' (DFKRQHRIW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