liveBook · Manning

Continuous random variable

As explained in Grokking Bayes

A random variable that can take values throughout a continuous numerical range.

A continuous random variable represents an uncertain quantity that can take values throughout a numerical range. A weather app might use one to describe how much rain will fall today, rather than only whether rain will occur. section 1.2

This gives a model more granularity: rainfall can be any non-negative amount, while a binary variable records only sunny or rainy. More detail can improve usefulness, but practical models still balance information against simplicity. section 1.3 section 1.2

The same weather question can be represented at different levels of detail:

  • Binary variable: 0 means sunny and 1 means rainy. section 1.2
  • Categorical variable: rainfall is rounded into a set of possible values. section 1.3
  • Continuous variable: rainfall is modeled across all possible non-negative rates. section 1.2

From rainfall amount to rain probability

A detailed rainfall model can also answer the simpler question: the probability of zero rainfall represents sunny weather, while the combined probability of all positive rainfall rates represents rainy weather. section 1.2

How Grokking Bayes covers it

How deep it goes
Defines continuous outcomes through weather examples and contrasts them with binary and categorical representations, without developing probability calculations.
Examples
Uses weather apps, rainfall rates, rounded rainfall categories, and the aggregation of zero versus positive rainfall.
What it assumes
Assumes only an intuitive understanding of variables and uncertainty while defining random variables through everyday weather predictions.
What you can do after
Apply it to represent rainfall and preserve more detail than a binary weather prediction.
How it connects
Connects continuous random variables with random variables, binary variables, categorical variables, probability, and model granularity.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Bayes. The section links point to the parts of the book it draws on.