How to estimate a distribution from samples in a histogram

343 Views Asked by At

Given a r.v. $\tau$ , I've computed $\Bbb{P}(\tau >a)=e^{-Nx}(e^{Nxe^{-a}}-1) $ , where $N\in\Bbb{N}_{>1} $ and $ x\in \Bbb{R}_{>0} $ are just fixed parameters; say $N = 2 $ and $ x = 1$, for simplicity.

Now, I've been asked to make an histogram (say in Matlab) with samples of this r.v. , in order to check if this computation is correct...

How can I do this? How can I work out the distribution of a r.v. from a histogram?

Thank you