This file starts with Exercises, which ends at exercise 10 and is followed by "Notes: Applied Optimization".
Search for "Exercise 9" for the Regression cost function minimization exercises.
Greetings Nikolaj Kuntner
Script for the video
Notes:
\mathcal, since it doesn't render in gist_\# became _HThe relevant content starts at page 17 in the script. The chapter ends on page 25. Note that the exercises are different ones from the listing in the script.
==== Exercise's context ====
We consider the general minimization problem
| """ | |
| Code and prompt used in the video | |
| https://youtu.be/xcE_0azawvM | |
| """ | |
| """You'll get two tasks | |
| First part: | |
| Consider a joint distirbution of two random variables X_k with k in {a, b} (i.e. two random variables X_a and X_b), | |
| over a finite outcome sets of size n_a and n_b. | |
| Explain what the marginal distributions are. |
""" Script to the video at https://youtu.be/8w4jHN1LsnY """
===== Moving quantile series =====
=== Preliminary - Exponential distribution example ===
Density:
| """ | |
| Proof prsented in the video | |
| https://youtu.be/Ydyhe7KdRsk | |
| """ | |
| Reminder: | |
| === Theorem 1, the geometric sum and series formulae === | |
| $\sum_{k=0}^n a^k = \dfrac{a^{n+1}-1}{a-1}$ |
| """ | |
| Code for the video at | |
| https://youtu.be/CquQe7Y05VA | |
| This script will be easy to generalize, also. | |
| """ | |
| from datetime import datetime | |
| import imageio.v2 as imageio | |
| from io import BytesIO |
| # For an elaboration, see the description at the top of the follower-gain page at | |
| # https://gist.github.com/Nikolaj-K/4aab20f7858267eded3f7e98dd1a980e | |
| De.sol@desola__xn 3000.0 gained | |
| 3000.0 % SMART follower gain throughout 28 ranked days. | |
| 1 to 31 followers (dates 250326 and 250723) | |
| Dmitry@dmitrysitskiy 2200.0 gained | |
| 2200.0 % SMART follower gain throughout 72 ranked days. |
| The data below shows the follower gains of Somnia yappers, when looking at | |
| the first and last day they appeared on the 7-day Kaito leaderboard. | |
| Example: @lovaniceth entered on March 23th and is there on July 23th also, in which time | |
| he grew his following from 11991 to 13549, making for a gain of (13549/11991)-1 or 12.993%. | |
| I post the dataset comprising 469 users twice, once sorted by longevety on the leaderboard, | |
| and once further below by gain. | |
| I don't include users who were on the board for just one day or who lost subscribers (negative gain). |