Probability theory: Expected value, Mode, Median

This is part of the course “Probability Theory and Statistics for Programmers”.

Image for post
Image for post
Probability Theory For Programmers

At this part, we will look at characteristics that show the position of a random variable on the numerical axis. All these characteristics have there are own real-life applications. And you will see them very often not only in probability theory domain but also in statistics, machine learning, and other fields.

One of the most important characteristics is the expected value — the sum of the products of all possible values of a random variable by the probabilities of these values.

Image for post
Image for post
the expected value for a discrete random variable

The expected value for a continuous random variable is integral, where f(x) is probability density function:

Image for post
Image for post
the expected value for a continuous random variable

This formula is obtained from the formula listed above. We just replace components:

For mixed random variables, we have a formula, where sum used for all breakpoints and integral for all parts where the distribution function is continuous:

Image for post
Image for post

Next characteristic is Mode. for a discrete random variable mode is the most probable value, and for continuous is a value where probability density is the biggest.

The last characteristic we cover in this article is the Median. Median of a continuous discrete random variable is such a value m, for which:

Image for post
Image for post

If we look at the curve of continuous random variable it will be the place which separate curve on two parts with the same area:

Image for post
Image for post
a median split curve in two parts

Next part ->

Reach the next level of focus and productivity with increaser.org.

Image for post
Image for post
Increaser

Software engineer, creator of increaser.org. More at geekrodion.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store