concept position in category Keras

This is an excerpt from Manning's book Probabilistic Deep Learning: With Python, Keras and TensorFlow Probability.
So, what do we mean when we say a non-probabilistic model is fit to data? Let's look at the model, y=a*x+b, for a concrete example of predicting the blood pressure y based on the age x. Figure 1.10 is a plot of the systolic blood pressure (spb) against the age for 33 American women. The figure 1.6 shows concrete realizations with a = 1.70 and b =87.7 (solid line). In a non-probabilistic model you get for each age value only one best guess for the systolic blood pressure for women of this age. In figure 1.10 this is demonstrated for three age values (22, 47, 71) where the predicted best guesses for the systolic blood pressure (111, 139, 166) are indicated by the positions of the horizontal lines.
Figure 1.10 Scatterplot and regression model for the systolic blood pressure example: The dots are the measured data points, the straight line is the linear model. For three age values (22, 47, 71) the predicted best guesses for the systolic blood pressure (11, 139, 166) are indicated by the positions of the horizontal lines.
![]()
input [2,0,:] = (0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) # a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,z,x,z #the 1 at position 8 indicates the 8th character in the alphabet, which is h input [2,1,:] = (0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) # a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,z,x,z #the 1 at position 5 indicates the 5th character in the alphabet, which is e
Figure 5.4 The synthetic validation data along with the predicted probabilistic model for linear regression, which is the same as a NN without a hidden layer. The mean
of the CPD is modeled by the NN, and the standard deviation is assumed to be a constant. The black solid line indicates the positions of
, and the dashed lines show the positions of the 0.025 and 0.975 quantiles.
![]()
When checking your fit visually (see figure 5.4), you might be satisfied with the positions of the mean (black solid line). But the varying spread of the outcome isn’t captured at all. Does it matter? Yes, for sure. To better see this, let’s check out how well the CPD matches the data distribution.