π Probability & Statistics
Conditional probabilityβ
means the probability that the outcome equals 1, given that we know the input features .
The vertical bar means βgivenβ or βconditioned on.β
Exampleβ
Suppose we want to predict whether a user will book a listing:
- : the user books
- : the user does not book
- : information about the user, listing, and trip
For example:
If the model estimates:
it means that, given these user, listing, and trip features, the estimated probability of booking is 8%.
Because this is binary classification:
Therefore:
In logistic regressionβ
A logistic-regression model calculates:
and transforms it into a probability using the sigmoid function:
For example, if :
The model predicts an approximately 81.8% probability that .
Important interpretationβ
This probability applies to observations with features like ; it does not guarantee what will happen in one individual case.
If:
a well-calibrated model should produce positive outcomes for approximately 80% of many similar examples. One specific example can still have .