Module 4 1
Module 4 1
Scenario
You are the owner of a quaint coffee shop in a bustling town. Curious about
your business patterns, you decide to analyze your daily sales over a month.
Every day for 30 days, you meticulously record the number of cups of coffee
sold. As the month concludes, you examine your data and notice some
intriguing patterns emerging. On two days, you sold only 5 cups, while there
were five days when you sold 10 cups. More commonly, you find that on eight
days you sold 15 cups, and even more frequently, there were ten days when 20
cups flew off your shelves. The higher numbers were less frequent but still
significant, with four days seeing sales of 25 cups, and one exceptional day
where you sold a whopping 30 cups.
Based on the above information, how would you anticipate your most likely
sales figures, allowing you to optimize your inventory management?
Contd..
Insights
This probability distribution gives you insights into your daily sales patterns.
For example, you're most likely to sell 20 cups on any given day (33.3%
chance), while selling 30 cups is the least likely outcome (3.3% chance).
Illustration of Probability Distribution
Probability Distribution
• Probability distributions are related to frequency distributions.
• Moreover, we can relate probability distribution to theoretical
frequency distribution.
• A theoretical frequency distribution is a probability distribution that
describes how outcomes are expected to vary.
• Because these distributions deal with expectations, they are useful
models in making inferences and decisions under conditions of
uncertainty
Examples of Probability Distributions
• A political candidate for local office is considering the votes she can
get in a coming election. Assume that votes can take only four possible
values. If the candidate’s assessment is like this:
Whereas,
1. X is a random variable
2. p(x) > = 0
3. Σp(x) = 1.
Types of Probability Distribution
While probability distributions can be empirically derived from observed data in some
cases, they are also frequently used in theoretical and modeling contexts where the
probabilities are defined based on assumptions and mathematical principles rather
than observed frequencies. Common examples of probability distributions include
the normal distribution, binomial distribution, and Poisson distribution, all of
which are used in various fields to model random phenomena without relying on
observed data.
Practice Question (Contd..)
Variable
Discrete Continuous
Example of Discrete Random Variable
Suppose that a coin is tossed twice, .
Let represent the number of heads that can come up.
With each sample point we can associate a number for e.g., in case of
, while for . It follows that
is a random variable.
, , ,
Example of
Discrete
Random
Variables
• It means that over a long period of time, the number of daily screenings should average
about 108.02. Note that an expected value of 108.02 does not mean that tomorrow
exactly 108.02 patients will visit the clinic.
• The clinic director would base her decisions on the expected value of daily screenings
because the expected value is a weighted average of the outcomes she expects in the
future.
Practice Question
Practice Question (Contd..)
Application of Expected Value in Decision Making
• Consider a case for fruits and vegetable wholesaler who sells strawberries. This product
has a very limited useful life. If not sold on the day of delivery, it is worthless.
• The wholesaler cannot specify the number of cases customers will call for any one day,
but her analysis of past records has produced the information below.
• Given:
One case of strawberries costs: $ 20
Wholesaler receives for one case: $ 50
• The optimal stock action is the one that will minimize expected losses.
• This action calls for the stocking of 12 cases each day, at which point the
expected is minimum at $17.50.
Expected Value Of Discrete Variables
• Expected Value (or mean) of a discrete
variable (Weighted Average):
N
E(X) x i P ( X x i )
i 1
i 1
N
σ σ2 i
[x
i 1
E(X)] 2
P(X x i )
where:
E(X) = Expected value of the discrete variable X
xi = the ith outcome of X
P(X=xi) = Probability of the ith occurrence of X
Discrete Variables: Measuring Dispersion
N
σ i
[x
i 1
E(X)] 2
P(X x i )
Interruptions Per
Day In Computer Probability
Network (xi) P(X = xi) [xi – E(X)]2 [xi – E(X)]2P(X = xi)
0 0.35 (0 – 1.4)2 = 1.96 (1.96)(0.35) = 0.686
1 0.25 (1 – 1.4)2 = 0.16 (0.16)(0.25) = 0.040
2 0.20 (2 – 1.4)2 = 0.36 (0.36)(0.20) = 0.072
3 0.10 (3 – 1.4)2 = 2.56 (2.56)(0.10) = 0.256
4 0.05 (4 – 1.4)2 = 6.76 (6.76)(0.05) = 0.338
5 0.05 (5 – 1.4)2 = 12.96 (12.96)(0.05) = 0.648
σ2 = 2.04, σ = 1.4283
Excercise: Find the expectation , variance and standard deviation
of each of the following distributions:
𝒙𝒊 2 3 11
p(𝑥 ) 1 1 1
3 2 6
𝒙𝒊 -5 -4 1 2
𝑝(𝑥 ) 1 1 1 1
4 8 2 8
𝒙𝒊 1 3 4 5
𝑝(𝑥 ) 0.4 0.1 0.2 0.3
Probability Distributions
Probability
Distributions
Discrete Continuous
Probability Probability
Distributions Distributions
Binomial Normal
Poisson Uniform
Binomial Probability Distribution
A fixed number of observations, n.
e.g., 15 tosses of a coin; ten light bulbs are taken from a warehouse.
Each observation is classified into one of two mutually exclusive & collectively
exhaustive categories.
e.g., head or tail in each toss of a coin; defective or not defective light bulb.
The probability of being classified as the event of interest, π, is constant from
observation to observation.
Probability of getting a tail is the same each time we toss the coin.
Since the two categories are mutually exclusive and collectively exhaustive when the probability of the
event of interest is π, the probability of the event of interest not occurring is 1 – π .
The value of any observation is independent of the value of any other observation.
Possible Applications for the Binomial
Distribution
• A manufacturing plant labels items as either defective or
acceptable.
• A firm bidding for contracts will either get a contract or not.
• A marketing research firm receives survey responses of “yes I
will buy” or “no I will not.”
• New job applicants either accept the offer or reject it.
The Binomial Distribution Counting
Techniques
• Suppose the event of interest is obtaining heads on the toss of a fair
coin. You are to toss the coin three times. In how many ways can you
get two heads?
• Possible ways: HHT, HTH, THH, so there are three ways you can
getting two heads.
n!
n Cx
x!(n x)!
where:
n! =(n)(n - 1)(n - 2) . . . (2)(1)
x! = (X)(X - 1)(X - 2) . . . (2)(1)
0! = 1 (by definition)
Counting Techniques: Rule of Combinations
• How many possible 3 scoop combinations could you create at an ice cream parlor
if you have 31 flavors to select from and no flavor can be used more than once in
the 3 scoops?
• The total choices is n = 31, and we select X = 3.
n!
P(X 1 | 5,0.1) x (1 ) n x
x!(n x)!
5!
(0.1)1 (1 0.1)51
1!(5 1)!
(5)(0.1)(0.9) 4
0.32805
The Binomial Distribution: Example
Suppose the probability of an invoice payment being
late is 0.10. What is the probability of 1 late invoice
payment in a group of 4 invoices?
x = 1, n = 4, and π = 0.10
n!
P(X 1 | 4, 0.10) x (1 ) n x
x!(n x)!
4!
(0.10)1 (1 0.10) 41
1!(4 1)!
(4)(0.10)(0.729)
0.2916
The Binomial Distribution Using Binomial Tables
(Available Online)
https://www.statology.org/how-to-read-binomial-distribution-table/
The Binomial Distribution: Shape
• The shape of the binomial
P(X=x|5, 0.1)
distribution depends on the .6
values of π and n. .4
.2
Here, n = 5 and π = 0.1. 0
0 1 2 3 4 5 x
P(X=x|5, 0.5)
.6
.4
Here, n = 5 and π = 0.5. .2
0
0 1 2 3 4 5 x
Binomial Distribution Characteristics
• Mean: μ E(X) n
σ 2 n (1 - )
σ n (1 - )
Where n = sample size
π = probability of the event of interest for any trial
(1 – π) = probability of no event of interest for any trial
Practice Question
Practice Question