I want to generate random numbers from a standard normal distribution with decreasing standard deviation that lies between 0 and 1. First, what is meant by decreasing standard deviation? Secondly, randn generates normal distribution random numbers. But how to limit them between 0 and 1?

 채택된 답변

James Tursa
James Tursa 2017년 3월 9일
편집: Walter Roberson 2017년 3월 9일

1 개 추천

댓글 수: 7

Rakesh Jain
Rakesh Jain 2017년 3월 9일
But what is meant by decreasing standard deviation
James Tursa
James Tursa 2017년 3월 9일
I don't know. Maybe your professor wants you to make several different runs with various values of standard deviation and then make some conclusions about the results you get. What is the actual wording of the problem you are working?
Rakesh Jain
Rakesh Jain 2017년 3월 9일
편집: Rakesh Jain 2017년 3월 9일
I had to minimise errror using a optimisation algorithm (BBBC) which I had to code using Matlab. There was a statement :'r' is a random number from a standard normal distribution with decreasing standard deviation
Rakesh Jain
Rakesh Jain 2017년 3월 9일
r lies between 0 and 1
Walter Roberson
Walter Roberson 2017년 3월 9일
I do not seem to find any optimization algorithm abbreviated as BBBC. Perhaps you were referring to Broad Bioimage Benchmark Collection ?
Rakesh Jain
Rakesh Jain 2017년 3월 15일
편집: Rakesh Jain 2017년 3월 15일

@Walter Roberson, BBBC is Big Bang Big Crunch Optimisation Algorithm by Osman K. Erol and Ibrahim Eksin discovered in 2006

Walter Roberson
Walter Roberson 2017년 3월 15일
Decreasing standard deviation would result in an algorithm with similarities to Simulated Annealing.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2017년 3월 9일

1 개 추천

My interpretation is that the normal distribution is to be unbounded, not restricted to the range [0 1], but that the standard deviation used is to start and 1 and decrease to 0. For example,
SD = linspace(1, 0, 20)
results = randn(1,20) .* SD
That would give you 20 results with stand deviation decreasing from 1 to 0.
As for why... I don't know?

질문:

2017년 3월 9일

댓글:

2017년 3월 15일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by