← All notes

Note · Machine Learning

Parameter Space and Data Space

Characterizing Two Fundamental Spaces in Data Science

All Models

All models are of the form f(x‾,θ‾)f(\underline x, \underline \theta). ff defines the functional form of the model, x\pmb x is a list of pp characteristics, and θ\pmb \theta is a list of kk parameters that are needed to define the model.

For example we could have a model f1(x‾1,θ‾1)=θ1x1+⋯+θpxpf_1(\underline x_1, \underline \theta_1) = \theta_1 x_1 + \dots + \theta_p x_p (in this case p=kp=k), or we could have a model like this f2(x‾2,θ‾2)=θ0+θ1x1+⋯+θpxpf_2(\underline x_2, \underline \theta_2) = \theta_0 + \theta_1 x_1 + \dots + \theta_p x_p, in this case p+1=kp + 1 = k.

Both f1f_1 and f2f_2 fit under the class of linear models but linear models need not be linear. We could have a model f3(x‾3,θ‾3)=θ0θ02+θ1x1f_3(\underline x_3, \underline \theta_3) = \frac{\theta_0}{\theta_0^2 + \theta_1 x_1}. This model has p=1p=1 and k=2k=2 and it’s a nonlinear model.

Therefore, we say that all models can be written in the form f(x‾,θ‾)f(\underline x, \underline \theta).

Choose a Model

The first problem we need to considre when modeling is choosing ff. That is to say, deciding what functional form the data generating process is taking. There are many choices for ff. Every neural network architecture is a different ff, various linear models can have k=pk=p yet use different characteristics, some models like decision trees are non-parametric and produce discontinuous outputs; in short, there are many choices for ff and different ff‘s can be useful for different types of a data analysis. So the first step, is to decide which ff to consider.

To reiterate, choosing ff doesn’t simply mean picking some class of models, it includes deciding which xix_i‘s to consider and what the relationship is among the θi\theta_i‘s. This step should be taken seriously when considering interpretability of the model. In fact, it can’t be over emphasized.

Fit / Test the Model

Warning on statements of inference

Data Space

Parameter Space

Statistical Significance