Fitting a truncated normal (Gaussian) distribution
Matlab does not allow to say that a distribution which we fit to a dataset is truncated.
In case of a Gaussian distribution, Matlab just calculates the mean and sigma and uses them as the paramters of a pdf, but this does not work if the distribution is cutted from one side, e.g. when you don't have measurements less than some detection limit. Then fitted distribution will be shifted.
Here I give an small example how to perform fitting in this case.
Zitieren als
Alex Ryabov (2026). Fitting a truncated normal (Gaussian) distribution (https://de.mathworks.com/matlabcentral/fileexchange/64040-fitting-a-truncated-normal-gaussian-distribution), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxTags
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.2.0.0 | Now the function can fit distributions truncated either on the left or on the right or both sides
|
||
| 1.1.0.0 | I converted script to a function
|
||
| 1.0.0.0 | -- |
