Module 3: Random Variables and Normal Distributions

A variable is a measurement or characteristic on which individual observations are made. A random variable is a variable whose possible values are outcomes of a random phenomenon. A domain is a set of all possible values a variable can take.

Discrete random variables is a finite set or countably infinite sequence.

px(xi) = P(X = xI) is called the Probability Mass Function (PMF).

Continuous random variable can lie on a numerical scale, such as all real numbers between (0, +infinity). If we mapped the data to a histogram, we would see the curve begin to smooth as the number of data points approaches infinity.

image-1660746198461.png

This density curve, fx(x), is called the Probability Density Function (PDF).

The Cumulative Distribution Function (CDF) is defined as Fx(X) = P(X <= x)

image-1660746730973.png

image-1660746747252.png

The Expected Value of a random variable is an average of the possible values weighted by their probabilities. Also called mean and denoted by μ.

image-1660746888477.png

image-1660746926437.png

A generalization for the expected values is the rth moment of a random variables, R(Xr).

image-1660748084163.png

image-1660748094182.png

The first moment of a random variable is the expect value (mean). The rth moment of a random variable about the mean, also called the rth central moment, is defined as: E[(X - μ)r]

The variance measures the spread around the mean of a random variable: Var(X) = E[(X - μ)2]

The normal distribution:

The 68/95/99 rule:

The standard normal random variable, referred to as Z, is in the scale of SD units from the mean.

Z has a μ=0 and SD = 1 we can standardize any normal distribution with:

image-1660749009432.png

By converting to Z-scores we can easily compare the probability events in two different normal distribution.

The kth percentile is defined as the score that holds the k percent of the scores below it. Ex. 90th percentile is the score that has 90% of the scores below it. We can compute percentiles with: X = μ + Z𝜎

The probability density function for normal curves:

image-1660750388639.png

And in normal curves when mean is 0 and SD is 1 this can be simplified.

Relevant R Functions

qnorm(percentile, μ, 𝜎) computes percentiles for normal variables

dnorm(x, μ, 𝜎) will return the height of normal density function with a certain mean and SD at point x

pnorm(z, μ, 𝜎) will return the cumulative distribution function of a normal distribution with certain mean and SD

 


Revision #4
Created 17 August 2022 14:03:18 by Elkip
Updated 17 August 2022 16:14:39 by Elkip