Statistika pro informatiku

Size: px
Start display at page:

Download "Statistika pro informatiku"

Transcription

1 Statistika pro informatiku prof. RNDr. Roman Kotecký DrSc., Dr. Rudolf Blažek, PhD Katedra teoretické informatiky FIT České vysoké učení technické v Praze MI-SPI, ZS 2011/12, Přednáška 2 Evropský sociální fond. Praha & EU: Investujeme do vaší budoucnosti Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 1 / 23

2 Recapitulation Recapitulation Ω is the set of all possible outcomes. Events are subsets of Ω, A Ω. A probability P is a function P : P(Ω) A P(A) [0, 1] such that (N): P(Ω) = 1 and (A): P( l 1 A l ) = l 1 P(A l) for all pairwise disjoint A 1, A 2, Ω. For at most countable Ω the probability is determined by a function p : Ω [0, 1] such that ω Ω p(ω) = 1. Then P(A) = ω A p(ω). Probability rules: (i) P( ) = 0. (ii) Monotonicity. If A B then P(A) P(B). (iii) Additivity. P(A B) + P(A B) = P(A) + P(B) (and thus also, P(A) + P(A c ) = 1). (iv) Subadditivity. P( n 1 A n ) n 1 P(A n). (v) Inclusion-exclusion principle. P( n k=1 A k) = n k=1 P(A k) i<j P(A i A j ) + + ( 1) n+1 P(A 1 A n ). Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 2 / 23

3 Recapitulation If P(B) > 0 then the conditional probability that A occurs under the condition B is defined to be P(A B) = P(A B). P(B) Conditional probability is a probability. The other properties of the probability law follow: P(Ω B) = 1. P(A 1 A 2 B) = P(A 1 B) + P(A 2 B). The probability P(A B) lives on B: for A B =, we have P(A B) = 0. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 3 / 23

4 Conditional probability Multiplicative law A multiplicative law Sometimes it is easier to gain a conditional information and the unconditional probability compute by turning the definition : P(A B) = P(A B)P(B). A multiplicative law is a generalization: P(A 1 A 2 A 3 ) = P(A 1 )P(A 2 A 1 )P(A 3 A 1 A 2 ). It follows by substituting into the definitions on the right hand side: P(A 1 )P(A 2 A 1 )P(A 3 A 1 A 2 ) =P(A 1 ) P(A2 A1) P(A 3 A 1 A 2) P(A 1) P(A 1 A 2) = =P(A 1 A 2 A 3 ). In general: P( n i=1 A i) = P(A 1 )P(A 2 A 1 )... P(A n n 1 i=1 A i). Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 4 / 23

5 Conditional probability Multiplicative law Example What is the probability that in the sequence of 3 cards drawn one after another there are no hearts? A i = {i-th card is not hearts}, i = 1, 2, 3. P(A 1 A 2 A 3 ) = P(A 1 )P(A 2 A 1 )P(A 3 A 1 A 2 ) = Illustration of the computation with the help of the tree of conditional probabilities: P (A3 A1 A2) A3 P (A1 A2 A3) 37/ P (A2 A1) A2 P (A c 3 A1 A2) 38/51 13/50 P (A1 A2 A c 3) P (A1) P (A c 2 A1) 39/52 13/51 A1 P (A c 1) 13/52 The probability in a given vertex of the tree is the product of the corresponding values on the path stemming from the root. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 5 / 23

6 Conditional probability Case distinction formula Case distinction formula Věta o úplné pravděp. A family B 1, B 2,..., B n of events is called a partition of Ω if Ω = n i=1 B i (it means that Ω = n i=1 B i and B i B j = whenever i j). Proposition (Case distinction formula) Let B 1, B 2,..., B n be a partition of Ω such that P(B i ) > 0 for all i. Then P(A) = n P(A B i )P(B i ) i=1 for any event A. Proof. Since A = n i=1(a B i ), by definition of conditional probability and by aditivity, n i=1 P(A B i)p(b i ) = n i=1 P(A B i) = P(A). Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 6 / 23

7 Conditional probability Bayes theorem Graphical illustration of the case distinction formula: P (B 1) B 1 P (A B 1) root P (B 2) B 2 P (A B 2) A P (B 3) P (A B 3) B 3 Theorem (Bayes theorem) Let B 1, B 2,..., B n be a partition of Ω such that P(B i ) > 0 for all i and let A be an event with P(A) > 0. Then P(B k A) = P(B k)p(a B k ) n i=1 P(B i)p(a B i ). Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 7 / 23

8 Conditional probability Bayes formula Proof. P(B k )P(A B k ) n i=1 P(B i)p(a B i ) = P(A B k) = P(B k A) P(A) Thomas Bayes (c April 1761) was an English mathematician and Presbyterian minister, known for having formulated a specific case of the theorem that bears his name: Bayes theorem. Bayes never published what would eventually become his most famous accomplishment; his notes were edited and published after his death by Richard Price. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 8 / 23

9 Conditional probability Reliability of a drug test Example (Reliability of a drug test) Cyclists in Tour de France are tested on a usage of a particular drug. About 1% are known to use the drug and the test yields positive result for 95% of those positive and 10% of positive result for those negative. P(a randomly chosen positively tested cyclist is taking drug)? B 1 set of those using the drug. B 2 = Ω \ B 1. A is the set of those who reacted positively. P(B 1 ) = 0.01, P(B 2 ) = 0.99, P(A B 1 ) = 0.95, P(A B 2 ) = 0.1. P(B 1 A) = = P(A B 1 )P(B 1 ) P(A B 1 )P(B 1 ) + P(A B 2 )P(B 2 ) = The test is not effective in finding those using the drug. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 9 / 23

10 Conditional probability Reliability of a drug test Example (continued) P(B 1 A c ) = = P(A c B 1 )P(B 1 ) P(A c B 1 )P(B 1 ) + P(A c B 2 )P(B 2 ) = But, it is very effective for those testing negative (false accusation very unlikely). Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 10 / 23

11 Conditional probability Monty Hall problem Monty Hall problem TV show Let s make a deal. After the game presenter shows three closed doors: there is a luxurious car behind one of them and a goat behind remaining two. You have to choose, so you pick up one, say #1. Now, he opens another one, say #3, there is a goat. He says to you: Do you want to change your mind and pick door #2? What would be your answer? What is the probability, at this moment, that the car is behind the door #1 and what is the probability that the car is behind the door #2? Correct answer is, yes, you should switch. The probabilities are 1/3 and 2/3, respectively. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 11 / 23

12 Conditional probability Monty Hall problem Important: all this is under assumption that the host is determined to show you the goat: if the car is behind #1, he opens randomly #2 or #3, if it is not behind #1, he opens the unique remaining doors with a goat. If he opens any door randomly (irrespectively of what I have chosen), the probabilities (for switching and nonswitching) are 1 2 and 1 2. Reasoning: C i the event that the car is behind the door #i with all 3 placements of the car being equally probable, P(C i ) = 1, i = 1, 2, 3. 3 G the event that I was shown the goat. P(C 2 G) = P(C 2 G C 1 )P(C 1 ) + P(C 2 G C c 1)P(C c 1) P(G C 1 )P(C 1 ) + P(G C c 1 )P(Cc 1 ) = = = 2 3. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 12 / 23

13 Conditional probability Independence Independence Nezávislost Intuitively: A and B independent if prob. one assigns to A is not influenced by the information that B occurred, P(A B) = P(A), and conversely. Definition Let (Ω, P) be a probability space. Two events A, B are called stochastically independent with respect to P if P(A B) = P(A)P(B). Example Notice that independence is not linked with causality: Two dice. A = {sum = 7}, B = {first roll is 6}. A = B = 6, A B = 1. Hence, P(A B) = = P(A)P(B). Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 13 / 23

14 Conditional probability Independence Definition Let (Ω, P) be a probability space and I an arbitrary index set. A family (A i ) i I of events is called independent with respect to P if, for any finite subset J I, we have P( i J A i ) = i J P(A i ). Example (Dependence in spite of pairwise independence) Two coins. B 1 A = {first toss is head} = {1} {0, 1}, B = {second toss is head} = {0, 1} {1}, C = {both tosses give the same} = {(0, 0), (1, 1)}. Then, P(A B) = 1/4 = P(A)P(B), 0 P(A C) = 1/4 = P(A)P(C), C 0 1 and P(B C) = 1/4 = P(B)P(C), while P(A B C) = 1/4 1/8 = P(A)P(B)P(C). A Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 14 / 23

15 Random variables Random variables and their distributions Random variables Often, we are interested in quantities that depend on randomness. Their value depends on a random outcome of an experiment. After the experiment is done, the outcome ω Ω is known and X takes a particular value, X : Ω R. In general, some values are more likely than others. X Sample space Ω R Definition A random variable is a function X : Ω R. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 15 / 23

16 Random variables Random variables and their distributions Examples (of random variables) Tossing a coin n-times. ω = (ω 1,..., ω n ) Ω = {0, 1} n. X is the # of heads, X(ω) = n ω i=1 i {0, 1,..., n}. Rolling a die n times. ω = (ω(1),..., ω(n)) {1,..., 6} n, Y is the maximum, Y(ω) = max{ω(1),..., ω(n)}. Sequences of n zeros and ones. Z is the longest segment of ones, Z(ω) = k n. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 16 / 23

17 Random variables Random variables and their distributions Example (Minimum from two tosses of a 4-sided die) Two tosses of a fair 4-sided die (regular simplex). Ω = {1, 2, 3, 4} 2. Consider the random variable X(ω) = min{ω(1), ω(2)}: X R P(X = 1) = P({ω : X(ω) = 1}) = = P({(1, 1), (1, 2), (1, 3), (1, 4), (2, 1), (3, 1), (4, 1)}) = Similarly, P(X = 2) = P({(2, 2), (2, 3), (2, 4), (3, 2), (4, 2)}) = 5 16, P(X = 3) = P({(3, 3), (3, 4), (4, 3)}) = 3 16, and P(X = 4) = P({(4, 4)}) = Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 17 / 23

18 Random variables Probability mass function We are still assuming that Ω is at most countable. Thus, the image set X(Ω) = {x R : x = X(ω) for some ω Ω} is also at most countable and it makes sense to evaluate the probability of the event {X = x} := {ω Ω X(ω) = x}, Definition The probability mass function (PMF) of a random variable X is the function p X (x) = P({X = x}) = P(X = x) giving the probability of each numerical value that the random variable can take. Notice that x X(Ω) p X (x) = 1. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 18 / 23

19 Random variables Probability mass function Example (The number of heads for n fair coin tosses) X(ω) = n i=1 ω i {0, 1,..., n}. We have p X (k) = P(X = k) = ω: n i=1 ωi=k 1 = ( ) n 2 n k 2 n for any k {0, 1,..., n} and p X (x) = 0 for any x {0, 1,..., n}. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 19 / 23

20 Random variables Distribution function Distribution function To evaluate the likelihood of particular values (or subsets of values) of a random variable X we need to evaluate the probabilities of events of the form {X A } := {ω Ω X(ω) A } = X 1 (A ). For this it is sufficient to know its distribution function: Definition The (cumulative) distribution function (CDF) of a random variable X is the function F X : R [0, 1]: F X (x) = P(X x) = P(X 1 ((, x])). Roughly, p X (x) = P(X = x) = F(x + ɛ) F(x ɛ). Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 20 / 23

21 Random variables Distribution function Example Binomial distribution (tossing of an unfair coin) Ω = {0, 1} n, P(ω) = n i=1 pωi (1 p) 1 ωi. For X(ω) = ω i we have p X (k) = ( n k) pk (1 p) n k and F X (x) = ( ) n p i (1 p) n i i i x n = 20, p = 1/4: Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 21 / 23

22 Random variables Distribution function Properties of a distribution function Proposition A distribution function F X has the following properties: (a) lim x F X (x) = 0, lim x + F X (x) = 1. (b) x < y, implies F X (x) F X (y). (c) F is right continuous: lim y x+ F X (y) = F X (x). If X(Ω) is bounded, then F X (x) = 0 for x < min k Calculation of the probability mass function p X (x): x k and F X (x) = 1 for x max x k. k collect all ω for which X(ω) = x and sum their probabilities. Calculation of the distribution function F X (x): collect all ω for which X(ω) x and sum their probabilities. Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 22 / 23

23 Random variables Distribution function Example (Minimum from two tosses of a 4-sided die (continuation)) X 4 X(ω) = min{ω(1), ω(2)}: R Probability mass function: px /16 5/16 3/16 1/ x Distribution function: 4 FX x Roman Kotecký, Rudolf Blažek (FIT ČVUT) Statistika pro informatiku MI-SPI, ZS 2011/12, Přednáška 2 23 / 23

Statistika pro informatiku

Statistika pro informatiku Statistika pro informatiku prof. RNDr. Roman Kotecký DrSc., Dr. Rudolf Blažek, PhD Katedra teoretické informatiky FIT České vysoké učení technické v Praze MI-SPI, ZS 2011/12, Přednáška 5 Evropský sociální

More information

Statistika pro informatiku

Statistika pro informatiku Statistika pro informatiku prof. RNDr. Roman Kotecký DrSc., Dr. Rudolf Blažek, PhD Katedra teoretické informatiky FIT České vysoké učení technické v Praze MI-SPI, ZS 2011/12, Přednáška 1 Evropský sociální

More information

Markovské řetězce se spojitým parametrem

Markovské řetězce se spojitým parametrem Markovské řetězce se spojitým parametrem Mgr. Rudolf B. Blažek, Ph.D. prof. RNDr. Roman Kotecký, DrSc. Katedra počítačových systémů Katedra teoretické informatiky Fakulta informačních technologií České

More information

Bootstrap metody II Kernelové Odhady Hustot

Bootstrap metody II Kernelové Odhady Hustot Bootstrap metody II Kernelové Odhady Hustot Mgr. Rudolf B. Blažek, Ph.D. prof. RNDr. Roman Kotecký, DrSc. Katedra počítačových systémů Katedra teoretické informatiky Fakulta informačních technologií České

More information

Základy teorie front II

Základy teorie front II Základy teorie front II Aplikace Poissonova procesu v teorii front Mgr. Rudolf B. Blažek, Ph.D. prof. RNDr. Roman Kotecký, DrSc. Katedra počítačových systémů Katedra teoretické informatiky Fakulta informačních

More information

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events LECTURE 1 1 Introduction The first part of our adventure is a highly selective review of probability theory, focusing especially on things that are most useful in statistics. 1.1 Sample spaces and events

More information

Základy teorie front

Základy teorie front Základy teorie front Mgr. Rudolf B. Blažek, Ph.D. prof. RNDr. Roman Kotecký, DrSc. Katedra počítačových systémů Katedra teoretické informatiky Fakulta informačních technologií České vysoké učení technické

More information

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B).

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B). Lectures 7-8 jacques@ucsdedu 41 Conditional Probability Let (Ω, F, P ) be a probability space Suppose that we have prior information which leads us to conclude that an event A F occurs Based on this information,

More information

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

STAT:5100 (22S:193) Statistical Inference I STAT:5100 (22S:193) Statistical Inference I Week 3 Luke Tierney University of Iowa Fall 2015 Luke Tierney (U Iowa) STAT:5100 (22S:193) Statistical Inference I Fall 2015 1 Recap Matching problem Generalized

More information

2. AXIOMATIC PROBABILITY

2. AXIOMATIC PROBABILITY IA Probability Lent Term 2. AXIOMATIC PROBABILITY 2. The axioms The formulation for classical probability in which all outcomes or points in the sample space are equally likely is too restrictive to develop

More information

Basics on Probability. Jingrui He 09/11/2007

Basics on Probability. Jingrui He 09/11/2007 Basics on Probability Jingrui He 09/11/2007 Coin Flips You flip a coin Head with probability 0.5 You flip 100 coins How many heads would you expect Coin Flips cont. You flip a coin Head with probability

More information

the time it takes until a radioactive substance undergoes a decay

the time it takes until a radioactive substance undergoes a decay 1 Probabilities 1.1 Experiments with randomness Wewillusethetermexperimentinaverygeneralwaytorefertosomeprocess that produces a random outcome. Examples: (Ask class for some first) Here are some discrete

More information

Probability Theory Review

Probability Theory Review Cogsci 118A: Natural Computation I Lecture 2 (01/07/10) Lecturer: Angela Yu Probability Theory Review Scribe: Joseph Schilz Lecture Summary 1. Set theory: terms and operators In this section, we provide

More information

Probabilistic models

Probabilistic models Probabilistic models Kolmogorov (Andrei Nikolaevich, 1903 1987) put forward an axiomatic system for probability theory. Foundations of the Calculus of Probabilities, published in 1933, immediately became

More information

Lecture 2. Conditional Probability

Lecture 2. Conditional Probability Math 408 - Mathematical Statistics Lecture 2. Conditional Probability January 18, 2013 Konstantin Zuev (USC) Math 408, Lecture 2 January 18, 2013 1 / 9 Agenda Motivation and Definition Properties of Conditional

More information

CS 361: Probability & Statistics

CS 361: Probability & Statistics February 12, 2018 CS 361: Probability & Statistics Random Variables Monty hall problem Recall the setup, there are 3 doors, behind two of them are indistinguishable goats, behind one is a car. You pick

More information

Introduction to Probability Theory

Introduction to Probability Theory Introduction to Probability Theory Ping Yu Department of Economics University of Hong Kong Ping Yu (HKU) Probability 1 / 39 Foundations 1 Foundations 2 Random Variables 3 Expectation 4 Multivariate Random

More information

Deep Learning for Computer Vision

Deep Learning for Computer Vision Deep Learning for Computer Vision Lecture 3: Probability, Bayes Theorem, and Bayes Classification Peter Belhumeur Computer Science Columbia University Probability Should you play this game? Game: A fair

More information

Introduction to Probability Theory, Algebra, and Set Theory

Introduction to Probability Theory, Algebra, and Set Theory Summer School on Mathematical Philosophy for Female Students Introduction to Probability Theory, Algebra, and Set Theory Catrin Campbell-Moore and Sebastian Lutz July 28, 2014 Question 1. Draw Venn diagrams

More information

Dynamic Programming Lecture #4

Dynamic Programming Lecture #4 Dynamic Programming Lecture #4 Outline: Probability Review Probability space Conditional probability Total probability Bayes rule Independent events Conditional independence Mutual independence Probability

More information

STAT509: Probability

STAT509: Probability University of South Carolina August 20, 2014 The Engineering Method and Statistical Thinking The general steps of engineering method are: 1. Develop a clear and concise description of the problem. 2. Identify

More information

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

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability Lecture Notes 1 Basic Probability Set Theory Elements of Probability Conditional probability Sequential Calculation of Probability Total Probability and Bayes Rule Independence Counting EE 178/278A: Basic

More information

Formalizing Probability. Choosing the Sample Space. Probability Measures

Formalizing Probability. Choosing the Sample Space. Probability Measures Formalizing Probability Choosing the Sample Space What do we assign probability to? Intuitively, we assign them to possible events (things that might happen, outcomes of an experiment) Formally, we take

More information

ORF 245 Fundamentals of Statistics Chapter 5 Probability

ORF 245 Fundamentals of Statistics Chapter 5 Probability ORF 245 Fundamentals of Statistics Chapter 5 Probability Robert Vanderbei Oct 2015 Slides last edited on October 14, 2015 http://www.princeton.edu/ rvdb Sample Spaces (aka Populations) and Events When

More information

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

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14 CS 70 Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14 Introduction One of the key properties of coin flips is independence: if you flip a fair coin ten times and get ten

More information

Lecture 3. January 7, () Lecture 3 January 7, / 35

Lecture 3. January 7, () Lecture 3 January 7, / 35 Lecture 3 January 7, 2013 () Lecture 3 January 7, 2013 1 / 35 Outline This week s lecture: Fast review of last week s lecture: Conditional probability. Partition, Partition theorem. Bayes theorem and its

More information

Vina Nguyen HSSP July 6, 2008

Vina Nguyen HSSP July 6, 2008 Vina Nguyen HSSP July 6, 2008 1 Late registration Claroline class server 2 What are the two types of probability? 3 What are the two types of probability? What is a set? 4 What are the two types of probability?

More information

Recitation 2: Probability

Recitation 2: Probability Recitation 2: Probability Colin White, Kenny Marino January 23, 2018 Outline Facts about sets Definitions and facts about probability Random Variables and Joint Distributions Characteristics of distributions

More information

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 3 9/10/2008 CONDITIONING AND INDEPENDENCE

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 3 9/10/2008 CONDITIONING AND INDEPENDENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 3 9/10/2008 CONDITIONING AND INDEPENDENCE Most of the material in this lecture is covered in [Bertsekas & Tsitsiklis] Sections 1.3-1.5

More information

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable Lecture Notes 1 Probability and Random Variables Probability Spaces Conditional Probability and Independence Random Variables Functions of a Random Variable Generation of a Random Variable Jointly Distributed

More information

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable Lecture Notes 1 Probability and Random Variables Probability Spaces Conditional Probability and Independence Random Variables Functions of a Random Variable Generation of a Random Variable Jointly Distributed

More information

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch Monty Hall Puzzle Example: You are asked to select one of the three doors to open. There is a large prize behind one of the doors and if you select that door, you win the prize. After you select a door,

More information

Econ 325: Introduction to Empirical Economics

Econ 325: Introduction to Empirical Economics 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

More information

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

Outline Conditional Probability The Law of Total Probability and Bayes Theorem Independent Events. Week 4 Classical Probability, Part II Week 4 Classical Probability, Part II Week 4 Objectives This week we continue covering topics from classical probability. The notion of conditional probability is presented first. Important results/tools

More information

CMPSCI 240: Reasoning about Uncertainty

CMPSCI 240: Reasoning about Uncertainty CMPSCI 240: Reasoning about Uncertainty Lecture 2: Sets and Events Andrew McGregor University of Massachusetts Last Compiled: January 27, 2017 Outline 1 Recap 2 Experiments and Events 3 Probabilistic Models

More information

Quick Tour of Basic Probability Theory and Linear Algebra

Quick Tour of Basic Probability Theory and Linear Algebra Quick Tour of and Linear Algebra Quick Tour of and Linear Algebra CS224w: Social and Information Network Analysis Fall 2011 Quick Tour of and Linear Algebra Quick Tour of and Linear Algebra Outline Definitions

More information

Sample Spaces, Random Variables

Sample Spaces, Random Variables Sample Spaces, Random Variables Moulinath Banerjee University of Michigan August 3, 22 Probabilities In talking about probabilities, the fundamental object is Ω, the sample space. (elements) in Ω are denoted

More information

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

Introduction to Probability. Ariel Yadin. Lecture 1. We begin with an example [this is known as Bertrand s paradox]. *** Nov. Introduction to Probability Ariel Yadin Lecture 1 1. Example: Bertrand s Paradox We begin with an example [this is known as Bertrand s paradox]. *** Nov. 1 *** Question 1.1. Consider a circle of radius

More information

Lecture 04: Conditional Probability. Lisa Yan July 2, 2018

Lecture 04: Conditional Probability. Lisa Yan July 2, 2018 Lecture 04: Conditional Probability Lisa Yan July 2, 2018 Announcements Problem Set #1 due on Friday Gradescope submission portal up Use Piazza No class or OH on Wednesday July 4 th 2 Summary from last

More information

EE514A Information Theory I Fall 2013

EE514A Information Theory I Fall 2013 EE514A Information Theory I Fall 2013 K. Mohan, Prof. J. Bilmes University of Washington, Seattle Department of Electrical Engineering Fall Quarter, 2013 http://j.ee.washington.edu/~bilmes/classes/ee514a_fall_2013/

More information

Origins of Probability Theory

Origins of Probability Theory 1 16.584: INTRODUCTION Theory and Tools of Probability required to analyze and design systems subject to uncertain outcomes/unpredictability/randomness. Such systems more generally referred to as Experiments.

More information

Probability Theory for Machine Learning. Chris Cremer September 2015

Probability Theory for Machine Learning. Chris Cremer September 2015 Probability Theory for Machine Learning Chris Cremer September 2015 Outline Motivation Probability Definitions and Rules Probability Distributions MLE for Gaussian Parameter Estimation MLE and Least Squares

More information

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

Consider an experiment that may have different outcomes. We are interested to know what is the probability of a particular set of outcomes. CMSC 310 Artificial Intelligence Probabilistic Reasoning and Bayesian Belief Networks Probabilities, Random Variables, Probability Distribution, Conditional Probability, Joint Distributions, Bayes Theorem

More information

Recap of Basic Probability Theory

Recap of Basic Probability Theory 02407 Stochastic Processes? Recap of Basic Probability Theory Uffe Høgsbro Thygesen Informatics and Mathematical Modelling Technical University of Denmark 2800 Kgs. Lyngby Denmark Email: uht@imm.dtu.dk

More information

Elementary Discrete Probability

Elementary Discrete Probability Elementary Discrete Probability MATH 472 Financial Mathematics J Robert Buchanan 2018 Objectives In this lesson we will learn: the terminology of elementary probability, elementary rules of probability,

More information

Topic 5 Basics of Probability

Topic 5 Basics of Probability Topic 5 Basics of Probability Equally Likely Outcomes and the Axioms of Probability 1 / 13 Outline Equally Likely Outcomes Axioms of Probability Consequences of the Axioms 2 / 13 Introduction A probability

More information

Computational Intelligence Methods

Computational Intelligence Methods Computational Intelligence Methods Ant Colony Optimization, Partical Swarm Optimization Pavel Kordík, Martin Šlapák Katedra teoretické informatiky FIT České vysoké učení technické v Praze MI-MVI, ZS 2011/12,

More information

With Question/Answer Animations. Chapter 7

With Question/Answer Animations. Chapter 7 With Question/Answer Animations Chapter 7 Chapter Summary Introduction to Discrete Probability Probability Theory Bayes Theorem Section 7.1 Section Summary Finite Probability Probabilities of Complements

More information

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability Chapter 2 Conditional Probability and Independence 2.1 Conditional Probability Probability assigns a likelihood to results of experiments that have not yet been conducted. Suppose that the experiment has

More information

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability Chapter 2 Conditional Probability and Independence 2.1 Conditional Probability Example: Two dice are tossed. What is the probability that the sum is 8? This is an easy exercise: we have a sample space

More information

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability Department of Electrical Engineering University of Arkansas ELEG 3143 Probability & Stochastic Process Ch. 1 Probability Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Applications Elementary Set Theory Random

More information

Conditional Probability and Bayes

Conditional Probability and Bayes Conditional Probability and Bayes Chapter 2 Lecture 5 Yiren Ding Shanghai Qibao Dwight High School March 9, 2016 Yiren Ding Conditional Probability and Bayes 1 / 13 Outline 1 Independent Events Definition

More information

Introduction to probability theory

Introduction to probability theory Introduction to probability theory Fátima Sánchez Cabo Institute for Genomics and Bioinformatics, TUGraz f.sanchezcabo@tugraz.at 07/03/2007 - p. 1/35 Outline Random and conditional probability (7 March)

More information

Chapter 3 : Conditional Probability and Independence

Chapter 3 : Conditional Probability and Independence STAT/MATH 394 A - PROBABILITY I UW Autumn Quarter 2016 Néhémy Lim Chapter 3 : Conditional Probability and Independence 1 Conditional Probabilities How should we modify the probability of an event when

More information

Recap of Basic Probability Theory

Recap of Basic Probability Theory 02407 Stochastic Processes Recap of Basic Probability Theory Uffe Høgsbro Thygesen Informatics and Mathematical Modelling Technical University of Denmark 2800 Kgs. Lyngby Denmark Email: uht@imm.dtu.dk

More information

Lecture 2. October 21, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University.

Lecture 2. October 21, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University. Lecture 2 Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University October 21, 2007 1 2 3 4 5 6 Define probability calculus Basic axioms of probability Define

More information

Laws of Probability, Bayes theorem, and the Central Limit Theorem

Laws of Probability, Bayes theorem, and the Central Limit Theorem Laws of, Bayes theorem, and the Central Limit Theorem 8th Penn State Astrostatistics School David Hunter Department of Statistics Penn State University Adapted from notes prepared by Rahul Roy and RL Karandikar,

More information

1 Presessional Probability

1 Presessional Probability 1 Presessional Probability Probability theory is essential for the development of mathematical models in finance, because of the randomness nature of price fluctuations in the markets. This presessional

More information

Lecture 3 - Axioms of Probability

Lecture 3 - Axioms of Probability Lecture 3 - Axioms of Probability Sta102 / BME102 January 25, 2016 Colin Rundel Axioms of Probability What does it mean to say that: The probability of flipping a coin and getting heads is 1/2? 3 What

More information

Probabilistic models

Probabilistic models Kolmogorov (Andrei Nikolaevich, 1903 1987) put forward an axiomatic system for probability theory. Foundations of the Calculus of Probabilities, published in 1933, immediately became the definitive formulation

More information

Conditional Probability. CS231 Dianna Xu

Conditional Probability. CS231 Dianna Xu Conditional Probability CS231 Dianna Xu 1 Boy or Girl? A couple has two children, one of them is a girl. What is the probability that the other one is also a girl? Assuming 50/50 chances of conceiving

More information

Probability: Part 1 Naima Hammoud

Probability: Part 1 Naima Hammoud Probability: Part 1 Naima ammoud Feb 7, 2017 Motivation ossing a coin Rolling a die Outcomes: eads or ails Outcomes: 1, 2, 3, 4, 5 or 6 Defining Probability If I toss a coin, there is a 50% chance I will

More information

DISCRETE RANDOM VARIABLES: PMF s & CDF s [DEVORE 3.2]

DISCRETE RANDOM VARIABLES: PMF s & CDF s [DEVORE 3.2] DISCRETE RANDOM VARIABLES: PMF s & CDF s [DEVORE 3.2] PROBABILITY MASS FUNCTION (PMF) DEFINITION): Let X be a discrete random variable. Then, its pmf, denoted as p X(k), is defined as follows: p X(k) :=

More information

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

EE 178 Lecture Notes 0 Course Introduction. About EE178. About Probability. Course Goals. Course Topics. Lecture Notes EE 178 EE 178 Lecture Notes 0 Course Introduction About EE178 About Probability Course Goals Course Topics Lecture Notes EE 178: Course Introduction Page 0 1 EE 178 EE 178 provides an introduction to probabilistic

More information

Probability and Statistics Notes

Probability and Statistics Notes Probability and Statistics Notes Chapter One Jesse Crawford Department of Mathematics Tarleton State University (Tarleton State University) Chapter One Notes 1 / 71 Outline 1 A Sketch of Probability and

More information

Week 12-13: Discrete Probability

Week 12-13: Discrete Probability Week 12-13: Discrete Probability November 21, 2018 1 Probability Space There are many problems about chances or possibilities, called probability in mathematics. When we roll two dice there are possible

More information

Lecture 1. ABC of Probability

Lecture 1. ABC of Probability Math 408 - Mathematical Statistics Lecture 1. ABC of Probability January 16, 2013 Konstantin Zuev (USC) Math 408, Lecture 1 January 16, 2013 1 / 9 Agenda Sample Spaces Realizations, Events Axioms of Probability

More information

Lecture 2: Probability, conditional probability, and independence

Lecture 2: Probability, conditional probability, and independence Lecture 2: Probability, conditional probability, and independence Theorem 1.2.6. Let S = {s 1,s 2,...} and F be all subsets of S. Let p 1,p 2,... be nonnegative numbers that sum to 1. The following defines

More information

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

STAT2201. Analysis of Engineering & Scientific Data. Unit 3 STAT2201 Analysis of Engineering & Scientific Data Unit 3 Slava Vaisman The University of Queensland School of Mathematics and Physics What we learned in Unit 2 (1) We defined a sample space of a random

More information

PROBABILITY VITTORIA SILVESTRI

PROBABILITY VITTORIA SILVESTRI PROBABILITY VITTORIA SILVESTRI Contents Preface. Introduction 2 2. Combinatorial analysis 5 3. Stirling s formula 8 4. Properties of Probability measures Preface These lecture notes are for the course

More information

Chapter 7 Wednesday, May 26th

Chapter 7 Wednesday, May 26th Chapter 7 Wednesday, May 26 th Random event A random event is an event that the outcome is unpredictable. Example: There are 45 students in this class. What is the probability that if I select one student,

More information

STAT Chapter 3: Probability

STAT Chapter 3: Probability Basic Definitions STAT 515 --- Chapter 3: Probability Experiment: A process which leads to a single outcome (called a sample point) that cannot be predicted with certainty. Sample Space (of an experiment):

More information

Laws of Probability, Bayes theorem, and the Central Limit Theorem

Laws of Probability, Bayes theorem, and the Central Limit Theorem Laws of Probability, Bayes theorem, and the Central Limit Theorem 2016 Penn State Astrostatistics Summer School David Hunter Department of Statistics Penn State University Adapted from notes prepared by

More information

Random Variables Example:

Random Variables Example: Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5 s in the 6 rolls. Let X = number of 5 s. Then X could be 0, 1, 2, 3, 4, 5, 6. X = 0 corresponds to the

More information

Laws of Probability, Bayes theorem, and the Central Limit Theorem

Laws of Probability, Bayes theorem, and the Central Limit Theorem Laws of, Bayes theorem, and the Central Limit Theorem 7th Penn State Astrostatistics School David Hunter Department of Statistics Penn State University Adapted from notes prepared by Rahul Roy and RL Karandikar,

More information

STOR Lecture 4. Axioms of Probability - II

STOR Lecture 4. Axioms of Probability - II STOR 435.001 Lecture 4 Axioms of Probability - II Jan Hannig UNC Chapel Hill 1 / 23 How can we introduce and think of probabilities of events? Natural to think: repeat the experiment n times under same

More information

Conditional Probability, Independence, Bayes Theorem Spring January 1, / 23

Conditional Probability, Independence, Bayes Theorem Spring January 1, / 23 Conditional Probability, Independence, Bayes Theorem 18.05 Spring 2014 January 1, 2017 1 / 23 Sample Space Confusions 1. Sample space = set of all possible outcomes of an experiment. 2. The size of the

More information

Announcements. Topics: To Do:

Announcements. Topics: To Do: Announcements Topics: In the Probability and Statistics module: - Sections 1 + 2: Introduction to Stochastic Models - Section 3: Basics of Probability Theory - Section 4: Conditional Probability; Law of

More information

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

What is Probability? Probability. Sample Spaces and Events. Simple Event 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

More information

Lecture 1: Probability Fundamentals

Lecture 1: Probability Fundamentals Lecture 1: Probability Fundamentals IB Paper 7: Probability and Statistics Carl Edward Rasmussen Department of Engineering, University of Cambridge January 22nd, 2008 Rasmussen (CUED) Lecture 1: Probability

More information

Review of Probability. CS1538: Introduction to Simulations

Review of Probability. CS1538: Introduction to Simulations Review of Probability CS1538: Introduction to Simulations Probability and Statistics in Simulation Why do we need probability and statistics in simulation? Needed to validate the simulation model Needed

More information

Laws of Probability, Bayes theorem, and the Central Limit Theorem

Laws of Probability, Bayes theorem, and the Central Limit Theorem Laws of, Bayes theorem, and the Central Limit Theorem 6th Penn State Astrostatistics School David Hunter Department of Statistics Penn State University Adapted from notes prepared by Rahul Roy and RL Karandikar,

More information

Set Theory. Pattern Recognition III. Michal Haindl. Set Operations. Outline

Set Theory. Pattern Recognition III. Michal Haindl. Set Operations. Outline Set Theory A, B sets e.g. A = {ζ 1,...,ζ n } A = { c x y d} S space (universe) A,B S Outline Pattern Recognition III Michal Haindl Faculty of Information Technology, KTI Czech Technical University in Prague

More information

MA : Introductory Probability

MA : Introductory Probability MA 320-001: Introductory Probability David Murrugarra Department of Mathematics, University of Kentucky http://www.math.uky.edu/~dmu228/ma320/ Spring 2017 David Murrugarra (University of Kentucky) MA 320:

More information

ORF 245 Fundamentals of Statistics Chapter 1 Probability

ORF 245 Fundamentals of Statistics Chapter 1 Probability ORF 245 Fundamentals of Statistics Chapter 1 Probability Robert Vanderbei Sept 2014 Slides last edited on September 19, 2014 http://www.princeton.edu/ rvdb Course Info Prereqs: Textbook: Three semesters

More information

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

The enumeration of all possible outcomes of an experiment is called the sample space, denoted S. E.g.: S={head, tail} Random Experiment In random experiments, the result is unpredictable, unknown prior to its conduct, and can be one of several choices. Examples: The Experiment of tossing a coin (head, tail) The Experiment

More information

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

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 Mean, Median and Mode Lecture 3 - Axioms of Probability Sta102 / BME102 Colin Rundel September 1, 2014 We start with a set of 21 numbers, ## [1] -2.2-1.6-1.0-0.5-0.4-0.3-0.2 0.1 0.1 0.2 0.4 ## [12] 0.4

More information

Dept. of Linguistics, Indiana University Fall 2015

Dept. of Linguistics, Indiana University Fall 2015 L645 Dept. of Linguistics, Indiana University Fall 2015 1 / 34 To start out the course, we need to know something about statistics and This is only an introduction; for a fuller understanding, you would

More information

Computational intelligence methods

Computational intelligence methods Computational intelligence methods GA, schemas, diversity Pavel Kordík, Martin Šlapák Katedra teoretické informatiky FIT České vysoké učení technické v Praze MI-MVI, ZS 2011/12, Lect. 5 https://edux.fit.cvut.cz/courses/mi-mvi/

More information

Probability Theory. Prof. Dr. Martin Riedmiller AG Maschinelles Lernen Albert-Ludwigs-Universität Freiburg.

Probability Theory. Prof. Dr. Martin Riedmiller AG Maschinelles Lernen Albert-Ludwigs-Universität Freiburg. Probability Theory Prof. Dr. Martin Riedmiller AG Maschinelles Lernen Albert-Ludwigs-Universität Freiburg riedmiller@informatik.uni-freiburg.de Prof. Dr. Martin Riedmiller Machine Learning Lab, University

More information

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019 Lecture 10: Probability distributions DANIEL WELLER TUESDAY, FEBRUARY 19, 2019 Agenda What is probability? (again) Describing probabilities (distributions) Understanding probabilities (expectation) Partial

More information

Conditional probability

Conditional probability CHAPTER 4 Conditional probability 4.1. Introduction Suppose there are 200 men, of which 100 are smokers, and 100 women, of which 20 are smokers. What is the probability that a person chosen at random will

More information

Lecture 1: Basics of Probability

Lecture 1: Basics of Probability Lecture 1: Basics of Probability (Luise-Vitetta, Chapter 8) Why probability in data science? Data acquisition is noisy Sampling/quantization external factors: If you record your voice saying machine learning

More information

M378K In-Class Assignment #1

M378K In-Class Assignment #1 The following problems are a review of M6K. M7K In-Class Assignment # Problem.. Complete the definition of mutual exclusivity of events below: Events A, B Ω are said to be mutually exclusive if A B =.

More information

Axiomatic Foundations of Probability. Definition: Probability Function

Axiomatic Foundations of Probability. Definition: Probability Function Chapter 1 sections We will SKIP a number of sections Set theory SKIP Real number uncountability Definition of probability Finite sample spaces Counting methods Combinatorial methods SKIP tennis tournament

More information

Probability and Statisitcs

Probability and Statisitcs Probability and Statistics Random Variables De La Salle University Francis Joseph Campena, Ph.D. January 25, 2017 Francis Joseph Campena, Ph.D. () Probability and Statisitcs January 25, 2017 1 / 17 Outline

More information

L2: Review of probability and statistics

L2: Review of probability and statistics Probability L2: Review of probability and statistics Definition of probability Axioms and properties Conditional probability Bayes theorem Random variables Definition of a random variable Cumulative distribution

More information

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

Conditional Probability and Bayes Theorem (2.4) Independence (2.5) Conditional Probability and Bayes Theorem (2.4) Independence (2.5) Prof. Tesler Math 186 Winter 2019 Prof. Tesler Conditional Probability and Bayes Theorem Math 186 / Winter 2019 1 / 38 Scenario: Flip

More information

Conditional Probability

Conditional Probability Conditional Probability When we obtain additional information about a probability experiment, we want to use the additional information to reassess the probabilities of events given the new information.

More information

CS626 Data Analysis and Simulation

CS626 Data Analysis and Simulation CS626 Data Analysis and Simulation Instructor: Peter Kemper R 104A, phone 221-3462, email:kemper@cs.wm.edu Today: Probability Primer Quick Reference: Sheldon Ross: Introduction to Probability Models 9th

More information