SlideShare a Scribd company logo
8
Most read
11
Most read
13
Most read
Explain Something Different.
PROBABILITY
Meet Our Team
Student of Government College University
BSCS E2
Yaseen
Saleem
Ahtsham
Naseer
Roll-no 280 Roll-no 262 Roll-no 256
Roll-no 210
Roll-n0 232
Suleman
Khan
Ali
Ahsan
Khubaib
Raza
Today Learn
Attention Must require
Introduction
Probability and its Examples
Probability and its Properties
Difference between Probability and Permutation
Application in Computer Science
INTRODUCTION
The theory of probability was first developed in the seventeenth century when certain gambling games were
analyzed by the French mathematician Blaise Pascal. It was in these studies that Pascal discovered
various properties of Probability. In the eighteenth century, the French mathematician Laplace, who also
studied gambling, gave definition of the probability as the number of successful outcomes divided
by the number of total outcomes. (Real life Example).
Sample space and Event
 An experiment is a procedure that yields a given set of possible outcomes.
 The sample space of the experiment is the set of possible outcomes
 An event is a subset of the sample space.
Before we start Probability understand this Concpet
Event and Sample Spaces
Sample Space
The sample space is the set of all possible outcomes.
Simple Events
The individual outcomes are called simple events.
Event
An event is any collection
of one or more simple events
EXAMPLE
Solution:
P(heads) = 1/2
P(tails) = 1/2
Property:
If you add these two up, you will get 1, which means the answers are probably right.
If I flip a coin,
what is the probability I get heads?
What is the probability I get tails?
Remember, to think of how many possibilities there are.
EXAMPLE
When a die is tossed the sample space S of the experiment have the following six outcomes.
S = {1, 2, 3, 4, 5, 6}
Let E1 be the event that an even number occurs,
E2 be the event that an odd number occurs,
Then,
E1 = {2, 4, 6} E2 = {1, 3, 5}
What are the total possible outcomes if a dice is rolled?
Probability
The possibility of an event to occur in a sample space is known as Probability.
Let S be a finite sample space such that all the outcomes are equally likely to occur.
EXAMPLE:
What is the probability of getting a number greater than 4 when a dice is tossed?
SOLUTION:
When a dice is rolled its sample space is S={1,2,3,4,5,6}
Let E be the event that a number greater than 4 occurs.
Then, E = {5, 6}
Hence, possibility that number will be greater than 4 is,
Probability=1/3
Probability
Properties of Probability
• Probability is never negative
• Probability is never more than one.
• Probability always lies between 0 and 1
• Probability of impossible event is always equals to 0
• Probability of sure event is always equals to 1
• Sum of probability is always equal to 1 (p=1).
• Let p=Probability of interested events
q=Probability of uninterested events
Then, p+q=1
EXERCISE
SOLUTION:
i) There are four Ace’s in a deck of cards(as ace’s are 4 in 52 cards);
ii) There are two red Kings in a deck of cards(as two red King cards are there);
One card is drawn at random from an ordinary deck of 52 cards.
Find the probability p that
(i) It is Ace (ii) It is Red King
13
1
52
4
drawnbecancardswaysofnumberTotal
drawnbecansace'waysofNumber
p
26
1
52
2
drawnbecancardswaysofnumberTotal
drawnbecanKingsRedwaysofNumber
p
EXAMPLE
Solution:
• Since there are four red balls and five blue balls so if we take out one ball from the box
then there is possibility that it may be one of from four red and one of from five blue balls
hence there are total of nine possibilities. Thus we have
• The total number of possible outcomes = 4 + 5 = 9
• Now our favorable event is that we get the blue ball when we choose a ball from the box.
So we have
• The total number of favorable outcomes = 5
• Now we have Favorable outcomes 5 and our sample space has total outcomes 9 .Thus we
have
• The probability that a ball chosen = 5/9
An box contains four red and five blue balls. What is the probability that a
ball chosen from the box is blue?
EXAMPLE
SOLUTION:
The possible outcomes of this experiment are red, green, blue and yellow.
Total = 6+5+8+3 = 22
P(Red) = No. of ways to chose red/Total Marbles = 6/22 = 3/11
P(Green) = No. of ways to chose green/Total Marbles = 5/22
P(Blue) = No. of ways to chose blue/Total Marbles = 8/22 = 4/11
P(Yellow) = No. of ways to chose yellow/Total Marbles = 3/22
A glass jar contains 6 red, 5 green, 8 blue and 3 yellow marbles. If a single marble is
chosen at random from the jar, what is the probability of choosing a red marble? a green
marble? a blue marble? a yellow marble?
Example
Choose a number at random from 1 to 5. What is the probability of each outcome?
What is the probability that the number chosen is even?
What is the probability that the number chosen is odd?
SOLUTION:
The possible outcomes of this experiment are 1, 2, 3, 4 and 5.
Here, P(1)=P(2)=P(3)=P(4)=P(5) = Probability for any Number/Total Numbers = 1/5
P(Even) = No. of Even Numbers/Total Numbers = 2/5
P(Odd) = No. of Odd Numbers/Total Numbers = 3/5
Hence, the outcomes 1, 2, 3, 4 and 5 are equally likely to occur as a result of this experiment.
However, the events even and odd are not equally likely to occur, since there are 3 odd numbers
and only 2 even numbers from 1 to 5
Comparison Probabilty and Permutation
 Defination of Probability
 Formula of probability
 Example
A fair coin is tossed find probability of
(1) Head appears
(2) Tail appears
(3) Head or Tail appears
 Order
Here order does’nt matter.
 Defination of permutation
 Formula of Permutation
P(n,r) = n(n-1)(n-2)….(n-(n-r))
 Example
How many possible permutations can be made by
three letters .
A
B
C ? Here n=3
 Order
Here strictly we can say that order matters alot
)(
)(
inoutcomestotalofnumbrthe
inoutcomesofnumberthe
)(
Sn
En
S
E
EP 
Comparison Probabilty and Permutation
Keep in mind
 Tree diagrams in probability
 Answer judgment
The answer of sum of probabilities of an event are
equal to 1.
 Answer Range
Here the answer of probability lies between 0 and 1.
 Tree Diagrams
Here we can’t easily explain our answer
with tree diagrams
 Answer Judgment
Here we can’t judge the answer before solving
 Answer Range
The answer of permutation lies in between the
set of Natural numbers N
Probability in Computer Science
• During the past two decades probability theory has come to play an increasingly important role
in many areas of Computer Field.
• Machine Learning(Data mining )
• Information Retrieval (Web ..)
• Computer Vision
• Robotics
• Image Recovery
• Classification and clustering
Probability in Computer Science
Examples:
Transfer data over the net
Probability in Computer Science
Examples:
Error Correction in Hard disks Google algorithms
Thank You
WE ARE FIVE
K hubaib
A li
S uleman
A htesham
Y aseen
WeareFive@kasay.com We are Five We are Five

More Related Content

PPTX
PROBABILITY
PPTX
4.1-4.2 Sample Spaces and Probability
PPTX
Probability Distribution
PPTX
Conditional-Probability-Powerpoint.pptx
PPTX
Probablity ppt maths
PPTX
Probability
PPT
Basic Probability
PPT
Probability And Probability Distributions
PROBABILITY
4.1-4.2 Sample Spaces and Probability
Probability Distribution
Conditional-Probability-Powerpoint.pptx
Probablity ppt maths
Probability
Basic Probability
Probability And Probability Distributions

What's hot (20)

PPT
Basic concept of probability
PPTX
INTRODUCTION TO PROBABILITY.pptx
PPT
Probability Concepts Applications
PPTX
Probability
PPTX
SIM Basic Probability
DOCX
Matrices and determinants assignment
PPTX
LU2 Basic Probability
PDF
Discrete probability distributions
PPTX
Probability
PPTX
Probability
PPTX
Statistics & probability
PPTX
Probability
PPT
mutually-exclusive-events.ppt
PPTX
Geometric Distribution
PPTX
Probability
PPTX
Intro to probability
PPTX
Binomial distribution
PPTX
The Standard Normal Distribution
KEY
Random Variables
PPTX
2.2 laws of probability (1)
Basic concept of probability
INTRODUCTION TO PROBABILITY.pptx
Probability Concepts Applications
Probability
SIM Basic Probability
Matrices and determinants assignment
LU2 Basic Probability
Discrete probability distributions
Probability
Probability
Statistics & probability
Probability
mutually-exclusive-events.ppt
Geometric Distribution
Probability
Intro to probability
Binomial distribution
The Standard Normal Distribution
Random Variables
2.2 laws of probability (1)
Ad

Viewers also liked (12)

PPT
Probability Powerpoint
PPT
Basic Concept Of Probability
PPT
1614 probability-models and concepts
PPTX
WWU PCard Training
PPT
Lect 2 basic ppt
PDF
Newton law notes and problems
PPTX
Sesión 5 Medidas de tendencia central
PDF
Appl.Phys.Lett.2010_Murat.CUBUKCU
PDF
Scott Foret Resume 1-10-17
PPTX
RINCON DEL CAFE
DOCX
Programa para prevenir el uso de alcohol
PDF
Probability Powerpoint
Basic Concept Of Probability
1614 probability-models and concepts
WWU PCard Training
Lect 2 basic ppt
Newton law notes and problems
Sesión 5 Medidas de tendencia central
Appl.Phys.Lett.2010_Murat.CUBUKCU
Scott Foret Resume 1-10-17
RINCON DEL CAFE
Programa para prevenir el uso de alcohol
Ad

Similar to Basic probability Concepts and its application By Khubaib Raza (20)

PPT
Day 1 - Law of Large Numbers and Probability (1).ppt
PPTX
PROBABILITY.pptx
PDF
15 Probability 2.pdf for class x standard
DOCX
Unit 2 Probability
PPTX
2_Computing-Probabilities_statsandprobs.pptx
PPTX
History of probability CHAPTER 5 Engineering
PPT
probability
PPTX
Probability PART 1 - X NCERT
PDF
Chapter7ppt.pdf
PPTX
Probability theory
PPTX
Probability unit2.pptx
PPT
8919962.ppt
PPTX
Probability definitions and properties
PPT
Probability By Ms Aarti
PPTX
Probability and Python.pptx
PPT
Classical probability
PDF
Probability for engineering student module (2).pdf
PPTX
lesson4-intrduction to probability grade10
PPTX
Research Methodology for Science Students- Probability.pptx
PDF
POWERPOINTPROBABILITY POWERPOINTPROBABILITY
Day 1 - Law of Large Numbers and Probability (1).ppt
PROBABILITY.pptx
15 Probability 2.pdf for class x standard
Unit 2 Probability
2_Computing-Probabilities_statsandprobs.pptx
History of probability CHAPTER 5 Engineering
probability
Probability PART 1 - X NCERT
Chapter7ppt.pdf
Probability theory
Probability unit2.pptx
8919962.ppt
Probability definitions and properties
Probability By Ms Aarti
Probability and Python.pptx
Classical probability
Probability for engineering student module (2).pdf
lesson4-intrduction to probability grade10
Research Methodology for Science Students- Probability.pptx
POWERPOINTPROBABILITY POWERPOINTPROBABILITY

Recently uploaded (20)

PPTX
Non-Verbal-Communication .mh.pdf_110245_compressed.pptx
PPTX
worship songs, in any order, compilation
PPTX
_ISO_Presentation_ISO 9001 and 45001.pptx
PPTX
BIOLOGY TISSUE PPT CLASS 9 PROJECT PUBLIC
DOCX
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
DOC
学位双硕士UTAS毕业证,墨尔本理工学院毕业证留学硕士毕业证
PPTX
Learning-Plan-5-Policies-and-Practices.pptx
PPTX
Tour Presentation Educational Activity.pptx
PDF
Swiggy’s Playbook: UX, Logistics & Monetization
PPTX
Relationship Management Presentation In Banking.pptx
PPTX
Understanding-Communication-Berlos-S-M-C-R-Model.pptx
PPTX
Impressionism_PostImpressionism_Presentation.pptx
PPTX
Tablets And Capsule Preformulation Of Paracetamol
PPTX
2025-08-10 Joseph 02 (shared slides).pptx
PPTX
INTERNATIONAL LABOUR ORAGNISATION PPT ON SOCIAL SCIENCE
PPTX
nose tajweed for the arabic alphabets for the responsive
PPTX
Effective_Handling_Information_Presentation.pptx
PDF
Instagram's Product Secrets Unveiled with this PPT
PPTX
Emphasizing It's Not The End 08 06 2025.pptx
PPTX
An Unlikely Response 08 10 2025.pptx
Non-Verbal-Communication .mh.pdf_110245_compressed.pptx
worship songs, in any order, compilation
_ISO_Presentation_ISO 9001 and 45001.pptx
BIOLOGY TISSUE PPT CLASS 9 PROJECT PUBLIC
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
学位双硕士UTAS毕业证,墨尔本理工学院毕业证留学硕士毕业证
Learning-Plan-5-Policies-and-Practices.pptx
Tour Presentation Educational Activity.pptx
Swiggy’s Playbook: UX, Logistics & Monetization
Relationship Management Presentation In Banking.pptx
Understanding-Communication-Berlos-S-M-C-R-Model.pptx
Impressionism_PostImpressionism_Presentation.pptx
Tablets And Capsule Preformulation Of Paracetamol
2025-08-10 Joseph 02 (shared slides).pptx
INTERNATIONAL LABOUR ORAGNISATION PPT ON SOCIAL SCIENCE
nose tajweed for the arabic alphabets for the responsive
Effective_Handling_Information_Presentation.pptx
Instagram's Product Secrets Unveiled with this PPT
Emphasizing It's Not The End 08 06 2025.pptx
An Unlikely Response 08 10 2025.pptx

Basic probability Concepts and its application By Khubaib Raza

  • 2. Meet Our Team Student of Government College University BSCS E2 Yaseen Saleem Ahtsham Naseer Roll-no 280 Roll-no 262 Roll-no 256 Roll-no 210 Roll-n0 232 Suleman Khan Ali Ahsan Khubaib Raza
  • 3. Today Learn Attention Must require Introduction Probability and its Examples Probability and its Properties Difference between Probability and Permutation Application in Computer Science
  • 4. INTRODUCTION The theory of probability was first developed in the seventeenth century when certain gambling games were analyzed by the French mathematician Blaise Pascal. It was in these studies that Pascal discovered various properties of Probability. In the eighteenth century, the French mathematician Laplace, who also studied gambling, gave definition of the probability as the number of successful outcomes divided by the number of total outcomes. (Real life Example).
  • 5. Sample space and Event  An experiment is a procedure that yields a given set of possible outcomes.  The sample space of the experiment is the set of possible outcomes  An event is a subset of the sample space. Before we start Probability understand this Concpet
  • 6. Event and Sample Spaces Sample Space The sample space is the set of all possible outcomes. Simple Events The individual outcomes are called simple events. Event An event is any collection of one or more simple events
  • 7. EXAMPLE Solution: P(heads) = 1/2 P(tails) = 1/2 Property: If you add these two up, you will get 1, which means the answers are probably right. If I flip a coin, what is the probability I get heads? What is the probability I get tails? Remember, to think of how many possibilities there are.
  • 8. EXAMPLE When a die is tossed the sample space S of the experiment have the following six outcomes. S = {1, 2, 3, 4, 5, 6} Let E1 be the event that an even number occurs, E2 be the event that an odd number occurs, Then, E1 = {2, 4, 6} E2 = {1, 3, 5} What are the total possible outcomes if a dice is rolled?
  • 9. Probability The possibility of an event to occur in a sample space is known as Probability. Let S be a finite sample space such that all the outcomes are equally likely to occur. EXAMPLE: What is the probability of getting a number greater than 4 when a dice is tossed? SOLUTION: When a dice is rolled its sample space is S={1,2,3,4,5,6} Let E be the event that a number greater than 4 occurs. Then, E = {5, 6} Hence, possibility that number will be greater than 4 is, Probability=1/3
  • 10. Probability Properties of Probability • Probability is never negative • Probability is never more than one. • Probability always lies between 0 and 1 • Probability of impossible event is always equals to 0 • Probability of sure event is always equals to 1 • Sum of probability is always equal to 1 (p=1). • Let p=Probability of interested events q=Probability of uninterested events Then, p+q=1
  • 11. EXERCISE SOLUTION: i) There are four Ace’s in a deck of cards(as ace’s are 4 in 52 cards); ii) There are two red Kings in a deck of cards(as two red King cards are there); One card is drawn at random from an ordinary deck of 52 cards. Find the probability p that (i) It is Ace (ii) It is Red King 13 1 52 4 drawnbecancardswaysofnumberTotal drawnbecansace'waysofNumber p 26 1 52 2 drawnbecancardswaysofnumberTotal drawnbecanKingsRedwaysofNumber p
  • 12. EXAMPLE Solution: • Since there are four red balls and five blue balls so if we take out one ball from the box then there is possibility that it may be one of from four red and one of from five blue balls hence there are total of nine possibilities. Thus we have • The total number of possible outcomes = 4 + 5 = 9 • Now our favorable event is that we get the blue ball when we choose a ball from the box. So we have • The total number of favorable outcomes = 5 • Now we have Favorable outcomes 5 and our sample space has total outcomes 9 .Thus we have • The probability that a ball chosen = 5/9 An box contains four red and five blue balls. What is the probability that a ball chosen from the box is blue?
  • 13. EXAMPLE SOLUTION: The possible outcomes of this experiment are red, green, blue and yellow. Total = 6+5+8+3 = 22 P(Red) = No. of ways to chose red/Total Marbles = 6/22 = 3/11 P(Green) = No. of ways to chose green/Total Marbles = 5/22 P(Blue) = No. of ways to chose blue/Total Marbles = 8/22 = 4/11 P(Yellow) = No. of ways to chose yellow/Total Marbles = 3/22 A glass jar contains 6 red, 5 green, 8 blue and 3 yellow marbles. If a single marble is chosen at random from the jar, what is the probability of choosing a red marble? a green marble? a blue marble? a yellow marble?
  • 14. Example Choose a number at random from 1 to 5. What is the probability of each outcome? What is the probability that the number chosen is even? What is the probability that the number chosen is odd? SOLUTION: The possible outcomes of this experiment are 1, 2, 3, 4 and 5. Here, P(1)=P(2)=P(3)=P(4)=P(5) = Probability for any Number/Total Numbers = 1/5 P(Even) = No. of Even Numbers/Total Numbers = 2/5 P(Odd) = No. of Odd Numbers/Total Numbers = 3/5 Hence, the outcomes 1, 2, 3, 4 and 5 are equally likely to occur as a result of this experiment. However, the events even and odd are not equally likely to occur, since there are 3 odd numbers and only 2 even numbers from 1 to 5
  • 15. Comparison Probabilty and Permutation  Defination of Probability  Formula of probability  Example A fair coin is tossed find probability of (1) Head appears (2) Tail appears (3) Head or Tail appears  Order Here order does’nt matter.  Defination of permutation  Formula of Permutation P(n,r) = n(n-1)(n-2)….(n-(n-r))  Example How many possible permutations can be made by three letters . A B C ? Here n=3  Order Here strictly we can say that order matters alot )( )( inoutcomestotalofnumbrthe inoutcomesofnumberthe )( Sn En S E EP 
  • 16. Comparison Probabilty and Permutation Keep in mind  Tree diagrams in probability  Answer judgment The answer of sum of probabilities of an event are equal to 1.  Answer Range Here the answer of probability lies between 0 and 1.  Tree Diagrams Here we can’t easily explain our answer with tree diagrams  Answer Judgment Here we can’t judge the answer before solving  Answer Range The answer of permutation lies in between the set of Natural numbers N
  • 17. Probability in Computer Science • During the past two decades probability theory has come to play an increasingly important role in many areas of Computer Field. • Machine Learning(Data mining ) • Information Retrieval (Web ..) • Computer Vision • Robotics • Image Recovery • Classification and clustering
  • 18. Probability in Computer Science Examples: Transfer data over the net
  • 19. Probability in Computer Science Examples: Error Correction in Hard disks Google algorithms
  • 20. Thank You WE ARE FIVE K hubaib A li S uleman A htesham Y aseen WeareFive@kasay.com We are Five We are Five