Econ 325: Introduction to Empirical Economics

Similar documents
Properties of Probability

2011 Pearson Education, Inc

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

Statistics for Managers Using Microsoft Excel (3 rd Edition)

Statistics for Business and Economics

STAT Chapter 3: Probability

Introduction to probability

Preliminary Statistics Lecture 2: Probability Theory (Outline) prelimsoas.webs.com

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

CMPSCI 240: Reasoning about Uncertainty

Chapter 14. From Randomness to Probability. Copyright 2012, 2008, 2005 Pearson Education, Inc.

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

Announcements. Topics: To Do:

Review of Basic Probability

Topic 2 Probability. Basic probability Conditional probability and independence Bayes rule Basic reliability

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

Lecture notes for probability. Math 124

Single Maths B: Introduction to Probability

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

1 Probability Theory. 1.1 Introduction

Outline Conditional Probability The Law of Total Probability and Bayes Theorem Independent Events. Week 4 Classical Probability, Part II

Review Basic Probability Concept

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

Statistical Theory 1

AP Statistics Ch 6 Probability: The Study of Randomness

Lecture 3 Probability Basics

Lecture 1. ABC of Probability

Probability Theory and Applications

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

Fundamentals of Probability CE 311S

Probability- describes the pattern of chance outcomes

Statistical Inference

MA : Introductory Probability

Introduction to Probability and Stocastic Processes - Part I

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14

Probability Theory Review

Topic -2. Probability. Larson & Farber, Elementary Statistics: Picturing the World, 3e 1

Dept. of Linguistics, Indiana University Fall 2015

Today we ll discuss ways to learn how to think about events that are influenced by chance.

Chapter 4 - Introduction to Probability

2.4. Conditional Probability

Statistics for Engineers

Basic Statistics and Probability Chapter 3: Probability

Axioms of Probability

Probability & Random Variables

Lecture 4 Bayes Theorem

Lecture 4 Bayes Theorem

Introduction to Probability

HW MATH425/525 Lecture Notes 1

Lecture Lecture 5

PERMUTATIONS, COMBINATIONS AND DISCRETE PROBABILITY

STAT509: Probability

Event A: at least one tail observed A:

CIVL Why are we studying probability and statistics? Learning Objectives. Basic Laws and Axioms of Probability

7.1 What is it and why should we care?

Venn Diagrams; Probability Laws. Notes. Set Operations and Relations. Venn Diagram 2.1. Venn Diagrams; Probability Laws. Notes

Relative Risks (RR) and Odds Ratios (OR) 20

Axioms of Probability. Set Theory. M. Bremer. Math Spring 2018

ECE353: Probability and Random Processes. Lecture 2 - Set Theory

Chapter 6: Probability The Study of Randomness

Deep Learning for Computer Vision

Probability (Devore Chapter Two)

3.2 Probability Rules

Chapter 2 PROBABILITY SAMPLE SPACE

Introduction to Probability. Ariel Yadin. Lecture 1. We begin with an example [this is known as Bertrand s paradox]. *** Nov.

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

Stats Probability Theory

Probabilistic models

Recitation 2: Probability

Mutually Exclusive Events

STAT 430/510 Probability

Consider an experiment that may have different outcomes. We are interested to know what is the probability of a particular set of outcomes.

Independence. P(A) = P(B) = 3 6 = 1 2, and P(C) = 4 6 = 2 3.

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

2. AXIOMATIC PROBABILITY

Lecture 4 : Conditional Probability and Bayes Theorem 0/ 26

Presentation on Theo e ry r y o f P r P o r bab a il i i l t i y

MATH 10 INTRODUCTORY STATISTICS

Lecture 2. Conditional Probability

STA Module 4 Probability Concepts. Rev.F08 1

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

Chapter 1 (Basic Probability)

Mean, Median and Mode. Lecture 3 - Axioms of Probability. Where do they come from? Graphically. We start with a set of 21 numbers, Sta102 / BME102

Chapter 7 Wednesday, May 26th

Basic Concepts of Probability

M378K In-Class Assignment #1

Week 2: Probability: Counting, Sets, and Bayes

Lecture 9: Naive Bayes, SVM, Kernels. Saravanan Thirumuruganathan

Topic 2: Probability & Distributions. Road Map Probability & Distributions. ECO220Y5Y: Quantitative Methods in Economics. Dr.

3.1 Events, Sample Spaces, and Probability

Lecture 3 - Axioms of Probability

Probability, Random Processes and Inference

Lecture 1. Chapter 1. (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 ( ). 1. What is Statistics?

A survey of Probability concepts. Chapter 5

Lecture 2 31 Jan Logistics: see piazza site for bootcamps, ps0, bashprob

Probability. Chapter 1 Probability. A Simple Example. Sample Space and Probability. Sample Space and Event. Sample Space (Two Dice) Probability

2) There should be uncertainty as to which outcome will occur before the procedure takes place.

Math 493 Final Exam December 01

Information Science 2

Transcription:

Econ 325: Introduction to Empirical Economics Lecture 2 Probability Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-1

3.1 Definition Random Experiment a process leading to an uncertain outcome Basic Outcome a possible outcome of a random experiment Sample Space the collection of all possible outcomes of a random experiment Event any subset of basic outcomes from the sample space Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-2

Example Let the Sample Space be the collection of all possible outcomes of rolling one die: S = [1, 2, 3, 4, 5, 6] Let A be the event Number rolled is even Let B be the event Number rolled is at least 4 Then A = [2, 4, 6] and B = [4, 5, 6] Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-3

Clicker Question 2-1 What is Sample Space of rolling two dice? A). S = [(1,1),(1,2),,(1,6), (2,1),(2,2),,(2,6), (3,1),,(3,6), (4,1),, (4,6), (5,1),, (5,6), (6,1),,(6.6)] B). S = [(1,1),(1,2),,(1,6), (2,2),,(2,6), (3,3),,(3,6), (4,4),(4,5),(4,6), (5,5),(5,6), (6.6)] C). It depends on how you define sample space. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-4

Clicker Question For A, the order is taken into account to define basic outcomes, and there are 36 basic outcomes. For B, the order does not matter. For example, (2,1) is the same outcome as (1,2). In this case, there are 21 basic outcomes. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-5

Sample Space for A Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-6

Definition Intersection of Events If A and B are two events in a sample space S, then the intersection, A B, is the set of all outcomes in S that belong to both A and B S A A B B Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-7

Definition Union of Events If A and B are two events in a sample space S, then the union, A U B, is the set of all outcomes in S that belong to either A or B S A B The entire shaded area represents A U B Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-8

Definition The Complement of an event A is the set of all basic outcomes in the sample space that do not belong to A. The complement is denoted A S A A Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-9

Properties of Set Operations Commutative: A B = B A, A B = B Associative: (A B) C = A (B C) Distributive Law: A (B C) = (A B) (A C) A (B C) = (A B) (A C) De Morgan s Law: (A B) = A B (A B) = A B A Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-10

Examples S = [1, 2, 3, 4, 5, 6] A = [2, 4, 6] B = [4, 5, 6] Complements: A = [1, 3, 5] B = [1, 2, 3] Intersections: A B = [4, 6] A B = [5] Unions: A B = [2, 4, 5, 6] A B = [1,2,3,4,6] A A = [1, 2, 3, 4, 5, 6] = S Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-11

Definition Events E 1, E 2, E k are Collectively Exhaustive events if E 1 U E 2 U... U E k = S i.e., the collection of events are collectively exhaustive if they completely cover the sample space. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-12

Definition A and B are Mutually Exclusive Events if they have no basic outcomes in common i.e., the set A B is empty S A B Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-13

True or False S = [1, 2, 3, 4, 5, 6] A = [2, 4, 6], B = [4, 5, 6] A and B are mutually exclusive. A). True B). False Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-14

True or False S = [1, 2, 3, 4, 5, 6] A = [2, 4, 6], B = [4, 5, 6], C = [1, 3, 5] A, B, and C are collectively exhaustive. A). True B). False Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-15

True or False Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-16

Example Consider a set A and its complement A. A and A is mutually exclusive because they share no common element. A and A is collectively exhaustive because their union covers all elements in the sample space. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-17

Clicker Question 2-2 For any two events A and B, 1. (A B) (A B) is empty. 2. A = (A B) (A B) A). Both 1 and 2 are true. B). Both 1 and 2 are false. C). 1 is true and 2 is false. D). 1 is false and 2 is true. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-18

Probability Rolling a fair die, what is the probability of A = [2,4,6]? P(A) = 1/2 Are you sure? How can we define the probability of event A? Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-19

Probability as relative frequency Consider repeating the experiment times. Count the number of times that event A occurred: The relative frequency is Take the limit of n n A n n n A P(A) = = lim n A n n number of events in the population that satisfy event A total number of events in the population Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-20

Clicker Question 2-3 If two dice are rolled, what is the probability that the sum of two numbers is less than or equal to 3? A). 1/3 B). 1/6 C). 1/12 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-21

Clicker Question What is the probability that the sum of the numbers is less than or equal to 3? Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-22

Counting the Possible Outcomes Use the Combinations formula to determine the number of unordered ways in which k objects can be selected from n objects C n k = k!(n n! k)! where n! = n(n-1)(n-2) (1) 0! = 1 by definition Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-23

Example A personnel officer has 5 candidates to fill 2 positions. 3 candidates are men and 2 candidates are women. If every candidate is equally likely to be chosen, what is the probability that no women will be hired? Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-24

Example The total number of possible combinations: 5! 5 4 3 2 1 20 C 5 2 = = = = 10 2! (5 2)! 2 1 (3 2 1) 2 The number of possible combinations that both hired persons are men: 3! 3 2 1 6 C 3 2 = = = = 3 2! (3 2)! 2 1 (1) 2 The probability that no women is hired: 3/10=30% Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-25

Example Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-26

Probability as a set function 1. 2. Probability is a real-valued set function P that assigns, to each event A in the sample space S, a number P(A) that satisfies the following three properties: P(A) 0 P(S) = 1 3. If A 1, A 2,, A k are mutually exclusive events, then P(A 1 A 2... A k ) = P(A 1 )+ P(A 2 )+... + P(A k ) for any positive integer k. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-27

3.3 Probability Rules The Complement rule: P( A) = 1 P(A) i.e., P(A) + P(A) = 1 The Addition rule: The probability of the union of two events is P(A B) = P(A)+ P(B) P(A B) Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-28

A Probability Table Probabilities and joint probabilities for two events A and B are summarized in this table: B B A P(A B) P(A B) P(A) A P( A B) P( A B) P(A) P(B) P(B) P(S) = 1.0 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-29

Addition Rule Example Consider a standard deck of 52 cards, with four suits: Let event A = card is an Ace Let event B = card is from a red suit Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-30

Addition Rule Example (continued) P(Red U Ace) = P(Red) + P(Ace) - P(Red Ace) = 26/52 + 4/52-2/52 = 28/52 Color Type Red Black Total Ace 2 2 4 Non-Ace 24 24 48 Total 26 26 52 Don t count the two red aces twice! Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-31

Addition Rule Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-32

Clicker Question 2-4 True or false? P(A) = P(A B) + P(A B) A). True B). False C). Depends on case by case Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-33

Conditional Probability A conditional probability is the probability of one event, given that another event has occurred: P(A B) = P(A B) P(B) The conditional probability of A given that B has occurred P(B A) = P(A B) P(A) The conditional probability of B given that A has occurred Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-34

Clicker Question 2-5 Throw a fair die. I tell you that the outcome is an even number. What is the probability of having rolled a ``6 given the information that it is an ``even number? A). 1/2 B). 1/3 C). 1/6 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-35

Clicker Question A = [6] B = [2, 4, 6] P( A B) 1/ 6 P( A B) = = = P( B) 1/ 2 1 3 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-36

Clicker Question 2-6 Roll two dice. What is the probability that at least one die is equal to 2 when the sum of two numbers is less than or equal to 3? A). 1/2 B). 1/3 C). 1/4 D). 2/3 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-37

Multiplication Rule Multiplication rule for two events A and B: P(A B) = P(A B)P(B) also P(A B) = P(B A)P(A) Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-38

Multiplication Rule Example P(Red Ace) = P(Red Ace)P(Ace) = 2 4 4 52 = 2 52 = number of cards that are red and ace total number of cards Color Type Red Black Total Ace 2 2 4 Non-Ace 24 24 48 Total 26 26 52 = 2 52 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-39

Statistical Independence Two events are statistically independent if and only if: P(A B) = P(A)P(B) Events A and B are independent when the probability of one event is not affected by the other event If A and B are independent, then P(A B) = P(B A) = P(A) P(B) if P(B)>0 if P(A)>0 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-40

Statistical Independence To check if two events are independent or not, we need to check the formal condition: P(A B) = P(A) P(B) In some cases, we have a good intuition for independence. ``Red and ``Ace are independent. Tossing two coins, ``Head in the first coin is independent of ``Head in the second coin. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-41

Example P(Red Ace) = 2 / 52 = 1/26 P(Red) x P(Ace) = (1/2) x (1/13) = 1/26 Color Type Red Black Total Ace 2 2 4 Non-Ace 24 24 48 Total 26 26 52 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-42

Clicker Question 2-7 Roll a fair die once, define A = [2, 4, 6], B = [1, 2, 3, 4]. Are the events A and B independent? A). Yes B). No Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-43

Clicker Question Statistical independence implies that, knowing that A happened does not change the belief on the likelihood of event B, i.e., P(A B) = P(A) Because, P(A B) = A B = [2, 4] P(A B) P(B) = 2 / 6 4 / 6 = 1 2 P(A) = 3 6 = 1 2 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-44

3.4 Bivariate Probabilities Outcomes for bivariate events: B 1 B 2... B k A 1 P(A 1 B 1 ) P(A 1 B 2 )... P(A 1 B k ) A 2 P(A 2 B 1 ) P(A 2 B 2 )... P(A 2 B k )............... A h P(A h B 1 ) P(A h B 2 )... P(A h B k ) Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-45

Marginal Probabilities Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-46

Marginal Probabilities The Marginal Probability of P(A): where B 1, B 2,, B k are k mutually exclusive and collectively exhaustive events Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-47

Marginal Probability Example P(Ace) 2 2 = P(Ace Red) + P(Ace Black) = + = 52 52 4 52 Color Type Red Black Total Ace 2 2 4 Non-Ace 24 24 48 Total 26 26 52 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-48

Joint Distribution of X and Y Consider two random variables: X and Y X takes n possible values: { x, x,..., x } 1 2 n Y takes m possible values: { y, y,..., y } 1 2 m Joint Distribution of X and Y can be described by Bivariate probabilities. Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-49

3.4 Distribution of (X,Y) X= X=... X= Y= P( =,Y= ) P( =,Y= )... P( =,Y= ) Y= P( =,Y= ) P( =,Y= )... P( =,Y= )............... Y= P( =,Y= ) P( =,Y= )... P( =,Y= ) Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-50

Example Joint Distribution of University Degree (X) and Annual Income (Y) Y=30 Y=60 Y=100 X=0 0.24 0.12 0.04 X=1 0.12 0.36 0.12 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-51

Marginal Probabilities The Marginal Probability of P( = ) Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-52

Clicker Question 2-8 What is P(X=1)? Y=30 Y=60 Y=100 Marginal Dist. of X X=0 0.24 0.12 0.04 0.40 X=1 0.12 0.36 0.12?? Marginal Dist. of Y 0.36 0.48 0.16 1.00 A). 0.6 B). 0.24 C). 0.2 Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-53

Bayes theorem example You took a blood test for cancer diagnosis. Your blood test was positive. This blood test is positive with probability 95 percent if you indeed have a cancer. This blood test is positive with probability 10 percent if you don t have a cancer. How do you compute the probability of your having a cancer if 1 percent of people in population have cancer? Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-54

Bayes theorem example Event B = {Cancer} Event A = {Positive Blood test} How can we learn about the probability of B from observing that A happened? We would like to compute P(B A). Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-55

Bayes Theorem (simple version) P(B A) = P(A B) P(A) = P(A P(A B) B) + P(A B) = P(A P(A B)P(B) B)P(B) + P(A B)P(B) Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-56

Bayes Theorem Example If a person has cancer (B), a blood test is positive (A) with 95% probability. If a person is free of cancer (B ), the test comes back positive (A) with 10% probability. P(A B) = 0.95 and P(A B ) = 0.10 1% people have cancer: P(B)= 0.01. What is the probability that you have cancer when your blood test is positive? Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-57

Bayes Theorem Example P(B) =.01, P(B ) = 1-P(B) =.99 P(A B) =.95, P(A B ) =.10 Join distribution of A and B B B A 8910 (89.1%) 5 (0.05%) A 990 (9.9%) 95 (0.95%) Total 9900 (99%) 100 (1%) Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-58

Bayes Theorem Example (continued) P(B A) = P(A P(A B)P(B) B)P(B) + P(A B)P(B) = = (.95)(.01) (.95)(.01) + (0.10)(.99).0095 =.0876.0095. +.099 The revised probability of having cancer is 8.76 percent! Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-59

Total Law of Probability Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-60

3.5 Bayes Theorem (general version) Let B 1, B 2,, B k be mutually exclusive and collectively exhaustive events. Then, P(B i A) = P(A B 1 )P(B P(A 1 B i )P(B ) ) +... + P(A i B k )P(B k ) Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-61