Member-only story

Use Python to calculate Chebyshev’s formula

Crystal X
3 min readApr 27, 2022

--

Whilst studying statistics, I happened to come across Chebychev’s theorem, which is named after the Russian mathematician, Pafnuty Chebychev, who is considered to be the founding father of Russian mathematics.

In the field of statistics, Chebyshev’s theorem estimates the minimum number of observations that fall within a specified number of standard deviations from the mean. Unlike the empirical rule, Chebyshev’s theorem can be applied across a broad range of probability distributions.

The formula for Chebyshev’s theorem is defined below:-

There is a great deal written about this theorem, so I decided to convert the formula to python in an attempt to make it easily calculable. Unfortunately, I was not really able to find a suitable code for this formula, so I had to endeavour to create a program based upon what I had read about it.

In order to solve Chebyshev’s formula in Python, I decided to write two functions for this purpose. The first function is to solve for the number within and the second function is to solve the formula itself.

--

--

Crystal X
Crystal X

Written by Crystal X

I have over five decades experience in the world of work, being in fast food, the military, business, non-profits, and the healthcare sector.

No responses yet