Recursive Bayesian Estimator
Versione 1.0.3 (1,91 KB) da
Ayad Al-Rumaithi
Recursive Bayesian estimator for any distribution with example
This function finds the probability density function, MMSE estimation (expected value) and variance of a random variable from n number of independent observations defined by their probability density functions (pdf). Since pdfs defined by the user, this function can be used with any type of distribution. Example file is attached and explained at the end of the description.
function [p_x_condition, E_x, Var_x]=Recursive_Bayesian(x,p_x)
Input
x: range of x equally spaced vector of size (1*N)
p_x: probability density matrix of size (n*N) where p_x(i,:) is the probability density function of the ith observation
Output
p_x_condition: Conditional probability density function of x of size (1*N)
E_x: expected value of x
Var_x: variance of x
Example: A state (x) is estimated using 4 sensors. the readings from the sensors (3.5, 5, 4 and 3.5), respectively. The noise with the 4 sensors has zero mean with the following characteristics:
-sensor 1: uniform distribution from [-1.5 to 1.5]
-sensor 2: Gaussian distribution with variance=0.25
-sensor 3: Gaussian distribution with variance=1
-sensor 4: uniform distribution from [-2.5 to 2.5]
From the example file (example.m) using the function we get:
MMSE estimation of x=4.56
Variance=0.095
The figure shows the distribution of x and the four sensors.
Cita come
Ayad Al-Rumaithi (2024). Recursive Bayesian Estimator (https://www.mathworks.com/matlabcentral/fileexchange/72002-recursive-bayesian-estimator), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2017b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions > Continuous Distributions > Loglogistic Distribution >
Scopri di più su Loglogistic Distribution in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.