Random variable and probability distribution

Updated

Random Variable:  Random variable, in simple terms is a function that maps the outcomes of an experiment to a real value generally denoted as X. Random variables can take multiple values. Let’s understand with a simple example.

A fair dice is tossed once, thus the possible outcomes will be as follows:

X 1 2 3 4 5 6
p(x) 1/6 1/6 1/6 1/6 1/6 1/6

Here, as shown in the table, we can see that the random variable X can take values 1,2,3,4,5 and 6 and each mapped to certain real value such as 1/6.

Probability Distribution: Here, since the Random variables are associated with some real values which here represent the probabilities. Therefore this system is called the probability distribution.

Thus, the probability distribution can be represented as:

X X1 X2 X3 . . . . . . Xn
P P1 P2 P3 . . . . . . Pn

where ∑pi  = p1 + p2 + . . . + pn = 1

Mean of a probability distribution: Mean is the weighted average, expectation of all the values of the Random variable where the weight is the probabilities associated with the value of that Random variable.

E[X]  = μ = ∑xipi

Comment
Mithlesh Upadhyay Published 6 Dec 2026 · 1 min read

Mithlesh Upadhyay is a Computer Science and AI expert from Madhya Pradesh with strong academic background (BE in CSE and M.Tech in AI) and over six years of experience in technical content development. He has contributed tech articles, led teams, and worked in Full Stack Development and Data Science. He founded the w3colleges.org portal for learning resources.

Related tutorials