{
"cells": [
{
"cell_type": "markdown",
"id": "20fce00f",
"metadata": {},
"source": [
"### ML, Data Analysis\n",
"#### Discrete random variables and their distribution functions\n",
"In this notebook, we talk about discrete random variables with an example from *Bernoulli probability function*.\n",
"
**Definition:** *Random variables* are *discrete* when their range is **finitely countable** or **infinitely countable**. \n",
"
**Reminder:** A set is *countable* if the number of its elements is not greater than that of the *natural numbers*. As a result, any finite set is a countable set. \n",
"
**Contents:**\n",
"- Defining *sample space* of Bernoulli\n",
"- Defining the *random variable* of Bernoulli\n",
"- Bernoulli *probability (mass) function*\n",
"- Displaying Bernoulli probability function\n",
"- Computing and displaying *(cumulative) distribution function*\n",
"- Compute and then displaying *entropy* for Bernoulli with different values of parameter $p$\n",
"