# Probability Distributions

## What is a probability distribution?

In module 3, we learned about probabilities, events, and outcome spaces. A probability distribution puts these three concepts together. Each probability distribution is defined upon an outcome space and assigns a probability to each event in this outcome space. Furthermore,&#x20;

1\) The sum of the probabilities over all events must equal 1

2\) The probability of each event must be greater than or equal to 0

Probability distributions are used to model systems that have some element of randomness to them. Such models are designed either using observations of the system or physical laws. These models can help you better understand the system and make predictions about what will happen next in the system.&#x20;

{% tabs %}
{% tab title="Question" %}
Define a probability distribution for whether it will be rainy or sunny tomorrow. If we wanted this model to be useful, we would need to use real-world data, but for this question, just make a guess!&#x20;

Bonus: how many different probability distributions are there?
{% endtab %}

{% tab title="Hint 1" %}
The outcome space is {rainy, sunny}.
{% endtab %}

{% tab title="Hint 2" %}
The probabilities of each event in the outcome space must sum to 1.
{% endtab %}

{% tab title="Answer" %}
One possible probability distribution is a 0.75 chance of sun and a 0.25 chance of rain. These probabilities sum to 1 and are each nonnegative.&#x20;

There are an infinite number of probability distributions you can define for this outcome space; any two nonnegative numbers that sum to 1 can be the probabilities of sun and rain.
{% endtab %}
{% endtabs %}

> When modeling a real-world system, we want to use the probability distribution that most accurately captures the nature of the system. Taking a guess, as we did in the above question, isn't going to cut it. There are many techniques to design a probability distribution that are more accurate than guessing. You can learn more about these techniques by studying statistics and machine learning!&#x20;

While it can be very difficult to accurately define the probability distribution for some real-world systems, such as the weather, other real-world systems can be modeled using one of several common probability distributions.

The following four probability distributions are some, but not all, of these common distributions. Learning about these distributions is really exciting because it can change the way you think about randomness in the world! We will cover the Bernoulli, discrete uniform, continuous uniform, and normal distributions.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://otd.gitbook.io/book/central-limit-theorem/probability-distributions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
