what is the difference between a histogram and pdf.

i am trying to understand the difference between pdf and histogram.i want to use an algorithm to plot a bernoulli from a pdf using matlab

回答 (1 件)

TheNovice
TheNovice 2015 年 3 月 1 日

0 投票

A pdf is a function that describes the probability that a random variable will take a certain value.
A histogram shows the probability that a random variable will take an interval of values. See the histogram as a way of estimating the pdf if it is unknown.
Regards. TheNovice

カテゴリ

製品

質問済み:

2015 年 3 月 1 日

回答済み:

2015 年 3 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by