|
@@ -150,7 +150,7 @@
|
|
"- Plot the mean of the data $\\mathbf{\\mu}$ as a big green point.\n",
|
|
"- Plot the mean of the data $\\mathbf{\\mu}$ as a big green point.\n",
|
|
"- Plot the PC space defined by $u_1$ as a black line. (Hint: This line should pass through $\\mu$.)\n",
|
|
"- Plot the PC space defined by $u_1$ as a black line. (Hint: This line should pass through $\\mu$.)\n",
|
|
"- Project each data point into the PC space, and plot each projected data point $\\mathbf{\\hat x_n}$ as a red dot. (Hint: The projected points should lie on the $u_1$ line.)\n",
|
|
"- Project each data point into the PC space, and plot each projected data point $\\mathbf{\\hat x_n}$ as a red dot. (Hint: The projected points should lie on the $u_1$ line.)\n",
|
|
- "- Connect each data point $x_n$ with its projection $\\mathbf{\\hat x_n}$ using a red line. (Hint: The red lines should be orthogonal to the PC space. To see this, you will need to call ‘axis equal’ in Matlab.)"
|
|
|
|
|
|
+ "- Connect each data point $x_n$ with its projection $\\mathbf{\\hat x_n}$ using a red line. (Hint: The red lines should be orthogonal to the PC space. To see this, you will need to equalize the axis with matplotlib.)"
|
|
],
|
|
],
|
|
"id": "ef663e6b30c8eaa9"
|
|
"id": "ef663e6b30c8eaa9"
|
|
},
|
|
},
|
|
@@ -244,7 +244,7 @@
|
|
{
|
|
{
|
|
"metadata": {},
|
|
"metadata": {},
|
|
"cell_type": "markdown",
|
|
"cell_type": "markdown",
|
|
- "source": "Solution: See function `fastfa` above.",
|
|
|
|
|
|
+ "source": "",
|
|
"id": "fabd6eb210c6f4d5"
|
|
"id": "fabd6eb210c6f4d5"
|
|
},
|
|
},
|
|
{
|
|
{
|