Prerequisite – Random Variable
In probability theory and statistics, a probability distribution is a mathematical function that can be thought of as providing the probabilities of occurrence of different possible outcomes in an experiment. For instance, if the random variable
is used to denote the outcome of a coin toss (“the experiment”), then the probability distribution of
would take the value 0.5 for
= heads, and 0.5 for
= tails (assuming the coin is fair).
Probability distributions are divided into two classes –
- Discrete Probability Distribution – If the probabilities are defined on a discrete random variable, one which can only take a discrete set of values, then the distribution is said to be a discrete probability distribution. For example, the event of rolling a die can be represented by a discrete random variable with the probability distribution being such that each event has a probability of
.
- Continuous Probability Distribution – If the probabilities are defined on a continuous random variable, one which can take any value between two numbers, then the distribution is said to be a continuous probability distribution. For example, the temperature throughout a given day can be represented by a continuous random variable and the corresponding probability distribution is said to be continuous.
Cumulative Distribution Function –
Similar to the probability density function, the cumulative distribution function
of a real-valued random variable X, or just distribution function of
evaluated at
, is the probability that
will take a value less than or equal to
.
For a discrete Random Variable,

For a continuous Random Variable,

Uniform Probability Distribution –
The Uniform Distribution, also known as the Rectangular Distribution, is a type of Continuous Probability Distribution.
It has a Continuous Random Variable
restricted to a finite interval
and it’s probability function
has a constant density over this interval.
The Uniform probability distribution function is defined as-
![Rendered by QuickLaTeX.com \[ f(x) = \begin{cases} \frac{1}{b-a}, & a\leq x \leq b\\ 0, & \text{otherwise}\\ \end{cases} \]](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-9e9d82e7b402b0b91a9e47649de21a4f_l3.png)

Expected or Mean Value – Using the basic definition of Expectation we get –
![Rendered by QuickLaTeX.com \begin{align*} E(x) &= \int \limits_{-\infty}^{\infty} xf(x) dx&\\ &= \int \limits_{a}^{b} \frac{x}{b-a} dx&\\ &= \frac{1}{b-a} \int \limits_{a}^{b} x dx&\\ &= \frac{1}{b-a} \Big[ \frac{x^2}{2}\Big]_{a}^{b}&\\ &= \frac{b^2 - a^2}{2(b-a)}&\\ &= \frac{b + a}{2}&\\ \end{align*}](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-6ab28d6e3d1ac632e06629a9d51f0354_l3.png)
Variance- Using the formula for variance- 
![Rendered by QuickLaTeX.com \begin{align*} E(x^2) &= \int \limits_{-\infty}^{\infty} x^2f(x) dx&\\ &= \int \limits_{a}^{b} \frac{x^2}{b-a} dx&\\ &= \frac{1}{b-a} \int \limits_{a}^{b} x^2 dx&\\ &= \frac{1}{b-a} \Big[ \frac{x^3}{3}\Big]_{a}^{b}&\\ &= \frac{b^3 - a^3}{3(b-a)}&\\ &= \frac{b^2 + a^2 + ab}{3}&\\ \end{align*}](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-1c322ad17ca1bc5270a9b1c974a6a407_l3.png)
Using this result we get –

Standard Deviation – By the basic definition of standard deviation,

References –
Probability Distribution – Wikipedia
Uniform Probability Distribution – statelect.com
If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Level Up Your GATE Prep!
Embark on a transformative journey towards GATE success by choosing
Data Science & AI as your second paper choice with our specialized course. If you find yourself lost in the vast landscape of the GATE syllabus, our program is the compass you need.
Last Updated :
06 Mar, 2018
Like Article
Save Article