













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














November 8, ’07 - Slide # 1
[email protected], Office E1 234C
IIT, November 8, 2007
November 8, ’07 - Slide # 2
November 8, ’07 - Slide # 4
Flip a
fair
coin
All possible results or
outcomes
are
ead,
ail.
Sample Space
Every outcome has equal chances to happen (the coin is fair!).
So, the chances are
for
50% chances for
, and 50% for
In formulas
1 2
November 8, ’07 - Slide # 5
A fair die
k
1 6
, for
k
What are the chances (probabilities) of getting an even number?
3 6
1 2
(not to have 2
(to get 1
4 6
2 3
In general:if the outcomes are equally likely then for any
event
November 8, ’07 - Slide # 7
If the event
does not affect the probability of event
, then
independent
or
and
Ex: 3 coins.
the first coin is
the third coin is
Independent.
Find some sets
from the above example such that
are dependent
Ex: A box with color balls, say 5 Green and 3 Blue.
November 8, ’07 - Slide # 8
What can we do if the coin is not a fair one? How to detect thatthe coin is not fair? How unfair is it?
Specify the probabilities!
p
, then
p
In general
is a probability if:
i) for every
ii)
p
iii) for every events
and
such that
(disjoint
events),
November 8, ’07 - Slide # 10
. The random variable
p, P
p
. Bernoulli.
The Histogram, The Distribution ...
Theoretical vs Real-Life Repeated Outcomes
1
2
n
1
2
n
Flip
n
coins and count the number of heads
k
n k
p
k
p
n
−
k
, where
n k
n
!
k
!(
n
−
k
)!
http://members.shaw.ca/ron.blond/TLE/Bin.APPLET/index.htmlhttp://zoonek2.free.fr/UNIX/48_R/07.html
November 8, ’07 - Slide # 13
Geometric distribution
p
k
p
p
k
−
1
k
Waiting time until first success in Bernoulli(
p
) independent trials
Negative Binomial
r, p
r
k
k
r
p
r
p
k
−
r
k
r, r
Waiting time for
r
-th success.
HW: Suppose that the number of typographical errors on a single page of a givenbook has a Poisson distribution with parameters
λ
=
1 2
. Find the probability that
there are at least two errors on page #10 (the book has more than 10 pages).HW: An urn contains
N
white and
M
black balls. Balls are randomly selected, one
at a time, with replacement, until a black one is obtained. What is the probabilitythat exactly
n
draws are needed.
hint: use Geometric(
p
). the problem is to guess
p
.
November 8, ’07 - Slide # 14
Suppose
takes all real values
. It does not make any mathematical
sense to define
x
for all
x
Specify a function
f
X
x
, called the density function such that
f
R
f
x
dx
and put
a, b
b
a
f
X
x
dx
How does
f
look like? Almost the
histogram (scaled). Uniform distribution
a, b
f
x
b
a
for
x
a, b
and
otherwise X
μ, σ
2
, called
Normal Distribution
with mean
μ
and standard
deviation
σ
if
f
X
x
πσ
e
−
(
x
−
μ
)
2
2
σ
2
November 8, ’07 - Slide # 16
Bernoulli
p
p,
Var(
p
p
Binomial
n, p
np,
Var(
np
p
Geometric
p
p
−
1
Var(
p
−
2
p
Poisson
λ
λ,
Var(
λ
Negative Binomial
r, n
np
−
1
Var(
np
−
2
p
μ, σ
μ,
Var(
σ
2
November 8, ’07 - Slide # 17
Central Limit Theorem Let
1
2
be a sequence of i.i.d. random variables, each with
mean
μ
and variance
σ
2
. Then
1
2
n
nμ
σ
n
n
The convergence is in distribution, i.e.
∑
ni
=
X
i
n
μ
σ/
n
z
π
z
−∞
e
−
x
2
2
dx
See the histogram.Run the applet.
http://www.stat.sc.edu/~west/javahtml/CLT.html
Wiki CLT, links to some simulations
http://en.wikipedia.org/wiki/Central_limit_theorem
See the PDF’s from Matlab simulations
November 8, ’07 - Slide # 19
Suppose that
x
1
, x
2
,... , x
n
are
n
realizations of
(a population). Then
μ
n
k
=
x
n
n
μ
μ
μ
the real mean or sample mean. WHY?
Law of Large Numbers If
1
n
i.i.d. Then,
1 n
n
i
=
i
μ,
n
Similarly, the approximation for the standard deviation
σ
2
n
n
i
=
x
2 i
μ
σ
2
November 8, ’07 - Slide # 20
i
takes values
and
with probability
p
and
p
. Independent.
n
0
n
i
=
i
n
−
1
n
n
p
Absorbing barrier or Gambler’s ruin A Jaguar costs $
N
, and a gambler has an initial wealth of $
k
, with
0
< k < N
. The gambler plays with a banker the following game: he tosses a
coin (could be unfair) repeatedly; if the coin comes up head the banker pays$1, if tail the gambler looses $1. The game ends if the gambler has enoughmoney to buy a Jaguar or he is bankrupted. Find the probability that he isultimately bankrupted.