liveBook · Manning

Binary random variable

As explained in Math and Architectures of Deep Learning

A variable restricted to two possible values, used here to encode yes/no logical states in machine inputs and outputs.

A binary random variable is restricted to two categories, conventionally represented as 0 and 1. These values can encode states such as no/yes, not firing/firing, or do not sell/sell. section 7.2.1 section 7.2

Binary variables are a special case of categorical variables: each value identifies a category rather than a continuously varying quantity. In machine-learning systems, separate machines can emit binary decisions that another function combines. section 7.2.1 section 7.2

Common logical interpretations include:

  • Logical OR produces a positive decision when at least one binary input is 1. section 7.2.1
  • Logical AND produces a positive decision when the required inputs are all 1. section 7.2.1
  • Logical NOT reverses a binary decision, changing 1 to 0 and 0 to 1. section 7.2.1
  • A classifier can map continuous or categorical inputs to a binary output such as face or not face. section 7.2.2

Face detection

A face detector receives an image and outputs 1 when it identifies a face or 0 when it does not. The image may be represented as a high-dimensional input vector, while the classifier's output remains binary. section 7.2.2

Threat detection

Represent hardness and sharpness as binary inputs: 1 means the property is present and 0 means it is absent. A logical OR model marks an object threatening when either property is present; an AND model requires both. section 7.2.1

How Math and Architectures of Deep Learning covers it

How deep it goes
Defines binary variables as two-category quantities and connects them to logical operators and classifier outputs, without developing probability.
Examples
Uses stock-selling advice, face detection, cat threat decisions, self-driving braking, and logical operator diagrams.
What it assumes
Assumes familiarity with variables and functions while defining categorical and binary distinctions from basic examples.
What you can do after
Evaluate/understand how machine-learning systems represent and combine yes/no decisions as categorical values.
How it connects
Connects binary variables to categorical variables, logical functions, classifiers, input spaces, and decision boundaries.

Also explained in

Compare how 3 books explain binary random variable →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Math and Architectures of Deep Learning. The section links point to the parts of the book it draws on.