1. Random Variable (RV)
A random variable is a variable whose values are outcomes of a random experiment.
- Usually denoted by X,Y,Z
- It assigns a numerical value to each outcome in a sample space.
X:Sample Space→R
Example:
- Toss a coin: X=1 if Head, X=0 if Tail
- Roll a die: X=number on top face
2. Types of Random Variables
A. Discrete Random Variable (DRV)
Definition:
A random variable is discrete if it can take a finite or countably infinite number of values.
Properties:
- Takes specific values (integers or counts)
- Probability for each value can be listed
- Probability Sum = 1
Probability Mass Function (PMF):
P(X=xi)=pi
Example:
- Number of heads in 3 coin tosses → X=0,1,2,3
- Number of defective items in a batch
Graph: Usually bar graph with heights = probabilities.
B. Continuous Random Variable (CRV)
Definition:
A random variable is continuous if it can take any value in an interval of real numbers.
Properties:
- Probability of a single exact value = 0
- Probabilities are given over intervals
- Total area under the Probability Density Function (PDF) = 1
Probability Density Function (PDF):
f(x)≥0,∫−∞∞f(x)dx=1
P(a≤X≤b)=∫abf(x)dx
Example:
- Height of students → any value in 140cm,200cm
- Time required to run 100 m → any value ≥ 0
Graph: Smooth curve representing density.
3. Comparison Table
| Feature |
Discrete RV |
Continuous RV |
| Values |
Countable (0,1,2…) |
Any real number in an interval |
| Probability |
P(X=xi) |
P(a≤X≤b)=∫f(x)dx |
| Function |
PMF |
PDF |
| Graph |
Bar chart |
Smooth curve |
| Example |
No. of students in class |
Height, weight, time |
4. Expected Value and Variance
-
Discrete RV:
E(X)=∑xiP(X=xi),Var(X)=∑(xi−E(X))2P(X=xi)
-
Continuous RV:
E(X)=∫−∞∞xf(x)dx,Var(X)=∫−∞∞(x−E(X))2f(x)dx
Key Points to Remember
- Discrete → Countable values, probability for each value.
- Continuous → Uncountable values, probability over intervals.
- Always check whether the variable takes specific values or any value in a range.