Download presentation

Presentation is loading. Please wait.

Published byTrinity Joyce Modified over 3 years ago

1
Data Analysis Class 4: Probability distributions and densities

2
Random variables Binary (e.g. heads = 1, tails = 0; plane crashes = 1, does not crash = 0) Discrete (e.g. number of heads in a series of coin tosses; number of plane crashes in a given time span) Continuous (e.g. time to next plane crash; height of a person) Vectorial …

3
Probability distribution For binary/discrete random variables X: P(X=x)=? Specification of this for all x is a probability distribution Condition:

4
Probability distribution For example, for a coin flip: P(X=1)=0.4, and P(X=0)=0.6 Note: P(X=1)+P(X=0)=1

5
Probability density function For continuous random variables X: P(X=x), defined in the same way, is probably 0 (there are an infinite number of other possible outcomes) So well define P(X=x) in a different way, such that: P(X=x)dx is the probability of the event X=x Note: this probability is indeed infinitesimally small Condition:

6
Probability density function E.g. height of random people Gaussian distribution: A clock centred around mu and with width proportional to sigma Note:

7
Some probability distributions Bernoulli distribution (binary) Geometric distribution (discrete) Binomial distribution (discrete) Gaussian distribution (continuous) Exponential distribution (continuous) Poisson distribution (discrete)

8
Bernoulli distribution X is a binary random variable (success/1 versus failure/0) For example: –Biased coin –Whether a given plane crashes

9
Geometric distribution X is the number of Bernoulli experiments to the first success, where the success probability is p Note: as required

10
Binomial distribution X is the number of successes (with success probability p) in n Bernoulli experiments Again: sums to 1…

11
Gaussian distribution E.g. height of random people Gaussian density function: A clock centred around mu and with width proportional to sigma Note:

12
Exponential density function Time to the first future plane crash (i.e. X>0) Assume non-zero interval Δx Probability of a crash in Δx is p=λΔx for some λ Then, probability that the first crash is at time x is (geometric distribution) Only valid for small enough Δx (then probability of >1 crashes in Δx becomes negligible) Limit for Δx 0:

13
Exponential probability density Thus (with P the probability density function): Exponentially decaying… From this, the cumulative exponential distribution function: Note:

14
Poisson distribution Distribution over the number of plane crashes in a unit time interval Limit of the Binomial distribution: –Binomial: n trials, probability p per trial –Poisson: n/Δx trials, probability pΔx per trial, in the limit for Δx 0 (work it out!) Result:

15
Summary TypeRandom variable X Distribution / density functionParameters BernoulliBinary GeometricPositive integer Binomial0,1,…,n GaussianReal number ExponentialPositive real PoissonPositive integer

16
Properties of distributions Mean Variance Standard deviation = square root of variance

17
Summary TypeDistribution / density functionMeanVariance Bernoulli Geometric Binomial Gaussian Exponential Poisson

18
Lab session Compute conditional probability density and expectation for the exponential density, conditional on X>t. (report) Complete the tables in these lecture notes with a uniform distribution and uniform density. (report) Compute the cumulative distributions of all distributions discussed (or find on wikipedia!) Plot the exponential distribution for 3 different values of lambda, as well as the cumulative exponential distribution. (report) Plot the Poisson distribution for 3 different values of lambda, as well as the cumulative Poisson distribution. Randomly sample n=10 passengers, do this N=1000 times, and plot a histogram of how many of these 10 passengers are in third class in each of the 1000 randomisations. Which distribution does this follow? (report) Make a histogram of the temperatures in all January months. Which distribution does this follow? (report)

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on eddy current resistance Ppt on op amp circuits examples Ppt on english language learning Ppt on history of china Gi system anatomy and physiology ppt on cells Download ppt on obesity Ppt on creativity and innovation management journal Ppt on electricity generation by walking Ppt on duty roster boy Ppt on forest society and colonialism class 9