In audio applications a simple moving average (SMA) is the unweighted mean of the previous n samples. An example of a simple equally weighted running mean for a n-day sample of closing price is the mean of the previous n days' closing prices. If those prices are k1, k2, k3, … ,kn then he formula is