Estimation, confidence intervals, and separating a cello from a flute by spectrum alone.
The first of three computer labs for MASC14, Stationary Stochastic Processes. It starts with estimation and ends with a question that sounds like it should be easy and is not.
Means and confidence intervals for white noise, the covariance function of an unknown process, the spectral density of a simulated harmonic signal. The time plots suggest a zero mean. The intervals say otherwise, and that disagreement is the lesson: an offset of 0.2 is invisible against a standard deviation of 0.5, so the eye and the estimator reach opposite conclusions from the same data.
Given recordings of a cello and a flute playing the same A, can the two be separated from the spectrum alone?
The obvious candidate fails. Relative overtone strength varies more between two recordings of one instrument than it does between the instruments, so it classifies nothing. Two other features work cleanly: how rough the spectral floor is between harmonics, and how wide the peaks are measured 20 dB down. Both separate all four recordings with no overlap at all.
The lab closes by decimating a melody properly, with an anti-alias filter, and then simply dropping every eighth sample. Below 2 kHz the two are identical. Just under the new Nyquist frequency the aliased version sits 23 dB higher, audible as a faint metallic ring, because the folded frequencies land between the cello's harmonics rather than on them.
Back to all engineering work, or the lecture notes.