Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to find a probability density function please?

3 Ansichten (letzte 30 Tage)
Avan Al-Saffar
Avan Al-Saffar am 11 Mai 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have the following system :
dxdt = A.*x.^2 ;
how can I find a PDF for this system for different values of A and t = 0:0.1:100?
Regards

Antworten (1)

Torsten
Torsten am 11 Mai 2015
What do you want to be stochastic in the above ODE ?
Best wishes
Torsten.
  9 Kommentare
Avan Al-Saffar
Avan Al-Saffar am 11 Mai 2015
But what is about the following commands please?
- ksdensity(x)
- [muhat,sigmahat] = normfit(x);
y = normpdf(x,muhat,sigmahat);
plot(x,y,'r')
- a = pdf('Normal',x,mu,sigma);
I found them while I was looking for some help through different websites.
Torsten
Torsten am 12 Mai 2015
You can use ksdensity, but if you use enough random numbers for A0, a histogram will give you the same quality for the pdf.
Normfit, normpdf etc. can not be used because even if you assume that A0 is normally distributed, x(t,A0) usually won't.
You will have to find out what distribuion x(t,A0) follows if you assume a certain distribution type for A0.
Best wishes
Torsten.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by