Skip to main content
edited tags
Link
tabi_k
  • 157
  • 1
  • 9
Source Link
tabi_k
  • 157
  • 1
  • 9

How to get a list of exponentially distributed points sampled in a range

I want to get 256 points exponentially sampled in a range, and then get its histogram.

If I plot PDF, I get the following:

Plot[Table[PDF[ExponentialDistribution[\[Lambda]], x], {\[Lambda], {10}}] // Evaluate, {x, 0, 0.5}, Filling -> Axis, PlotRange -> All]

But when I try to get a list, I am not sure how to proceed:

list = N[Table[PDF[ExponentialDistribution[1/10], x], {x, 0, 0.5}]] //Sort
Histogram[list]