Message Boards Message Boards

0
|
3936 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Generate data from a new distribution (Generalized Exponential Dist)

Good day to you all. I want to generate random numbers from the Generalized exponential distribution but I could not find it on MATHEMATICA. Also, I would like to know how to generate random numbers from any distribution that is not registered on MATHEMATICA.

Thanks a lot.

POSTED BY: Ramy Aldallal
4 Replies
Posted 4 years ago

Hi Ramy,

Take a look at ProbabilityDistribution.

POSTED BY: Rohit Namjoshi
In[2]:= genExpDist = 
 ProbabilityDistribution[(1 - E^(-\[Lambda] x))^\[Alpha], {x, 0, 
   Infinity}]

Out[2]= ProbabilityDistribution[(1 - 
   E^(-\[FormalX] \[Lambda]))^\[Alpha], {\[FormalX], 0, \[Infinity]}]

In[7]:= \[Lambda] = 1; \[Alpha] = 2;

In[8]:= RandomVariate[genExpDist]

Out[8]= 2.01697

Thanks. It worked.

POSTED BY: Ramy Aldallal

Thanks. It worked.

POSTED BY: Ramy Aldallal
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract