03 Random - Variables - SLIDE
03 Random - Variables - SLIDE
Module 3
Stress
3
Definition
Non-negative
• A random variable is a function which vSample Random
Probability
space variable
associates a real number with each element
in the sample space of a random
experiment. Heads +1
1/2
• Random variable is usually denoted by a Tails -1
capital letter, e.g., X, and the value taken is
denoted by a small character, e.g., x Range
Random variables
With probability distribution, we can
analyze the distribution and the spread
of the data
Probability distribution of a Probability distribution of a
discrete random variable continuous random variable
7
Probability distribution - discrete
• The set of ordered pairs (x,f (x)) is a probability function, probability mass function, or
probability distribution of the discrete random variable X if, for each possible outcome x
Non-negative probability
The probability of X
equals to x is f (x)
8
Probability distribution - continuous
• The set of ordered pairs (x,f (x)) is a probability density function or probability
distribution of the continuous random variable X if, for each possible outcome x
Non-negative
Calculation of
probability
Module 3 (bagian 2)
Random variables and
probability distribution
• Joint probability distribution
• Marginal distribution
• Conditional probability distribution
Pramudita Satria Palar, Ph.D. • Statistical independence
Fakultas Teknik Mesin dan Dirgantara
MS2200 Statistika
10
Cumulative distribution functions - discrete
• CDF of X, evaluated at x, is the probability that X will take a value less than or equal to
x, that is
• Why CDF is important? It is sometimes useful to consider cases lower than a threshold
value. The following relation holds:
• F (x) is a nondecreasing function, why?
1 2 3 4 5 6
11
Cumulative distribution functions - discrete
6/16 1
4/16
11/16
5/16
1/16
0 1 2 3 4 0 1 2 3 4
12
Cumulative distribution functions - continuous
• The cumulative distribution function F (x) of a continuous random variable X with
density function f (x) is
An example of
bivariate distribution
14
Joint probability distribution (discrete)
• The function fXY(x,y) is a joint probability distribution or joint probability mass
function of the discrete random variables X andY if
Joint probability must be
zero or positive
The integral
equals to one
Continuous
Marginal Continuous
distribution of X
Marginal
Column totals distribution of Y
Joint distribution
of X and Y
18
Conditional probability distribution
The conditional probability distribution of Y given X is the
probability distribution of Y when X is known to be a
particular value.
Conditional distribution
of Y given that X = x
Conditional distribution
of X given that Y = y
19
Statistical independence
If fXY(x|y) does not depend on y, then fXY (x|y) = g(x), and fXY (x,y) = g(x)h(y)
Since