Skip to content

Commit

Permalink
feat(text-solutions): fixed table widths, added solution HTML/CSS and…
Browse files Browse the repository at this point in the history
… started Pugh
  • Loading branch information
chiragbharadwaj committed Dec 26, 2024
1 parent 212564f commit 22ed9ce
Show file tree
Hide file tree
Showing 9 changed files with 110 additions and 8 deletions.
8 changes: 8 additions & 0 deletions _assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ table {
td {
padding-right: 1em;
}
.fixed-table {
table-layout: fixed;
width: 100%;

border-collapse: separate;
border-spacing: 1em 0;
margin-bottom: 1.25em;
}

/* a: for links to other pages, websites, etc. */
a {
Expand Down
49 changes: 49 additions & 0 deletions _layouts/book.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
layout: default
katex: true
---

<h1>{{ page.book_name }}</h1>
<h3 style="font-family: Merriweather; font-weight: 100">
<i>{{ page.author }}</i>
</h3>
<hr/>

{{content}}

<table>
<thead>
<tr>
<th>Chapter</th>
<th>Chapter title</th>
<th>Solutions</th>
<th>Last updated</th>
</tr>
</thead>
<tbody>
{% assign this_path = page.path | replace: 'index.md', 'solutions' %}
{% assign index = 1 %}
{% for solution in site.pages %}
<tr>
{% assign that_path_parts = solution.path | split: '/' %}
{% assign new_size = that_path_parts.size | minus: 1 %}
{% assign that_path = that_path_parts | slice: 0, new_size | join: '/' %}
{% if that_path == this_path %}
<td>
{{ index }}
</td>
<td>
{{ solution.chapter_name }}
</td>
<td>
<a href="{{ solution.url }}">[link]</a>
</td>
<td>
{{ solution.date | date: '%-d %b %Y' }}
</td>
{% assign index = index | plus: 1 %}
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<!-- Show a navigational sidebar, if needed. Otherwise, leave empty. -->
{% unless page.hide_nav %}
<nav class="breadcrumbs">
{% assign subpaths = page.path | split: '/' | where_exp: "subpath", "subpath != 'posts'" %}
{% assign subpaths = page.path | split: '/' | where_exp: "subpath", "subpath != 'posts'" | where_exp: "subpath", "subpath != 'solutions'" %}
{% if subpaths.last == 'index.md' %}
{% assign new_length = subpaths.size | minus: 1 %}
{% assign subpaths = subpaths | slice: 0, new_length %}
Expand Down
10 changes: 10 additions & 0 deletions _layouts/solutions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: default
katex: true
---

<h1 style="margin-bottom: 0.25em">{{ page.roman }}. {{ page.chapter_name }}</h1>
<h3 style="color: #444444">Solutions to selected exercises</h3>
<hr/>

{{content}}
18 changes: 11 additions & 7 deletions lectures/books/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Here are some solutions to selected problems from several foundational texts in

## Real analysis

||Name of work|Author|Solution sketches|
{:.fixed-table}
| |Name of work|Author|Solution sketches|
|---|---|---|
|![][pugh]{:.resize}|_Real Mathematical Analysis_|Charles Pugh|[[link]][pugh-book]|
|![][rudin]{:.resize}|_Principles of Mathematical Analysis_|Walter Rudin|[[link]][rudin-book]|
Expand All @@ -20,22 +21,25 @@ Here are some solutions to selected problems from several foundational texts in

## Abstract and linear algebra

||Name of work|Author|Solution sketches|
{:.fixed-table}
| |Name of work|Author|Solution sketches|
|---|---|---|
|![][artin]{:.resize}|_Algebra_|Michael Artin|[[link]][artin-book]|
|![][axler]{:.resize}|_Linear Algebra Done Right_|Sheldon Axler|[[link]][axler-book]|
|![][cookbook]{:.resize}|_The Matrix Cookbook_|K. Petersen, M. Pedersen|[[link]][cookbook-book]|
|![][cookbook]{:.resize}|_The Matrix Cookbook_|Kaare Petersen,<br> Michael Pedersen|[[link]][cookbook-book]|

## Probability and statistics

||Name of work|Author|Solution sketches|
{:.fixed-table}
| |Name of work|Author|Solution sketches|
|---|---|---|
|![][statsci]{:.resize}|_Probability and Statistics_|R. Walpole, R. Myers|[[link]][statsci-book]|
|![][esl]{:.resize}|_Elements of Statistical Learning_|T. Hastie, R. Tibshirani, J. Friedman|[[link]][esl-book]|
|![][statsci]{:.resize}|_Probability and Statistics_|Ronald Walpole,<br> Raymond Myers|[[link]][statsci-book]|
|![][esl]{:.resize}|_Elements of Statistical Learning_|Trevor Hastie,<br> Robert Tibshirani,<br> Jerome Friedman|[[link]][esl-book]|

## Machine learning

||Name of work|Author|Solution sketches|
{:.fixed-table}
| |Name of work|Author|Solution sketches|
|---|---|---|
|![][mlapp]{:.resize}|_Machine Learning: A Probabilistic Perspective_|Kevin Murphy|[[link]][mlapp-book]|
|![][bishop]{:.resize}|_Deep Learning: Foundations and Concepts_|Christopher Bishop|[[link]][bishop-book]|
Expand Down
10 changes: 10 additions & 0 deletions lectures/books/pugh/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: book
title: books | pugh
book_name: Real Mathematical Analysis
author: Charles Pugh
---

Pugh's _Real Mathematical Analysis_ is often hailed as a slightly gentler introduction to real analysis compared to more classic texts like Rudin's _Principles of Mathematical Analysis_. However, both texts suffer from the same drawback: their treatments of multivariable calculus are bare-bones, and lack critical exposition on concepts such as Lagrange multipliers and optimization. Additionally, both texts define vector calculus and differential forms in unusual ways to develop the theory of Stokes' theorem. Many students often supplement their study of these lectures with a different text, such as Spivak's classic _Calculus on Manifolds_.

In light of the above, we will limit our solution development to only the first 4 chapters of Pugh's text. Pugh does offer some advantages over Rudin: the former text has plenty of additional problems that require applications to other fields in mathematics, and also clearer exposition with many pictures to help guide intuition. However, the latter text excels when it comes to ingenuity, elegance, and terseness of proofs. Certainly the more experienced student should strive to match Rudin's exposition.
11 changes: 11 additions & 0 deletions lectures/books/pugh/solutions/chapter-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: solutions
title: books | pugh | ch 1
roman: I
chapter_name: Real Numbers
date: 2024-12-26
---

![construction][]

[construction]: {{site.baseurl}}/_data/images/construction.png
4 changes: 4 additions & 0 deletions lectures/math/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ In keeping with the Commonwealth nomenclature, each module comprises several lec

### [[link]][single] &thinsp; Single variable calculus

{:.fixed-table}
|---|---|---|---|
|model theory|rational numbers|limits and functions|Riemann integration|
|propositional logic|real numbers|continuity|convergence|
Expand All @@ -28,6 +29,7 @@ In keeping with the Commonwealth nomenclature, each module comprises several lec

### [[link]][linalg] &thinsp; Linear algebra

{:.fixed-table}
|---|---|---|---|
|vector spaces|matrices|eigenspaces|operators|
|subspaces|product spaces|inner products|multilinear algebra|
Expand All @@ -36,13 +38,15 @@ In keeping with the Commonwealth nomenclature, each module comprises several lec

### [[link]][multi] &thinsp; Multivariable calculus

{:.fixed-table}
|---|---|---|---|
|multivariate functions|implicit functions|change of variable|manifold integration|
|partial derivatives|integrable functions|chain integration|Stokes' theorem|
|inverse functions|Fubini's theorem|fundamental theorems|classical theorems|

### [[link]][lebesgue] &thinsp; Lebesgue theory

{:.fixed-table}
|---|---|---|---|
|Non-Riemann integration|Lebesgue convergence|Lebesgue in $R^n$|Hilbert spaces|
|measure theory|Lebesgue integration|Banach spaces|orthogonality|
Expand Down
6 changes: 6 additions & 0 deletions lectures/ml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ In keeping with the Commonwealth nomenclature, each module comprises several lec

### [[link]][prob] &thinsp; Probability theory

{:.fixed-table}
|---|---|---|---|
|probability measures|independence|moments|multivariate analogues|
|sample spaces|random variables|conditional probability|discrete analogues|
Expand All @@ -28,12 +29,14 @@ In keeping with the Commonwealth nomenclature, each module comprises several lec

### [[link]][info] &thinsp; Information theory

{:.fixed-table}
|---|---|---|---|
|Shannon entropy|conditional entropy|chain rules|maximum entropy|
|joint entropy|mutual information|differential entropy|Fisher information|

### [[link]][freq] &thinsp; Frequentist interpretation of statistics

{:.fixed-table}
|---|---|---|---|
|discrete distributions|descriptive statistics|point estimates|regression problems|
|continuous distributions|estimation problems|confidence intervals|classification problems|
Expand All @@ -42,6 +45,7 @@ In keeping with the Commonwealth nomenclature, each module comprises several lec

### [[link]][basic] &thinsp; Classical machine learning techniques

{:.fixed-table}
|---|---|---|---|
|linear regression|perceptrons|model inference|support vectors|
|least squares|regularization|tree-based models|random forests|
Expand All @@ -50,6 +54,7 @@ In keeping with the Commonwealth nomenclature, each module comprises several lec

### [[link]][bayes] &thinsp; Probabilistic machine learning

{:.fixed-table}
|---|---|---|---|
|generative models|hierarchical models|generalized linear models|kernel techniques|
|conjugate priors|decision theory|Gaussian mixtures|Gaussian processes|
Expand All @@ -58,6 +63,7 @@ In keeping with the Commonwealth nomenclature, each module comprises several lec

### [[link]][deep] &thinsp; Deep neural networks

{:.fixed-table}
|---|---|---|---|
|multi-layer networks|backpropagation|transformer models|latent variables|
|deep networks|regularization|multi-modal methods|autoencoders|
Expand Down

0 comments on commit 22ed9ce

Please sign in to comment.