Re: Simulating normally distributed data with constraints



[I'm reading this in Google Groups, which shows that m00es replied
12 hours ago but doesn't give what he said, so please excuse any
redundancies.]

On Aug 16, 3:06 am, perreaul...@xxxxxxxxx wrote:
Hi Folks:

I would like to know a practical way to simulate data which are
normally distributed (bell shape curve), but with the following
constraints:

1- I need discrete interval data (I want an histogram, with categories
on the x axis going from say 1 to 500 (thus 500 bars on my histogram)

2- I want a particular number of observation (say 2000....the total
lenght of all the bars, as measure with the y-axis units, sould be
2000)

I just need to simulate some data set with these requirements, so I'm
looking for a quick and easy way to do it.

Thanks a lot,

Charles P.

If you can generate Uniform[0,1] variables, then try

X = Floor[251 + 250*(U^.135 - (1-U)^.135)],

where U is Uniform[0,1], and Floor[.] means to round the argument
down to an integer, dropping any fractional part. X will be an
integer in [1,500] whose distribution is approximately normal with
mean approximately 250.5 and standard deviation approximately 49.4.

.



Relevant Pages

  • Re: Civility and the Armor of Anonymity
    ... > After discovering Usenet through Google Groups earlier this year, ... > Writing and reading groups were the ones I checked out the most and I ... > contribute to and several larger ones like rasfc. ...
    (rec.arts.sf.composition)
  • Civility and the Armor of Anonymity
    ... After discovering Usenet through Google Groups earlier this year, ... Writing and reading groups were the ones I checked out the most and I ... what a special group that team was for that period of time. ...
    (rec.arts.sf.composition)
  • Re: OT-Comcast cancelling newsgroups
    ... Beats going through Google groups, and I refuse to pay for ... Usenet service in addition to my internet service. ... don't support newsgroups anymore!!! ... what they have the nerve to use as an excuse is that some newsgroups ...
    (rec.crafts.textiles.needlework)
  • Re: Wow... been away for a while and
    ... has a usenet server to grab news from. ... Google Groups, a web-based interface to Usenet. ... I got tired of reading the right-wing idiots spout their talk-radio ...
    (rec.models.scale)
  • Re: Is it because of Harry Potter?
    ... You're all off reading it? ... >> we've been to concerts the last two nights (opera east don giovanni ... >I have a similar excuse to Robin, in that I spent yesterday picnicing on the ...
    (uk.media.radio.archers)