Intro to Probability for Discrete Variables BMI/CS 576 Colin Dewey Fall 2015.

Slides:



Advertisements
Similar presentations
Primer on Probability Sushmita Roy BMI/CS 576 Sushmita Roy Oct 2nd, 2012 BMI/CS 576.
Advertisements

Acknowledgement: Thanks to Professor Pagano
Scores and substitution matrices in sequence alignment Sushmita Roy BMI/CS 576 Sushmita Roy Sep 11 th,
Statistics review of basic probability and statistics.
Chapter 5 Discrete Random Variables and Probability Distributions
Business Statistics for Managerial Decision
Primer on Probability for Discrete Variables BMI/CS 576 Colin Dewey Fall 2010.
Chapter 4 Discrete Random Variables and Probability Distributions
Probability theory Much inspired by the presentation of Kren and Samuelsson.
Discrete Random Variables and Probability Distributions
Probability Distributions
September SOME BASIC NOTIONS OF PROBABILITY THEORY Universita’ di Venezia 29 Settembre 2003.
1 Engineering Computation Part 5. 2 Some Concepts Previous to Probability RANDOM EXPERIMENT A random experiment or trial can be thought of as any activity.
Discrete Probability Distributions
Continuous Random Variables and Probability Distributions
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Discrete Probability Distributions
Review of Probability Concepts ECON 4550 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Discrete Random Variables Chapter 4.
Chapter 1 Basics of Probability.
Chapter 5 Discrete Random Variables and Probability Distributions ©
PBG 650 Advanced Plant Breeding
Random Variables & Probability Distributions Outcomes of experiments are, in part, random E.g. Let X 7 be the gender of the 7 th randomly selected student.
Modeling and Simulation CS 313
Introduction to Probability Theory March 24, 2015 Credits for slides: Allan, Arms, Mihalcea, Schutze.
Applied Business Forecasting and Regression Analysis Review lecture 2 Randomness and Probability.
From Randomness to Probability
Random Variables. A random variable X is a real valued function defined on the sample space, X : S  R. The set { s  S : X ( s )  [ a, b ] is an event}.
Binomial Experiment A binomial experiment (also known as a Bernoulli trial) is a statistical experiment that has the following properties:
Binomial Probability Distribution
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
COMP 170 L2 L17: Random Variables and Expectation Page 1.
Chapter 5: Probability Analysis of Randomized Algorithms Size is rarely the only property of input that affects run time Worst-case analysis most common.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
CS433 Modeling and Simulation Lecture 03 – Part 01 Probability Review 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University
Probability Course web page: vision.cis.udel.edu/cv March 19, 2003  Lecture 15.
Stats Probability Theory Summary. The sample Space, S The sample space, S, for a random phenomena is the set of all possible outcomes.
1 CS 552/652 Speech Recognition with Hidden Markov Models Winter 2011 Oregon Health & Science University Center for Spoken Language Understanding John-Paul.
IE 300, Fall 2012 Richard Sowers IESE. 8/30/2012 Goals: Rules of Probability Counting Equally likely Some examples.
Random Variables Learn how to characterize the pattern of the distribution of values that a random variable may have, and how to use the pattern to find.
8-3: Probability and Probability Distributions English Casbarro Unit 8.
4.3 More Discrete Probability Distributions NOTES Coach Bridges.
Random Variables Example:
V7 Foundations of Probability Theory „Probability“ : degree of confidence that an event of an uncertain nature will occur. „Events“ : we will assume that.
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Continuous Random Variables and Probability Distributions
9/14/1999 JHU CS /Jan Hajic 1 Introduction to Natural Language Processing Probability AI-Lab
Copyright © Cengage Learning. All rights reserved. 5 Joint Probability Distributions and Random Samples.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
1 Review of Probability and Random Processes. 2 Importance of Random Processes Random variables and processes talk about quantities and signals which.
Random Variables If  is an outcome space with a probability measure and X is a real-valued function defined over the elements of , then X is a random.
Copyright © Cengage Learning. All rights reserved. 3 Discrete Random Variables and Probability Distributions.
Probability Distribution. Probability Distributions: Overview To understand probability distributions, it is important to understand variables and random.
Chapter 4 Discrete Random Variables and Probability Distributions
AP Statistics From Randomness to Probability Chapter 14.
Topic Overview and Study Checklist. From Chapter 7 in the white textbook: Modeling with Differential Equations basic models exponential logistic modified.
MECH 373 Instrumentation and Measurements
Negative Binomial Experiment
Business Statistics Topic 4
Appendix A: Probability Theory
From last time: on-policy vs off-policy Take an action Observe a reward Choose the next action Learn (using chosen action) Take the next action Off-policy.
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
Review of Probability and Estimators Arun Das, Jason Rebello
Part A: Concepts & binomial distributions Part B: Normal distributions
The Binomial and Geometric Distributions
Review of Probability Concepts
4A: Probability Concepts and Binomial Probability Distributions
AP Statistics Chapter 16 Notes.
Presentation transcript:

Intro to Probability for Discrete Variables BMI/CS Colin Dewey Fall 2015

Definition of Probability frequentist interpretation: the probability of an event from a random experiment is proportion of the time events of the same kind will occur in the long run, when the experiment is repeated examples –the probability my flight to Chicago will be on time –the probability this ticket will win the lottery –the probability it will rain tomorrow always a number in the interval [0,1] 0 means “never occurs” 1 means “always occurs” 2

Sample Spaces sample space: a set of possible outcomes for some event examples –flight to Chicago: {on time, late} –lottery:{ticket 1 wins, ticket 2 wins,…,ticket n wins} –weather tomorrow: {rain, not rain} or {sun, rain, snow} or {sun, clouds, rain, snow, sleet} or… 3

Random Variables random variable: a function that maps the outcome of an experiment to a numerical value example –X represents the outcome of my flight to Chicago –we write the probability of my flight being on time as Pr(X = on-time) –or when it’s clear which variable we’re referring to, we may use the shorthand Pr(on-time) 4

Notation UPPERCASE letters and Capitalized words denote random variables lowercase letters and uncapitalized words denote values we’ll denote a particular value for a variable as follows we’ll also use the shorthand form for Boolean random variables, we’ll use the shorthand 5

Probability Distributions if X is a random variable, the function given by Pr(X = x) for each x is the probability distribution of X requirements: sun clouds rain snow sleet

Joint Distributions joint probability distribution: the function given by Pr(X = x, Y = y) read “X equals x and Y equals y” example x, y Pr(X = x, Y = y) sun, on-time 0.20 rain, on-time 0.20 snow, on-time 0.05 sun, late 0.10 rain, late 0.30 snow, late 0.15 probability that it’s sunny and my flight is on time 7

Marginal Distributions the marginal distribution of X is defined by “the distribution of X ignoring other variables” this definition generalizes to more than two variables, e.g. 8

Marginal Distribution Example x, y Pr(X = x, Y = y) sun, on-time 0.20 rain, on-time 0.20 snow, on-time 0.05 sun, late 0.10 rain, late 0.30 snow, late 0.15 x Pr(X = x) sun 0.3 rain 0.5 snow 0.2 joint distributionmarginal distribution for X 9

Conditional Distributions the conditional distribution of X given Y is defined as: “the distribution of X given that we know Y ” 10

Conditional Distribution Example x, y Pr(X = x, Y = y) sun, on-time 0.20 rain, on-time 0.20 snow, on-time 0.05 sun, late 0.10 rain, late 0.30 snow, late 0.15 x Pr(X = x|Y=on-time) sun 0.20/0.45 = rain 0.20/0.45 = snow 0.05/0.45 = joint distribution conditional distribution for X given Y=on-time 11

Independence two random variables, X and Y, are independent if and only if 12

Independence Example #1 x, y Pr(X = x, Y = y) sun, on-time 0.20 rain, on-time 0.20 snow, on-time 0.05 sun, late 0.10 rain, late 0.30 snow, late 0.15 x Pr(X = x) sun 0.3 rain 0.5 snow 0.2 joint distributionmarginal distributions y Pr(Y = y) on-time 0.45 late 0.55 Are X and Y independent here?NO. 13

Independence Example #2 x, y Pr(X = x, Y = y) sun, fly-United 0.27 rain, fly-United 0.45 snow, fly-United 0.18 sun, fly-Northwest 0.03 rain, fly-Northwest 0.05 snow, fly-Northwest 0.02 x Pr(X = x) sun 0.3 rain 0.5 snow 0.2 joint distributionmarginal distributions y Pr(Y = y) fly-United 0.9 fly-Northwest 0.1 Are X and Y independent here?YES. 14

Conditional Independence two random variables X and Y are conditionally independent given Z if and only if “once you know the value of Z, knowing Y doesn’t tell you anything about X ” alternatively 15

Conditional Independence Example FluFeverVomitPr true 0.04 true false0.04 truefalsetrue0.01 truefalse 0.01 falsetrue falsetruefalse0.081 false true0.081 false Fever and Vomit are not independent: Fever and Vomit are conditionally independent given Flu: 16

For two variables: For three variables etc. to see that this is true, note that Chain Rule of Probability 17

Bayes Theorem this theorem is extremely useful there are many cases when it is hard to estimate Pr(x | y) directly, but it’s not too hard to estimate Pr(y | x) and Pr(x) 18

Bayes Theorem Example MDs usually aren’t good at estimating Pr(Disorder | Symptom) they’re usually better at estimating Pr(Symptom | Disorder) if we can estimate Pr(Fever | Flu) and Pr(Flu) we can use Bayes’ Theorem to do diagnosis 19

Expected Values the expected value of a random variable that takes on numerical values is defined as: this is the same thing as the mean we can also talk about the expected value of a function of a random variable (which is also a random variable) 20

Expected Value Examples Suppose each lottery ticket costs $1 and the winning ticket pays out $100. The probability that a particular ticket is the winning ticket is

Linearity of Expectation An extremely useful aspect of expected values is the following identity This holds even if X and Y are not independent! 22

Expected values of indicator random variables It is common to use indicator random variables The expected value of such a variable is simply 23

The Geometric Distribution distribution over the number of trials before the first failure (with same probability of success p in each) e.g. the probability of x heads before the first tail 24

The Binomial Distribution distribution over the number of successes in a fixed number n of independent trials (with same probability of success p in each) e.g. the probability of x heads in n coin flips 25

The Multinomial Distribution k possible outcomes on each trial probability p i for outcome x i in each trial distribution over the number of occurrences x i for each outcome in a fixed number n of independent trials For example, with k = 6 (e.g., a six-sided die) and n = 30: 26

Continuous random variables When our outcome is a continuous number we need a continuous random variable Examples: Weight, Height We specify a density function for random variable X as Probabilities are specified over an interval to derive probability values Probability of taking on a single value is 0.

Continuous random variables contd To define a probability distribution for a continuous variable, we need to integrate f(x)

Examples of continuous distributions Gaussian distribution Exponential distribution Extreme Value distribution

Gaussian distribution