\begin{frame}\frametitle{Useful thing to remember}
\centering
any linear combination of trigonometric functions at frequency $\omega_0$ produces a sinusoid at the same frequency; linear combinations only alter the magnitude and phase
\begin{frame}\frametitle{A simple model for banking}
\note<1>{Let's revisit your bank account: Assume a constant interest and borrowing rate of 5\% per year. Assume you put or take money only once a year, on Jan. 1. Interests (for positive balance) or charges (for negative balance) are calculated on Dec 31. They are added Jan 1 of the following year. Call $x_n$ the input (adding or subtracting from the account) on Jan. 1 of year $n$. Call $y_n$ the content of your account ) on Dec. 31 of year $n$. Then: $y_n =1.05 y_{n-1} + x_n$}
A simple equation to describe compound interest:
\begin{itemize}[<+->]
\item constant interest/borrowing rate of 5\% per year
\item interest accrues on Dec 31
\item deposits/withdrawals during year $n$: $x[n]$
\note<1>{To imitate a guitar, Karplus and Strong suggested the ''plucked-string algorithm'' that bears their name. Similar to previous violin simulation, except initialized with random numbers!
Change the pitch by changing $M$.
As it is a plucked string, decay is faster, with a smaller $\alpha$.}
\onslide<1->{$M=100$, $\alpha=0.9$, $\bar{x}[n]$: 100 random values between $0$ and $99$, zero elsewhere}