Terminology. Experiment = Prior = Posterior =

Similar documents
Data Modeling & Analysis Techniques. Probability & Statistics. Manfred Huber

Problem sets for BUEC 333 Part 1: Probability and Statistics

Sections 2.11 and 5.8

For a partition B 1,..., B n, where B i B j = for i. A = (A B 1 ) (A B 2 ),..., (A B n ) and thus. P (A) = P (A B i ) = P (A B i )P (B i )

MA 1125 Lecture 14 - Expected Values. Friday, February 28, Objectives: Introduce expected values.

Bayesian Updating with Discrete Priors Class 11, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Business Statistics 41000: Probability 1

Lecture 9: Introduction to Pattern Analysis

Bayesian Analysis for the Social Sciences

Covariance and Correlation

Discrete Structures for Computer Science

Introduction to Game Theory IIIii. Payoffs: Probability and Expected Utility

E3: PROBABILITY AND STATISTICS lecture notes

Statistics 104: Section 6!

Joint Exam 1/P Sample Exam 1

Summary of Formulas and Concepts. Descriptive Statistics (Ch. 1-4)

STT 200 LECTURE 1, SECTION 2,4 RECITATION 7 (10/16/2012)

ST 371 (IV): Discrete Random Variables

An Introduction to Information Theory

Lecture 9: Bayesian hypothesis testing

Probability for Estimation (review)

The Binomial Distribution. Summer 2003

International College of Economics and Finance Syllabus Probability Theory and Introductory Statistics

Discrete Math in Computer Science Homework 7 Solutions (Max Points: 80)

Master s Theory Exam Spring 2006

Review Jeopardy. Blue vs. Orange. Review Jeopardy

Probability and Statistics Vocabulary List (Definitions for Middle School Teachers)

Random variables P(X = 3) = P(X = 3) = 1 8, P(X = 1) = P(X = 1) = 3 8.

Quadratic forms Cochran s theorem, degrees of freedom, and all that

MULTIVARIATE PROBABILITY DISTRIBUTIONS

Department of Mathematics, Indian Institute of Technology, Kharagpur Assignment 2-3, Probability and Statistics, March Due:-March 25, 2015.

Chicago Booth BUSINESS STATISTICS Final Exam Fall 2011

Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

The Monte Carlo Framework, Examples from Finance and Generating Correlated Random Variables

Definition: Suppose that two random variables, either continuous or discrete, X and Y have joint density

What Is Probability?

Probabilities. Probability of a event. From Random Variables to Events. From Random Variables to Events. Probability Theory I

Math 141. Lecture 2: More Probability! Albyn Jones 1. jones/courses/ Library 304. Albyn Jones Math 141

Unit 4 The Bernoulli and Binomial Distributions

What is Statistics? Lecture 1. Introduction and probability review. Idea of parametric inference

Lecture 8 The Subjective Theory of Betting on Theories

Chapter 4 Lecture Notes

CHAPTER 2 Estimating Probabilities

Machine Learning.

CS229 Lecture notes. Andrew Ng

A Primer on Mathematical Statistics and Univariate Distributions; The Normal Distribution; The GLM with the Normal Distribution

Math 431 An Introduction to Probability. Final Exam Solutions

Lecture 3: Continuous distributions, expected value & mean, variance, the normal distribution

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 13. Random Variables: Distribution and Expectation

The Basics of Graphical Models

Bayes and Naïve Bayes. cs534-machine Learning

STA 371G: Statistics and Modeling

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution

Week 2: Conditional Probability and Bayes formula

Probability & Probability Distributions

Statistics 100A Homework 8 Solutions

Basics of Statistical Machine Learning

Some probability and statistics

Random variables, probability distributions, binomial random variable

The Optimality of Naive Bayes

Institute of Actuaries of India Subject CT3 Probability and Mathematical Statistics

AMS 5 CHANCE VARIABILITY

1 Prior Probability and Posterior Probability

Data Mining: Algorithms and Applications Matrix Math Review

Section 6.2 Definition of Probability

The Bivariate Normal Distribution

A Few Basics of Probability

What you CANNOT ignore about Probs and Stats

Example 1: Dear Abby. Stat Camp for the Full-time MBA Program

University of Chicago Graduate School of Business. Business 41000: Business Statistics

Mathematical Expectation

MAS108 Probability I

Statistics in Geophysics: Introduction and Probability Theory

Math/Stats 425 Introduction to Probability. 1. Uncertainty and the axioms of probability

An Introduction to Machine Learning

Multiple regression - Matrices

PS 271B: Quantitative Methods II. Lecture Notes

Linear regression methods for large n and streaming data

Financial Risk Management Exam Sample Questions/Answers

BNG 202 Biomechanics Lab. Descriptive statistics and probability distributions I

Linear Threshold Units

6 PROBABILITY GENERATING FUNCTIONS

Math 55: Discrete Mathematics

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution

Introductory Probability. MATH 107: Finite Mathematics University of Louisville. March 5, 2014

Experimental Uncertainty and Probability

University of California, Los Angeles Department of Statistics. Random variables

Variations of Statistical Models

Recursive Estimation

Feb 7 Homework Solutions Math 151, Winter Chapter 4 Problems (pages )

STAT 360 Probability and Statistics. Fall 2012

Forecast covariances in the linear multiregression dynamic model.

5. Linear Regression

Conditional Probability, Hypothesis Testing, and the Monty Hall Problem

Lecture Notes 1. Brief Review of Basic Probability

Bayesian Networks. Read R&N Ch Next lecture: Read R&N

6.3 Conditional Probability and Independence

Dimensionality Reduction: Principal Components Analysis

Definition and Calculus of Probability

Transcription:

Review: probability RVs, events, sample space Ω Measures, distributions disjoint union property (law of total probability book calls this sum rule ) Sample v. population Law of large numbers Marginals, conditionals 1

Monty Hall 2

Terminology Experiment = Prior = Posterior = 3

Example: model selection You re gambling to decide who has to clean the lab You are accused of using weighted dice! prior: observation: posterior: Two models: fair dice: all 36 rolls equally likely weighted: rolls summing to 7 more likely 4

Philosophy Frequentist v. Bayesian Frequentist view: a probability is a property of the world (the coin has P(H) = 0.62) Bayesian view: a probability is a representation of our internal beliefs about the world (we think P(H) = 0.62) 5

Difference Bayesian is willing to assign P(E) to any E, even one which has happened already (although it will be 1 or 0 if E or E has been observed) Frequentist will assign probabilities only to outcomes of future experiments Consider the question: what is the probability that coin #273 is fair? 6

Which is right? Both! Bayesians can ask more questions But for a question that makes sense to both, answer will agree Can often rephrase a Bayesian question in frequentist terms answer may differ either may see other s answer as a reasonable approximation 7

Independence X and Y are independent if, for all possible values of y, P(X) = P(X Y=y) equivalently, for all possible values of x, P(Y) = P(Y X=x) equivalently, P(X, Y) = P(X) P(Y) Knowing X or Y gives us no information about the other 8

Independence: probability = product of marginals AAPL price up same down Weather sun 0.09 0.15 0.06 0.3 rain 0.21 0.35 0.14 0.7 0.3 0.5 0.2 9

Readings So far: p1 4, sec 1 1.2, sec 2 2.3 We ll put them next to relevant lectures on schedule page They provide extra detail beyond what s in lecture you are responsible for knowing it No specific due date 10

Expectations AAPL price How much should we expect to earn from our AAPL stock? Weather sun rain up same down 0.09 0.15 0.06 0.21 0.35 0.14 Weather sun rain up same down +1 0-1 +1 0-1 11

Linearity of expectation AAPL price Expectation is a linear function of numbers in Weather sun rain up same down 0.09 0.15 0.06 0.21 0.35 0.14 bottom table E.g., change -1s to 0s or to -2s Weather sun rain up same down +1 0-1 +1 0-1 12

Conditional expectation AAPL price What if we know it s sunny? Weather sun rain up same down 0.09 0.15 0.06 0.21 0.35 0.14 Weather sun rain up same down +1 0-1 +1 0-1 13

Independence and expectation If X and Y are independent, then: Proof: 14

Sample means Sample mean = Expectation of sample mean: 15

Estimators Common task: given a sample, infer something about the population An estimator is a function of a sample that we use to tell us something about the population E.g., sample mean is a good estimator of population mean E.g., linear regression 16

Law of large numbers (more general form) If we take a sample of size N from a distribution P with mean μ and compute sample mean x Then x μ as N 17

Bias Given an estimator T of a population quantity θ The bias of T is Sample mean is estimator of population mean (1 + xi) / (N+1) is 18

Variance Two estimators of population mean: sample mean, mean of every 2nd sample Both unbiased, but one is much more variable Measure of variability: variance 19

Variance If zero-mean: variance = E(X 2 ) Ex: constant 0 v. coin-flip ±1 In general: E((X E(X)) 2 ) 20

Exercise: simplify the expression for variance E((X E(X)) 2 ) 21

Exercise What is the variance of 3X? 22

Sample variance Sample variance = Expectation: Sample size correction: 23

Bias-variance decomposition Estimator T of population quantity θ Mean squared error = E((T θ) 2 ) = 24

CLT Central limit theorem: for a sample of size N, population mean μ, population variance σ 2, the sample average has mean variance 25

CLT proof Assume mu = 0 for simplicity 26

Covariance Suppose we want an approximate numeric measure of (in)dependence Consider the random variable XY if X, Y are typically both +ve or both -ve if X, Y are independent 27

Covariance cov(x, Y) = Is this a good measure of dependence? Suppose we scale X by 10: 28

Correlation Like covariance, but control for variance of individual r.v.s cor(x, Y) = cor(10x, Y) = 29

Correlation v. independence # Equal probability on each point Are X and Y independent? Y! $ "!$ Are X and Y uncorrelated?!!!#!! "! X 30

Correlation v. independence Equal probability on each point Are X and Y independent? Y #! $ "!$ Are X and Y uncorrelated?!!!#!! "! X 31

Bayes Rule For any X, Y, C Rev. Thomas Bayes 1702 1761 P(X Y, C) P(Y C) = P(Y X, C) P(X C) Simple version (without context) P(X Y) P(Y) = P(Y X) P(X) Can be taken as definition of conditioning 32

Bayes rule: usual form Take symmetric form P(X Y) P(Y) = P(Y X) P(X) Divide by P(Y) 33

Revisit: weighted dice Fair dice: all 36 rolls equally likely Weighted: rolls summing to 7 more likely Data: 1-6 2-5 34

Exercise You are tested for a rare disease, emacsitis prevalence 3 in 100,000 Your receive a test that is 99% sensitive and 99% specific sensitivity = P(yes emacsitis) specificity = P(no ~emacsitis) The test comes out positive Do you have emacsitis? 35