> ## Documentation Index
> Fetch the complete documentation index at: https://v1-learn.neoartd.my.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Probability Distributions

A `variable` is defined as a characteristic or attribute that can assume different values.

> Sebuah `variabel` didefinisikan sebagai karakteristik atau atribut yang dapat mengambil nilai yang berbeda.

A variable whose values are determined by chance is called a `random variable`.

> Variabel yang nilainya ditentukan oleh kebetulan disebut `random variable`.

If a `variable` can assume only a specific
number of values, such as the
outcomes for the roll of a die or the
outcomes for the toss of a coin, then
the variable is called a `discrete
variable`.

> Jika `variabel` hanya dapat mengambil sejumlah nilai tertentu, seperti hasil dari lemparan dadu atau hasil dari lemparan koin, maka variabel tersebut disebut `discrete variable`.

Discrete variables have values that can be counted.

> Variabel diskrit memiliki nilai yang dapat dihitung.

If a `variable` can assume all values in
the interval between two given values
then the variable is called a `continuous
variable`. Example - temperature
between $68^{\circ}$ to $78^{\circ}$.

> Jika `variabel` dapat mengambil semua nilai dalam interval antara dua nilai tertentu maka variabel tersebut disebut `continuous variable`. Contoh - suhu antara $68^{\circ}$ hingga $78^{\circ}$.

Continuous random variables are
obtained from data that can be
measured rather than counted.

> Variabel acak kontinu diperoleh dari data yang dapat diukur daripada dihitung.

### Probability Distributions - Tossing Two Coins

![Probability Distributions - Tossing Two Coins](https://i.ibb.co/qDd0CHx/Screenshot-2024-05-01-181513.png)

From the tree diagram, the sample
space will be represented by `HH,
HT, TH, TT`.

> Dari diagram pohon, ruang sampel akan direpresentasikan oleh `HH, HT, TH, TT`.

If `X` is the random variable for the
number of heads, then `X` assumes
the value `0, 1, or 2`.

> Jika `X` adalah variabel acak untuk jumlah kepala, maka `X` mengasumsikan nilai `0, 1, atau 2`.

![Probability Distributions - Tossing Two Coins](https://i.ibb.co/rps0Jnc/Screenshot-2024-05-01-181652.png)

| OUTCOME <br /> X | PROBABILITY <br /> P(X) |
| :--------------: | :---------------------: |
|         0        |           1/4           |
|         1        |           2/4           |
|         2        |           1/4           |

A `probability distribution` consists of
the values a random variable can
assume and the corresponding
probabilities of the values. The
probabilities are determined
theoretically or by observation.

> Sebuah `distribusi probabilitas` terdiri dari nilai yang dapat diambil oleh variabel acak dan probabilitas yang sesuai dari nilai-nilai tersebut. Probabilitas ditentukan secara teoritis atau dengan observasi.

### Probability Distributions - Graphical Representation

![Probability Distributions - Graphical Representation](https://i.ibb.co/hKkMSVt/Screenshot-2024-05-01-182056.png)
