Random Numbers generation from pareto distibution and generalized exponential distrbution

Jeet Trivedi · Apr 30, 2022 · 2K views
Question
Hello,   I want to know that how can I generate random numbers from pareto distribution as matlab is giving me inbuilt function for generating random number from generalized pareto distribution but I don't want that function I want only pareto distribution for generating random numbers. Similarly matlab is providing me function for generating random numbers from exponential distribution but I want to generate random numbers from generalized exponential distribution for which there is no inbuilt function.     In short I want to generate random numbers from Pareto Distribution and Generalized Exponential Distribution.
Expert Answer
Profile picture of Kshitij Singh
Kshitij Singh PhD Expert
Answered Sep 9, 2026
n = 100;
x = rand(n,1);
y_ge = mu-log(1-x.^(1/alpha))/lambda;
y_p = lambda*(1-x).^(-1/alpha);

generates 100 random numbers for the generalized exponential and the pareto distribution.

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!