The Parzen Window Method is a tried and true method for estimating the true probability density function for a random variable given its realized outcomes.
In other words, given observations of a random variable, we can reconstruct the probability density function by sums of the following form (where
where
Hyperparameters
-
$h$ : The window size. Smaller values of$h$ (near 0, around 0.1, 0.2) will yield spikier, more jagged estimates for the underlying probability density function, larger values (0.8,0.9,1) will smooth this out, but may lose some more granular details. -
$\phi$ : The actual kernel function. The method requires that$\phi$ is a nonnegative function with$\int_X \phi , dx = 1$ . The typical choices are thecalculate_StandardSquare
orcalculate_StandardNormal
methods within theStaticKernelFunctions
class.
Future ideas:
- Incorporation of real-time visualization (https://alandefreitas.github.io/matplotplusplus/integration/cmake/embed-as-subdirectory/)
- More kernel functions
- Unit tests
- Incorporate the csv reader function into the
BasePDFGenerator
class