Professional Documents
Culture Documents
Probability
a. Classical Method
b. Relative Frequency Method
Method of Assigning
Examples:
Examples:
a. Roll a die, 6 equally likely
b. Get audited by districts office,
outcomes
3.000 out of 3.000.000
Method of Assigning Probability : Relative Frequency
Method
a. Uses past data to predict future
b. Uses past data available to estimate the proportion of the time
6
An ordered array is an ordered lists of the data
from largest to smallest or vice versa
7
• For categorical
• Determine the level of categorical variable
• Count the number observed values in each
level
Blue 2 (2/8)
Brown 5 (5/8)
Green 1 (1/8)
8
typically between 5-20 classes; there are several methods to determine
Decide number the number of the class (bin)
of Class
Freq Distribution:
Grouped Decide Class
Typically natural divisions; another method is subtracting the highest and
the lowest value, then divide it with the number of class
width
the lower class limit is the smallest number in the class, and the upper
limit is the largest number in the class; yet judgement is still required.
Find the class
limit Then, determine the frequency of each class
9
Terminology
• Class width: the difference between the
lower limit or upper limit of two
consecutive classes of the frequency dist
• Lower class limit: the smallest number
belong to the particular class
• Upper class limit: the largest number
that can belong to a particular class
10
Relative Frequency
where, 11
12
Example
13
14
Why the Relative Freq is important?
15
A review of set notation
a. Complement
Name Hair Colour Eye Colour
Dina Brown Hazel
Sinta Black Blue
Vivi Black Brown
Dika Brown Hazel
Tiwi Black Brown
Sasa Blond Brown
b. Mutually Exclusive Tama Brown Brown
Besta Brown Hazel
Fafa Blond Blue
Andi Blond Green
c. Union ()
Name Hair Colour Eye Colour
Dina Brown Hazel
Sinta Black Blue
Vivi Black Brown
Dika Brown Hazel
Tiwi Black Brown
Sasa Blond Brown
d. Intersection () Tama Brown Brown
Besta Brown Hazel
Fafa Blond Blue
Andi Blond Green
Mutually Exclusive
Non-Mutually Exclusive
Basic Probability:
Random Experiment
• A process that generates well-defined
outcomes
Terminology: Random
• On any single repetitioned trial of an
Experiment experimental outcomes can occur
• The experimental outcomes that occurs
on any trial is determined solely by
chance
Examples:
Experiments Outcomes
Toss a coin Head, Tail
Drive on bridge Stuck in traffic, not stuck
Roll Die 1,2,3,4,5,6,
Make Product Defect, not defect
Multi-Step Random Experiment
points?
Counting for multi-step random Experiment
Examples: Examples:
a. Experiment : Flip a coin 3 times b. Experiment : Roll a die 2 times
=3 =2
= 2 (Head or tail) = {1,2,3,4,5,6}
= 2 (Head or tail) = {1,2,3,4,5,6}
= 2 (Head or tail)
So, total experiment = sample points
So, total experiment = sample points = experiment outcomes =
= experiment outcomes =
Recall some Tools that reduce the effort and error associated with the
sample-point approach for finding the probability of an event
Probability of Event
The probability of any event is equal to
the sum of probabilities of the sample points in the event
31
Example 1: toss coin 3 times
List of Sample Probability of Success=
sample Toss 1 Toss 2 Toss 3
points sample point number of tails
1 H H H H,H,H 0,125 0
2 H H T H,H,T 0,125 1
3 H T H H,T,H 0,125 1
4 T H H T,H,H 0,125 1
5 T T H T,T,H 0,125 2
6 T H T T.H.T 0,125 2
7 H T T H,T,T 0,125 2
8 T T T T,T,T 0,125 3
34
Example 4: toss 2 die
35
To sum up…
36
Probability
experimental outcomes
1. ∀𝑖 (sample points)
the probability of sample
points-i
2. or + + … +
So,
Exercise
Consider the problem of selecting two applicants for a job out of a
group of five and imagine that the applicants vary in competence, 1
being the best, 2 second best, and so on, for 3, 4, and 5. These
ratings are of course unknown to the employer. Define two events
A and B as:
A: The employer selects the best and one of the two poorest
applicants (applicants 1 and 4 or 1 and 5).
B: The employer selects at least one of the two best.
3. A random selection of two out of five gives each pair an equal chance for selection. Hence, we will assign
each sample point the probability 1/10. That is:
4. Checking the sample points, we see that occurs whenever , , , , occurs. Hence, these sample points are
included in
Exercise
A balanced coin is tossed three times. Calculate the probability that exactly two
of the three tosses result in heads.
Solution…
The five steps of the sample-point method are as follows:
1. The experiment consists of observing the outcomes (heads or tails) for each of
three tosses of a coin. A simple event for this experiment can be symbolized by a
three-letter sequence of H’s and T’s, representing heads and tails, respectively.
The first letter in the sequence represents the observation on the first coin. The
second letter represents the observation on the second coin, and so on.
2. The eight simple events in are
3. Because the coin is balanced, we would expect the simple events to be equally likely; that is:
Solution…
The five steps of the sample-point method are as follows:
4. The event of interest, , is the event that exactly two of the tosses result in heads. An
examination of the sample points will verify that:
,}
5. Finally,
Conditional Probability and
Independent of Events
Conditional
Probability
a. A probability of an event given that another
event already occurred
b. After the first event has occurred, the “sample
space has changed”
c. Notation
means “probability A given that B has already
occurred”
Conditional
Probability
Example
1. Probability of pulling a queen from a deck
of cards (without replacement) affects the
probability of pulling the next card.
Event Q1 = pull queen from 52 cards deck
Event Q2= pull 2nd queen AFTER 1 queen
pulled
Conditional
Probability
, In which
Conditional Probability: Case
1
Suppose that our sample space S is the population of adult in a small town who
have completed the requirement for a college degree. We shall categorize them
according to gender and employment status.
13 1 =
𝑃 ( 𝐵| 𝐴 )= =
52 4
When = ) A and B are said to be Independent Event
Independent Event: Definition
• The definition of conditional probability enables us to revise the
probability P(A) originally assigned to A when we are subsequently
informed that another event B has occurred; the new probability of A is
P(A | B).
• Often the chance that A will occur or has occurred is not affected by
knowledge that B has occurred, so that
P(A | B) = P(A).
Independent Event:
Definition
• P(B | A) = =
• The right-hand side of Equation (2.7) is P(B) if and only if P(A | B) = P(A)
(independence), so the equality in the definition implies the other
equality (and vice versa).
• Suppose that
P(E1) = P(E6) = .10,
P(E2) = P(E5) = .15,
P(E3) = P(E4) = .25
• Define events A, B, C by
• We then have P(A) = .50, P(A | B) = .30, and P(A | C) = .50. That is,
events A and B are dependent, whereas events
A and C are independent.
1. Find
2. Calculate the Expected Value
Exercise
Consider that there are some languages spoken by Indonesia School Children. Define to be
The number of languages in which a randomly chosen Indonesian child attending school
can hold an everyday conversation. Assume that the probability function of , ,
is as shown in the following table: