필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to find a probability density function please?

조회 수: 2 (최근 30일)
Avan Al-Saffar
Avan Al-Saffar 2015년 5월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (1개)

Torsten
Torsten 2015년 5월 11일
What do you want to be stochastic in the above ODE ?
Best wishes
Torsten.
  댓글 수: 9
Avan Al-Saffar
Avan Al-Saffar 2015년 5월 11일
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 2015년 5월 12일
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.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by