Sebaran seragam: Béda antarrépisi

Ti Wikipédia Sunda, énsiklopédi bébas
Konten dihapus Konten ditambahkan
Budhi (obrolan | kontribusi)
Tidak ada ringkasan suntingan
Budhi (obrolan | kontribusi)
Baris ka-3: Baris ka-3:
== Kasus diskrit ==
== Kasus diskrit ==


A random variable that has any of ''n'' possible values ''x''<sub>1</sub>, ''x''<sub>2</sub>, ..., ''x''<sub>''n''</sub> that are equally probable has a discrete uniform distribution, then the probability of any outcome ''x''<sub>''i''</sub> is 1/''n''. A simple example of the discrete uniform distribution is throwing a fair die. The possible values of ''x'' are 1, 2, 3, 4, 5, 6; and each time the die is thrown, the probability of a given score is 1/6.
Variabel random nu mibanda unggal nilai ''n'' nu mungkin ''x''<sub>1</sub>, ''x''<sub>2</sub>, ..., ''x''<sub>''n''</sub> ngabogaan kamungkinan nu sarua dina sebaran seragam diskrit, saterusna kamungkinan keur unggal hasil ''x''<sub>''i''</sub> nyaeta 1/''n''. Conto gampang dina sebaran seragam diskrit nyaeta ngalungkeun dadu. Nilai nu mungkin ''x'' nyaeta 1, 2, 3, 4, 5, 6; dina unggal alungan, kamungkinan salah sahiji nilai muncul nyaeta 1/6.


Dina kasus nilai variabel random nu mibanda sebaran normal ngarupakeun[[real number|real]], ngamungkinkeun keur ngagambarkeun fungsi kumulatif sebaran dina watesan ''degenarate'' sebaran, nyaeta
In case the values of a random variable with a discrete uniform distribution are [[real number|real]], is possible to express the cumulative distribution function in terms of the degenerate distribution, thus


:<math>F(x)={1\over N}\sum_{i=1}^N\theta(x-x_i)</math>
:<math>F(x)={1\over N}\sum_{i=1}^N\theta(x-x_i)</math>


where the Heavyside [[step function]] &theta;(''x'') is the CDF of the degenerate distribution at ''x'' = 0.
numana Heavyside [[step function]] &theta;(''x'') ngarupakeun CDF tina degenerate sebaran dina ''x'' = 0.


== The continuous case ==
== The continuous case ==

Révisi nurutkeun 24 Agustus 2004 00.07

Dina matematik, sebaran seragam nyaeta probability distribution sederhana. Sebaran bisa discrete atawa continuous. Dina kasus diskrit, bisa di-karakterisasi ku nyebutkeun yen sakabeh nilai sarua kamungkinanna. Dina kasus kontinyu yen sakabeh panjang interval nu sarua ngabogaan kamungkinan nu sarua.

Kasus diskrit

Variabel random nu mibanda unggal nilai n nu mungkin x1, x2, ..., xn ngabogaan kamungkinan nu sarua dina sebaran seragam diskrit, saterusna kamungkinan keur unggal hasil xi nyaeta 1/n. Conto gampang dina sebaran seragam diskrit nyaeta ngalungkeun dadu. Nilai nu mungkin x nyaeta 1, 2, 3, 4, 5, 6; dina unggal alungan, kamungkinan salah sahiji nilai muncul nyaeta 1/6.

Dina kasus nilai variabel random nu mibanda sebaran normal ngarupakeunreal, ngamungkinkeun keur ngagambarkeun fungsi kumulatif sebaran dina watesan degenarate sebaran, nyaeta

numana Heavyside step function θ(x) ngarupakeun CDF tina degenerate sebaran dina x = 0.

The continuous case

In the continuous case, the uniform distribution is also called the rectangular distribution because of the shape of its probability density function (see below). It is parameterised by the smallest and largest values that the uniformly-distributed random variable can take, a and b. The probability density function of the uniform distribution is thus:

and the cumulative distribution function is:

The graph of the probability density function for the continuous uniform distribution looks like:

The continuous uniform probability density function

For a random variable following this distribution, the expected value is (a + b)/2 and the standard deviation is (b - a)/√12.

This distribution can be generalized to more complicated sets than intervals. If S is a Borel set of positive, finite measure, the uniform probability distribution on S can be specified by saying that the pdf is zero outside S and constantly equal to 1/K on S, where K is the Lebesgue measure of S.

The standard uniform distribution

The standard uniform distribution is the continuous uniform distribution with the values of a and b set to 0 and 1 respectively, so that the random variable can take values only between 0 and 1.

Sampling from a uniform distribution

When working with probability, it is often useful to run experiments such as computational simulations. Many programming languages have the ability to generate pseudo-random numbers which are effectively distributed according to the standard uniform distribution.

If u is a value sampled from the standard uniform distribution, then the value a + (b - a)u follows the uniform distribution parametrised by a and b, as described above. Other transformations can be used to generate other statistical distributions from the uniform distribution. (see uses below)

Uses of the uniform distribution

In statistics, when a p-value is used as a test statistic for a simple null hypothesis, and the distribution of the test statistic is continuous, then the test statistic is uniformly distributed between 0 and 1 if the null hypothesis is true.

Although the uniform distribution is not commonly found in nature, it is particularly useful for sampling from arbitrary distributions.

A general method is the inverse transform sampling method, which uses the cumulative distribution function (CDF) of the target random variable. This method is very useful in theoretical work. Since simulations using this method require inverting the CDF of the target variable, alternative methods have been divised for the cases where the CDF is not known in closed form. One such method is rejection sampling.

The normal distribution is an important example where the inverse transform method is not efficient. However, there is an exact method, the Box-Muller transformation, which uses the inverse transform to convert two independent uniform random variables into two independent normally distributed random variables.