Re: change standard deviation of normal or Gaussian distribution (faq 13.20)



On 29 Jun, 10:20, Verbal Kint <TENSOAP...@xxxxxxxxx> wrote:
:) I understand what you mean. Maybe I didnt express myself clear
enough. I wanted to use to following method as mentioned in FAQ:

If you are replying to my posting, it would be helpful and polite to
quote at least the relevant parts of it.


double gaussrand()
{
....
return X;

}

Now I wonder, whether I can multiply the standard deviation of e.g.
0.5 with X or with which variable (v1, v2, etc.) I need to multiply
it?

I said before :-
"The numbers generated by these methods have a specific distribution -
right?

To change that distribution, you can simply them (the numbers the
methods generate) by the required standard deviation, and add the
required mean - can't you?"

What about that didn't you understand?

Let's try another approach. The FAQ said
"These methods all generate numbers with mean 0 and standard deviation
1. (To adjust to some other distribution, multiply by the standard
deviation and add the mean.)"

This instruction must apply no matter which method you used to
generate your random number, so it must not relate in any way to the
internal implementation of that random number generator - right?

So the only thing to which we can apply the instructions "multiply by
the standard deviation and add the mean" is the output of the random
number generator. Is that any clearer?

.



Relevant Pages

  • Re: Questions about probability functions
    ... The mean and standard deviation are the only two parameters for the ... density function and a cumulative distribution function? ... generator to simulate the process, generating a large sample from (if ... then study the sample to draw whatever conclusions you want about the ...
    (sci.math)
  • Re: Random number generation to comply with a standard deviation
    ... figuring out the distribution and not the actual drawing from whatever ... which will over time comply with a standard deviation. ... generator to bias the curve, but this gets very slow once a couple of ... To get Gaussians of mean m and standard deviation s you multiply by s and add m ...
    (sci.math.num-analysis)
  • Re: Measuring Turquoise Underwear
    ... population standard deviation or sample standard ... that the distribution had to be normal. ... Evil Nigel ... 6/49 game and has stats for about 52 draws. ...
    (rec.gambling.lottery)
  • Re: Measuring Turquoise Underwear
    ... calculated the average population standard deviation ... specify that the distribution had to be normal. ... Evil Nigel ... 6/49 game and has stats for about 52 draws. ...
    (rec.gambling.lottery)
  • Re: Measuring Turquoise Underwear
    ... calculated the average population standard deviation ... specify that the distribution had to be normal. ... Evil Nigel ... I've tried it for myself and the average combo sample variance for a 3/7 lottery is, as the formula predicts, 4.6666r. ...
    (rec.gambling.lottery)