Lect1 Math231
Lect1 Math231
Statistics
Shaheena Bashir
FALL, 2019
2/60
Outline
Statistics
Probability Theory
Probability
Random variable
Discrete Random variable
Probability Mass function pmf
Expectation of a Discrete Random variable
Continuous Random Variable
Continuous Probability Distribution pdf
Expectation of Continuous Random Variables
Binomial Distribution
Poisson Distribution
Normal Distribution
Properties
Standard Normal Distribution o
3/60
Statistics
o
4/60
Statistics
Scientific Research
o
5/60
Statistics
o
6/60
Probability Theory
Probability
o
7/60
Probability Theory
Random variable
o
8/60
Probability Theory
Random variable
o
9/60
Probability Theory
Random variable
Random Variable
o
10/60
Probability Theory
Random variable
Toss a coin.
o
11/60
Probability Theory
Random variable
Roll 2 dice, and let X denotes the sum of the numbers on the
upper faces that might appear.
o
12/60
Probability Theory
Random variable
o
13/60
Probability Theory
Random variable
Random Variable
I Discrete: possible values of the variable can be listed in
either a finite or an infinite list., e.g., number of defective
parts produced in manufacturing, number of people getting flu
in winter, etc..
0 1 2 3
o
150 160 170 180 190
14/60
Probability Theory
Discrete Random variable
Example
o
15/60
Probability Theory
Probability Mass function pmf
o
16/60
Probability Theory
Probability Mass function pmf
P(X = x) = p(x)
o
17/60
Probability Theory
Probability Mass function pmf
1. 0 ≤ P(X = x) ≤ 1, ∀x ∈ S.
P
2. P(X = x) = 1
o
18/60
Probability Theory
Probability Mass function pmf
o
19/60
Probability Theory
Probability Mass function pmf
Example
Toss a fair coin three times and let x denote the number of heads
observed. Construct the probability distribution of X & plot the
graph. 1/2
3/8
P(X=x)
1/4
1/8
0
0 1 2 3
Exercise
Roll a die, and let X denote the value that appears on the upper
face. What is the probability mass function P(X ) for the random
variable X ? Plot the graph.
o
21/60
Probability Theory
Probability Mass function pmf
o
22/60
Probability Theory
Expectation of a Discrete Random variable
Toss a coin 100 times and count the number of times heads might
turn up? How many heads do you expect?
o
24/60
Probability Theory
Expectation of a Discrete Random variable
o
25/60
Probability Theory
Expectation of a Discrete Random variable
Example
o
26/60
Probability Theory
Continuous Random Variable
Examples Cont’d
o
28/60
Probability Theory
Continuous Probability Distribution pdf
Properties of pdf
I f (x) ≥ 0, ∀x
R∞
I f (x)d(x) = 1
−∞
Ra
I P(X = a) = P(a ≤ X ≤ a) = f (x)d(x) = 0
a
Ra
I P(X < a) = P(X ≤ a) = F (a) = f (x)d(x)
−∞
I This has a very useful consequence in the continuous case:
o
30/60
Probability Theory
Continuous Probability Distribution pdf
Example
I Find P(X ≤ 1)
o
31/60
Probability Theory
Expectation of Continuous Random Variables
Expectation
For a continuous random variable X with pdf f(x)
Z ∞
E (X ) = xf (x)d(x)
−∞
Z ∞
E (g (X )) = g (x)f (x)d(x)
−∞
o
32/60
Binomial Distribution
Bernoulli distribution
o
33/60
Binomial Distribution
1
I Tossing a coin, two possible outcomes with probability of 2
for each
I Count the number of times that head appears when tossing a
coin 3 times (denoted by X)
I X can take on any of the values X = 0, 1, 2, 3
I Some values of X are more likely to occur than others
I Quantify the associated chances of occurrence of different
values of X
o
35/60
Binomial Distribution
o
35/60
Binomial Distribution
o
35/60
Binomial Distribution
o
35/60
Binomial Distribution
1 1
P(THH) = × ( )2
2 2
o
35/60
Binomial Distribution
1 1
P(THH) = × ( )2
2 2
P(2 H in 3 tosses) = · · ·
o
35/60
Binomial Distribution
1 1
P(THH) = × ( )2
2 2
P(2 H in 3 tosses) = · · ·
o
36/60
Binomial Distribution
o
37/60
Binomial Distribution
o
38/60
Binomial Distribution
Binomial Experiment
o
39/60
Binomial Distribution
The pmf
n x
P(X = x) = p (1 − p)n−x
x
o
40/60
Binomial Distribution
Example
o
41/60
Binomial Distribution
0.25
0.20
0.20
0.15
0.15
0.10
0.10
0.05
0.05
0.00
0.00
0 1 2 3 4 5 6 7 8 9 11 13 15 0 1 2 3 4 5 6 7 8 9 11 13 15
o
42/60
Binomial Distribution
0.15
0.15
0.10
0.10
0.05
0.05
0.00
0.00
0 1 2 3 4 5 6 7 8 9 11 13 15 0 3 6 9 12 16 20 24 28 32 36 40
o
43/60
Binomial Distribution
n
X
E (X ) = xi P(X = xi )
i=1
n
X n x
= xi p (1 − p)n−x
x
i=0
= np
Var (X ) = E (X 2 ) − [E (X )]2
= np(1 − p)
o
44/60
Poisson Distribution
Poisson Distribution
o
45/60
Poisson Distribution
o
46/60
Poisson Distribution
Poisson Distribution
o
47/60
Poisson Distribution
X ∼ Poisson(λ)
λx
P(X = x) = e −λ , x = 0, 1, 2, . . .
x!
o
48/60
Poisson Distribution
o
49/60
Poisson Distribution
Examples
o
50/60
Normal Distribution
o
51/60
Normal Distribution
o
52/60
Normal Distribution
Normal Distribution
1 (x−µ)2
f (x, µ, σ) = √ e − 2σ2 ; −∞ < x < ∞
σ 2π
o
53/60
Normal Distribution
1.0
0.8
µ=0
µ=1
µ = −1
0.6
Density
0.4
0.2
0.0
−4 −2 0 2 4
x
1.0
0.8
σ=1
σ=2
σ = 0.5
0.6
Density
0.4
0.2
0.0
o
−4 −2 0 2 4
54/60
Normal Distribution
Properties
o
55/60
Normal Distribution
Properties
o
56/60
Normal Distribution
Standard Normal Distribution
2
e −z /2
f (z) = √ , −∞ < z < ∞
2π
I It is a normal distribution with a mean of 0 & standard
deviation of 1, i.e., z ∼ N(0, 1)
I The standard normal distribution table gives the area under
the standard normal curve for any value of z from 0 − 3.4 or
so
o
57/60
Normal Distribution
Standard Normal Distribution
x −µ
z = ⇒ X = µ + σz
σ
value − mean
z =
standard deviation
Z ∼ N(0, 1) X ∼ N(µ, σ 2 )
o
58/60
Normal Distribution
Standard Normal Distribution
o
59/60
Normal Distribution
Standard Normal Distribution
o
60/60
Normal Distribution
Standard Normal Distribution