set.seed(812)
f0 <- rnorm(200, 125, 25) |> round()
f0[1:10] [1] 79 146 111 114 112 147 167 98 143 102
Intro to statistical modelling
Stefano Coretta

\[y \sim Gaussian(\mu, \sigma)\]


rnorm(n, mean, sd)
n: number of observations to generatemean: mean of the Gaussian distributionsd: SD of the Gaussian distribution. . .
Simulate fundamental frequency f0.

SIMULATION

You have \(\mu, \sigma\) and you generate \(y\).
ESTIMATION

You have \(y\) and you estimate \(\mu\) and \(\sigma\).
When you simulate data, you know the population mean and SD. In research, you don’t. You just have observations.
Statistical modelling allows you to estimate the mean and SD of the population from the sample. This is statistical inference. Bayesian Gaussian models do exactly that: estimate mean and SD.
\[\begin{align} f0 & \sim Gaussian(\mu, \sigma)\\ \mu & = ...\\ \sigma & = ... \end{align}\]
\[\begin{align} f0 & \sim Gaussian(\mu, \sigma)\\ \mu & = P_\mu\\ \sigma & = P_\sigma \end{align}\]
\(P\) is a generic posterior probability distribution.




the lower the sample size
the higher the uncertainty

