If I want to use the gaussian random number generator in MATLAB
R = normrnd(mu,sigma)
Let mu = 1.
The question is how to choose sigma? If I want 90% of the values to be near 1.Let us say +/-0.7
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on what you mean by “near 1”. In a normal distribution, 90% of the values will be within 1.65 standard deviations of the mean (about 5 % above and about 5% below). For example, if you want 90% of the values to be between 0.5 and 1.5, you need
You can look at a normal distribution table to look up the other values.
The table (excerpted below) states that ~45% of the values of a normal distribution fall between the mean and 1.65*sigma above the mean. Since the distribution is symmetric, ~45% of the values fall between the mean and 1.65*sigma below the mean and ~90% fall within +- 1.65 * sigma of the mean.