Member-only story
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.