From 977b439344367c63509731b1cbc13f8604f5b2f7 Mon Sep 17 00:00:00 2001 From: rezaarezvan Date: Sat, 26 Oct 2024 23:33:47 +0800 Subject: [PATCH] Deploy --- cityu/cs4487/cs4487_7/index.html | 15 +++++++-------- cityu/ma3518/ma3518_3/index.html | 4 ++-- images/.DS_Store | Bin 6148 -> 6148 bytes images/cityu/.DS_Store | Bin 8196 -> 8196 bytes pagefind/fragment/en_12584ac.pf_fragment | Bin 0 -> 4132 bytes pagefind/fragment/en_13dea46.pf_fragment | Bin 2851 -> 0 bytes ...88a.pf_fragment => en_157532a.pf_fragment} | Bin 2589 -> 2589 bytes pagefind/fragment/en_15f65a0.pf_fragment | Bin 0 -> 2010 bytes pagefind/fragment/en_166df21.pf_fragment | Bin 3350 -> 0 bytes pagefind/fragment/en_17c1d9a.pf_fragment | Bin 0 -> 3025 bytes pagefind/fragment/en_17df5e8.pf_fragment | Bin 2132 -> 0 bytes pagefind/fragment/en_1ee93c8.pf_fragment | Bin 3690 -> 0 bytes pagefind/fragment/en_22df768.pf_fragment | Bin 2512 -> 0 bytes ...32a.pf_fragment => en_25d3d2b.pf_fragment} | Bin 1676 -> 1676 bytes ...866.pf_fragment => en_29cd5bb.pf_fragment} | Bin 2924 -> 2924 bytes ...87e.pf_fragment => en_2e8ab3f.pf_fragment} | Bin 2588 -> 2588 bytes ...85e.pf_fragment => en_2f3dc82.pf_fragment} | Bin 4763 -> 4763 bytes pagefind/fragment/en_3592fac.pf_fragment | Bin 0 -> 2519 bytes pagefind/fragment/en_38dafb7.pf_fragment | Bin 0 -> 2509 bytes pagefind/fragment/en_4254981.pf_fragment | Bin 3387 -> 0 bytes pagefind/fragment/en_435331d.pf_fragment | Bin 2222 -> 0 bytes pagefind/fragment/en_438b9b7.pf_fragment | Bin 1219 -> 0 bytes ...a51.pf_fragment => en_45795ff.pf_fragment} | Bin 3470 -> 3469 bytes pagefind/fragment/en_465ab8b.pf_fragment | Bin 0 -> 6643 bytes pagefind/fragment/en_4891d23.pf_fragment | Bin 3326 -> 0 bytes ...427.pf_fragment => en_4f7296f.pf_fragment} | Bin 1227 -> 1227 bytes pagefind/fragment/en_567893e.pf_fragment | Bin 0 -> 3348 bytes pagefind/fragment/en_59125e8.pf_fragment | Bin 0 -> 3325 bytes pagefind/fragment/en_59f1424.pf_fragment | Bin 1673 -> 0 bytes pagefind/fragment/en_5cd82bc.pf_fragment | Bin 0 -> 2039 bytes pagefind/fragment/en_5fde7ed.pf_fragment | Bin 0 -> 681 bytes pagefind/fragment/en_6a78b35.pf_fragment | Bin 2022 -> 0 bytes pagefind/fragment/en_6bc1629.pf_fragment | Bin 1482 -> 0 bytes ...373.pf_fragment => en_6f26561.pf_fragment} | Bin 2557 -> 2557 bytes pagefind/fragment/en_73ddeb5.pf_fragment | Bin 0 -> 1218 bytes ...992.pf_fragment => en_774f343.pf_fragment} | Bin 1764 -> 1761 bytes pagefind/fragment/en_7c93fc3.pf_fragment | Bin 0 -> 5674 bytes ...fb4.pf_fragment => en_7c9524b.pf_fragment} | Bin 1648 -> 1649 bytes pagefind/fragment/en_7e2efc3.pf_fragment | Bin 3606 -> 0 bytes pagefind/fragment/en_7f5222d.pf_fragment | Bin 0 -> 2291 bytes ...0f2.pf_fragment => en_7f6e636.pf_fragment} | Bin 2679 -> 2679 bytes pagefind/fragment/en_806c40c.pf_fragment | Bin 1713 -> 0 bytes ...c15.pf_fragment => en_81fcc84.pf_fragment} | Bin 3169 -> 3169 bytes pagefind/fragment/en_823be74.pf_fragment | Bin 1438 -> 0 bytes ...34d.pf_fragment => en_835c394.pf_fragment} | Bin 2422 -> 2419 bytes pagefind/fragment/en_84422ab.pf_fragment | Bin 2257 -> 0 bytes ...945.pf_fragment => en_8b92b94.pf_fragment} | Bin 4991 -> 4990 bytes pagefind/fragment/en_91e72a9.pf_fragment | Bin 679 -> 0 bytes pagefind/fragment/en_96dddf8.pf_fragment | Bin 3349 -> 0 bytes pagefind/fragment/en_9ca210b.pf_fragment | Bin 0 -> 1673 bytes pagefind/fragment/en_9db4e06.pf_fragment | Bin 2291 -> 0 bytes pagefind/fragment/en_9fdc157.pf_fragment | Bin 1644 -> 0 bytes ...b0d.pf_fragment => en_a231cbf.pf_fragment} | Bin 2252 -> 2253 bytes pagefind/fragment/en_a4dec7f.pf_fragment | Bin 4133 -> 0 bytes pagefind/fragment/en_a5f23de.pf_fragment | Bin 0 -> 2021 bytes pagefind/fragment/en_ab97ce8.pf_fragment | Bin 0 -> 567 bytes pagefind/fragment/en_ac78e46.pf_fragment | Bin 0 -> 1481 bytes pagefind/fragment/en_acb0a45.pf_fragment | Bin 0 -> 153 bytes pagefind/fragment/en_b2a5cd9.pf_fragment | Bin 0 -> 3350 bytes pagefind/fragment/en_b312337.pf_fragment | Bin 0 -> 2851 bytes pagefind/fragment/en_c0a0ddb.pf_fragment | Bin 0 -> 3603 bytes pagefind/fragment/en_c3b3ead.pf_fragment | Bin 567 -> 0 bytes pagefind/fragment/en_c5152bf.pf_fragment | Bin 6642 -> 0 bytes pagefind/fragment/en_c546f66.pf_fragment | Bin 3581 -> 0 bytes pagefind/fragment/en_c688d08.pf_fragment | Bin 2010 -> 0 bytes pagefind/fragment/en_c688f11.pf_fragment | Bin 0 -> 3689 bytes pagefind/fragment/en_c691959.pf_fragment | Bin 0 -> 1713 bytes pagefind/fragment/en_c6ce821.pf_fragment | Bin 0 -> 1440 bytes pagefind/fragment/en_cb79ead.pf_fragment | Bin 0 -> 2131 bytes pagefind/fragment/en_d2ddbc8.pf_fragment | Bin 0 -> 2257 bytes ...91c.pf_fragment => en_d51552a.pf_fragment} | Bin 2364 -> 2364 bytes pagefind/fragment/en_d9fbbb2.pf_fragment | Bin 2040 -> 0 bytes pagefind/fragment/en_da2faac.pf_fragment | Bin 0 -> 1645 bytes pagefind/fragment/en_dbfc7d3.pf_fragment | Bin 150 -> 0 bytes pagefind/fragment/en_e158741.pf_fragment | Bin 5729 -> 0 bytes pagefind/fragment/en_e873c58.pf_fragment | Bin 2519 -> 0 bytes pagefind/fragment/en_ea15a6d.pf_fragment | Bin 0 -> 3383 bytes pagefind/fragment/en_ecd0765.pf_fragment | Bin 0 -> 3580 bytes pagefind/fragment/en_f1d8c4e.pf_fragment | Bin 3026 -> 0 bytes ...404.pf_fragment => en_f531991.pf_fragment} | Bin 2874 -> 2874 bytes pagefind/fragment/en_fb98e84.pf_fragment | Bin 0 -> 2221 bytes pagefind/index/en_14d41ab.pf_index | Bin 36508 -> 0 bytes pagefind/index/en_1919b5d.pf_index | Bin 0 -> 35188 bytes pagefind/index/en_1f3ce4a.pf_index | Bin 0 -> 45788 bytes pagefind/index/en_236a43d.pf_index | Bin 37167 -> 0 bytes pagefind/index/en_3834d8d.pf_index | Bin 36074 -> 0 bytes pagefind/index/en_505c5f1.pf_index | Bin 0 -> 37818 bytes pagefind/index/en_508fb9b.pf_index | Bin 45797 -> 0 bytes pagefind/index/en_618a3de.pf_index | Bin 0 -> 36283 bytes pagefind/index/en_6489d2f.pf_index | Bin 0 -> 36515 bytes pagefind/index/en_6c6c129.pf_index | Bin 41871 -> 0 bytes pagefind/index/en_79bbaf5.pf_index | Bin 0 -> 37180 bytes pagefind/index/en_7afea12.pf_index | Bin 0 -> 36037 bytes pagefind/index/en_8bc1ea6.pf_index | Bin 38157 -> 0 bytes pagefind/index/en_8fb3105.pf_index | Bin 36322 -> 0 bytes pagefind/index/en_9b6f26a.pf_index | Bin 0 -> 41589 bytes pagefind/index/en_a6ce106.pf_index | Bin 41597 -> 0 bytes pagefind/index/en_b167a10.pf_index | Bin 0 -> 38151 bytes pagefind/index/en_b9a9f06.pf_index | Bin 36474 -> 0 bytes pagefind/index/en_c5774bb.pf_index | Bin 0 -> 37276 bytes pagefind/index/en_d05be51.pf_index | Bin 0 -> 37969 bytes pagefind/index/en_d1864f5.pf_index | Bin 37280 -> 0 bytes pagefind/index/en_d1d01ba.pf_index | Bin 35188 -> 0 bytes pagefind/index/en_d8ec5a4.pf_index | Bin 37822 -> 0 bytes pagefind/index/en_e2c5ede.pf_index | Bin 0 -> 41869 bytes pagefind/index/en_f7b180e.pf_index | Bin 37977 -> 0 bytes pagefind/index/en_fa34215.pf_index | Bin 0 -> 36469 bytes pagefind/pagefind-entry.json | 2 +- pagefind/pagefind.en_1b132e6c4f.pf_meta | Bin 1546 -> 0 bytes pagefind/pagefind.en_98cf7d6ad2.pf_meta | Bin 0 -> 1557 bytes 110 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 pagefind/fragment/en_12584ac.pf_fragment delete mode 100644 pagefind/fragment/en_13dea46.pf_fragment rename pagefind/fragment/{en_3ba388a.pf_fragment => en_157532a.pf_fragment} (86%) create mode 100644 pagefind/fragment/en_15f65a0.pf_fragment delete mode 100644 pagefind/fragment/en_166df21.pf_fragment create mode 100644 pagefind/fragment/en_17c1d9a.pf_fragment delete mode 100644 pagefind/fragment/en_17df5e8.pf_fragment delete mode 100644 pagefind/fragment/en_1ee93c8.pf_fragment delete mode 100644 pagefind/fragment/en_22df768.pf_fragment rename pagefind/fragment/{en_60e232a.pf_fragment => en_25d3d2b.pf_fragment} (86%) rename pagefind/fragment/{en_fab3866.pf_fragment => en_29cd5bb.pf_fragment} (91%) rename pagefind/fragment/{en_157487e.pf_fragment => en_2e8ab3f.pf_fragment} (86%) rename pagefind/fragment/{en_c94085e.pf_fragment => en_2f3dc82.pf_fragment} (94%) create mode 100644 pagefind/fragment/en_3592fac.pf_fragment create mode 100644 pagefind/fragment/en_38dafb7.pf_fragment delete mode 100644 pagefind/fragment/en_4254981.pf_fragment delete mode 100644 pagefind/fragment/en_435331d.pf_fragment delete mode 100644 pagefind/fragment/en_438b9b7.pf_fragment rename pagefind/fragment/{en_a063a51.pf_fragment => en_45795ff.pf_fragment} (87%) create mode 100644 pagefind/fragment/en_465ab8b.pf_fragment delete mode 100644 pagefind/fragment/en_4891d23.pf_fragment rename pagefind/fragment/{en_a7c1427.pf_fragment => en_4f7296f.pf_fragment} (78%) create mode 100644 pagefind/fragment/en_567893e.pf_fragment create mode 100644 pagefind/fragment/en_59125e8.pf_fragment delete mode 100644 pagefind/fragment/en_59f1424.pf_fragment create mode 100644 pagefind/fragment/en_5cd82bc.pf_fragment create mode 100644 pagefind/fragment/en_5fde7ed.pf_fragment delete mode 100644 pagefind/fragment/en_6a78b35.pf_fragment delete mode 100644 pagefind/fragment/en_6bc1629.pf_fragment rename pagefind/fragment/{en_f3b4373.pf_fragment => en_6f26561.pf_fragment} (91%) create mode 100644 pagefind/fragment/en_73ddeb5.pf_fragment rename pagefind/fragment/{en_671b992.pf_fragment => en_774f343.pf_fragment} (85%) create mode 100644 pagefind/fragment/en_7c93fc3.pf_fragment rename pagefind/fragment/{en_9818fb4.pf_fragment => en_7c9524b.pf_fragment} (84%) delete mode 100644 pagefind/fragment/en_7e2efc3.pf_fragment create mode 100644 pagefind/fragment/en_7f5222d.pf_fragment rename pagefind/fragment/{en_1cc20f2.pf_fragment => en_7f6e636.pf_fragment} (87%) delete mode 100644 pagefind/fragment/en_806c40c.pf_fragment rename pagefind/fragment/{en_bbd4c15.pf_fragment => en_81fcc84.pf_fragment} (90%) delete mode 100644 pagefind/fragment/en_823be74.pf_fragment rename pagefind/fragment/{en_496f34d.pf_fragment => en_835c394.pf_fragment} (91%) delete mode 100644 pagefind/fragment/en_84422ab.pf_fragment rename pagefind/fragment/{en_1522945.pf_fragment => en_8b92b94.pf_fragment} (91%) delete mode 100644 pagefind/fragment/en_91e72a9.pf_fragment delete mode 100644 pagefind/fragment/en_96dddf8.pf_fragment create mode 100644 pagefind/fragment/en_9ca210b.pf_fragment delete mode 100644 pagefind/fragment/en_9db4e06.pf_fragment delete mode 100644 pagefind/fragment/en_9fdc157.pf_fragment rename pagefind/fragment/{en_cb89b0d.pf_fragment => en_a231cbf.pf_fragment} (89%) delete mode 100644 pagefind/fragment/en_a4dec7f.pf_fragment create mode 100644 pagefind/fragment/en_a5f23de.pf_fragment create mode 100644 pagefind/fragment/en_ab97ce8.pf_fragment create mode 100644 pagefind/fragment/en_ac78e46.pf_fragment create mode 100644 pagefind/fragment/en_acb0a45.pf_fragment create mode 100644 pagefind/fragment/en_b2a5cd9.pf_fragment create mode 100644 pagefind/fragment/en_b312337.pf_fragment create mode 100644 pagefind/fragment/en_c0a0ddb.pf_fragment delete mode 100644 pagefind/fragment/en_c3b3ead.pf_fragment delete mode 100644 pagefind/fragment/en_c5152bf.pf_fragment delete mode 100644 pagefind/fragment/en_c546f66.pf_fragment delete mode 100644 pagefind/fragment/en_c688d08.pf_fragment create mode 100644 pagefind/fragment/en_c688f11.pf_fragment create mode 100644 pagefind/fragment/en_c691959.pf_fragment create mode 100644 pagefind/fragment/en_c6ce821.pf_fragment create mode 100644 pagefind/fragment/en_cb79ead.pf_fragment create mode 100644 pagefind/fragment/en_d2ddbc8.pf_fragment rename pagefind/fragment/{en_8dba91c.pf_fragment => en_d51552a.pf_fragment} (89%) delete mode 100644 pagefind/fragment/en_d9fbbb2.pf_fragment create mode 100644 pagefind/fragment/en_da2faac.pf_fragment delete mode 100644 pagefind/fragment/en_dbfc7d3.pf_fragment delete mode 100644 pagefind/fragment/en_e158741.pf_fragment delete mode 100644 pagefind/fragment/en_e873c58.pf_fragment create mode 100644 pagefind/fragment/en_ea15a6d.pf_fragment create mode 100644 pagefind/fragment/en_ecd0765.pf_fragment delete mode 100644 pagefind/fragment/en_f1d8c4e.pf_fragment rename pagefind/fragment/{en_a62b404.pf_fragment => en_f531991.pf_fragment} (83%) create mode 100644 pagefind/fragment/en_fb98e84.pf_fragment delete mode 100644 pagefind/index/en_14d41ab.pf_index create mode 100644 pagefind/index/en_1919b5d.pf_index create mode 100644 pagefind/index/en_1f3ce4a.pf_index delete mode 100644 pagefind/index/en_236a43d.pf_index delete mode 100644 pagefind/index/en_3834d8d.pf_index create mode 100644 pagefind/index/en_505c5f1.pf_index delete mode 100644 pagefind/index/en_508fb9b.pf_index create mode 100644 pagefind/index/en_618a3de.pf_index create mode 100644 pagefind/index/en_6489d2f.pf_index delete mode 100644 pagefind/index/en_6c6c129.pf_index create mode 100644 pagefind/index/en_79bbaf5.pf_index create mode 100644 pagefind/index/en_7afea12.pf_index delete mode 100644 pagefind/index/en_8bc1ea6.pf_index delete mode 100644 pagefind/index/en_8fb3105.pf_index create mode 100644 pagefind/index/en_9b6f26a.pf_index delete mode 100644 pagefind/index/en_a6ce106.pf_index create mode 100644 pagefind/index/en_b167a10.pf_index delete mode 100644 pagefind/index/en_b9a9f06.pf_index create mode 100644 pagefind/index/en_c5774bb.pf_index create mode 100644 pagefind/index/en_d05be51.pf_index delete mode 100644 pagefind/index/en_d1864f5.pf_index delete mode 100644 pagefind/index/en_d1d01ba.pf_index delete mode 100644 pagefind/index/en_d8ec5a4.pf_index create mode 100644 pagefind/index/en_e2c5ede.pf_index delete mode 100644 pagefind/index/en_f7b180e.pf_index create mode 100644 pagefind/index/en_fa34215.pf_index delete mode 100644 pagefind/pagefind.en_1b132e6c4f.pf_meta create mode 100644 pagefind/pagefind.en_98cf7d6ad2.pf_meta diff --git a/cityu/cs4487/cs4487_7/index.html b/cityu/cs4487/cs4487_7/index.html index abaca57c..eae72725 100644 --- a/cityu/cs4487/cs4487_7/index.html +++ b/cityu/cs4487/cs4487_7/index.html @@ -223,7 +223,7 @@
-Last modified:
+Last modified:
7 min read

Part 7 - The Expectation Maximization Algorithm & Linear Dimensionality Reduction

Table of Contents

Expectation Maximization (EM)

EM solves a maximum likelihood problem of the form,

@@ -236,12 +236,11 @@
  • $\{z^{(i)}\}_{i = 1}^M$: Unobserved latent variables. (e.g., in GMM, $z^{(i)}$ indicates which one of the $K$ clusters $x^{(i)}$ belongs to, which is unobserved.)
  • Jensen’s Inequality

    -

    Let’s revisit Jensen’s inequality, for concave functions.

    Suppose $f : \mathbb{R} \mapsto \mathbb{R}$ is concave, then for all probability distributions $p$, we have,

    $$ -f(\mathbb{E}{\mathbf{x} \sim p}[x]) \geq \mathbb{E}{\mathbf{x} \sim p}[f(x)] +f(\mathbb{E} [\mathbf{x}]) \geq \mathbb{E} [f(\mathbf{x})]. $$

    -

    The subscript $\mathbf{x} \sim p$ indicates that the expectation is taken with respect to the random variable $\mathbf{x}$ drawn from the probability distribution $p$.

    +

    Where the expectation is taken with respect to the random variable $\mathbf{x}$ drawn from the probability distribution $p$.

    The equality holds if and only if

    1. $\mathbf{x}$ is a constant, or,
    2. @@ -397,7 +396,7 @@

      Linear Dimensionality Reduction

      $$ \mathbf{x}^{(i)} = \sum_{k = 1}^K z_k^{(i)} \mathbf{b}_k $$

      -

      where $\mathbf{b}k = [b{1k}, b_{2k}, \ldots, b_{Nk}]^T$ is a basis vector and $z_k^{(i)} \in \mathbb{R}$ is the corresponding weight.

      +

      where $\mathbf{b}_k$ is a basis vector and $z_k^{(i)} \in \mathbb{R}$ is the corresponding weight.

      Connection to Linear Regression

      If we focus on the $j$-th entry of $\mathbf{x}^{(i)}$, we have,

      $$ @@ -477,11 +476,11 @@

      Alternating Least Squares

    Lack of Uniqueness for Optimal Parameters

    -

    Suppose we run the ALS algorithm to convergence and obtain optimal parameters $\mathbf{Z}^{\star}$ and $\mathbf{B}^{\star}$ such that, -$$ +

    Suppose we run the ALS algorithm to convergence and obtain optimal parameters $\mathbf{Z}^{\star}$ and $\mathbf{B}^{\star}$ such that,

    +

    $$ \ell^{\star} = \Vert \mathbf{X} - \mathbf{Z}^{\star} \mathbf{B}^{\star} \Vert_F^2 $$

    -

    Let $\mathbf{R} \in \mathbb{R}^{K \times K$ be an arbitrary invertible matrix.

    +

    Let $\mathbf{R} \in \mathbb{R}^{K \times K}$ be an arbitrary invertible matrix.

    A $K \times K$ matrix $\mathbf{R}$ is invertible, if there exists a $K \times K$ matrix $\mathbf{S}$ such that $\mathbf{R} \mathbf{S} = \mathbf{S} \mathbf{R} = \mathbf{I}$. Which we also can denote as $\mathbf{R}^{-1} = \mathbf{S}$.

    We obtain a different set of parameters $\mathbf{\tilde{Z}} = \mathbf{Z}^{\star} \mathbf{R}$ and $\mathbf{\tilde{B}} = \mathbf{R}^{-1} \mathbf{B}^{\star}$, with the same optimal value, diff --git a/cityu/ma3518/ma3518_3/index.html b/cityu/ma3518/ma3518_3/index.html index 269f26c3..981b0e0c 100644 --- a/cityu/ma3518/ma3518_3/index.html +++ b/cityu/ma3518/ma3518_3/index.html @@ -569,7 +569,7 @@

    Two-sample test

    $$ H_0 : \mu_1 = \mu_2 $$

    -

    We compute the sample means $\bar{x}_1 and $\bar{x}_2$.

    +

    We compute the sample means $\bar{x}_1$ and $\bar{x}_2$.