Mathematics for Informatics 4a

Similar documents
Origins of Probability Theory

Chapter 1 Axioms of Probability. Wen-Guey Tzeng Computer Science Department National Chiao University

Chapter 1 Axioms of Probability. Wen-Guey Tzeng Computer Science Department National Chiao University

Lecture notes for probability. Math 124

MA : Introductory Probability

Foundations of Probability Theory

Probability Rules. MATH 130, Elements of Statistics I. J. Robert Buchanan. Fall Department of Mathematics

4 Lecture 4 Notes: Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio

Probability with Engineering Applications ECE 313 Section C Lecture 2. Lav R. Varshney 30 August 2017

1. Axioms of probability

Probability Experiments, Trials, Outcomes, Sample Spaces Example 1 Example 2

Introduction to Probability

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

Recap. The study of randomness and uncertainty Chances, odds, likelihood, expected, probably, on average,... PROBABILITY INFERENTIAL STATISTICS

Statistical Theory 1

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

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

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

Statistical Inference

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

Recitation 2: Probability

Statistics for Financial Engineering Session 2: Basic Set Theory March 19 th, 2006

Probability COMP 245 STATISTICS. Dr N A Heard. 1 Sample Spaces and Events Sample Spaces Events Combinations of Events...

CMPSCI 240: Reasoning about Uncertainty

Lecture 3 Probability Basics

Chapter 2: Probability Part 1

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).

Discrete Structures for Computer Science

Chance, too, which seems to rush along with slack reins, is bridled and governed by law (Boethius, ).

Probability Theory and Applications

Lecture 9: Conditional Probability and Independence

Properties of Probability

Probability- describes the pattern of chance outcomes

Week 2. Section Texas A& M University. Department of Mathematics Texas A& M University, College Station 22 January-24 January 2019

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

CS626 Data Analysis and Simulation

Tutorial 3: Random Processes

Example 1. The sample space of an experiment where we flip a pair of coins is denoted by:

Probability Dr. Manjula Gunarathna 1

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

Randomized Algorithms. Andreas Klappenecker

Econ 325: Introduction to Empirical Economics

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

What is the probability of getting a heads when flipping a coin

CSC Discrete Math I, Spring Discrete Probability

Probabilistic models

Mathematical foundations of Econometrics

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

Lecture Lecture 5

Lecture 1: An introduction to probability theory

Statistics 1 - Lecture Notes Chapter 1

With Question/Answer Animations. Chapter 7

9/6. Grades. Exam. Card Game. Homework/quizzes: 15% (two lowest scores dropped) Midterms: 25% each Final Exam: 35%

EnM Probability and Random Processes

Probability Theory. Introduction to Probability Theory. Principles of Counting Examples. Principles of Counting. Probability spaces.

Probabilistic models

2. AXIOMATIC PROBABILITY

AMS7: WEEK 2. CLASS 2

Module 1. Probability

STT When trying to evaluate the likelihood of random events we are using following wording.

Lecture 8: Probability

SDS 321: Introduction to Probability and Statistics

ECE 302: Chapter 02 Probability Model

Chapter 6: Probability The Study of Randomness

Chapter 1: Introduction to Probability Theory

the time it takes until a radioactive substance undergoes a decay

PROBABILITY THEORY 1. Basics

Probability: Sets, Sample Spaces, Events

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

Probability: Axioms, Properties, Interpretations

STAT 111 Recitation 1

Review of Probability, Expected Utility

Lecture 1: Probability Fundamentals

Math 1313 Experiments, Events and Sample Spaces

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

Probability 1 (MATH 11300) lecture slides

Axioms of Probability

Lecture 4: Probability and Discrete Random Variables

Crash Course in Statistics for Neuroscience Center Zurich University of Zurich

ORF 245 Fundamentals of Statistics Chapter 1 Probability

Important Concepts Read Chapter 2. Experiments. Phenomena. Probability Models. Unpredictable in detail. Examples

CHAPTER 15 PROBABILITY Introduction

Stat 609: Mathematical Statistics I (Fall Semester, 2016) Introduction

Conditional Probability

Random Signals and Systems. Chapter 1. Jitendra K Tugnait. Department of Electrical & Computer Engineering. James B Davis Professor.

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 2: Random Experiments. Prof. Vince Calhoun

Probability Theory and Simulation Methods

Topic 5 Basics of Probability

Discrete Probability. Mark Huiskes, LIACS Probability and Statistics, Mark Huiskes, LIACS, Lecture 2

4. The Negative Binomial Distribution

Formalizing Probability. Choosing the Sample Space. Probability Measures

Chapter 7: Section 7-1 Probability Theory and Counting Principles

Chapter Summary. 7.1 Discrete Probability 7.2 Probability Theory 7.3 Bayes Theorem 7.4 Expected value and Variance

6.262: Discrete Stochastic Processes 2/2/11. Lecture 1: Introduction and Probability review

ORF 245 Fundamentals of Statistics Chapter 5 Probability

Probability and Sample space

Chap 4 Probability p227 The probability of any outcome in a random phenomenon is the proportion of times the outcome would occur in a long series of

Bayes Theorem. Jan Kracík. Department of Applied Mathematics FEECS, VŠB - TU Ostrava

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

Lecture 3 - Axioms of Probability

Transcription:

Mathematics for Informatics 4a José Figueroa-O Farrill Lecture 1 18 January 2012 José Figueroa-O Farrill mi4a (Probability) Lecture 1 1 / 23

Introduction Topic: Probability and random processes Lectures: AT3 on Wednesday and Friday at 12:10pm Office hours: by appointment (email) at JCMB 6321 Email: j.m.figueroa@ed.ac.uk José Figueroa-O Farrill mi4a (Probability) Lecture 1 2 / 23

The future was uncertain José Figueroa-O Farrill mi4a (Probability) Lecture 1 3 / 23

The future is still uncertain José Figueroa-O Farrill mi4a (Probability) Lecture 1 4 / 23

The universe is fundamentally uncertain! José Figueroa-O Farrill mi4a (Probability) Lecture 1 5 / 23

There is no god of Algebra, but... José Figueroa-O Farrill mi4a (Probability) Lecture 1 6 / 23

There is no god of Algebra, but... there are gods of probability José Figueroa-O Farrill mi4a (Probability) Lecture 1 6 / 23

There is no god of Algebra, but... there are gods of probability Fu Lu Shou José Figueroa-O Farrill mi4a (Probability) Lecture 1 6 / 23

There is no god of Algebra, but... there are gods of probability Fu Lu Shou Shichi Fukujin José Figueroa-O Farrill mi4a (Probability) Lecture 1 6 / 23

There is no god of Algebra, but... there are gods of probability Fu Lu Shou Shichi Fukujin Lakshmi José Figueroa-O Farrill mi4a (Probability) Lecture 1 6 / 23

There is no god of Algebra, but... there are gods of probability Fu Lu Shou Shichi Fukujin Lakshmi Tyche José Figueroa-O Farrill mi4a (Probability) Lecture 1 6 / 23

There is no god of Algebra, but... there are gods of probability Fu Lu Shou Shichi Fukujin Lakshmi Tyche Fortuna José Figueroa-O Farrill mi4a (Probability) Lecture 1 6 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) Jakob Bernoulli (1654-1705) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) Jakob Bernoulli (1654-1705) Abraham de Moivre (1667-1754) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) Jakob Bernoulli (1654-1705) Abraham de Moivre (1667-1754) Thomas Bayes (1702-1761) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) Jakob Bernoulli (1654-1705) Abraham de Moivre (1667-1754) Thomas Bayes (1702-1761) Pierre-Simon Laplace (1749-1827) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) Jakob Bernoulli (1654-1705) Abraham de Moivre (1667-1754) Thomas Bayes (1702-1761) Pierre-Simon Laplace (1749-1827) Adrien-Marie Legendre (1752-1833) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) Jakob Bernoulli (1654-1705) Abraham de Moivre (1667-1754) Thomas Bayes (1702-1761) Pierre-Simon Laplace (1749-1827) Adrien-Marie Legendre (1752-1833) Andrei Markov (1866-1922) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) Jakob Bernoulli (1654-1705) Abraham de Moivre (1667-1754) Thomas Bayes (1702-1761) Pierre-Simon Laplace (1749-1827) Adrien-Marie Legendre (1752-1833) Andrei Markov (1866-1922) Andrei Kolmogorov (1903-1987) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

The mathematical study of Probability Some notable names Gerolamo Cardano (1501-1576) Pierre de Fermat (1601-1665) Blaise Pascal (1623-1662) Christiaan Huygens (1629-1695) Jakob Bernoulli (1654-1705) Abraham de Moivre (1667-1754) Thomas Bayes (1702-1761) Pierre-Simon Laplace (1749-1827) Adrien-Marie Legendre (1752-1833) Andrei Markov (1866-1922) Andrei Kolmogorov (1903-1987) Claude Shannon (1916-2001) José Figueroa-O Farrill mi4a (Probability) Lecture 1 7 / 23

What it is all about Mathematical probability aims to formalise everyday sentences of the type: The chance of A is p where A is some event and p is some measure of the likelihood of occurrence of that event. Example There is a 20% chance of snow. There is 5% chance that the West Antarctic Ice Sheet will collapse in the next 200 years. There is a low probability of Northern Rock having a liquidity problem. José Figueroa-O Farrill mi4a (Probability) Lecture 1 8 / 23

Trials and outcomes This requires introducing some language. Definition/Notation By a trial (or an experiment) we mean any process which has a well-defined set Ω of outcomes. Ω is called the sample space. Example Tossing a coin: Ω = {H, T}. Tossing two coins: Ω = {(H, H), (H, T), (T, H), (T, T)}. Example (Rolling a (6-sided) die) Ω = {,,,,, }. José Figueroa-O Farrill mi4a (Probability) Lecture 1 9 / 23

Events are what we assign a probability to Definition An event A is a subset of Ω. We say that an event A has (not) occurred if the outcome of the trial is (not) contained in A. Example Tossing a coin and getting a head: A = {H}. Tossing two coins and getting at least one head: A = {(H, H), (H, T), (T, H)}. Rolling a die and getting an even number: A = {,, } Rolling two dice and getting a total of 5: A = {(, ), (, ), (, ), (, )} José Figueroa-O Farrill mi4a (Probability) Lecture 1 10 / 23

Events are what we assign a probability to Definition An event A is a subset of Ω. We say that an event A has (not) occurred if the outcome of the trial is (not) contained in A. Example Tossing a coin and getting a head: A = {H}. Tossing two coins and getting at least one head: A = {(H, H), (H, T), (T, H)}. Rolling a die and getting an even number: A = {,, } Rolling two dice and getting a total of 5: A = {(, ), (, ), (, ), (, )} Warning (for infinite Ω) Not all subsets of Ω need be events! José Figueroa-O Farrill mi4a (Probability) Lecture 1 10 / 23

The language of sets Let us consider subsets of a set Ω. Definition The complement of A Ω is denoted A c Ω: ω A c ω A Clearly (A c ) c = A. Ω A A c Example (The empty set) The complement of Ω is the empty set : ω ω Ω José Figueroa-O Farrill mi4a (Probability) Lecture 1 11 / 23

Definition The union of A and B is denoted A B: ω A B ω A or ω B or both Ω A B A B Remark For all subsets A of Ω, A = A and A Ω = Ω. José Figueroa-O Farrill mi4a (Probability) Lecture 1 12 / 23

Definition The intersection of A and B is denoted A B: ω A B ω A and ω B If A B = we say A and B are disjoint. Ω A B A B Remark For all subsets A of Ω, A = and A Ω = A. José Figueroa-O Farrill mi4a (Probability) Lecture 1 13 / 23

Distributivity identities Union and intersection obey distributive properties. Theorem Let (A i ) i I be a family of subsets of Ω indexed by some index set I and let B Ω. Then i I (B A i ) = B i I A i and i I (B A i ) = B i I A i José Figueroa-O Farrill mi4a (Probability) Lecture 1 14 / 23

Proof. ω i I (B A i ) i I, ω B A i i I, ω B or ω A i ω B or ω A i i I ω B or ω i I A i ω B i I A i. The other equality is proved similarly. José Figueroa-O Farrill mi4a (Probability) Lecture 1 15 / 23

De Morgan s Theorem Union and intersection are dual under complementation. Theorem (De Morgan s) Let (A i ) i I be a family of subsets of Ω indexed by some index set I. Then ( ( and i I A i)c = i I A c i i I A i)c = i I A c i Remark This shows that complementation together with either union or interesection is enough, since, e.g., A B = (A c B c ) c José Figueroa-O Farrill mi4a (Probability) Lecture 1 16 / 23

Proof. ( ω A i A i)c ω i I i I ω A i i I ω A c i i I ω A c i. i I The other equality if proved similarly. José Figueroa-O Farrill mi4a (Probability) Lecture 1 17 / 23

Definition The difference A \ B = A B c and the symmetric difference A B = (A \ B) (B \ A). Ω Ω A B A B A \ B A B Remark Notice that A \ B = A \ (A B). José Figueroa-O Farrill mi4a (Probability) Lecture 1 18 / 23

Probability/Set theory dictionary Notation Set-theoretic language Probabilistic language Ω Universe Sample space ω Ω member of Ω outcome A Ω subset of Ω some outcome in A occurs A c complement of A no outcome in A occurs A B intersection Both A and B A B union Either A or B (or both) A \ B difference A, but not B A B symmetric difference Either A or B, but not both empty set impossible event Ω whole universe certain event José Figueroa-O Farrill mi4a (Probability) Lecture 1 19 / 23

Which subsets can be events? For finite Ω, any subset can be an event. For infinite Ω, it is not always sensible to allow all subsets to be events. (Trust me!) If A is an event, it seems reasonable that A c is also an event. Similarly, if A and B are events, it seems reasonable that A B and A B should also be events. In summary, the collection of events must be closed under complementation and pairwise union and intersection. By induction, it must also be closed under finite union and intersection: if A 1,..., A N are events, so should be A 1 A 2 A N and A 1 A 2 A N. José Figueroa-O Farrill mi4a (Probability) Lecture 1 20 / 23

The following example, shows that this is not enough. Example Alice and Bob play a game in which they toss a coin in turn. The winner is the first person to obtain H. Intuition says that the the person who plays first has an advantage. We would like to quantify this intuition. Suppose Alice goes first. She wins if and only if the first H turns out after an odd number of tosses. Let ω i be the outcome } TT {{ T} H. Then the event that Alice wins is i 1 A = {ω 1, ω 3, ω 5,... }, which is a disjoint union of a countably infinite number of events. In order to compute the likelihood of Alice winning, it had better be the case that A is an event, so one demands that the family of events be closed under countably infinite unions; that is, if A i, for i = 1, 2,..., are events, then so is i=1 A i. José Figueroa-O Farrill mi4a (Probability) Lecture 1 21 / 23

σ-fields Definition A family F of subsets of Ω is a σ-field if José Figueroa-O Farrill mi4a (Probability) Lecture 1 22 / 23

σ-fields Definition A family F of subsets of Ω is a σ-field if 1 Ω F José Figueroa-O Farrill mi4a (Probability) Lecture 1 22 / 23

σ-fields Definition A family F of subsets of Ω is a σ-field if 1 Ω F 2 if A 1, A 2,... F, then i=1 A i F José Figueroa-O Farrill mi4a (Probability) Lecture 1 22 / 23

σ-fields Definition A family F of subsets of Ω is a σ-field if 1 Ω F 2 if A 1, A 2,... F, then i=1 A i F 3 if A F, then A c F José Figueroa-O Farrill mi4a (Probability) Lecture 1 22 / 23

σ-fields Definition A family F of subsets of Ω is a σ-field if 1 Ω F 2 if A 1, A 2,... F, then i=1 A i F 3 if A F, then A c F Remark It follows from De Morgan s theorem that for a σ-field F, if A 1, A 2, F then i=1 A i F. Also Ω F, since Ω = c. Finally, a σ-field is closed under (symmetric) difference. José Figueroa-O Farrill mi4a (Probability) Lecture 1 22 / 23

σ-fields Definition A family F of subsets of Ω is a σ-field if 1 Ω F 2 if A 1, A 2,... F, then i=1 A i F 3 if A F, then A c F Remark It follows from De Morgan s theorem that for a σ-field F, if A 1, A 2, F then i=1 A i F. Also Ω F, since Ω = c. Finally, a σ-field is closed under (symmetric) difference. Example The smallest σ-field is F = {, Ω}. The largest is the power set of Ω (i.e., the collection of all subsets of Ω). José Figueroa-O Farrill mi4a (Probability) Lecture 1 22 / 23

Summary With any experiment or trial we associate a pair (Ω, F), where José Figueroa-O Farrill mi4a (Probability) Lecture 1 23 / 23

Summary With any experiment or trial we associate a pair (Ω, F), where Ω, the sample space, is the set of all possible outcomes of the experiment; and José Figueroa-O Farrill mi4a (Probability) Lecture 1 23 / 23

Summary With any experiment or trial we associate a pair (Ω, F), where Ω, the sample space, is the set of all possible outcomes of the experiment; and F, the family of events, is a σ-field of subsets of Ω: a family of subset of Ω containing the empty set and closed under complementation and countable unions. José Figueroa-O Farrill mi4a (Probability) Lecture 1 23 / 23

Summary With any experiment or trial we associate a pair (Ω, F), where Ω, the sample space, is the set of all possible outcomes of the experiment; and F, the family of events, is a σ-field of subsets of Ω: a family of subset of Ω containing the empty set and closed under complementation and countable unions. In the next lecture we will see how to enhance the pair (Ω, F) to a probability space by assigning a measure of likelihood (i.e., a probability ) to the events in F. José Figueroa-O Farrill mi4a (Probability) Lecture 1 23 / 23

Summary With any experiment or trial we associate a pair (Ω, F), where Ω, the sample space, is the set of all possible outcomes of the experiment; and F, the family of events, is a σ-field of subsets of Ω: a family of subset of Ω containing the empty set and closed under complementation and countable unions. In the next lecture we will see how to enhance the pair (Ω, F) to a probability space by assigning a measure of likelihood (i.e., a probability ) to the events in F. There is a dictionary between the languages of set theory and of probability. In particular, we will use the set-theoretic language freely. José Figueroa-O Farrill mi4a (Probability) Lecture 1 23 / 23