The boundary decision

Feel free to skip this section and jump to the model implementation (next section) if you are not too interested in how we can derive the boundary decision.

From the model, we have the following equation:

And from the definition of the logistic function, we have , when the argument of the logistic regression is zero:

By reordering, we find the value of  for which  corresponds to the following expression:

This expression for the boundary decision has the same mathematical form as a line equation, with the first term being the intercept and the second the slope. The parentheses are used for clarity and we can omit them if we want. The boundary being a line is totally reasonable, isn't it? If we have one feature, we have unidimensional data and we can split it into two groups using a point; if we have two features, we have a two-dimensional data space and we can separate it using a line; for three dimensions, the boundary will be a plane; and for higher dimensions, we will talk generically about hyperplanes. In fact, a hyperplane is a general concept defined roughly as the subspace of dimension n-1 of an n-dimensional space, so we can always talk about hyperplanes!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.152.26