Additional comments (Math 331) related to material from the class. These additional remarks are for your enjoyment, and will not be on homeworks or exams. These are just meant to suggest additional topics worth considering, and I am happy to discuss any of these further.
There's a really nice wikipedia article on the secretary / marriage problem. Somewhat related to this is the German tank problem. What I like most about this problem is that it's related to a lot of concepts we've studied (conditional probabilities, breaking a complicated problem into a lot of simpler ones), as well as the need to understand what a formula says and re-express it in a more meaningful way. We saw the harmonic numbers hiding in our expression, which we can approximate using the integral test. In a better approximation one meets the Euler-Mascheroni constant.
It is absolutely shocking that we can do so well in the marriage / secretary problem (ok, mathematically, not necessarily in practice). While assuming we know the number of applicants might sound overly restrictive, in some situations it's actually not so unreasonable. For example, the Math/Stats department is hiring a mathematician this year. Based on previous hiring searches in the past few years, I expect there'll be around 700 applications, and almost surely between 600 and 800. It's shocking that our final winning percentage is positive and not decaying to zero with n. As a nice exercise, try to compute the probability we end up with one of the top two candidates. Try to come up with a strategy that will have you `settle' as you get older (ie, start running out of candidates!).
Key input in the analysis was the sum of the harmonic series: http://en.wikipedia.org/wiki/Harmonic_series_(mathematics)
See here for the growth of the partial sums: http://en.wikipedia.org/wiki/Harmonic_number
India bride walks out when groom doesn't know math: http://bigstory.ap.org/article/3267cd38925e46828ddb0b623fad9ead/groom-fails-math-test-indian-bride-walks-out-wedding
Harder version of the tic-tac-toe game we discussed: https://puzzling.stackexchange.com/questions/51267/tic-tac-toe-without-a-predefined-board. The version we did in class gives you the grid....
Yet another version of tic-tac-toe: https://mindyourdecisions.com/blog/2016/11/01/the-best-first-move-in-misere-tic-tac-toe-3-in-a-row-is-losing-game-theory-tuesdays/
Integral test: https://en.wikipedia.org/wiki/Integral_test_for_convergence; better version: https://en.wikipedia.org/wiki/Euler%E2%80%93Maclaurin_formula
Stirling's formula: https://en.wikipedia.org/wiki/Stirling%27s_approximation
We ended with the \(N \times M\) lattice game; on your turn choose an \((i,j)\) and remove all \((x,y)\) with \(x \ge i\) and \(y \ge j\). Last one to remove a point loses. What I love is we can prove a winning strategy exists without being able to say what it is! This just felt like a wonderful way to end the semester and highlight the power and limitations of pure mathematics.
Monday, April 10: Video: Complex Analysis in a day: The Path to Cauchy's Residue Formula: https://youtu.be/TGJtH7K-mXs
Friday, April 7: Video: Differentiating Identities and Probability: https://youtu.be/CU_UIS-4xFI
The Poisson random variable often models the number of events in a window of time. Also, frequently normalized spacings between events converge to Poissonian (a great example is to look at the primes). Another is the spacings between the ordered fractional parts of \(n^k \alpha\) (click here for more).
General advice: to differentiate an identity, you need an identity. Seems silly to state but it's essential. Often the hardest part of these problems is figuring out how to do the algebra in a clean way. For us, we saw that frequently we want to move the normalization constant over to the other side; it allows us to avoid a product or quotient rule. We also saw sometimes it's easier to computer \(E[X(X-1)]\) than \(E[X^2]\), and then do algebra. It all comes down to whether or not it's easier to apply \(d/dx\) or \(x d/dx\).
Wednesday, April 5: Video: Integration by Differentiating: https://youtu.be/yvfKdI9K-JU
Friday, March 17: Video: Integration Techniques: https://youtu.be/MH3tDaarOas
Wednesday, March 15: Video: Maximizing Product, Babylonian Math, Jug Problem: https://youtu.be/VEdhSgdf82c
We studied one of my favorite problems, given \(S = a_1 + \cdots + a_n\) with each \(a_i\) a positive integer, maximize the product of the \(a_i\). We quickly see the optimal is when each \(a_i\) is 2 or 3, and since \(2\ast 2 \ast 2 < 3 \ast 3\) we want \(3\)'s over \(2\)'s. We converted to a real problem and assumed there were \(n\) summands, each a real number. We got a function defined on the integers to maximize, replaced it with a function defined on the reals so calculus would be applicable. We then curve sketched and saw the function was increasing to its maximum and decreasing past it, so the optimal integer soln was either to the left or right of the optimal real soln (here optimal soln is referring to the number of summands). It's unusual to be this fortunate.
We had to maximize \(a_1 \ast \cdots \ast a_n\) given \(a_1 + \cdots + a_n = S\) and each \(a_i > 0\). We can do this with Lagrange multipliers, or since each \(a_i\) is in \([1, S]\) we can appeal to the \(n=2\) case because a real continuous function on a compact set attains its max and min. What is nice is that this existence result from real analysis improves to being constructive; if we were at the optimal point and all coordinates were not equal, we could simply replace two of them with the average and improve the product.
A nice application of this problem is that for disk storage (see radix economy), base 3 has advantages over base 2, though base 2 has the very fast binary search. Another nice example of base 3 occurs with the Cantor set.
Did Babylonian Mathematics to follow our discussion on bases. We talked about how the Babylonians did mathematics. In addition to the horrors of base 60 (which Wikipedia tells me is due to the Sumerians, which must be true if they've posted it), they did give us the look-up table. The point is to reduce long, painful calculations to pre-computed quantities, with perhaps some (hopefully linear) interpolation as you can't pre-compute everything. In base 60, one would need to have tables for about 3600/2 = 1800 multiplications to be able to do \(xy\); the Babylonians noticed \(xy = ((x+y)^2 - x^2 - y^2) / 2\), or even better \(xy = ((x+y)^2 - (x-y)^2)/4\); this reduces the problem to knowing just squares (only 60 entries needed) and the ability to subtract and divide by 2. It's much better to do these simpler problems than the original harder one.
We ended with a nice presentation on the jug problem, and the differences between DFS (depth first search) and BFS (breadth first search).
No discussion of the jug problem would be complete without this clip from Die Hard III: https://www.youtube.com/watch?v=5_MoNu9Mkm4
Monday, March 13: Video: Conway Checker Problem, \(e^\pi\) vs \(\pi^e\): https://youtu.be/PcK3HKXc4-A
We talked a lot about how to use logarithms to make an analysis easier, or to exponentiate. For example, \((S/x)^x = \exp(x \log(S/x))\).
Here is a warning that you may have been fooled into believing you learned certain derivatives when you hadn't. For example:
\(f(x) = x^n\) has derivative \(n x^{n-1}\). This follows from the definition of the derivative and the binomial theorem to expand \((x+h)^n\) when \(n\) is a positive integer.
\(f(x) = x^{p/q}\) has derivative \(\frac{p}{q} x^{p/q-1}\). This follows by setting \(g(x) = f(x)^q = x^p\) and then differentiating, which gives \(g'(x) = q f(x)^{q-1} f'(x) = p x^{p-1}\), and then substituting and solving for \(f'(x)\). We cannot get it the same was as the derivative of \(x^n\), as that would require knowing the binomial theorem for non-integral exponents.
\(f(x) = x^{\sqrt{2}}\) has derivative \(\sqrt{2} x^{\sqrt{2}-1}\). This follows from using the exponential function and the chain rule: \(x^{\sqrt{2}} = \exp(\sqrt{2} \log x)\).
Thus, \(x^r\) does have derivative \(r x^{r-1}\), but the proof for general \(r\) goes through the exponential function.
Friday, March 10: Video: Monovariants: Tournament, Cards, Conway's Checker Problem: https://youtu.be/iKqhjKmI5x4
Wednesday, March 8: Video: Chessboard Tiling, Room Movement, Reversing Cards: https://youtu.be/QYNBKXFfVmA
Friday, March 3: Video: 12a: Monovariants, Zeckendorf Decomposition: https://youtu.be/kC7GVWEaVYI (slides HERE, start at 16minutes, then go to start); 12b: Pigeon Hole Problem, Dirichlet's Approximation Theorem: https://youtu.be/AA0ajr-foUw
Wednesday, March 1: Video: Irrationality Proofs, Morley's Theorem, Pigeon Hole Problems: https://youtu.be/xx8f8z8zzfQ
Monday, February 27: Video: Geometry Problems, Points on Spheres and Hemispheres: https://youtu.be/8jRZjc9Q8PU
Friday, February 24: Video: Pythagorean Formula, Asking Questions: https://youtu.be/6HxVSoOR-zc (click here for slides)
Wednesday, February 22: Video: Catalan numbers, Generating Functions, Circle Method: https://youtu.be/KfEig_0kckQ
Monday, February 20: Video: Generating Functions, Binet's Formula, Waring's Problem, Catalan Numbers: https://youtu.be/nFDLwoTanDc
Wednesday, February 15. Video: Applications of the AM-GM Inequality, Zeckendorf and kilometers: https://youtu.be/MxZIk-Y0_U4
Monday, February 13. Video: AM-GM inequality, Games (Triangle, Rectangle, SpotIt): https://youtu.be/fW28E5ruG3E
Earlier we talked about tic-tac-toe today as a counting problem: how many `distinct' games are there. We are willing to consider games that are the same under rotation or reflection as the same game; see http://www.btinternet.com/~se16/hgb/tictactoe.htm for a nice analysis, or see the image here for optimal strategy.
Probably the most famous movie occurrence of tic-tac-toe is from Wargames; the clip is here (the entire movie is online here, start around 1:44:17; this was a classic movie from my childhood).
Gobble tic-tac-toe: https://www.fatbraintoys.com/toy_companies/blue_orange/gobblet_gobblers.cfm
Friday, February 10. Video: Recurrences and Arithmetic Mean - Geometric Mean inequality: https://youtu.be/caL16-pST5A
We talked about how to analyze expressions such as \((a+b)(b+c)(c+a) \ge 8abc\) for \(a, b, c > 0\). Moments like this are the reason for this class, talking about how to view. There's symmetry. Dimensional analysis shows we can rescale and assume either \(abc = 1\) or \(a+b+c = 1\); turns out the second is more useful and sets the stage to investigate it with Lagrange Multipliers.
A common image for Mathematical Induction is that of following dominoes.
We did a bit on Power Sums. Lot of great math behind finding the formulas, though if we assume it's a polynomial we can guess the coefficients by checking a few values, and then prove by induction. Note the constant term should be zero and calculus suggests the leading term of the sum of \(n^{p-1}\) for \(n = 1\) to \(N\) should be \(N^p/p\).
Online Encyclopedia of Integer Sequences (homepage is http://oeis.org/ ) is a tremendous resource. You can enter the first few terms of an integer sequence, and it will list whatever sequences it knows that start this way, provide history, generating functions, connections to parts of mathematics, .... This is a GREAT website to know if you want to continue in mathematics. There have been several times I've computed the first few terms of a problem, looked up what the future terms could be (and thus had a formula to start the induction).
Lots of good webpages with induction problems:
We talked about tic-tac-toe today as a counting problem: how many `distinct' games are there. We are willing to consider games that are the same under rotation or reflection as the same game; see http://www.btinternet.com/~se16/hgb/tictactoe.htm for a nice analysis, or see the image here for optimal strategy. Chirality: http://www.rowland.harvard.edu/rjf/fischer/background.php