Continuous Random Variables. Probability Density Function When plotted, continuous treated as discrete random variables can be “binned” form “bars” A.

Slides:



Advertisements
Similar presentations
BIOL2608 Biometrics Computer lab session II Basic concepts in statistics.
Advertisements

Continuous Probability Distributions.  Experiments can lead to continuous responses i.e. values that do not have to be whole numbers. For example: height.
Use of moment generating functions. Definition Let X denote a random variable with probability density function f(x) if continuous (probability mass function.
FREQUENCY ANALYSIS Basic Problem: To relate the magnitude of extreme events to their frequency of occurrence through the use of probability distributions.
Probability Densities
Continuous Random Variables and Probability Distributions
Chapter 5: Probability Concepts
Chapter 6 Continuous Random Variables and Probability Distributions
Tch-prob1 Chapter 4. Multiple Random Variables Ex Select a student’s name from an urn. S In some random experiments, a number of different quantities.
Probability and Statistics Review
Continuous Random Variables and Probability Distributions
Modular 13 Ch 8.1 to 8.2.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 4 Continuous Random Variables and Probability Distributions.
Copyright © Cengage Learning. All rights reserved. 4 Continuous Random Variables and Probability Distributions.
Statistical Theory; Why is the Gaussian Distribution so popular? Rob Nicholls MRC LMB Statistics Course 2014.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
NIPRL Chapter 2. Random Variables 2.1 Discrete Random Variables 2.2 Continuous Random Variables 2.3 The Expectation of a Random Variable 2.4 The Variance.
Continuous Probability Distribution  A continuous random variables (RV) has infinitely many possible outcomes  Probability is conveyed for a range of.
Chapter 4 Continuous Random Variables and Probability Distributions
Pairs of Random Variables Random Process. Introduction  In this lecture you will study:  Joint pmf, cdf, and pdf  Joint moments  The degree of “correlation”
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 3 Basic Concepts in Statistics and Probability
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.
Continuous Probability Distributions  Continuous Random Variable  A random variable whose space (set of possible values) is an entire interval of numbers.
PROBABILITY & STATISTICAL INFERENCE LECTURE 3 MSc in Computing (Data Analytics)
1 Normal Random Variables In the class of continuous random variables, we are primarily interested in NORMAL random variables. In the class of continuous.
(c) 2007 IUPUI SPEA K300 (4392) Outline Normal Probability Distribution Standard Normal Probability Distribution Standardization (Z-score) Illustrations.
Functions of Random Variables. Methods for determining the distribution of functions of Random Variables 1.Distribution function method 2.Moment generating.
Chapter 6 Continuous Distributions The Gaussian (Normal) Distribution.
Continuous Distributions The Uniform distribution from a to b.
MEGN 537 – Probabilistic Biomechanics Ch.5 – Determining Distributions and Parameters from Observed Data Anthony J Petrella, PhD.
Chapter 5.6 From DeGroot & Schervish. Uniform Distribution.
1 Continuous Probability Distributions Continuous Random Variables & Probability Distributions Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering.
Random Variables Presentation 6.. Random Variables A random variable assigns a number (or symbol) to each outcome of a random circumstance. A random variable.
Stats Probability Theory Summary. The sample Space, S The sample space, S, for a random phenomena is the set of all possible outcomes.
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Mean, Variance, Moments and.
Expectation. Let X denote a discrete random variable with probability function p(x) (probability density function f(x) if X is continuous) then the expected.
Continuous Random Variables. Probability Density Function When plotted, discrete random variables (categories) form “bars” A bar represents the # of.
ENGR 610 Applied Statistics Fall Week 2 Marshall University CITE Jack Smith.
CY1B2 Statistics1 (ii) Poisson distribution The Poisson distribution resembles the binomial distribution if the probability of an accident is very small.
Review of Probability. Important Topics 1 Random Variables and Probability Distributions 2 Expected Values, Mean, and Variance 3 Two Random Variables.
Q1: Standard Deviation is a measure of what? CenterSpreadShape.
Chapter 4 Continuous Random Variables and Probability Distributions  Probability Density Functions.2 - Cumulative Distribution Functions and E Expected.
Random Variables. Numerical Outcomes Consider associating a numerical value with each sample point in a sample space. (1,1) (1,2) (1,3) (1,4) (1,5) (1,6)
1 6. Mean, Variance, Moments and Characteristic Functions For a r.v X, its p.d.f represents complete information about it, and for any Borel set B on the.
Continuous Random Variables and Probability Distributions
Section 5 – Expectation and Other Distribution Parameters.
Chapter 20 Statistical Considerations Lecture Slides The McGraw-Hill Companies © 2012.
February 16. In Chapter 5: 5.1 What is Probability? 5.2 Types of Random Variables 5.3 Discrete Random Variables 5.4 Continuous Random Variables 5.5 More.
CHAPTER – 1 UNCERTAINTIES IN MEASUREMENTS. 1.3 PARENT AND SAMPLE DISTRIBUTIONS  If we make a measurement x i in of a quantity x, we expect our observation.
MEGN 537 – Probabilistic Biomechanics Ch.5 – Determining Distributions and Parameters from Observed Data Anthony J Petrella, PhD.
THE NORMAL DISTRIBUTION
Random Variables By: 1.
Important Discrete Probability Distributions
Distributions.
The Exponential and Gamma Distributions
Other confidence intervals
Cumulative distribution functions and expected values
Hands-on Introduction to Mathematica
also Gaussian distribution
STATISTICS Random Variables and Distribution Functions
3.1 Expectation Expectation Example
Chi-square and F Distributions
MEGN 537 – Probabilistic Biomechanics Ch.3 – Quantifying Uncertainty
Continuous Random Variables
CENTRAL MOMENTS, SKEWNESS AND KURTOSIS
CHAPTER – 1.2 UNCERTAINTIES IN MEASUREMENTS.
Continuous Distributions
CHAPTER – 1.2 UNCERTAINTIES IN MEASUREMENTS.
Fundamental Sampling Distributions and Data Descriptions
Presentation transcript:

Continuous Random Variables

Probability Density Function When plotted, continuous treated as discrete random variables can be “binned” form “bars” A bar represents the # of times that category occurred.

Probability Density Function As we increase the number of “bins” the “bars” get thinner and thinner If there are an infinite number of bins the bars get infinitesimally thin:

Probability Density Function Technical definition: A random variate X is continuous if: The probability that X lies between a and b p(x): probability density function (pdf) Note: “All space” for us is usually 0 to ∞ or -∞ to ∞ Proper pdfs should be normalized “All space” for an r.v. is it’s domain. Also called its support

Probability Density Function Technical definition: A random variate X is continuous if: The probability that X lies between a and b p(x): probability density function (pdf) Note also: The probability of obtaining a particular r.v. is 0 p(x) ≥ 0 The pdf is always greater than or equal to 0

Probability Density Function Graphically: p(x)p(x)

Cumulative Distribution Function Same as for discrete r.v.s: A function that gives the probability that a random variable is less than or equal to a specified value is a cumulative distribution function (CDF): CDF for discrete r.v.sCDF for continuous r.v.s Basically just replace a sum with an integral. Minimum of support for the pdf. Usually –∞ or 0.

Use of the Cumulative Distribution Function Use the CDF to compute the probability that a RV will lay between two specified x-values F(b)F(b) F(a)F(a) ab

Cumulative Distribution Function In R we can compute the CDF of any “built in” pdf like this: There are a lot of “built in” distributions in R. We’ll pretty much only care about “built in” stuff.

Cumulative Distribution Function For continuous r.v.s: This is NOT TRUE for discrete r.v.s as we learned last chapter!

Moments and Expectation Values Same as for discrete r.v.s: Moments are handy numerical values that can systematically help to describe distribution location and shape properties. m th -order moments are found by taking the expectation value of an RV raised to the m th -power (again, just replacing the sum with an integral): Moments for discrete r.v.sMoments for continuous r.v.s Again, the support of r.v. x

Moments and Expectation Values 1 st -order moment for X, i.e. the expectation value of X: mean 1 st -order moment for a parameter g(X) on X: expectation value of parameter g location descriptor

Moments and Expectation Values Important 2 nd -order moments: Second order central moment. It can be shown that Population standard deviation spread descriptor

Moments and Expectation Values Review from last chapter: Higher-order moments measure other distribution shape properties: 3 rd order: “skewness” 4 th order: “kurtosis” (pointy-ness/flat-ness) leptokurtic platykurtic no skew left skew right skew

Example: Moments and Expectation Values Say you have data distributed according to the pdf: Give an expression for the variance of this distribution. In other words, evaluate:

Example: Moments and Expectation Values Since we can use technology, lets try to leverage Maple: E[X2]E[X2] E[X]E[X]

Example: Moments and Expectation Values Here is what the same calculations would look like in Mathematica: E[X2]E[X2] E[X]E[X] Handy palette can be found at:

Example: Moments and Expectation Values Hey, we can even use the interwebs: Wolfram Alpha: E[X2]E[X2]

Example: Moments and Expectation Values Hey, we can even use the interwebs –OR–: Wolfram Programming Lab!!: E[X2]E[X2] E[X]E[X] This is old text-input based Mathematica but is VERY POWERFUL. Definitely worth learning, especially because it’s FREE! The Help is great and easy to use!!!!

Example: Moments and Expectation Values Hey, we can even use the interwebs –OR–: Wolfram Programming Lab!!: Type in search terms

Example: Moments and Expectation Values Hey, we can even use the interwebs –OR–: Wolfram Programming Lab!!:

Example: Moments and Expectation Values Hey, we can even use the interwebs –OR–: Wolfram Programming Lab!!: Examples you can try out, click on, cut and paste!!!!

Example: Moments and Expectation Values Say you have data distributed according to the pdf: Give an expression for the variance of this distribution. In other words, evaluate:

Uniform Distribution Uniform PDF: Same “likelihood” for all x a left bound b right bound Parameters:

Mean: Variance: Uniform Distribution

Mean: Variance:

Uniform Distribution Cumulative distribution function (CDF): punif(q = x, min = a, max = b)

Uniform Distribution Use the CDF to compute probabilities: BA F(B)F(B)F(A)F(A) F(B) - F(A)

Normal Distribution Normal PDF: The “bell cure”. Also called Gaussian dist.  mean  standard deviation Parameters:

Mean:  X  Variance:   X   Normal Distribution

Mean:  X  Variance:   X  

Normal Distribution Cumulative distribution function (CDF): pnorm(q=x, mean=mu, sd=sigma)

Normal Distribution Use the CDF to compute probabilities:

Normal Distribution Points of interest for the Normal distribution: If X ~ N( ,  ) we can “standardize” (transform) to the z- scale: Standard normal distribution ~ 68% ± 1  ~ 95% ± 2  ~ 99% ± 3  Handy equation

Other Distributions We’ll Encounter Student-t: Like Normal distribution but fatter tails df : degrees of freedom Parameters: dt, qt, pt, rt Chi-squared (  2 ): Handy especially for comparing raw set of counts df : degrees of freedom Parameters: dchisq, qchisq, pchisq, rchisq

Other Distributions We’ll Encounter F : Handy especially for comparing average outcomes in three or more experiments. df1 : degrees of freedom 1 df2 : degrees of freedom 2 Parameters: df, qf, pf, rf

Example: quantiles/percentiles A sample of methamphetamine in blood certified reference material (CRM) is obtained as a standard for calibration of methodology in a tox lab. The concentration of the CRM is certified to follow a normal distribution with mean concentration of 50 ng/mL and standard deviation of 10 ng/mL. What should 90% of samples taken from the CRM have a concentration less than or equal to?

Example: quantiles/percentiles Another way to phrase: What measured sample concentration (quantile) should correspond to the 90 th percentile with respect to the CRM? ? 0.9

Example: quantiles/percentiles Another way to phrase: What measured sample concentration (quantile) should correspond to the 90 th percentile with respect to the CRM?

Example: quantiles/percentiles What is the probability of that the CRM’s concentration will be measured to be between 30 ng/mL and 70 ng/mL? 30 ng/mL 70 ng/mL What would the code look like if we wanted Pr(X > 70ng/mL)?