Created
June 7, 2024 16:48
-
-
Save nickovchinnikov/746ccbcf5f7318657c6ed435ff7492d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"AR sequence generation can be formulated using the chain rule of probability. Let $x = (x_1, x_2, \\ldots, x_n)$ be the true sequence of length $n$.\n", | |
"\n", | |
"$$P(x) = P(x_1, x_2, ..., x_n)$$\n", | |
"\n", | |
"The joint probability of the sequence can be decomposed into a product of conditional probabilities:\n", | |
"\n", | |
"$$P(x) = P(x_1, x_2, ..., x_n) = P(x_1)P(x_2 | x_1)P(x_3 | x_1, x_2) \\dots P(x_n | x_1, x_2 \\dots, x_{n-1})$$\n", | |
"\n", | |
"Using prod notation this can be written as:\n", | |
"\n", | |
"$$P(x) = \\prod_{i=1}^nP(x_i|x_1,x_2,\\dots,x_{i-1})$$\n", | |
"\n", | |
"We can simplify the result to:\n", | |
"\n", | |
"$$P(x) = \\prod_{i=1}^nP(x_i|\\mathbf{x}_{<i})$$" | |
] | |
} | |
], | |
"metadata": { | |
"language_info": { | |
"name": "python" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment