Skip to content

Commit

Permalink
Fix various typos and improve clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed May 6, 2024
1 parent cefaaca commit f126f8f
Show file tree
Hide file tree
Showing 32 changed files with 19 additions and 16 deletions.
Binary file modified Applied Probability/ap.pdf
Binary file not shown.
22 changes: 13 additions & 9 deletions CodingAndCryptography/04_algebraic_coding_theory.tex
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ \subsubsection{Decoding BCH Codes}

Recall $e(\alpha^j) = r(\alpha^j)$ for $j = 1, 2, \dots, 2t$.
\begin{itemize}
\item Set $\sigma(X) = \sigma_0 + \sigma_1 X + \dots + \sigma_t X^t$ and $\sum_{i=0}^{t} \omega_i X^i = \sigma(X)(r(\alpha) X + r(\alpha^2) X^2 + \dots + r(\alpha^{2t})X^{2t})$ mod $X^{2t + 1}$.
\item Coeffs of $X^i$ for $t < i \leq 2i$ are $\sum_{j=0}^t \sigma_j r(\alpha^{i-j}) = 0$ which don't involve any of $e(\alpha^j)X^j$ for all $1 \leq j \leq 2t$.
\item Set $\sigma(X) = \sigma_0 + \sigma_1 X + \dots + \sigma_t X^t$ and $\sum_{i=0}^{t} \omega_i X^i = \sigma(X)(r(\alpha) X + r(\alpha^2) X^2 + \dots + r(\alpha^{2t})X^{2t} + e(\alpha^{2t + 1}) X^{2t + 1} + \dots)$\footnote{We proved the degree of $\omega(X)$ is a most $t$ in previous thm and this eqn is not modulo anything.}.
\item Coeffs of $X^i$ for $t < i \leq 2t$ are $\sum_{j=0}^t \sigma_j r(\alpha^{i-j}) = 0$ which don't involve any of $e(\alpha^j)X^j$ for all $1 \leq j \leq 2t$.
\item So we obtain a system of linear equations
\begin{align*}
\begin{pmatrix}
Expand All @@ -721,7 +721,7 @@ \subsubsection{Decoding BCH Codes}
\end{itemize}

\begin{example}[Reed-Solomon]
If $\mathbb{F} = \mathbb{F}_q$, $n = q - 1$ this is \vocab{Reed-Solomon} code.
If $K = \mathbb{F}_q$ and $n \leq q - 1$, where $q$ must be a prime power for $K$ to be a field, this is the \vocab{Reed-Solomon} code.
This is used in CDs.
There are two RS codes over $\mathbb{F}_{2^8}$ with $\delta = 5$ with length $n = 32$, $28$ respectively.
Error bursts caused by scratches on the CDs of about 4000 bits can be corrected.
Expand Down Expand Up @@ -754,7 +754,7 @@ \subsubsection{Decoding BCH Codes}

Let $K$ be a splitting field\footnote{This is from Galois Theory. We want to add roots till $X^7 - 1$ splits into linear factors.} for $X^7 - 1$; we can take $K = \mathbb F_8$.
Let $\beta \in K$ be a root of $g$.
Note that $\beta^3 = \beta + 1$, so $\beta^6 = \beta^2 + 1$, so $g(\beta^2) = 0$. %, and hence $g(\beta^4) = 0$.
Note that $\beta^3 = \beta + 1$\footnote{In $\mathbb{F}_2$.}, so $\beta^6 = \beta^2 + 1$, so $g(\beta^2) = 0$. %, and hence $g(\beta^4) = 0$.
So the BCH code defined by $\qty{\beta, \beta^2}$ has generator polynomial $g(X)$, again proving that this is Hamming's $(7,4)$-code.
This code has design distance $3$, so $d(C) \geq 3$, and we know Hamming's code has minimum distance exactly 3.
\end{example}
Expand All @@ -779,14 +779,14 @@ \subsection{Shift registers}
We usually set $a_0 = 1$.
\end{definition}

The stream produced by a LFSR is now given by the recurrence relation $y_n = \sum_{i=0}^{d-1} a_i y_{n-d+i}$.
The stream produced by a LFSR is now given by the recurrence relation $y_n = \sum_{i=0}^{d-1} a_i y_{n-d+i}$ over $\mathbb{F}_2$.
We can define the \vocab{auxiliary polynomial} $P(X) = X^d + a_{d-1} X^{d-1} + \dots + a_1 X + a_0$.
We sometimes write $a_d = 1$, so $P(X) = \sum_{i=0}^d a_i X^i$.

\underline{Over $\mathbb{C}$}: general solution is linear combinations of $\alpha^n, n \alpha^n, \dots, n^{t-1} \alpha^n$ for $\alpha$ running over roots of $P(X)$ and $\alpha$ root of mult $t$.
\underline{Over $\mathbb{C}$}: The general solution to a recurrence relation is a linear combination of $\alpha^n, n \alpha^n, \dots, n^{t-1} \alpha^n$ for $\alpha$ a root of $P(X)$ with multiplicity $t$.

\underline{Over $\mathbb{F}_2$}: $n^2 \equiv n \mod 2$ so this doesn't give enough solns.
Resolved by replacing $n^j \alpha^n$ by $\binom{n}{j} \alpha^n$.
\underline{Over $\mathbb{F}_2$}: However, we have a recurrence relation over $\mathbb{F}_2$ and $n^2 \equiv n \mod 2$ so we only get two solutions, which is not enough.
We resolve this by replacing $n^j \alpha^n$ by $\binom{n}{j} \alpha^n$, i.e. the general solution if a linear combination of $\binom{n}{0} \alpha^n, \binom{n}{1} \alpha^n, \dots$

\begin{definition}[Feedback Polynomial]
The \vocab{feedback polynomial} is $\check{P}(X) = a_0 X^d + \dots + a_{d-1} X + 1 = \sum_{i=0}^d a_{d-i} X^i$.
Expand Down Expand Up @@ -832,7 +832,7 @@ \subsection{The Berlekamp--Massey method}
\vdots \\
a_1 \\
a_0
\end{pmatrix} = 0 (\ast)
\end{pmatrix} = 0 \tag{$\ast$}
\end{align*}
We look successively at $A_0 = \begin{pmatrix}
x_0
Expand All @@ -846,6 +846,10 @@ \subsection{The Berlekamp--Massey method}
This candidate can be checked over as many terms of the stream as desired.
If the test fails, we know $d > i$.

\begin{remark}
We are just finding the minimal $d$ s.t. $\exists \; a$ satisfying $x_n = \sum_{i=1}^d {a_{n-i} x_{n - i}}$ over $\mathbb{F}_2$.
\end{remark}

\begin{remark}
Usually Gaussian elimination is easier than expanding rows/ cols.
\end{remark}
Binary file modified CodingAndCryptography/cc.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion ProbAndMeasure/04_product_measures.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ \subsection{Integration in product spaces}
\end{lemma}

\begin{remark}
In case (ii), the map on $x_1$ may evaluate to infinity, but the set of values
In case (2), the map on $x_1$ may evaluate to infinity, but the set of values
\[ \qty{x_1 \in E_1 : \int_{E_2} f(x_1,x_2) \dd{\mu_2(x_2)} = \infty} \]
lies in $\mathcal E_1$.

Expand Down
11 changes: 5 additions & 6 deletions ProbAndMeasure/06_fourier_analysis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ \subsection{Convolutions}
\int_{\mathbb{R}^d} \abs{f \ast \nu(x)}^p \dd{x} &\leq \int_{\mathbb R^d} \qty( \int_{\mathbb R^d} \abs{f(x-y)} \dd{\nu(y)} )^p \dd{x} \\
&\leq \int_{\mathbb R^d} \int_{\mathbb R^d} \abs{f(x-y)}^p \dd{\nu(y)} \dd{x} \quad \text{as $p \geq 1$}\\
&= \int_{\mathbb R^d} \int_{\mathbb R^d} \abs{f(x-y)}^p \dd{x} \dd{\nu(y)} \\
&= \int_{\mathbb R^d} \int_{\mathbb R^d} \abs{f(x)} \dd{\nu(y)} \dd{x} \\
&= \int_{\mathbb R^d} \abs{f(x)} \dd{x} \\
&= \norm{f}_p^p < \infty.
&= \int_{\mathbb R^d} \int_{\mathbb R^d} \abs{f(x)}^p \dd{x} \dd{\nu(y)} \text{ as $\lambda$ translation invariant} \\
&= \norm{f}_p^p < \infty \text{ as $\nu$ a prob measure.}
\end{align*}
Hence $f \ast v$ is defined a.e., and $\norm{f \ast v}_p \leq \norm{f}_p < \infty$.
When $\nu$ has pdf $g \in L^1$\footnote{wrt Lebesgue measure}, $f \ast v(x) = \int f(x-y) g(y) \dd{y} = f \ast g(x)$.
Expand Down Expand Up @@ -170,7 +169,7 @@ \subsection{Fourier transforms of Gaussians}
\dv{u} \varphi_Z(u) &= \frac{1}{\sqrt{2 \pi}} \int \dv{u} \left(e^{-z^2 / 2} e^{iuz}\right) \dd{z} \\
&= \frac{1}{\sqrt{2 \pi}} \int iz e^{-z^2 / 2} e^{iuz} \dd{z} \\
&= \frac{i}{\sqrt{2\pi}} \int \underbrace{e^{iuz}}_{v} \underbrace{z e^{-\frac{z^2}{2}}}_{w'} \dd{z} \\
&= \frac{i}{\sqrt{2\pi}} \int iu e^{iux} e^{-\frac{z^2}{2}} \dd{x} \\
&= \frac{i}{\sqrt{2\pi}} \int iu e^{iuz} e^{-\frac{z^2}{2}} \dd{z} \\
&= -u \varphi_Z(u)
\end{align*}

Expand Down Expand Up @@ -241,7 +240,7 @@ \subsection{Fourier transforms of Gaussians}
\[ \norm{f \ast g_t - h \ast g_t}_p = \norm{(f - h) \ast g_t}_p \leq \norm{f - h}_p < \frac{\varepsilon}{3} \]
So by Minkowski's inequality,
\begin{align*}
\norm{f \ast g_t - f}_p \leq \underbracket{\norm{f \ast g_t - h \ast g_t}_p}_{\leq \epsilon / 3} + \underbracket{\norm{h - f}_p}_{\leq \epsilon / 3} + \norm{h \ast g_t + h}_p
\norm{f \ast g_t - f}_p \leq \underbracket{\norm{f \ast g_t - h \ast g_t}_p}_{\leq \epsilon / 3} + \underbracket{\norm{h - f}_p}_{\leq \epsilon / 3} + \norm{h \ast g_t - h}_p
\leq \frac{2\varepsilon}{3} + \norm{h \ast g_t - h}_p
\end{align*}
so it suffices to prove the result for $f = h \in C_c(\mathbb R^d)$.
Expand All @@ -256,7 +255,7 @@ \subsection{Fourier transforms of Gaussians}
\begin{align*}
\norm{h \ast g_t - h}_p^p &= \int_{\mathbb R^d} \abs{ \int_{\mathbb R^d} h(x-y) g_t(y) \dd{y} - h(x)}^p \dd{x} \\
&= \int_{\mathbb R^d} \abs{ \int_{\mathbb R^d} (h(x-y) - h(x)) g_t(y) \dd{y} }^p \dd{x} \\
&\leq \int_{\mathbb R^d} \int_{\mathbb R^d} \abs{h(x-y) - h(x)}^p \dd{x} g_t(y) \dd{y} \\
&\leq \int_{\mathbb R^d} \int_{\mathbb R^d} \abs{h(x-y) - h(x)}^p \dd{x} g_t(y)\footnote{$g_t$ the measure for our expectation in Jensen's so unaffected.} \dd{y} \\
&= \int_{\mathbb R^d} e(y) g_t(y) \dd{y} \\
&= \int_{\mathbb R^d} e(y) \frac{1}{t^{d/2}} g_1 \qty(\frac{y}{\sqrt{t}})\footnote{Note that $g_t(u) = \frac{1}{t^{d/2}} g_1 \qty(\frac{u}{\sqrt{t}})$} \dd{y} \\
&= \int_{\mathbb R^d} \underbracket{e(\sqrt{t} z)}_{\to e(0) = 0 \text{ as } t \to 0} g_1(z) \dd{z} \\
Expand Down
Binary file modified ProbAndMeasure/probmeasure.pdf
Binary file not shown.
Binary file modified QuantumInfoAndComputing/qic.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture01.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture02.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture03.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture04.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture05.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture06.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture07.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture08.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture09.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture10.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture11.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture12.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture13.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture14.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture15.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture16.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture17.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture18.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture19.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture20.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture21.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture22.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture23.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/lecture24.pdf
Binary file not shown.
Binary file modified Stochastic Financial Models/sfm.pdf
Binary file not shown.

0 comments on commit f126f8f

Please sign in to comment.