# SMp(x) Distribution Calculator

URL: https://speedycalculator.com/calculators/statistics/smpx/
Last updated: 2026-11-26

> The SMp(x) calculator evaluates a flexible piecewise power model defined by a lower and upper limit, the most likely value, two powers and a maximum height: it gives SMp(x) at any point, the probability below, above or between values, the area under the curve and the mean.

## Inputs

- Lower limit PXmin
- Upper limit Xmax
- Most likely value ML (where SMp(x) = Max)
- Power p₁ (left side)
- Power p₂ (right side)
- Maximum of the model (Max)
- Evaluate SMp(x) at x =
- I want to calculate
- x₁
- x₂

## Results

- Probability
- Result
- SMp(x) at the chosen x
- SMp(x) curve with the requested area shaded
- Area under SMp(x)
- Max that gives an area of exactly 1
- Mean of the model
- Normal-shape conditions

## Formula

```
SMp(x) = Max × ((x − PXmin)/(ML − PXmin))^p₁ for PXmin ≤ x ≤ ML · SMp(x) = Max × ((Xmax − x)/(Xmax − ML))^p₂ for ML ≤ x ≤ Xmax · 0 outside · area = Max × [(ML − PXmin)/(p₁ + 1) + (Xmax − ML)/(p₂ + 1)]
```

## Explanation

SMp(x) is a simple shape-based model for a bounded quantity that has a known lowest value, a known highest value and a most likely value in between. Each side of the peak is a power curve: the left side rises from 0 at the lower limit PXmin to the maximum height Max at the most likely value ML, and the right side falls back to 0 at the upper limit Xmax. The powers p₁ and p₂ control how sharply each side rises or falls: a power of 1 gives straight lines (a triangular distribution), larger powers give a narrower peak, and values below 1 give a flat-topped bulge.

Because each piece can be integrated exactly, probabilities are quick to compute: the area to the left of x is a power of the distance from the limit. When p₁ = p₂ > 1, ML lies halfway between the limits and Max = (p₁ + 1)/(2(ML − PXmin)), the curve has an area of exactly 1 and a symmetric, bell-like shape, so it can stand in for a normal distribution on a bounded range.

The calculator evaluates SMp(x), shades the requested probability, reports the total area (dividing by it so probabilities always add up to 100%), suggests the Max that makes the area 1 and gives the mean of the model.

### How to use the SMp(x) Distribution Calculator

- **Lower limit PXmin**
- **Upper limit Xmax**
- **Most likely value ML (where SMp(x) = Max)**
- **Power p₁ (left side)**
- **Power p₂ (right side)**
- **Maximum of the model (Max)**
- **Evaluate SMp(x) at x =**
- **I want to calculate**
- **x₁**
- **x₂**

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

### How it works

The two power pieces are integrated in closed form: the area from PXmin to x on the left side is Max(ML − PXmin)/(p₁ + 1) × ((x − PXmin)/(ML − PXmin))^(p₁ + 1), and similarly on the right. Probabilities are these areas divided by the total area.

### Worked example

With PXmin = 60, Xmax = 110, ML = 85, p₁ = p₂ = 2 and Max = 0.06, the normal-shape conditions hold: Max = (2 + 1)/(2 × 25) = 0.06 and the area is 0.06 × 50/3 = 1. At x = 80, SMp(80) = 0.06 × (20/25)² = 0.0384. The area from 60 to 75 is 0.5 × (15/25)³ = 0.108, from 60 to 85 it is 0.5, and from 95 to 110 it is 0.5 × (15/25)³ = 0.108, so P(75 < x < 95) = 1 − 0.108 − 0.108 = 78.4%.

### Choosing the powers

PowersShapep = 1Straight sides, triangular distribution1 < p ≤ 3Smooth hump, increasingly peakedp < 1Bulging, flat-topped sidesp₁ ≠ p₂Asymmetric, with one side steeper than the other

## Worked example

Inputs: Lower limit PXmin: 60; Upper limit Xmax: 110; Most likely value ML (where SMp(x) = Max): 85; Power p₁ (left side): 2; Power p₂ (right side): 2; Maximum of the model (Max): 0.06; Evaluate SMp(x) at x =: 80; I want to calculate: P(x₁ < x < x₂) – between; x₁: 75; x₂: 95.

Results: **Probability = 78.4 %**; Result = P(75 < x < 95) = 0.784 (78.4%); SMp(x) at the chosen x = 0.0384; Area under SMp(x) = 1; Max that gives an area of exactly 1 = 0.06; Mean of the model = 85.

## Key terms

- **PXmin and Xmax**: The lowest and highest possible values; SMp(x) is zero outside them.
- **ML**: The most likely value, where SMp(x) reaches its maximum.
- **Powers p₁, p₂**: Exponents that control how steeply the curve rises to and falls from the peak.
- **Max**: The height of the curve at ML.

## FAQ

**What are the six SMp(x) parameters?**
The lower limit PXmin, the upper limit Xmax, the most likely value ML, the powers p₁ and p₂ of the two sides, and the peak height Max.

**When does SMp(x) behave like a normal distribution?**
When p₁ = p₂ > 1, PXmin ≥ 0, ML = (PXmin + Xmax)/2 and Max = (p₁ + 1)/(2(ML − PXmin)), which makes the area 1.

**What Max gives a valid probability density?**
Max = 1 ÷ [(ML − PXmin)/(p₁ + 1) + (Xmax − ML)/(p₂ + 1)]. The calculator shows it as "Max that gives an area of exactly 1".

**What happens with powers of 1?**
Both sides are straight lines and SMp(x) is the triangular distribution with minimum PXmin, mode ML and maximum Xmax.

**What if my area is not 1?**
The calculator divides every probability by the area, so the answers are still shares of the total; set Max to the suggested value to make SMp(x) itself a density.

**For the default model, what is P(75 < x < 95)?**
78.4%: the area from 75 to 85 is 0.5 − 0.108 = 0.392 and, by symmetry, the area from 85 to 95 is also 0.392.


## Sources

- [Wolfram MathWorld: Probability and statistics](https://mathworld.wolfram.com/topics/ProbabilityandStatistics.html)
- [NIST/SEMATECH e-Handbook: Gallery of distributions](https://www.itl.nist.gov/div898/handbook/eda/section3/eda366.htm)
