Question re: ecdf

2 ビュー (過去 30 日間)
Jared
Jared 2017 年 8 月 2 日
コメント済み: Jared 2017 年 8 月 2 日
I've been looking for a particular feature in the above MATLAB function but haven't found exactly what I'm looking for. I'm looking for a function that can take a particular input, x, and return the estimated p-value corresponding to a set of empirical data. What I'm looking for is analogous to the normcdf function where you give it an input and it will return a probability corresponding to the normal distribution.
  2 件のコメント
Akira Agata
Akira Agata 2017 年 8 月 2 日
編集済み: Akira Agata 2017 年 8 月 2 日
You want to obtain CDF (which normcdf function generates) or p-value used in hypothesis testing? If what you want is empirical CDF, you can do it by combining ecdf function and some interpolation method.
Jared
Jared 2017 年 8 月 2 日
Looks like this sequence of commands below does what I was looking for.
[f,x]=ecdf(y);
mu=0.5000;
CDFmu=max(f(x<=mu))*100;

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeExploration and Visualization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by