Represent Boolean Functions with Linear Classification

Discuss linear classifiers for different boolean functions, such as AND, OR, and XOR.

Linear classification for logical functions

Imagine using a simple linear classifier to learn from training data whether it’s governed by a boolean logic function or not. That’s a natural and useful thing to do for scientists who want to find causal links or correlations between some observations and others. For example, is there more malaria when it rains AND it is hotter than 35 degrees? Or is there more malaria when either (OR) of these conditions are true?

Let’s look at the following plot, showing the two inputs AA and BB as coordinates on a graph. The plot shows that only when both are true (with a value of 11) is the output (shown as green) also true. (False outputs are shown red.)

Get hands-on with 1200+ tech skills courses.