Serving the Quantitative Finance Community

 
User avatar
samira73
Topic Author
Posts: 3
Joined: February 4th, 2015, 11:39 am

how to produce 10000 random number with ziph-mandelbrot

July 30th, 2015, 2:12 pm

Dear allI have one important question ..how to produce 10000 random number with zipf-mandelbrot distribuation in matlab?when I have one parameterplease help me to solve this problem
 
User avatar
tags
Posts: 3624
Joined: February 21st, 2010, 12:58 pm

how to produce 10000 random number with ziph-mandelbrot

July 30th, 2015, 2:31 pm

you should turn off the auto-fire button of your joystick
 
User avatar
samira73
Topic Author
Posts: 3
Joined: February 4th, 2015, 11:39 am

how to produce 10000 random number with ziph-mandelbrot

July 30th, 2015, 2:43 pm

I don't understand what you say!!please explain your suggestion
 
User avatar
GrenvilleCroll
Posts: 9
Joined: July 29th, 2004, 8:03 am

how to produce 10000 random number with ziph-mandelbrot

July 30th, 2015, 10:36 pm

You need to partition the Cumulative Distribution of the Zipf Mandelbrot function into 10,000 equidistant regions. Then use a good quality random number generator in (0,1) to sample each region. Its called stratified sampling/latin hypercube sampling.I recommmend that you turn off your television and do not attempt to operate complex machinery (e.g. Airbus/747/777)whilst you attempt this piece of code.
 
User avatar
tw
Posts: 592
Joined: May 10th, 2002, 3:30 pm

how to produce 10000 random number with ziph-mandelbrot

August 4th, 2015, 4:00 pm

QuoteOriginally posted by: samira73Dear allI have one important question ..how to produce 10000 random number with zipf-mandelbrot distribuation in matlab?when I have one parameterplease help me to solve this problemType some out from here?Not quite what you were looking for but hey, after the first few perhaps they'll get bored and lose interest.
 
User avatar
Orbit
Posts: 36
Joined: October 14th, 2003, 5:34 pm

how to produce 10000 random number with ziph-mandelbrot

August 4th, 2015, 4:40 pm

QuoteOriginally posted by: twQuoteOriginally posted by: samira73Dear allI have one important question ..how to produce 10000 random number with zipf-mandelbrot distribuation in matlab?when I have one parameterplease help me to solve this problemType some out from here?Not quite what you were looking for but hey, after the first few perhaps they'll get bored and lose interest.No ,your reference is from a normal distribution. The OP is looking for this: https://en.wikipedia.org/wiki/Zipf%E2%8 ... elbrot_law
Last edited by Orbit on August 3rd, 2015, 10:00 pm, edited 1 time in total.
 
User avatar
GrenvilleCroll
Posts: 9
Joined: July 29th, 2004, 8:03 am

how to produce 10000 random number with ziph-mandelbrot

August 4th, 2015, 7:43 pm

No, the RAND distribution of 1947 vintage was uniform random. I did a recent analysis of it here. There are better sources of random digits.You will need a good source of random numbers to perform the stratified sampling of the cumulative distribution function of the Zipf Mandelbrot distribution.
 
User avatar
tw
Posts: 592
Joined: May 10th, 2002, 3:30 pm

how to produce 10000 random number with ziph-mandelbrot

August 6th, 2015, 9:11 am

QuoteOriginally posted by: OrbitQuoteOriginally posted by: twQuoteOriginally posted by: samira73Dear allI have one important question ..how to produce 10000 random number with zipf-mandelbrot distribuation in matlab?when I have one parameterplease help me to solve this problemType some out from here?Not quite what you were looking for but hey, after the first few perhaps they'll get bored and lose interest.No ,your reference is from a normal distribution. The OP is looking for this: https://en.wikipedia.org/wiki/Zipf%E2%8 ... ot_lawI'll use a smiley next time.
 
User avatar
samira73
Topic Author
Posts: 3
Joined: February 4th, 2015, 11:39 am

how to produce 10000 random number with ziph-mandelbrot

August 7th, 2015, 10:00 am

in the matlab there is not available this cod :library (zipfR)!!
 
User avatar
samira73
Topic Author
Posts: 3
Joined: February 4th, 2015, 11:39 am

how to produce 10000 random number with ziph-mandelbrot

August 7th, 2015, 10:03 am

QuoteOriginally posted by: GrenvilleCrollNo, the RAND distribution of 1947 vintage was uniform random. I did a recent analysis of it here. There are better sources of random digits.You will need a good source of random numbers to perform the stratified sampling of the cumulative distribution function of the Zipf Mandelbrot distribution.yes ,but I don't have any source just mind
 
User avatar
samira73
Topic Author
Posts: 3
Joined: February 4th, 2015, 11:39 am

how to produce 10000 random number with ziph-mandelbrot

August 7th, 2015, 10:05 am

QuoteOriginally posted by: outrun3 lines of R> library(zipfR)> ZM = lnre(?zm?, alpha = 2/3, B = 0.1)> zmsample = rlnre(ZM, n=100)in the matlab there is not available this cod :library (zipfR)!!
 
User avatar
samira73
Topic Author
Posts: 3
Joined: February 4th, 2015, 11:39 am

how to produce 10000 random number with ziph-mandelbrot

August 8th, 2015, 5:34 am

QuoteOriginally posted by: outrunyou can browse the source here:https://r-forge.r-project.org/scm/viewv ... ot=zipfreg the "lnre" functionhttps://r-forge.r-project.org/scm/viewvc.php/pkg/zipfR/R/lnre.R?view=markup&root=zipfroooh...this is code in R, I thought this is in matlab
 
User avatar
samira73
Topic Author
Posts: 3
Joined: February 4th, 2015, 11:39 am

how to produce 10000 random number with ziph-mandelbrot

September 9th, 2015, 12:20 pm

Last edited by samira73 on September 8th, 2015, 10:00 pm, edited 1 time in total.