D
D
Denis Ogurtsov2012-01-12 23:47:08
Mathematics
Denis Ogurtsov, 2012-01-12 23:47:08

Exponential distribution law algorithm?

At the university, they were asked to write a program for modeling events.
I write in php.
The task is not difficult, but I can not understand this part of the condition: The
interval (delta)t obeys an exponential law with a mathematical expectation equal to 10 seconds.
I can not understand / imagine the scheme of actions for calculating these intervals.
How to calculate this interval?
PS: complete condition of the problem:
On the communication line, which consists of 2 channels, at random intervals of time t, information packages are received. When a message arrives, each of the channels can be busy with a probability of 0.4. If both channels are busy. That information is lost. The interval t obeys an exponential law with a mathematical expectation equal to 10 seconds.
Determine what percentage of packages are lost within an hour.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Slayt, 2012-01-13
@Slayt

Formula for a random number with exponential distribution:
R i = -1 * ln(W i ) / λ, where λ is the intensity, and W i is a random number from 0 to 1.
Mat. expectation in this case is the reciprocal of intensity.
If I understand correctly, then in your case the formula will look like
deltaT = -M * ln(W i )

E
Eternalko, 2012-01-13
@Eternalko

Are you familiar with statistics?
Do you know what a Gaussian distribution is? Have you read
here ?

M
Mrrl, 2012-01-13
@Mrl

It is not clear why the statistics of packet arrival and the time of the experiment are needed at all. It is enough that “the communication line consists of 2 channels… When a message arrives, each of the channels can be busy with a probability of 0.4. If both channels are busy, then the information is lost. It is clear that no matter how the parcels arrive, an average of 16% will be lost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question