What is Probability? Probability. Sample Spaces and Events. Simple Event

Similar documents
Conditional Probability

Statistics for Managers Using Microsoft Excel/SPSS Chapter 4 Basic Probability And Discrete Probability Distributions

2011 Pearson Education, Inc

Expected Value 7/7/2006

LECTURE NOTES by DR. J.S.V.R. KRISHNA PRASAD

Mathematics. ( : Focus on free Education) (Chapter 16) (Probability) (Class XI) Exercise 16.2

Deep Learning for Computer Vision

Statistics for Managers Using Microsoft Excel (3 rd Edition)


Lecture Lecture 5

Probability Pearson Education, Inc. Slide

PROBABILITY CHAPTER LEARNING OBJECTIVES UNIT OVERVIEW

Probability (10A) Young Won Lim 6/12/17

CS206 Review Sheet 3 October 24, 2018

STAT 430/510 Probability

V. RANDOM VARIABLES, PROBABILITY DISTRIBUTIONS, EXPECTED VALUE

Homework 4 Solution, due July 23

Quantitative Methods for Decision Making

Probabilistic models

STA 2023 EXAM-2 Practice Problems From Chapters 4, 5, & Partly 6. With SOLUTIONS

Lecture 1 : The Mathematical Theory of Probability

2. Conditional Probability

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then

First Digit Tally Marks Final Count

STA 2023 EXAM-2 Practice Problems. Ven Mudunuru. From Chapters 4, 5, & Partly 6. With SOLUTIONS

What is a random variable

CSC Discrete Math I, Spring Discrete Probability

Discrete Probability Distribution

CS4705. Probability Review and Naïve Bayes. Slides from Dragomir Radev

Discrete random variables and probability distributions

4/17/2012. NE ( ) # of ways an event can happen NS ( ) # of events in the sample space

Events A and B are said to be independent if the occurrence of A does not affect the probability of B.

Probability. VCE Maths Methods - Unit 2 - Probability

Statistics for Business and Economics

Chapter 2 PROBABILITY SAMPLE SPACE

Conditional Probability and Bayes Theorem (2.4) Independence (2.5)

(i) Given that a student is female, what is the probability of having a GPA of at least 3.0?

Dept. of Linguistics, Indiana University Fall 2015

Business Statistics MBA Pokhara University

Sec$on Summary. Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability

Chapter 4 - Introduction to Probability

Chapter 2: The Random Variable

Probability deals with modeling of random phenomena (phenomena or experiments whose outcomes may vary)

Introduction to Probability

Conditional Probability

Probability the chance that an uncertain event will occur (always between 0 and 1)

Chapter. Probability

9/6/2016. Section 5.1 Probability. Equally Likely Model. The Division Rule: P(A)=#(A)/#(S) Some Popular Randomizers.

The enumeration of all possible outcomes of an experiment is called the sample space, denoted S. E.g.: S={head, tail}

Basic Concepts of Probability

Basic Concepts of Probability

27 Binary Arithmetic: An Application to Programming

4th IIA-Penn State Astrostatistics School July, 2013 Vainu Bappu Observatory, Kavalur

UNIT 5 ~ Probability: What Are the Chances? 1

Discrete Random Variables

TOPIC 12 PROBABILITY SCHEMATIC DIAGRAM

SDS 321: Introduction to Probability and Statistics

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

M378K In-Class Assignment #1

ECE 450 Lecture 2. Recall: Pr(A B) = Pr(A) + Pr(B) Pr(A B) in general = Pr(A) + Pr(B) if A and B are m.e. Lecture Overview

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

Basic Statistics for SGPE Students Part II: Probability theory 1

Discrete Random Variable

Introduction to probability

Steve Smith Tuition: Maths Notes

Probability Theory and Applications

Part (A): Review of Probability [Statistics I revision]

Chapter 2.5 Random Variables and Probability The Modern View (cont.)

CHAPTER 4 PROBABILITY AND PROBABILITY DISTRIBUTIONS

STATISTICS HIGHER SECONDARY - SECOND YEAR. A Publication under Government of Tamilnadu Distribution of Free Textbook Programme )NOT FOR SALE(

Bayes Rule for probability

The Bernoulli distribution has only two outcomes, Y, success or failure, with values one or zero. The probability of success is p.

3rd IIA-Penn State Astrostatistics School July, 2010 Vainu Bappu Observatory, Kavalur

PERMUTATIONS, COMBINATIONS AND DISCRETE PROBABILITY

CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 7 Probability. Outline. Terminology and background. Arthur G.

Probability Distributions for Discrete RV

A Event has occurred

MODULE 2 RANDOM VARIABLE AND ITS DISTRIBUTION LECTURES DISTRIBUTION FUNCTION AND ITS PROPERTIES

Probability Year 10. Terminology

EE 178 Lecture Notes 0 Course Introduction. About EE178. About Probability. Course Goals. Course Topics. Lecture Notes EE 178

Statistics for Engineers

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

Probability Year 9. Terminology

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

PROBABILITY.

Statistical methods in recognition. Why is classification a problem?

F71SM STATISTICAL METHODS

Term Definition Example Random Phenomena

Chapter 3 : Conditional Probability and Independence

324 Stat Lecture Notes (1) Probability

More on Distribution Function

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

Chapter 13, Probability from Applied Finite Mathematics by Rupinder Sekhon was developed by OpenStax College, licensed by Rice University, and is

Introduction to Probability 2017/18 Supplementary Problems

Discrete Random Variables

STAT:5100 (22S:193) Statistical Inference I

I - Probability. What is Probability? the chance of an event occuring. 1classical probability. 2empirical probability. 3subjective probability

Applied Statistics I

Transcription:

What is Probability? Probability Peter Lo Probability is the numerical measure of likelihood that the event will occur. Simple Event Joint Event Compound Event Lies between 0 & 1 Sum of events is 1 1.5 Certain CS218 Peter Lo 2004 1 CS218 Peter Lo 2004 2 0 Impossible Sample Spaces and Events Simple Event Sample Space Complete Collection of Outcomes (the set S) Simple Event (Sample Point) Outcome With 1 Characteristic; a particular outcome, i.e, an element in S. Joint Event 2 Events Occurring Simultaneously Compound Event One or Another Event Occurring Impossible Event The empty set in S. CS218 Peter Lo 2004 3 A. Female B. Under age 20, < 20 C. Has 3 credit cards D. Red card from a deck of bridge cards E. Ace card from a deck of bridge cards CS218 Peter Lo 2004 4

Joint Event A and B, (A B): Female, Under age 20 D and E, (D E): Red, ace card from bridge deck Compound Event D or E, (D E): Ace or Red card from bridge deck CS218 Peter Lo 2004 5 CS218 Peter Lo 2004 6 Theorems of Probability The sample space S consist of the 6 possible numbers, S = {1, 2, 3, 4, 5, 6} Event that an even number occurs, A = {2, 4, 6} Event that an odd number occurs, B = {1, 3, 5} Event that a prime number occurs, C = {2, 3, 5} Event that an even number or a prime number occurs, A C = {2, 3, 4, 5, 6} Event that an odd prime number occurs, B C = {3, 5} Event that a prime number does not occurs, C ={1, 4, 6} Let S be a sample space, let E be the class of events, and let P be a real-value function defined on E. Then P is called a Probability Function, and P(A) is called the probability of the event A if the following hold: For every event A, 0 P(A) 1 P(S) = 1 If A and B are mutually exclusive events, then P(A B) = P(A) + P(B) If A 1, A 2, is a sequence of mutually exclusive events, then P(A 1 A 2 ) = P(A 1 ) + P(A 2 ) + CS218 Peter Lo 2004 7 CS218 Peter Lo 2004 8

Theorems of Probability For two events A and B, P ( ) = 0 P(A ) = 1 P(A) If A B, then P(A) P(B) P(A\B) = P(A) P(A B) P(A B) = P(A) + P(B) P(A B) Type of Sample Spaces Finite Probability Spaces A finite probability space is one in which the set S contains a finite number of elements. Finite Equiprobable Spaces A probability space is equiprobable if it is finite and the probability mass are all equal. CS218 Peter Lo 2004 9 CS218 Peter Lo 2004 10 Three horses A, B, and C are in a race; A is twice as likely to win as B and B is twice as likely to win as C. What are their respective probabilities of winning, i.e. P(A), P(B) and P(C)? Let a card be selected at random from an ordinary pack of 52 cards. Let A= {the card is a spade} and B = {the card is a face card}. What is P(A), P(B) and P(A B)? CS218 Peter Lo 2004 11 CS218 Peter Lo 2004 12

Probability of Simple Event P(Event) = X / T X = number of outcomes in which the event occurs T = total number of possible events 100 Parts Inspected, 2 Defects! Conditional Probability The conditional probability that B occurs, given that A occurred, is defined by P( A B) P( B A) = P( A) Chain Rule for Conditional Probabilities CS218 Peter Lo 2004 13 CS218 Peter Lo 2004 14 Multiplication Theorem For any events, A 1, A 2, A n, P(A 1 A 2 A n ) = P(A 1 )P(A 2 A 1 )P(A 3 A 1 A 2 ) P(A n A 1 A 2 A n-1 ) CS218 Peter Lo 2004 15 CS218 Peter Lo 2004 16

A lot contains 12 items of which 4 are defective. Three items are drawn at random from the lot one after the other. Find the probability p that all three are not defective. Joint Probability Using Contingency Table Event Event B 1 B 2 Total A 1 P(A1 B1) P(A 1 B2) P(A1) A2 P(A2 B1) P(A 2 B2) P(A2) Total P(B1) P(B2) 1 Joint Probability Marginal (Simple) Probability CS218 Peter Lo 2004 17 CS218 Peter Lo 2004 18 Simple Event Find the probability for a joint event that a female, and age under 20 is drawn. Female >20 Total 47 16 63 Male 45 22 67 Total 92 38 130 S = {F,<20; F,>20; M,<20; M,>20} <20 Sample Space Count Total CS218 Peter Lo 2004 19 Stochastic Process & Tree Diagrams A (Finite) sequence of experiments in which each experiment has a finite number of outcomes was given probabilities is called a (finite) Stochastic Process. A convenient way of describing such a process and computing the probability of any event is by a Tree Diagram. CS218 Peter Lo 2004 20

Independence Find the probability of selecting 2 pens from 20 pens which 14 in blue and 6 in red and not replace. P(R) = 6/20 P(B) = 14/20 R B P(R R) = 5/19 P(B R) = 14/19 P(R B) = 6/19 P(B B) = 13/19 CS218 Peter Lo 2004 21 R B R B An event B is said to be independent of an event A if the probability that B occurs is not influenced by whether A has or has not occurred. Event A and B are independent if P(A B) = P(A)P(B); Otherwise they are dependent. CS218 Peter Lo 2004 22 Answer Let a fair coin be tossed three times; we obtain the equiprobable space S= {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}. Consider the events A = {first toss is heads}, B = {second toss is heads}, C = {exactly two heads are tossed in a row}. Show that A and B and A and C are independent events, and that B and C are dependent events. CS218 Peter Lo 2004 23 CS218 Peter Lo 2004 24

Repeated Trials Let S be a finite probability space. By n- Independent or Repeated Trials, we mean the probability space T consisting of ordered n-tuples of elements of S with the probability of an n-tuple defined to be the product of the probabilities of its components: P(S 1, S 2,, S n ) = P(S 1 )P(S 2 ) P(S n ) Whenever three horses a, b, and c race together, their respective probabilities of winning are 1/2, 1/3 and 1/6. In other words, S = {a, b, c} with P(a) = 1/2, P(b) = 1/3 and P(c) = 1/6. If the horses race twice, what is the probability of horse a winning the first race and horse c winning the second race? CS218 Peter Lo 2004 25 CS218 Peter Lo 2004 26 Random Variables Distribution A Random Variable X is a rule that assigns a numerical value to each outcome in a sample space S. Experiment Make 100 Sales Calls Inspect 70 Radios Answer 33 Questions Random Variables No. of Sales No. of Defective No. of Correct Possible Values 0, 1, 2,..., 100 0, 1, 2,..., 70 0, 1, 2,..., 33 Event: Toss 2 Coins. Count No. of Tails. Probability Distribution Values, X i Probabilities, P(X i ) 0 1/4 =.25 1 2/4 =.50 2 1/4 =.25 Count Cars at Toll between 11:00 & 1:00 No. of Car Arriving 0, 1, 2,..., n CS218 Peter Lo 2004 27 CS218 Peter Lo 2004 28

Expectation Expected Value Mean of Probability Distribution Weighted Average of All Possible Values µ = E(X) = ΣX i P(X i ) Variance Weighted Average Squared Deviation about Mean σ 2 = E[ (X i µ) 2 ] = Σ (X i µ) 2 P(X i ) In a game a player is paid $5 if he gets all heads or all tails when three coins are tossed, and he will pay out $3 if either one or two heads show. What is his expected gain (or loss) per game? CS218 Peter Lo 2004 29 CS218 Peter Lo 2004 30 Answer Three coins are tossed, the sample space S = {HHH, HHT, HTH, THH, HTT, THT, TTH, TTT}. Assume unbiased coins, so any one of these eight outcomes have equal chance of, say, P(HHT) = P(H)P(H)P(T) = (1/2)*(1/2)*(1/2) = 1/8. Let E1 = {HHH, TTT}, and E2 = {the other 6 outcomes}. P{E1} = 1/8 + 1/8 = 1/4, and P{E2} = 1-1/4 = 3/4. It follows that the expected value is µ = $5*(1/4) - $3*(3/4) = -$1. So the player is expected to lose one dollar per game. CS218 Peter Lo 2004 31 CS218 Peter Lo 2004 32

Answer A lot containing 7 components is sampled by a quality inspector; the lot contains 4 good components and 3 defective ones. A sample of 3 is taken by the inspector. Find the expected value of the number of good components in this sample. CS218 Peter Lo 2004 33 CS218 Peter Lo 2004 34 Answer Binomial Distribution Properties C C f ( x) = 4 3 x 3 x 7 C3 CS218 Peter Lo 2004 35 Two Different Sampling Methods Infinite Population Without Replacement Finite Population With Replacement Sequence of n Identical Trials Each Trial has 2 Outcomes Success (Desired Outcome) or Failure Constant Trial Probability Trials are Independent CS218 Peter Lo 2004 36

Binomial Probability Distribution Function n ( k) Probability of x successes Pick x from n n! P X k n p k n k p k p n k ( =, ) = ( 1 )!( )! Probability of (n-k) failures P(X= k n,p) = probability that X = k given n & p n = sample size p = probability of success k = number of successes in sample (X = 0, 1, 2,..., n) CS218 Peter Lo 2004 37 A fair die is tossed 180 times. Find the expected number of sixes, and the standard deviation. CS218 Peter Lo 2004 38 Bayes Theorem Formula Toss 1 Coin 4 times in a row. What s the Probability of 3 tails? n! P X x n p x n x p x ( =, ) = ( 1!( )! p ) 4! P( X = 3 4,. 5) =!( )!. ( 3 4 3 5 1. 5) n x 3 4 3 P(B A) = i Same Event = P(A Bi) P(B i) P(A B ) P(B ) + L + P(A B ) P(B ) P(Bi A) P(A) 1 1 k k All B i s are the same event (e.g. B 2 )! CS218 Peter Lo 2004 =.25 39 CS218 Peter Lo 2004 40

A box contains 12 items of which 4 are in red color. Three items are drawn at random from the box one after the other. Find the probability that all three are not in red color. Probability = (8/12)(7/11)(6/10) = 14/55 CS218 Peter Lo 2004 41