Epidemiology Principle of Biostatistics Chapter 5 Probability Distributions (continued) John Koval

Similar documents
Epidemiology Principle of Biostatistics Chapter 7: Sampling Distributions (continued) John Koval

STAT 111 Recitation 3

Lecture 23. STAT 225 Introduction to Probability Models April 4, Whitney Huang Purdue University. Normal approximation to Binomial

Unit 6 Bernoulli and Binomial Distributions Homework SOLUTIONS

Populations and Samples Bios 662

Chapter 7 1. Random Variables

4: Probability. What is probability? Random variables (RVs)

Central Limit Theorem, Joint Distributions Spring 2018

ECO220Y Continuous Probability Distributions: Normal Readings: Chapter 9, section 9.10

NORMAL APPROXIMATION. In the last chapter we discovered that, when sampling from almost any distribution, e r2 2 rdrdϕ = 2π e u du =2π.

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions.

Review. Binomial random variable

Describing Uncertain Variables

4.3 Normal distribution

Homework: Due Wed, Nov 3 rd Chapter 8, # 48a, 55c and 56 (count as 1), 67a

IEOR 165 Lecture 1 Probability Review

Topic 8: Model Diagnostics

Continuous Probability Distributions & Normal Distribution

Normal distribution Approximating binomial distribution by normal 2.10 Central Limit Theorem

Approximating random inequalities with. Edgeworth expansions

What was in the last lecture?

ECON Introductory Econometrics. Lecture 1: Introduction and Review of Statistics

Sampling & populations

E509A: Principle of Biostatistics. GY Zou

Favorite Distributions

Lecture Stat 302 Introduction to Probability - Slides 15

University of Texas, MD Anderson Cancer Center

Statistics & Flood Frequency Chapter 3. Dr. Philip B. Bedient

This chapter reviews basic probability concepts that are necessary for the modeling and statistical analysis of financial data.

Risk Neutral Valuation, the Black-

CS 237: Probability in Computing

Homework: Due Wed, Feb 20 th. Chapter 8, # 60a + 62a (count together as 1), 74, 82

Business Statistics 41000: Probability 3

Business Statistics 41000: Probability 4

Probability Theory and Simulation Methods. April 9th, Lecture 20: Special distributions

Probability Distributions II

4-2 Probability Distributions and Probability Density Functions. Figure 4-2 Probability determined from the area under f(x).

Normal Distribution. Notes. Normal Distribution. Standard Normal. Sums of Normal Random Variables. Normal. approximation of Binomial.

Chapter 4 Continuous Random Variables and Probability Distributions

Lecture 3: Probability Distributions (cont d)

4: Probability. Notes: Range of possible probabilities: Probabilities can be no less than 0% and no more than 100% (of course).

STAT 111 Recitation 4

Engineering Statistics ECIV 2305

MAS1403. Quantitative Methods for Business Management. Semester 1, Module leader: Dr. David Walshaw

Loss Simulation Model Testing and Enhancement

A useful modeling tricks.

9.5 Fast Initial Response (FIR) for Cusum Charts

Chapter 9 Theoretical Probability Models

Section 1.3: More Probability and Decisions: Linear Combinations and Continuous Random Variables

9.6 Counted Data Cusum Control Charts

Normal populations. Lab 9: Normal approximations for means STT 421: Summer, 2004 Vince Melfi

Chapter 14 - Random Variables

MA : Introductory Probability

TOPIC: PROBABILITY DISTRIBUTIONS

Statistical Tables Compiled by Alan J. Terry

The Normal Probability Distribution

Section 7.1: Continuous Random Variables

Two hours. To be supplied by the Examinations Office: Mathematical Formula Tables and Statistical Tables THE UNIVERSITY OF MANCHESTER

Statistics for Business and Economics

1 Small Sample CI for a Population Mean µ

Chapter 8: The Binomial and Geometric Distributions

A random variable (r. v.) is a variable whose value is a numerical outcome of a random phenomenon.

Chapter 4 Continuous Random Variables and Probability Distributions

Lecture III. 1. common parametric models 2. model fitting 2a. moment matching 2b. maximum likelihood 3. hypothesis testing 3a. p-values 3b.

STATISTICS and PROBABILITY

Binomial Probabilities The actual probability that P ( X k ) the formula n P X k p p. = for any k in the range {0, 1, 2,, n} is given by. n n!

Discrete Random Variables and Their Probability Distributions

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 10: Continuous RV Families. Prof. Vince Calhoun

Strategy -1- Strategy

continuous rv Note for a legitimate pdf, we have f (x) 0 and f (x)dx = 1. For a continuous rv, P(X = c) = c f (x)dx = 0, hence

2011 Pearson Education, Inc

STA258H5. Al Nosedal and Alison Weir. Winter Al Nosedal and Alison Weir STA258H5 Winter / 41

Normal Distribution. Definition A continuous rv X is said to have a normal distribution with. the pdf of X is

Topic 6 - Continuous Distributions I. Discrete RVs. Probability Density. Continuous RVs. Background Reading. Recall the discrete distributions

Continuous probability distribution

Chapter 4 and 5 Note Guide: Probability Distributions

Chapter 6: Random Variables. Ch. 6-3: Binomial and Geometric Random Variables

ME3620. Theory of Engineering Experimentation. Spring Chapter III. Random Variables and Probability Distributions.

Chapter 5. Continuous Random Variables and Probability Distributions. 5.1 Continuous Random Variables

3. Continuous Probability Distributions

Commonly Used Distributions

Version A. Problem 1. Let X be the continuous random variable defined by the following pdf: 1 x/2 when 0 x 2, f(x) = 0 otherwise.

**BEGINNING OF EXAMINATION** A random sample of five observations from a population is:

. (i) What is the probability that X is at most 8.75? =.875

Lecture 2. Probability Distributions Theophanis Tsandilas

4 Random Variables and Distributions

The Binomial Distribution

Basic Principles of Probability and Statistics. Lecture notes for PET 472 Spring 2010 Prepared by: Thomas W. Engler, Ph.D., P.E

Probability and Statistics

INF FALL NATURAL LANGUAGE PROCESSING. Jan Tore Lønning, Lecture 3, 1.9

Lab #7. In previous lectures, we discussed factorials and binomial coefficients. Factorials can be calculated with:

Random Variables Handout. Xavier Vilà

Tutorial 11: Limit Theorems. Baoxiang Wang & Yihan Zhang bxwang, April 10, 2017

Discrete Random Variables and Probability Distributions

PROBABILITY DISTRIBUTIONS

Prob and Stats, Nov 7

Useful Probability Distributions

6. Continous Distributions

Statistics (This summary is for chapters 17, 28, 29 and section G of chapter 19)

Section 7.5 The Normal Distribution. Section 7.6 Application of the Normal Distribution

Transcription:

Epidemiology 9509 Principle of Biostatistics Chapter 5 Probability Distributions (continued) John Koval Department of Epidemiology and Biostatistics University of Western Ontario

What was covered previously 1. probability P(A) sets P(A and B); P(A or B) 2. probability distributions 2.1 discrete 2.1.1 equiprobable 2.1.2 bernoulli 2.1.3 binomial 2.1.4 poisson 2.2 continuous 2.2.1 uniform 2.2.2 normal 3. calculating probabilities 3.1 discrete Pr(X = x) 3.2 continuous intervals: Pr(X < a), Pr(a < X < b)

What is being covered now Using SAS to 1. calculate probabilities 2. calculate and plot probability distributions

Calculating probabilities SAS function PDF title calculate binomial probability ; data binom1; prob = pdf( binomial, 4, 0.4, 10); output ; proc print data=binom1;

binomial probability calculate binomial probability Obs prob 1 0.25082 Does this agree with previous calculations?

binomial probability calculate binomial probability Obs prob 1 0.25082 Does this agree with previous calculations? 0.251, Lecture Chapter 5, page 8

Calculating probability distribution title "calculate binomial probability distribution ; data binom2; do x = 0 to 10 by 1; prob = pdf( binomial, x, 0.4, 10); output; end; proc print data=binom2; proc gplot; plot prob*x; run;

binomial probability distribution calculate binomial probability distribution Obs x prob 1 0 0.00605 2 1 0.04031 3 2 0.12093 4 3 0.21499 5 4 0.25082 6 5 0.20066 7 6 0.11148 8 7 0.04247 9 8 0.01062 10 9 0.00157 11 10 0.00010

GPLOT of pdf

Calculating cumulative probabilities values up to and including SAS function CDF title calculate cumulative binomial probability ; data binom3; prob = cdf( binomial, 7, 0.4, 20); output ; proc print data=binom3; run;

binomial cumulative distribution calculation calculate cumulative binomial probability Obs prob 1 0.41589 Does this agree with previous calculations?

binomial cumulative distribution calculation calculate cumulative binomial probability Obs prob 1 0.41589 Does this agree with previous calculations? 0.4159, using R, Lecture Chapter 5, page 30

cumulative continuous probabilities Pr(X ( < b) ) = Pr Z N < b µ σ ) = Φ ( b µ σ Φ() given by SAS function PROBNORM

example Recall normal approximation to binomial want Pr(X norm < 7.5) = Pr(Z N < ( ) 7.5 8 2.19 = Φ(.228) title calculate Normal probability ; data norm1; prob =probnorm(-0.228); output; proc print data=norm1; run; ;

binomial cumulative distribution calculation calculate Normal probability Obs prob 1 0.40982 Does this agree with previous calculations?

binomial cumulative distribution calculation calculate Normal probability Obs prob 1 0.40982 Does this agree with previous calculations? 0.4098 by linear interpolation, see lecture Chapter 5, page 30

Probability of interval Pr(17 < X < 22) = Pr ( 17 20 5 < Z N < 22 20 ) 5 = Pr( 0.6 < Z N < 0.4) = Φ(0.4) Φ( 0.6) title calculate Normal probability for interval ; data norm2; a=-0.6; b=0.4; proba =probnorm(a); probb = probnorm(b); probint = probb - proba; output; proc print data=norm2; run;

binomial cumulative distribution calculation calculate Normal probability for interval Obs a b proba probb probint 1-0.6 0.4 0.27425 0.65542 0.38117 Does this agree with previous calculations?

binomial cumulative distribution calculation calculate Normal probability for interval Obs a b proba probb probint 1-0.6 0.4 0.27425 0.65542 0.38117 Does this agree with previous calculations? 0.3809, see lecture Chapter 5, page 26

Plotting normal density function not usually done in practice data norm3; do x = 0 to 10 by 0.05; density = pdf( normal, x, 4, 1.55); output ; end; proc gplot data = norm3; plot density*x; symbol interpol=join;

GPLOT of pdf of Normal N(4,2.4)

normal approximation to binomial title Normal approximation to binomial ; data normbinom; n=20; pi=0.4; mu = n*pi; var = n*pi*(1-pi); sd = sqrt(var); do i = 0 to 20.975 by 0.025; binompdf = pdf( binomial, floor(i), pi, n); x = i-0.5; normpdf = pdf( normal, x, mu, sd); output normbinom; end;

normal approximation to binomial(continued) proc gplot data=normbinom; plot binompdf * x normpdf * x/ haxis=-1 to 21 by 1 vaxis=0 to 0.2 by 0.05 overlay; symbol interpol=join;

GPLOT of normal approximation to Bin(20,0.4)

another normal approximation to binomial non-symmetric distribution Bin(10,.2) data normbinom2; n=10; pi=0.2; mu = n*pi; var = n*pi*(1-pi); sd = sqrt(var); do i = 0 to 10.9075 by 0.025; binompdf = pdf( binomial, floor(i), pi, n); x = i-0.5; normpdf = pdf( normal, x, mu, sd); output normbinom2; end;

non-symmetric distribution (continued) proc gplot data=normbinom2; plot binompdf * x normpdf * x / haxis=-1 to 11 by 1 vaxis=0 to 0.5 by 0.05 overlay; symbol interpol=join;

Normal approximation to Bin(10,0.2) original distribution is asymmetric not a good fit to the normal