SMp(x) Distribution Calculator

Created by Bogna Szyk
Reviewed by Małgorzata Koperska, MD
Last updated: Apr 06, 2022

If you came across this SMp(x) distribution calculator, you probably already know more about statistics and probability than an average person. Now, it's time to go one step higher: this tool will allow you to simulate virtually every probability distribution, such as the standard normal distribution or the Poisson distribution. All you need to do is choose the correct six parameters describing the SMp(x) function. Sounds interesting? Let's dive right in!

What is a probability distribution?

Imagine that you're trying to predict the temperature in your city for the next day. It's summer, and you know that the lowest temperature ever recorded in your town in summer was 62°F, and the highest was 107°F. You assume that the temperature tomorrow will fall somewhere in this range, but you don't know for sure where. All you can do is assign a probability to each value - for example, there might be 5% chance of temperature in the range 62-72°F, 10% chance for temperature in the range 72-82°F, and so on.

What you did was create a probability distribution - a mathematical function that tells you the probabilities of all possible outcomes. Such a function has a few properties:

  • The value of a probability function is never lower than zero.

  • If you integrate the function over its whole domain (from the minimum to maximum), the value of the integral (called the probability density function) will be equal to 1. It means that one of the outcomes must happen - there's zero chance that none of them will take place.

How does the SMp(x) distribution work?

The SMp(x) is a versatile function that describes many various probability distributions, regardless of whether they are continuous or discrete. It uses six parameters:

  • PXmin is the lower limit value of the variable x. In the case of temperature described in the previous section, PXmin was equal to 62°F.

  • Xmax is the upper limit value of x - in our example equal to 107°F.

  • ML is the value of variable x where the probability distribution function achieves its maximum value. In other words, it is the most probable outcome. In many distributions, it is assumed that ML is the mean of PXmin and Xmax, but it's not always the case.

  • p₁ and p₂ are the powers of the model. They both have to be greater than zero. The shape of the distribution function hugely depends on these two parameters - for example, p₁ = p₂ in a normal distribution.

  • Max is the maximum of the SMp(x) function. For example, if it is most probable that the temperature will be equal to 85°F, and this probability is equal to 30%, then Max will be equal to 30%.

Once you know all of these parameters, you can calculate the value of SMp(x) distribution function as follows:

condition SMp(x)
x < PXmin SMp(x) = 0
PXMin ≤ x ≤ ML SMp(x) = [(x - PXmin)/(ML - PXmin)]^ p₁ * Max
ML ≤ x ≤ XMax SMp(x) = [(Xmax - x) / (Xmax - ML)]^ p₂ * Max
x > Xmax SMp(x) = 0

Application 1: normal distribution

The easiest way to use the SMp(x) distribution calculator is to simulate the normal distribution. To achieve this, you need to remember that for such a function, the six parameters are not entirely independent of one another.

When using a standard normal distribution, take into account the following:

  • The powers of the model have to satisfy the condition p₁ = p₂ > 1.

  • The minimum must fulfill the condition PXmin ≥ 0.

  • The function must be symmetric, i.e. the condition ML = (PXmin + Xmax)/2 has to be fulfilled.

  • The area under the curve is equal to 1. This condition is satisfied only if Max = (p₁ + 1) / [2(ML - PXmin)].

If all these conditions are satisfied, you can use the SMp(x) distribution as a normal distribution with a mean value of μ = ML.

In such a case - and only in this case - you can use the second part of our calculator, called calculating probabilities, to find out

  • what is the probability of variable x having a lower value than a constant x₁ (for example, what is the probability of the temperature dropping below 75°F);

  • what is the probability of variable x having a higher value than a constant x₁ (for example, what is the probability of the temperature rising above 95°F);

  • what is the probability of variable x being exactly between two constants x₁ and x₂ (for example, what is the probability of the temperature being in the 80-90°F range).

Application 2: Poisson distribution

You can also use the SMp(x) distribution calculator to simulate discrete functions, such as the Poisson distribution. In the case of this particular distribution, the parameters must fulfill the following conditions:

  • For PXmin < 0, the powers of the model have to satisfy the condition p₁ > 1 or p₁ = 0. Additionally, p₂ > 1.

  • For PXmin ≥ 0, the powers of the model have to satisfy the condition p₁ > 1 and p₂ > 1.

Other applications

There are many more applications of this function, such as simulating the binomial distribution or the exponential distribution. If you're interested in the topic, we strongly recommend reading a paper elaborating on it, called "The SMp(x;PXmin,Xmax,ML,p1,p2,Max) a probabilistic distribution of a random discrete variable, or a probability density function" and developed by Terman Frometa-Castillo, the founder of Statistical models project (SMp).

Bogna Szyk
Model parameters
Lower limit value of x (PXmin)
Upper limit value of x (Xmax)
x where SMp(x) = Max (ML)
Power (p₁)
Power (p₂)
Maximum of the model (Max)
For an independent variable x =
Calculating probabilities
I want to calculate...
P (x > x₁)
P (x > x₁)
Check out 23 similar distributions calculators 🔔
Benford's lawBeta distributionBinomial distribution… 20 more
People also viewed…

Black Hole Collision Calculator

The Black Hole Collision Calculator lets you see the effects of a black hole collision, as well as revealing some of the mysteries of black holes, come on in and enjoy!

Lost socks

Socks Loss Index estimates the chance of losing a sock in the laundry.

Normal probability for sampling distributions

The normal probability calculator for sampling distributions gives you the probability of finding a range of sample mean values.

Shannon entropy

Check out this Shannon entropy calculator to find out how to calculate entropy in information theory.
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies
main background