BSMA 301 Statistics: Dr. Eyram Kwame
BSMA 301 Statistics: Dr. Eyram Kwame
BSMA 301 Statistics: Dr. Eyram Kwame
December 7, 2020
1 / 137
Outline
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
2 / 137
Outline (contd.)
Expectation and Variance
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression
3 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 4 / 137
Recommended Textbooks
5 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 6 / 137
Introduction
14 / 137
Graphical Descriptive Techniques
15 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 16 / 137
Elements of Probability
𝑛( 𝐴)
P ( 𝐴) = . (1)
𝑛 (S)
18 / 137
Axioms of Probability
For any event 𝐴 of an experiment,
having a sample space S, the
following axioms hold
I A1: 0 ≤ P( 𝐴) ≤ 1
I A2: P (S) = 1
exclusive events
𝐴1, 𝐴2, 𝐴!3, · · · , 𝐴𝑛 , we have
Ø𝑛 Õ 𝑛
P 𝐴𝑖 = P( 𝐴𝑖 )
𝑖=1 𝑖=1 19 / 137
Conditional Probability
I The Intersection of events 𝐴 and
𝐵 is the event that both event 𝐴
and event 𝐵 occur at the same
time. It is denoted as 𝐴 ∩ 𝐵
I Conditional Probability is the
probability of an event (say 𝐴)
given that an event (say 𝐵) has
occurred:
P( 𝐴 ∩ 𝐵)
P( 𝐴|𝐵) = (2)
P(𝐵)
20 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 21 / 137
Random Variables
23 / 137
Random Variables
25 / 137
Random Variables
I A probability distribution is a
table, formula, or graph that
describes the values of a random
variable and the probability
associated with these values.
I The probability distribution of the
r.v. 𝑋, which is the number of
26 / 137
Random Variables (contd.)
27 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 28 / 137
D.P.D
30 / 137
D.P.D (contd.)
31 / 137
D.P.D
33 / 137
Bivariate Distribution
A Bivariate Probability
Distribution of random variables 𝑋
and 𝑌 is a table or formula that gives
the joint probabilities p(𝑥, 𝑦) for all
pairs of 𝑥 and 𝑦.
The requirement for a Discrete
Bivariate Distribution is as follows:
Õ 0≤Õp(𝑥, 𝑦) ≤ 1 (6)
p(𝑥, 𝑦) = 1 (7)
𝑥 𝑦 34 / 137
Bivariate Distribution
37 / 137
Bivariate Distribution
38 / 137
Example
39 / 137
Example
After analysing several months of sales data, the
owner of an appliance store produced the ff joint
probability distribution of the refrigerators and stoves
sold daily;
Refrigerators
Stoves 0 1 2
0 0.08 .14 0.12
1 0.09 0.17 0.13
2 0.05 0.18 0.04
(a) Compute COV(𝑋, 𝑌 ) and 𝑟
(b) Compute the following conditional probabilities
(i) P(1 Ref | 0 Stove)
(ii) P(2 Ref | 2 Stove)
40 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 41 / 137
Binomial Distribution
𝑛 𝑥
P(𝑋 = 𝑥) = 𝑝 (1 − 𝑝) 𝑛−𝑥
𝑥
(14)
𝑛!
= 𝑝 𝑥 (1 − 𝑝) 𝑛−𝑥
𝑥!(𝑛 − 𝑥)!
𝜇 = E(𝑋) =𝑛𝑝 (15)
𝜎 2 = Var(𝑋) =𝑛𝑝(1 − 𝑝) (16)
44 / 137
Examples of Bin(𝑛, 𝑝)
45 / 137
Examples of Bin(𝑛, 𝑝)
46 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 47 / 137
Poisson Distribution
A Poisson experiment is
characterized by the following
properties
I The # of successes that occur in
any interval is independent of that
which occurs in another.
I The probability of a success in an
interval is the same for all
equal-size intervals.
48 / 137
Poisson Distribution
49 / 137
Poisson Distribution
𝑓 (𝑥) ≥0 (21)
∫ ∞
P(𝑥 ∈ R) = 𝑓 (𝑥)𝑑𝑥 = 1 (22)
−∞
∫ 𝑏
P(𝑎 ≤ 𝑥 ≤ 𝑏) = 𝑓 (𝑥)𝑑𝑥 (23)
𝑎
∫ 𝑎
P(𝑥 = 𝑎) = 𝑓 (𝑥)𝑑𝑥 = 0 (24)
𝑎
55 / 137
Requirement for a p.d.f.
56 / 137
Requirement for a pdf
57 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 58 / 137
Joint p.d.f.
59 / 137
Joint p.d.f.
If 𝐴 and 𝐵 are
any sets in
R, then for
any set 𝐶 = (𝑥, 𝑦) ∈ R2 , we have
∫ ∫
P (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵) = 𝑓 (𝑥, 𝑦)𝑑𝑥𝑑𝑦
𝐵 𝐴
(27)
because
𝐹 (𝑎, 𝑏) =P (𝑥 ∈ (−∞, 𝑎], 𝑦 ∈ (−∞, 𝑏])
∫ 𝑏∫ 𝑎
= 𝑓 (𝑥, 𝑦)𝑑𝑥𝑑𝑦
−∞ −∞ 60 / 137
Joint p.d.f.
Where
∫ ∞
𝑓 𝑋 (𝑥) = 𝑓 (𝑥, 𝑦)𝑑𝑦 (29)
−∞
Similarly,
∫ ∞
𝑓𝑌 (𝑦) = 𝑓 (𝑥, 𝑦)𝑑𝑥 (30)
−∞
62 / 137
Joint p.d.f.
65 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
Hypothesis Testing
Introduction to Regression 66 / 137
Expectation
68 / 137
Expectation
For example
0 𝑑 𝑋𝑡
𝜙 (𝑡) = E 𝑒
𝑑𝑡
𝑑 𝑋𝑡
=E 𝑒
𝑑𝑡
𝑋𝑡
=E 𝑋𝑒 (39)
Hence 𝜙0 (0) = E [𝑋]h i
Similarly 𝜙00 (0) = E 𝑋 2
72 / 137
mgf
73 / 137
mgf
74 / 137
Example
Introduction to Regression
78 / 137
Uniform distribution
81 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
82 / 137
Hypothesis Testing
Introduction to Regression
83 / 137
Exponential distribution
Introduction to Regression
87 / 137
Normal Distribution
94 / 137
Example of Normal distribution
Introduction to Regression
97 / 137
Parameter Estimation
98 / 137
Parameter Estimation
101 / 137
Confidence Intervals for the mean of a Normally Distributed Population
Known 𝜎 2
Suppose that 𝑥1, 𝑥2, · · · , 𝑥 𝑛 is a
sample from a normally distributed
population having an unknown mean
𝜇 but a known variance 𝜎 2.
Though 𝑥¯ is an unbiased estimator of
𝜇, we do not expect 𝑥¯ = 𝜇 but rather
𝑥¯ ≈ 𝜇.
102 / 137
Confidence Intervals for the mean of a Normally Distributed Population
Note that
𝑛
2 1 Õ
𝑠 = ¯ 2
(𝑥𝑖 − 𝑥)
𝑛−1
𝑖=1
and
√
𝑛( 𝑥¯ − 𝜇)
P −𝑡 𝛼/2, 𝑛−1 < < 𝑡 𝛼/2, 𝑛−1 = 1−𝛼
𝑠
106 / 137
Confidence Intervals for Normal mean with an unknown 𝜎 2
107 / 137
Confidence Intervals for Normal mean with an unknown 𝜎 2
108 / 137
Confidence Intervals for Variance (𝜎 2 ) of a Normal Distribution
110 / 137
Confidence Intervals for 𝜎 2
Hence
2
2 𝑠 2
P 𝜒1−𝛼/2, 𝑛−1
≤ (𝑛 − 1) 2
≤ 𝜒𝛼/2, 𝑛−1
= 1−𝛼
𝜎
⇔
!
(𝑛 − 1)𝑠2 2 (𝑛 − 1)𝑠2
P 2
≤𝜎 ≤ 2 = 1−𝛼
𝜒𝛼/2, 𝑛−1 𝜒1−𝛼/2, 𝑛−1
(52)
111 / 137
Confidence Intervals for 𝜎 2
Introduction to Regression
114 / 137
Hypothesis Testing
116 / 137
H.T for the Mean of a Normally Distributed Population
119 / 137
One-Sided Hypothesis Tests
120 / 137
One-Sided Hypothesis Tests
Thus √
𝑛
I Reject 𝐻0 if 𝑥¯ − 𝜇0 > 𝑧 𝛼
𝜎
√
𝑛
I Accept 𝐻0 if 𝑥¯ − 𝜇0 ≤ 𝑧 𝛼
𝜎
The decision criteria is called
one-sided critical region.
121 / 137
Summary
122 / 137
Examples
124 / 137
Recommended Textbooks
Introduction
Descriptive Statistics
Numerical Descriptive Techniques
Graphical Descriptive Techniques
Elements of Probability
Random Variables
Discrete Probability Distribution
Binomial Distribution
Poisson Distribution
Continuous Random Variables
Joint Probability Density Function
Expectation and Variance
Moment Generating Function
Uniform Distribution
Exponential Distribution
Normal Distribution
Parameter Estimation
125 / 137
Hypothesis Testing
Introduction to Regression
126 / 137
Introduction to Regression
127 / 137
Introduction to Regression
128 / 137
Introduction to Regression
131 / 137
Introduction to Regression
𝑛
1Õ
𝑦¯ = 𝑦𝑖
𝑛
𝑖=1
𝑛
1 Õ
𝑆𝑥𝑦 = 𝑥𝑖 𝑦𝑖 − 𝑛𝑥¯ 𝑦¯
𝑛−1
𝑖=1
𝑛
1 Õ
𝑆𝑥2 = 𝑥𝑖2 − 𝑛𝑥¯ 2
𝑛−1
𝑖=1
134 / 137
Introduction to Regression
Attempting to analyze the
relationship between advertising and
sales, the owner of a furniture store
recorded the monthly advertising
budget ($) and sales ($1,000) for 8
months as follows
Advert 23 46 60 28 33 25 31 36
Sales 9.6 11.3 12.8 8.9 12.5 12.0 11.4 12.6
How much should the store spend on
adverting if a sales value of $50,000
is desired? 135 / 137
Thank you
136 / 137
References
[1] Navidi, W.
Statistics for Engineers and Scientists, fourth ed.
McGraw-Hill, 2015.
[2] Ross, S.
Introduction to Probability and Statistics for Engineers and
Scientists, fourth ed.
Elsevier Academic Press, 2009.
137 / 137