Probability Density Function (PDF) plot

11 ビュー (過去 30 日間)
Vijay
Vijay 2017 年 12 月 3 日
コメント済み: Star Strider 2017 年 12 月 3 日
I have a vector of binary elements and I form another vector of the same length by mapping
{0,1} --> {1,-1}
respectively. White Gaussian Noise is added to this vector and by the property of random vectors, this vector, now say R, is also a random vector. Is there a way to plot the distribution of this vector R other than the histogram method?
  2 件のコメント
jean claude
jean claude 2017 年 12 月 3 日
編集済み: jean claude 2017 年 12 月 3 日
may be this discussion can help look here by using ksdensity function i think it works
Vijay
Vijay 2017 年 12 月 3 日
Thank you! This helped me. I had to plot the evolution of my pdf over iterations and histogram didn't help me in that case. Thanks again!

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

採用された回答

Star Strider
Star Strider 2017 年 12 月 3 日
See if the ecdf (link) function and related functions such as ecdfhist (link) will do what you want.
  2 件のコメント
Vijay
Vijay 2017 年 12 月 3 日
Thanks for the help! The command plots the Cumulative Density Function of my data. I have to plot the evolution of pdf over time and this command might help me check if my pdf is correct. Appreciate it!
Star Strider
Star Strider 2017 年 12 月 3 日
As always, my pleasure.

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

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by