This document contains lecture notes on probability from an SBE 304 bio-statistics course. It introduces key concepts such as probability, sample spaces, events, Venn diagrams, and set notation. It discusses how to calculate probabilities of events using formulas like P(A) = number of ways event A can occur/total number of possible outcomes. It also covers topics like conditional probability, Bayes' rule, mutually exclusive and exhaustive events, and tools for counting sample points and events.
Probability for Machine Learning
Here is a scant introduction to an important subject in Machine Learning. However, we are looking to work with our Probability Professor, Ofelia Begovich to write a series of notes in basic probability for something else, to improve this introduction. Nevertheless, there are still several things like:
1.- Linear Algebra
2.- Topology
3.- Mathematical Analysis
4.- Optimization
That need to be addressed, thus I am working in a class for intelligent systems for that.
Please Subscribe to this Channel for more solutions and lectures
http://www.youtube.com/onlineteaching
Chapter 4: Probability
4.1: Basic Concepts of Probability
Probability for Machine Learning
Here is a scant introduction to an important subject in Machine Learning. However, we are looking to work with our Probability Professor, Ofelia Begovich to write a series of notes in basic probability for something else, to improve this introduction. Nevertheless, there are still several things like:
1.- Linear Algebra
2.- Topology
3.- Mathematical Analysis
4.- Optimization
That need to be addressed, thus I am working in a class for intelligent systems for that.
Please Subscribe to this Channel for more solutions and lectures
http://www.youtube.com/onlineteaching
Chapter 4: Probability
4.1: Basic Concepts of Probability
It is a consolidation of basic probability concepts worth understanding before attempting to apply probability concepts for predictions. The material is formed from different sources. ll the sources are acknowledged.
1 Probability Please read sections 3.1 – 3.3 in your .docxaryan532920
1
Probability
Please read sections 3.1 – 3.3 in your textbook
Def: An experiment is a process by which observations are generated.
Def: A variable is a quantity that is observed in the experiment.
Def: The sample space (S) for an experiment is the set of all possible outcomes.
Def: An event E is a subset of a sample space. It provides the collection of outcomes
that correspond to some classification.
Example:
Note: A sample space does not have to be finite.
Example: Pick any positive integer. The sample space is countably infinite.
A discrete sample space is one with a finite number of elements, { }1,2,3,4,5,6 or one that
has a countably infinite number of elements { }1,3,5,7,... .
A continuous sample space consists of elements forming a continuum. { }x / 2 x 5< <
2
A Venn diagram is used to show relationships between events.
A intersection B = (A ∩ B) = A and B
The outcomes in (A intersection B) belong to set A as well as to set B.
A union B = (A U B) = A alone or B alone or both
Union Formula
For any events A, B, P (A or B) = P (A) + P (B) – P (A intersection B) i.e.
P (A U B) = P (A) + P (B) – P (A ∩ B)
3
cA complement not A A ' A A = = = =
A complement consists of all outcomes outside of A.
Note: P (not A) = 1 – P (A)
Def: Two events are mutually exclusive (disjoint, incompatible) if they do not intersect,
i.e. if they do not occur at the same time. They have no outcomes in common.
When A and B are mutually exclusive, (A ∩ B) = null set = Ø, and P (A and B) = 0.
Thus, when A and B are mutually exclusive, P (A or B) = P (A) + P (B)
(This is exactly the same statement as rule 3 below)
Axioms of Probability
Def: A probability function p is a rule for calculating the probability of an event. The
function p satisfies 3 conditions:
1) 0 ≤ P (A) ≤1, for all events A in the sample space S
2) P (Sample Space S) = 1
3) If A, B, C are mutually exclusive events in the sample space S, then
P(A B C) P(A) P(B) P(C)∪ ∪ = + +
4
The Classical Probability Concept: If there are n equally likely possibilities, of which one
must occur and s are regarded as successes, then the probability of success is s
n
.
Example:
Frequency interpretation of Probability: The probability of an event E is the proportion of
times the event occurs during a long run of repeated experiments.
Example:
Def: A set function assigns a non-negative value to a set.
Ex: N (A) is a set function whose value is the number of elements in A.
Def: An additive set function f is a function for which f (A U B) = f (A) + f (B) when A and
B are mutually exclusive.
N (A) is an additive set function.
Ex: Toss 2 fair dice. Let A be the event that the sum on the two dice is 5. Let B be the
event that the sum on ...
It gives detail description about probability, types of probability, difference between mutually exclusive events and independent events, difference between conditional and unconditional probability and Bayes' theorem
Probability theory or probability calculus is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set of axioms. Typically these axioms formalise probability in terms of a probability space, which assigns a measure taking values between 0 and 1, termed the probability measure, to a set of outcomes called the sample space. Any specified subset of the sample space is called an event.
It is a consolidation of basic probability concepts worth understanding before attempting to apply probability concepts for predictions. The material is formed from different sources. ll the sources are acknowledged.
1 Probability Please read sections 3.1 – 3.3 in your .docxaryan532920
1
Probability
Please read sections 3.1 – 3.3 in your textbook
Def: An experiment is a process by which observations are generated.
Def: A variable is a quantity that is observed in the experiment.
Def: The sample space (S) for an experiment is the set of all possible outcomes.
Def: An event E is a subset of a sample space. It provides the collection of outcomes
that correspond to some classification.
Example:
Note: A sample space does not have to be finite.
Example: Pick any positive integer. The sample space is countably infinite.
A discrete sample space is one with a finite number of elements, { }1,2,3,4,5,6 or one that
has a countably infinite number of elements { }1,3,5,7,... .
A continuous sample space consists of elements forming a continuum. { }x / 2 x 5< <
2
A Venn diagram is used to show relationships between events.
A intersection B = (A ∩ B) = A and B
The outcomes in (A intersection B) belong to set A as well as to set B.
A union B = (A U B) = A alone or B alone or both
Union Formula
For any events A, B, P (A or B) = P (A) + P (B) – P (A intersection B) i.e.
P (A U B) = P (A) + P (B) – P (A ∩ B)
3
cA complement not A A ' A A = = = =
A complement consists of all outcomes outside of A.
Note: P (not A) = 1 – P (A)
Def: Two events are mutually exclusive (disjoint, incompatible) if they do not intersect,
i.e. if they do not occur at the same time. They have no outcomes in common.
When A and B are mutually exclusive, (A ∩ B) = null set = Ø, and P (A and B) = 0.
Thus, when A and B are mutually exclusive, P (A or B) = P (A) + P (B)
(This is exactly the same statement as rule 3 below)
Axioms of Probability
Def: A probability function p is a rule for calculating the probability of an event. The
function p satisfies 3 conditions:
1) 0 ≤ P (A) ≤1, for all events A in the sample space S
2) P (Sample Space S) = 1
3) If A, B, C are mutually exclusive events in the sample space S, then
P(A B C) P(A) P(B) P(C)∪ ∪ = + +
4
The Classical Probability Concept: If there are n equally likely possibilities, of which one
must occur and s are regarded as successes, then the probability of success is s
n
.
Example:
Frequency interpretation of Probability: The probability of an event E is the proportion of
times the event occurs during a long run of repeated experiments.
Example:
Def: A set function assigns a non-negative value to a set.
Ex: N (A) is a set function whose value is the number of elements in A.
Def: An additive set function f is a function for which f (A U B) = f (A) + f (B) when A and
B are mutually exclusive.
N (A) is an additive set function.
Ex: Toss 2 fair dice. Let A be the event that the sum on the two dice is 5. Let B be the
event that the sum on ...
It gives detail description about probability, types of probability, difference between mutually exclusive events and independent events, difference between conditional and unconditional probability and Bayes' theorem
Probability theory or probability calculus is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set of axioms. Typically these axioms formalise probability in terms of a probability space, which assigns a measure taking values between 0 and 1, termed the probability measure, to a set of outcomes called the sample space. Any specified subset of the sample space is called an event.
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
1. 9/22/2018
1
SBE 304: Bio-Statistics
Probability
Dr. Ayman Eldeib
Systems & Biomedical
Engineering Department
Fall 2018
SBE 304: Probability
Outline
• Introduction
• Review of Venn Diagrams & Set Notation
• A Probabilistic Model for an Experiment
• The Probability of an Event
• Theory of Probability
• Calculating the Probability of an Event
• Tools for counting sample points/events
• Characterizing a set of Measurements
2. 9/22/2018
2
SBE 304: Probability
Statistics
Descriptive Inferential
Correlational GeneralisingOrganising,
summarising &
describing data
Significance
Introduction
Relationships
SBE 304: Probability
General Definition
The mathematical theory of probability deals
with patterns that occur in random events.
Probability is a way of expressing knowledge
or belief that an event will occur. The
probability of a random event denotes the
relative frequency of occurrence of an
experiment's outcome, when repeating the
experiment.
Probability is a way to represent an
individual’s degree of belief in a statement, or
an objective degree of rational belief, given
the evidence.
3. 9/22/2018
3
SBE 304: Probability
Venn Diagrams & Set Notation
Universal Set
Let's say that our universe contains the numbers 1, 2, 3,
and 4; i.e. S = {1, 2, 3, 4}.
Subset
Let A be the set containing the numbers 1 and 2; that is, A =
{1, 2}.
A ⊆ S
Let B be the set containing the numbers 2 and 3; that is, B =
{2, 3}.
B ⊆ S
The Venn diagram is made up of two or more non- or
overlapping circles/shapes. It is often used in mathematics to
show relationships between sets.
SBE 304: Probability
Venn Diagrams & Set Notation Cont.
Set notation pronunciation meaning Venn diagram answer
A U B "A union B"
Everything that is in
either of the sets {1, 2, 3}
A ^ B
or
( A ∩ B)
"A intersect B"
only the things that are in
both of the sets {2}
Ac
or ~A or A
"A complement",
or "not A"
Everything in the universe
outside of A {3, 4}
A – B
"A minus B", or
"A complement B"
everything in A except for
anything in its overlap
with B
{1}
~(A U B) "not (A union B)"
Everything outside
A and B {4}
~(A ^ B)
or
~( A ∩ B)
"not (A intersect B)"
everything outside of the
overlap of A and B {1, 3, 4}
-
4. 9/22/2018
4
SBE 304: Probability
Venn Diagrams & Set Notation
Null Set
The Null, or empty, set denoted by Ø, is the set consisting
of no points/members. Thus, Ø is a subset of every set.
Mutually Exclusive or Disjoint
Two sets, A and B are said to be disjoint if A ∩ B = Ø.
Cont.
SBE 304: Probability
Venn Diagrams & Set Notation
Given the following Venn diagram, shade in
A ∩ C
Examples
Given the following Venn diagram, shade in
A U (B – C)
(B – C) U A
Cont.
A ∩ C
5. 9/22/2018
5
SBE 304: Probability
Venn Diagrams & Set Notation
(A‘) ‘= A
The distributive law for set operations implies that
(A ∪ B) ∩ C = (A ∩ C) ∪ (B ∩ C)
(A ∩ B) ∪ C = (A ∪ C) ∩ (B ∪ C)
DeMorgan’s laws imply that
(A ∪ B) ‘ = A‘ ∩ B‘
(A ∩ B) ‘ = A‘ ∪ B‘
Also, remember that
A ∪ B = B ∪ A
A ∩ B = B ∩ A
Cont.
SBE 304: Probability
A Probabilistic Model for an Experiment
A spinner has 4 equal sectors colored yellow, blue, green and
red. What are the chances of landing on blue after spinning
the spinner? What are the chances of landing on red?
Problem
Solution
The chances of landing on blue are 1 in 4, or one fourth.
The chances of landing on red are 1 in 4, or one fourth.
6. 9/22/2018
6
SBE 304: Probability
A Probabilistic Model for an Experiment
Definition Example
An experiment is a situation involving
chance or probability that leads to
results called outcomes. It is the process
by which an observation is made
In the problem above, the experiment
is spinning the spinner.
An outcome is the result of a single trial
of an experiment.
The possible outcomes are landing on
yellow, blue, green or red.
An event is one or more outcomes of an
experiment.
One event of this experiment is landing
on blue.
Probability is the measure of how likely
an event is.
The probability of landing on blue is
one fourth.
Cont.
SBE 304: Probability
The Probability of an Event
Probability Of An Event
P(A) =
The Number Of Ways Event A Can Occur
The total number Of Possible Outcomes
The probability of event A is the number of ways
event A can occur divided by the total number of
possible outcomes.
7. 9/22/2018
7
SBE 304: Probability
The Probability of an Event
A spinner has 4 equal sectors colored yellow, blue, green
and red. After spinning the spinner, what is the probability
of landing on each color?
Experiment
Outcomes
The possible outcomes of this experiment are yellow, blue,
green, and red
Cont.
SBE 304: Probability
Probabilities
P(yellow) =
# of ways to land on yellow
total # of colors
=
1
4
P(blue) =
# of ways to land on blue
total # of colors
=
1
4
P(green) =
# of ways to land on green
total # of colors
=
1
4
P(red) =
# of ways to land on red
total # of colors
=
1
4
Cont.
The Probability of an Event
8. 9/22/2018
8
SBE 304: Probability
A single 6-sided die is rolled. What is the probability of
each outcome? What is the probability of rolling an even
number? of rolling an odd number?
Experiment
Outcomes
The possible outcomes of this experiment are 1, 2, 3, 4, 5
and 6.
Cont.
The Probability of an Event
SBE 304: Probability
P(3) =
# of ways to roll a 3
total # of sides
=
1
6
P(even) = # ways to roll an even number
total # of sides
=
3
6
=
1
2
P(odd) = # ways to roll an odd number
total # of sides
=
3
6
=
1
2
Probabilities
Cont.
The Probability of an Event
9. 9/22/2018
9
SBE 304: Probability
Theory of Probability
A set of all possible outcomes. It is usually denoted by S
The Sample Space
A Discrete Sample Space
It contains either a finite or a countable number of distinct
sample points/events.
SBE 304: Probability
Event Probability
A
not A
A and B
A or B
A given B
The Multiplicative Law
The Additive Law
Bayes’ Rule
Cont.
Theory of Probability
10. 9/22/2018
10
SBE 304: Probability
P(A ∩ B) =
The Number Of Ways Event A ∩ B Can Occur
The total number Of Possible Outcomes
P(A|B) = P(A∩ B)/P(B)
The Number Of Ways Event A ∩ B Can Occur
The Number Of Ways Event B Can Occur
P(B) =
The Number Of Ways Event B Can Occur
The total number Of Possible Outcomes
Note: P(A|B)P(B) = P(A∩ B) = P(B|A)P(A)
Cont.
Theory of Probability
SBE 304: Probability
P(A|B) = P(A∩B) / P(B)
P(B|A) = P(B∩A) / P(A)
P(A∩B) = P(A|B) P(B)
P(B|A) P(A) = P(A∩B) = P(A|B) P(B)
P(B|A) = P(A|B) P(B) / P(A)
P(B|A) = P(A|B)P(B) / (P(A|B)P(B) + P(A|B‘)P(B‘))
?
Cont.
Theory of Probability
11. 9/22/2018
11
SBE 304: Probability
B∪B‘ = Ω, the universal event.
B∩B‘ = Φ, an empty event.
A = A ∩ (B ∪ B‘)
A = A∩B ∪ A∩B‘
since A∩B and A∩B ‘ are mutually exclusive
P(A) = P(A∩B ∪ A∩B ‘)
P(A) = P(A∩B) + P(A∩B ‘)
P(A) = P(A|B)P(B) + P(A|B ‘)P(B ‘)
Cont.
Theory of Probability
SBE 304: Probability
A doctor is called to see a sick child. The doctor has prior
information that 90% of sick children in that neighborhood
have the flu, while the other 10% are sick with measles. Let
F stand for an event of a child being sick with flu and M
stand for an event of a child being sick with measles.
Assume for simplicity that F ∪ M = Ω, i.e., that there no other
maladies in that neighborhood.
A well-known symptom of measles is a rash (the event of
having which we denote R). P(R|M) = .95. However,
occasionally children with flu also develop rash, so that
P(R|F) = 0.08.
Upon examining the child, the doctor finds a rash. What is
the probability that the child has measles?.
Example I
Cont.
Theory of Probability
12. 9/22/2018
12
SBE 304: Probability
P(M|R) = .95 × .10 / (.95 × .10 + .08 × .90)
P(M|R) ≈ 0.57
Solution I
Cont.
Theory of Probability
P(R|M) P(M) / (P(R|M) P(M) + P(R|F) P(F)) P(M|R) =
SBE 304: Probability
In a study, physicians were asked what the odds of breast
cancer would be in a woman who was initially thought to
have a 1% risk of cancer but who ended up with a positive
mammogram result (a mammogram accurately classifies
about 80% of cancerous tumors and 90% of benign tumors.)
95 out of a hundred physicians estimated the probability of
cancer to be about 75%. Do you agree?
Example II
Introduce the events:
P - mammogram result is positive,
B - tumor is benign,
M - tumor is malignant.
Cont.
Theory of Probability
13. 9/22/2018
13
SBE 304: Probability
Introduce the events:
P - mammogram result is positive,
B - tumor is benign,
M - tumor is malignant.
Bayes' formula in this case is
P(M|P) = P(P|M) P(M) / (P(P|M) P(M) + P(P|B) P(B))
= .80 × .01 / (.80 × .01 + .10 × .99)
≈ 0.075
≈ 7.5%.
A far cry from a common estimate of 75%.
Solution II
Cont.
Theory of Probability
SBE 304: Probability
Calculating the Probability of an Event
I. Define the experiment.
II. List all the simple outcomes associated with the
experiment. These outcomes constitute the sample
space.
III. Assign reasonable probabilities to these outcomes.
Make sure each probability is greater than or equal to
zero and the sum of the probabilities is 1. If all
outcomes are equally likely the probability of each will
be 1/n.
IV. Define the event of interest A and see the outcomes in
the sample space which makes A occur.
V. Find P(A) by adding the probabilities of these outcomes
which make A occur.
14. 9/22/2018
14
SBE 304: Probability
If the sample space contains a very large number of
sample points, complete itemization will be tedious, time
consuming and might be practically impossible.
When this occurs we need not list the points but just use
combinatorial analysis to know the number of points in the
sample space (N) and the event space (n).
If outcomes are equally likely the probability of the event is
n/N.
Notes:
Cont.
Calculating the Probability of an Event
SBE 304: Probability
P(A ∪ B ∪ C) = P((A ∪ B) ∪ C)
= P(A ∪ B) + P(C) – P((A ∪ B) ∩ C)
= P(A) + P(B) – P(A ∩ B) + P(C)
– P((A ∩ C) ∪ (B ∩ C))
= P(A) + P(B) + P(C) – P(A ∩ B)
-[P(A ∩ C) + P(B ∩ C) – P(A ∩B ∩ C)]
= P(A) + P(B) + P(C) – P(A ∩ B)
- P(A ∩ C) - P(B ∩ C) + P(A ∩B ∩ C)
Three or More Events
Cont.
Calculating the Probability of an Event
P(A ∪ B) = P(A) + P(B) – P(A ∩ B)
15. 9/22/2018
15
SBE 304: Probability
A collection of events, E1, E2, …Ek, is said to be mutually
exclusive for all pairs:
Ei ∩ Ej = Φ, an empty event
Three or More Events
For a collection of mutually exclusive events,
P(E1 ∪ E2 ∪ ….. ∪ Ek) = P(E1) + P(E2) + …… + P(Ek)
Cont.
Calculating the Probability of an Event
SBE 304: Probability
P(A) = P(A∩B) + P(A∩B ‘)
P(A) = P(A|B)P(B) + P(A|B ‘)P(B ‘)
In general, a collection of mutually exclusive sets, E1, E2,
…Ek, such that E1 ∪ E2 ∪ ….. ∪ Ek = S, is said to be
exhaustive.
P(A) = P(A∩E1) + P(A∩E2) + ….. P(A ∩ Ek)
P(A) = P(A| E1)P(E1) + P(A| E2)P(E2) + ….. + P(A| Ek)P(Ek)
P(Ej| A) = P(A| Ej)P(Ej) / ∑ P(A| Ei)P(Ei) {i=1,2, ….,k)}
Three or More Events Total Probability Rule
Cont.
Calculating the Probability of an Event
16. 9/22/2018
16
SBE 304: Probability
Tools for counting sample points/events
Multiplication of Choices
With m elements a1, a2, ….., am and n elements b1, b2,
….., bn, it is possible to form mn = m * n pairs containing
one element from each group
SBE 304: Probability
Multiplication of Choices
Example:
There are seven different trails to the top of the mountain. In how
many different ways can a person hike up and down the
mountain if
1.he must take the same trail both ways;
2.he can, but need not, take the same trail both ways;
3.he does not want to take the same trail both ways.
7 * 7
7 * 6
7
Cont.
Tools for counting sample points/events
17. 9/22/2018
17
SBE 304: Probability
Permutation
An ordered arrangement of r distinct objects is called a
permutation (n!). The number of ways of ordering n distinct
objects taken r at a time will be designed by the symbol
Pr
n
Pr
n = n(n - 1)(n - 2)…..(n – r + 1) = n! / (n - r)!
Tools for counting sample points/events Cont.
SBE 304: Probability
Permutation
Consider a set of elements, such as S {a, b, c}. A
permutation of the elements is an ordered sequence of
the elements. For example, abc, acb, bac, bca, cab, and cba
are all of the permutations of the elements of S.
Example:
n! = n(n - 1)(n - 2)…..(1)
3! = 3 * 2 * 1 = 6
Cont.
Tools for counting sample points/events
18. 9/22/2018
18
SBE 304: Probability
Permutation
A printed circuit board has eight different locations in which a
component can be placed. If four different components are to be
placed on the board, how many different designs are possible?
Example:
Each design consists of selecting a location from the eight locations
for the first component, a location from the remaining seven for the
second component, a location from the remaining six for the third
component, and a location from the remaining five for the fourth
component. Therefore,
P4
8 = 8*7*6*5= 8! / (8 - 4)! = 1680
1680 different designs are possible.
Cont.
Tools for counting sample points/events
SBE 304: Probability
Partitioning n distinct objects into k distinct groups
The number of ways N of partitioning n distinct objects into
k distinct groups containing n1, n2, ….., nk, objects,
respectively, where each object appears in exactly one
group and ∑ ni = n, where i=1, 2, ….., k, is
N = ( )n
n1 n2 ….. nk =
________________
n!
n1! n2! ….. nk!
Tools for counting sample points/events Cont.
19. 9/22/2018
19
SBE 304: Probability
Partitioning n distinct objects into k distinct groups
A part is labeled by printing with four thick lines, three
medium lines, and two thin lines. If each ordering of the
nine lines represents a different label, how many different
labels can be generated by using this scheme?
Example:
( )N =
n
n1 n2 ….. nk =
________________
n!
n1! n2! ….. nk!
= 9!/4!3!2!
Cont.
Tools for counting sample points/events
SBE 304: Probability
Combinations
The number of unordered subsets of size r chosen
(without replacement) from n available objects is
( )n
r =
C
n
r = ________________
n!
r! (n – r)!
Cont.
Tools for counting sample points/events
20. 9/22/2018
20
SBE 304: Probability
Combinations
Consider the problem of choosing two patient monitoring systems for
ICU out of a group of five and imagine that the monitoring systems
vary in competence, 1 being the best, 2 second best, and so on, for 3,
4, and 5. These rating are of course unknown to the nurse.
A- Find the number of ways of selecting two systems out of five.
B- Let A denote the event that exactly one of the two best systems
appears in a selection of two out of five. Find the number of sample
points in A and P(A).
Example:
(5
2) = 5!/2!3! = 10
n = (2
1) (3
1) = 2*3=6 P(A) = 0.6
Cont.
Tools for counting sample points/events
SBE 304: Probability
When male and female workers become sick, what do they do? A
survey was carried out and the responses of 500 workers were
tabulated
Example:
Action Male (M) Female
Consult a doctor (D) 115 70
Consult a pharmacist for a pain killer medication 60 140
Go to a hospital 75 40
1. What is the probability that a man would consult a pharmacist?
2. What proportion of workers consults a doctor?
3. If a worker is known to be a female, what is the probability that she will go to a
hospital?
4. Among workers consulting a pharmacist, what proportion are males?
5. Are gender and consulting a doctor independent? Verify your answer.
Dependent: P(D) ≠ P(D|M)
60/200 = 0.3
60/500 = 0.12
185/500 = 0.37
40/250 = 0.16
21. 9/22/2018
21
SBE 304: Probability
Characterizing a set of Measurements
The Mean
The mean of a sample of n measured responses
y1, y2, ….., yn is given by
Y =
__
___1
n
∑
n
i = 1
yiµ =
SBE 304: Probability
Characterizing a set of Measurements
The Variance
The variance of a sample of measurements y1, y2, ….., yn
is the sum of the differences between the measurements
and their mean, divided by n – 1.
S2 =
_______1
n - 1
∑
n
i = 1
(yi – µ)2
σ 2 =
22. 9/22/2018
22
SBE 304: Probability
Characterizing a set of Measurements
The standard deviation
The standard deviation of a sample of measurements is
the positive square root of the variance; that is,
S = S2 = σ 2 = σ
SBE 304: Probability
Characterizing a set of Measurements
Graphical Methods – Frequency Histogram
A frequency distribution is a
tabulation of the values that one
or more variables take in a
sample. Each entry in the table
contains the frequency or count
of the occurrences of values
within a particular group or
interval, and in this way the
table summarizes the
distribution of values in the
sample.
Rank Degree of agreement Number
1 Strongly agree 20
2 Agree somewhat 30
3 Not sure 20
4 Disagree somewhat 15
5 Strongly disagree 15
23. 9/22/2018
23
SBE 304: Probability
Characterizing a set of Measurements
Graphical Methods – Frequency Histogram
0
5
10
15
20
25
30
35
Strongly agree Agree
somewhat
Not sure Disagree
somewhat
Strongly
disagree
1 2 3 4 5
Number
Number
g{tÇ~ lÉâg{tÇ~ lÉâg{tÇ~ lÉâg{tÇ~ lÉâ