I want to plot the outcomes of a Laplacian random Variable when i have the type : A>=sqrt(sigma^2/2)*ln(1/0.01) with sigma=1.I understand what i need to plot but i can not understand that how can I present discrete values for 50 trials ..?Could anyone suggest me how can I do it ?
No products are associated with this question.
Take a look at this:
sigma = 1; p = rand(10000,1); A=sqrt(sigma^2/2)*log(1./p); hist(A,100)
I'm not sure if it's what you want. It uses random P in place of the 0.1 value from your expression. Otherwise it uses that expression to generate random numbers, and makes a histogram of them. Notice that I use "./" to perform division on every element of P.
Perhaps you can figure out how to present the result of 50 trials by looking at this.