Probability Distributions 2014/04/07 Maiko Narahara

Slides:



Advertisements
Similar presentations
The Normal Distribution
Advertisements

Chapter 2 Multivariate Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
Hypothesis testing Another judgment method of sampling data.
Sampling Distributions (§ )

Hypothesis testing Week 10 Lecture 2.
THE z - TEST n Purpose: Compare a sample mean to a hypothesized population mean n Design: Any design where a sample mean is found.
Continuous Random Variable (1). Discrete Random Variables Probability Mass Function (PMF)
CONTINUOUS RANDOM VARIABLES These are used to define probability models for continuous scale measurements, e.g. distance, weight, time For a large data.
Probability Theory Part 2: Random Variables. Random Variables  The Notion of a Random Variable The outcome is not always a number Assign a numerical.
Continuous Random Variables and Probability Distributions
Intro to Statistics for the Behavioral Sciences PSYC 1900 Lecture 5: Probability and Hypothesis Testing.
Samples vs. Distributions Distributions: Discrete Random Variable Distributions: Continuous Random Variable Another Situation: Sample of Data.
HIM 3200 Normal Distribution Biostatistics Dr. Burton.
Normal and Poisson Distributions
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
The moment generating function of random variable X is given by Moment generating function.
511 Friday Feb Math/Stat 511 R. Sharpley Lecture #15: Computer Simulations of Probabilistic Models.
1.  Why understanding probability is important?  What is normal curve  How to compute and interpret z scores. 2.
Chapter 8 Introduction to Hypothesis Testing
Normal distribution.
Chapter 11: Random Sampling and Sampling Distributions
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Sampling Distributions  A statistic is random in value … it changes from sample to sample.  The probability distribution of a statistic is called a sampling.
Hypothesis Testing:.
L7.1b Continuous Random Variables CONTINUOUS RANDOM VARIABLES NORMAL DISTRIBUTIONS AD PROBABILITY DISTRIBUTIONS.
Fundamental Graphics in R Prof. Ke-Sheng Cheng Dept. of Bioenvironmental Systems Eng. National Taiwan University.
T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Statistical inference. Distribution of the sample mean Take a random sample of n independent observations from a population. Calculate the mean of these.
Chapter 14 Monte Carlo Simulation Introduction Find several parameters Parameter follow the specific probability distribution Generate parameter.
Normal distribution and intro to continuous probability density functions...
Modular 11 Ch 7.1 to 7.2 Part I. Ch 7.1 Uniform and Normal Distribution Recall: Discrete random variable probability distribution For a continued random.
SCENARIOS Consider each parameter probability distribution. Discretize it. Option 1: pick values of probabilities. For example, for 3 values, pick 25%,
Approximate letter grade assignments ~ D C B 85 & up A.
Quick Review Central tendency: Mean, Median, Mode Shape: Normal, Skewed, Modality Variability: Standard Deviation, Variance.
Random Sampling Approximations of E(X), p.m.f, and p.d.f.
Distributions, Iteration, Simulation Why R will rock your world (if it hasn’t already)
© 2003 Prentice-Hall, Inc. Chap 5-1 Continuous Probability Distributions Continuous Random Variable Values from interval of numbers Absence of gaps Continuous.
Continuous Probability Distributions Statistics for Management and Economics Chapter 8.
Simulations and programming in R. Why to simulate and program in R at all? ADVANTAGES –All R facilities can be used in the simulations Random number generators.
Continuous Random Variables. Probability Density Function When plotted, discrete random variables (categories) form “bars” A bar represents the # of.
Computing for Research I Spring 2013
1 URBDP 591 A Lecture 12: Statistical Inference Objectives Sampling Distribution Principles of Hypothesis Testing Statistical Significance.
Lecture 3 Types of Probability Distributions Dr Peter Wheale.
Chapter 5 Joint Probability Distributions and Random Samples  Jointly Distributed Random Variables.2 - Expected Values, Covariance, and Correlation.3.
BUSINESS MATHEMATICS & STATISTICS. LECTURE 39 Patterns of probability: Binomial, Poisson and Normal Distributions Part 4.
Random Variables By: 1.
Tom.h.wilson Department of Geology and Geography West Virginia University Morgantown, WV.
Continuous Probability Distributions
ESTIMATION.
The normal distribution
STAT 311 REVIEW (Quick & Dirty)
Cumulative distribution functions and expected values
Chapter 4 Continuous Random Variables and Probability Distributions
AP Statistics: Chapter 7
Suppose you roll two dice, and let X be sum of the dice. Then X is
Econometric Models The most basic econometric model consists of a relationship between two variables which is disturbed by a random error. We need to use.
POPULATION (of “units”)
Fundamental Graphics in R
Tutorial 9 Suppose that a random sample of size 10 is drawn from a normal distribution with mean 10 and variance 4. Find the following probabilities:
Continuous Statistical Distributions: A Practical Guide for Detection, Description and Sense Making Unit 3.
The Normal Distribution
Chapter 14 Monte Carlo Simulation
POPULATION (of “units”)
Sampling Distributions (§ )
Advanced data management
Normal Distribution The Bell Curve.
Chapter 7 The Normal Distribution and Its Applications
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Presentation transcript:

Probability Distributions 2014/04/07 Maiko Narahara

Probability density function (PDF) A function that defines probabilities of continuous variables Because a continuous variable is continuous, the probability of observing the exact value is almost zero. So, we read the area of a certain range as a probability of observing any value in the range. --> Area under the curve must be 1.

Probability mass function (PMF) A function that defines probabilities for discrete variables. Unlike continuous variables, the probability of observing exact value is defined (y-axis = probability). The sum of y values for all possible x values must be 1.

R functions for probability distributions [rdpq]name_of_distribution() – r: random generation generate random numbers from distribution – d: density distribution function returns density for given value – p: cumulative distribution function returns cumulative probability or used when we calculate p value – q: quantile function returns values that correspond to given quantiles

rnorm n < x <- rnorm(n, mean=0, sd=1) hist(x)

dnorm dnorm(x=1, mean=0, sd=1) gives the density that corresponds to the given value x. Density X

pnorm pnorm(q=0, mean=0, sd=1) gives the cumulative probability for the given value of x How to compute p value Z-test statistic: 2.5 pnorm(2.5, lower.tail=FALSE) *note: one-tail test Cumulative probability X

qnorm qnorm(0.975) returns x that corresponds to the given quantile value. This example calculates the upper critical value at alpha=0.05 (two-tail). Cumulative probability X

Tips 1 Handling vectors rnorm(10, mean=1:10, sd=1:10) rnorm(5, mean=c(1, 1, 2, 2, 2)) – # sampling from different distributions dnorm(0, mean=1:2) dnorm(c(0, 1), mean=1:2) – # similarly, qnorm and pnorm can handle vectors

Tips 2 Drawing curve of d/p function Syntax: curve(function, from, to) curve(dnorm, from=-3, to=3) – # draws a nice curve for the standard normal distribution, But if you want to change the parameters for the distribution, how to do that? curve(dnorm, mean=1, sd=2) # does not work a <- function(x) dnorm(x, mean=1, sd=2) curve(a, from=-3, to=5) Similarly, you can draw a cumulative curve curve(pnorm, from=-3, to=3)

Note about lower.tail=FALSE for discrete distributions pbinom(1, 5, prob=0.3) --> > include the probability of x=1 pbinom(1, 5, prob=0.3, lower.tail=FALSE) --> > does not include x=1 Note that setting lower.tail=FALSE equals 1 - pbinom(1, 5, prob=0.3)