{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Bayesian Inference in Machine Learning: Part 1\n", "\n", "Rafiq Islam \n", "2024-07-28" ], "id": "e1aa2543-d26a-48df-86b8-b3283c5068a4" }, { "cell_type": "raw", "metadata": { "raw_mimetype": "text/html" }, "source": [ "" ], "id": "a1ff1693-28a7-4804-a705-24eb5ba5962a" }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Introduction" ], "id": "6802fbdc-9330-45fe-85d1-c770e5b6b694" }, { "cell_type": "raw", "metadata": { "raw_mimetype": "text/html" }, "source": [ "
"
],
"id": "04f4c3f6-4f35-4d44-b4b5-b61ee96a6206"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"Bayesian inference is a powerful statistical method that applies the\n",
"principles of Bayes’s theorem to update the probability of a hypothesis\n",
"as more evidence or information becomes available. It is widely used in\n",
"various fields including machine learning, to make predictions and\n",
"decisions under uncertainty."
],
"id": "ab069c71-8a50-4f27-83b3-d341eaf41091"
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/html"
},
"source": [
"
"
],
"id": "d8ee8920-93e2-4b5c-a2e7-474f85c0727e"
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"Assume that you are in a restuarant and you ordered a plate of 3\n",
"pancakes. The chef made three pancakes with one in perfect condition,\n",
"that is not burnt in any side, one with one side burnt, and the last one\n",
"burnt in both sides. The waiter wanted to stack the pancakes so that the\n",
"burnt side does not show up when served. However, the chef recommended\n",
"not to hide the burnt side and asked her to stack the pancakes randomly.\n",
"What is the likelyhood that the fully burnt pancake will be on the top?\n",
"
To solve this problem, we can use Bayesian approach. We denote\n",
"the event $X$ as the pancake without any burnt, $Y$ with one side burnt,\n",
"and $Z$ both side burnt. Then we have the following conditional\n",
"probabilities"
],
"id": "e3915402-6a19-4503-96f7-522386872fc3"
},
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/html"
},
"source": [
"