Random Variables - Definition, Types, Examples & Formula
Random Variables - Definition, Types, Examples & Formula
▲
Table of Content
What is a Random Variable?
Random Variable Definition
Random Variable Example
Variate
Types of Random Variable
Discrete Random Variable
PMF(Probability Mass Function)
Discrete Random Variables Example
Continuous Random Variable
PDF (Probability Density Function)
Continuous Random Variables Example
Random Variable Formulas
Mean of Random Variable
Variance of Random Variable
Random Variable Functions
Probability Distribution and Random Variable
Random Variable Example with Solutions
Example 1
Example 2
Practice Problems on Random Variable
X: S →R
where,
School Guide Mathematics Number System and Arithmetic Algebra Trigonometry Statist
Random Variable Example
If two unbiased coins are tossed then find the random variable
associated with that event.
Solution:
P(X = xi) = pi
where 1 ≤ i ≤ m
0 ≤ pi ≤ 1; where 1 ≤ i ≤ m
p1 + p2 + p3 + ……. + pm = 1 Or we can say 0 ≤ pi ≤ 1 and ∑pi = 1
X = {0, 1, 2} where m = 3
P(X = 0) = (Probability that number of heads is 0) = P(TT) = 1/2×1/2
= 1/4
P(X = 1) = (Probability that number of heads is 1) = P(HT | TH) =
1/2×1/2 + 1/2×1/2 = 1/2
P(X = 2) = (Probability that number of heads is 2) = P(HH) = 1/2×1/2
= 1/4
For example,
P(X=1) = 1/6
P(X=2) = 1/6
P(X=3) = 1/6
P(X=4) = 1/6
P(X=5) = 1/6
P(X=6) = 1/6
Variate
A variate is a generalization of the concept of a random variable that
is defined without reference to a particular type of probabilistic
experiment.
The possible values a random variable X can take are its range,
denoted R_X. Individual values within this range are called quantiles,
and the probability of X taking a specific value x is written as P(X=x).
0 ≤ pi ≤ 1
∑pi = 1 where the sum is taken over all possible values of x
xi 0 1 2
Solution:
P1 + 0.3 + 0.5 = 1
P1 = 0.2
Then, P (X = 0) is 0.2
Such that,
f(x) = kx3; 0 ≤ x ≤ 3 = 0
Solution:
If a function f is said to be a density function, then the sum of all
probabilities is equal to 1.
∫ f(x) dx = 1
∫ kx3 dx = 1
K[x4]/4 = 1
Given interval, 0 ≤ x ≤ 3 = 0
K[34 – 04]/4 = 1
K(81/4) = 1
K = 4/81
Thus,
P = 4/81×[16-1]/4
P = 15/81
Mean(μ) = ∑ X.P
where,
where,
E(X2) = ∑X2P
E(X) = ∑XP
Now for any new random variable Y in which the random variable X is
its input, i.e. Y = f(X), then the cumulative distribution function of Y is,
Fy(Y) = P(g(X) ≤ y)
Binomial Distribution
Poisson Distribution
Bernoulli’s Distribution
Exponential Distribution
Normal Distribution
Example 1
Find the mean value for the continuous random variable, f(x) = x2, 1 ≤
x≤3
Solution:
Given,
f(x) = x2
1≤x≤3
E(x) = [x4/4]31
E(x) = 1/4{80} = 20
Example 2
Find the mean value for the continuous random variable, f(x) = ex, 1 ≤
x≤3
Solution:
Given,
f(x) = ex
1≤x≤3
E(x) = 2e3
P1. Find the mean value for the continuous random variable, f(x) =
3x3, 0 ≤ x ≤ 9
P2. Find the mean value for the continuous random variable, f(x) = x +
sin x, 0 ≤ x ≤ π/4
P3. Find the variance value for the continuous random variable, f(x) =
2ex +x, -2 ≤ x ≤ 2
P4. Find the variance value for the continuous random variable, f(x) =
5 + x.tanx, -π/4 ≤ x ≤ π/4
GeeksforGeeks 43
Similar Reads
Company Languages
About Us Python
Legal Java
In Media C++
Contact Us PHP
Advertise with us GoLang
GFG Corporate Solution SQL
Placement Training Program R Language
GeeksforGeeks Community Android Tutorial
Tutorials Archive