Generation of Data Points From a Given Distribution Using MATLAB

$19.00$14.001655 reads

Question

Let X be a continuous random variable, generate 105 samples if

  • X ~ Exp (2);
  • X ~ N (0, 2).

 

You can use the MATLAB function random to generate data points from a given distribution. Please check the help or doc command in order to use the random function correctly. Please plot those samples by using hist function. You can check its usage by using help hist or doc hist. You have to submit

1. MATLAB codes, which should be in script files (.m);

2. Two figures, which should be in eps format (.eps).

 

Summary

This question belongs to MATLAB software and discusses about application of MATLAB to probability and statistics and how to generate data points from a given distribution

 

 

 

 

Add to Cart