Re: code for random placement of set of numbers



Inf wrote:


thajudin wrote:
Inf wrote:


Dear friend
I have tried it, and it is working. Could u just
suggest what
is
to
be done for distributing the set of numbers in "normal
distribution".
What I mean is, after randomnly placing the numbers
using your
program, if we plot the histogram of the generated
sequence,
it
should follow a bell shaped curve.

Thajudin,

could you say a bit more about what you require;

you wish to pick your numbers from a non-uniform
distribution - if so, the distribution has to be specified
- by
assigning
a probability to each of the numbers in the original list.

Regards,

Inf.


Dear Inf,
i would like to have the numbers follow 'normal distribution',
which
is bell shaped.
rgds
thajudin

Thajudin:

you are dealing with a finite set of numbers, your example was
1 2 3 5 6 9. Would you like 5 to occur most often, then 3 or 6 or
what?

If you do want something like this then you need to assign a
probability (of being
picked) to each of your numbers in the original set.

If you somehow want these to have a normal distribution then you
need
to

1) specify the mean and a variance of the normal distribution
2) connect up the probability of being picked to the normal
distribution you have
just specified.

Regards,

Inf.


Dear Inf,
I had given the limited number of elements just as an example. I may
use set which contains about 200 elements. What you have asked is
correct. The maximum frequency of appearance (max. probability) will
br for the central element, (ie 3 and 5 in the example cited). When
the elements are arranged in an order, the elements away from the
central values will have less frequency(less probability) and that
follows a 'normal distribution'.

I am sure that you can help in coding this requirement.

rgds

thajudin
.



Relevant Pages

  • Re: code for random placement of set of numbers
    ... thajudin wrote: ... distribution - if so, ... a probability to each of the numbers in the original ... Dear Inf, ...
    (comp.soft-sys.matlab)
  • Re: can it be a distrubution function?
    ... the probability distribution is a function P, ... the distribution is a function matching for each real ... +inf = inf! ...
    (sci.math)
  • Re: Pigeons, People, and Priors
    ... the variance of the probability generator go to zero you have a continuum ... a random-interval 60 s schedule is not. ... The Exponential Distribution ... I probably should have used the phrase "statistical learning theory" rather ...
    (comp.ai.philosophy)
  • Re: So called "stimulus/response" models
    ... Instead of answering to each misunderstood, ironic and out of context ... Sorry, you exhibit a simplistic view of probability theory, and an even more ... of acquiring the consequences of responses. ... distribution over consequences of a given act. ...
    (comp.ai.philosophy)
  • Re: Bill Reid, Kelly Criterion
    ... about logs; if a person is talking about a percentage change in the ... probability of going broke the more they trade. ... adjustment (which is the one which allows any distribution which is ...
    (misc.invest.stocks)