Trading Dev AcademyFree quant education

Free lesson · Prediction foundations

Conditional probabilities and contract dependence

Open interactive lessonPractice calculationsExplore labs

Start with the idea

A conditional probability asks how likely one event is inside the worlds where another event occurs. It is not generally the same as the unconditional probability.

Symbols, units & horizon
  • A,B: specified events over the same resolution horizon
  • P: probability
  • A∩B: both events occur
  • P(A|B): conditional probability inside B states
  • all values dimensionless

When and why to use this

Audit related-event contracts and build joint scenarios before combining exposures.

A conditional probability asks how likely one event is inside the worlds where another event occurs. It is not generally the same as the unconditional probability.

Draw four states: both A and B, A only, B only, neither. The joint event occupies the overlap. A contract on A conditional on B needs explicit treatment when B does not occur; it may refund or settle using a special rule.

The product of marginal probabilities gives the joint only under independence. Shared candidates, economic releases or tournament structure often create dependence.

P(A|B)=P(A∩B)P(B),P(B)>0
Model assumptions, derivation and arithmetic

Conditional probabilities and contract dependence

  1. Restrict attention to the B portion of the probability mass.
  2. Count the A-and-B portion within it.
  3. Divide joint mass by total B mass to normalize the conditional sample space.
Work it by hand

P(B)=.40 and P(A and B)=.30 give P(A|B)=.30/.40=.75. If P(A)=.50, multiplying .50×.40=.20 would understate the stipulated joint .30.

Apply it in a strategy

  • Audit related-event contracts and build joint scenarios before combining exposures.
  • Record the input timestamp, executable quantity, currency and horizon. Reconcile the result with a cash-flow or state table.
  • Stress this failure condition: Textually similar events may use incompatible dates or rules, and independence cannot be inferred from separate listings.

Research deliverable

Build and explain a conditional probabilities and contract dependence worksheet. Audit related-event contracts and build joint scenarios before combining exposures.

Evidence boundary: Synthetic arithmetic and scenarios illustrate mechanics. They are not historical returns, a paper replication, or evidence of an executable edge. Research sources and their access limitations are recorded at the end of this module.

Python implementation

Self-contained teaching example. Python 3.10+; dependencies and input conventions are shown in the code and notation. Run in your own Python environment.

# Python 3.10+; standard library unless NumPy is imported below.
# Inputs and outputs use the units defined in this lesson. Synthetic teaching example.
def conditional(joint,conditioning):
    if not 0<conditioning<=1 or not 0<=joint<=conditioning: raise ValueError("Invalid joint mass")
    return joint/conditioning

print(conditional(.30,.40))

Continue learning

Prediction Markets: Contracts, Probability and Evidence — all lessons
  1. A dollar claim is not a news headline
  2. From probability to a decision price
  3. Conditional probabilities and contract dependence
  4. Brier score: measure the whole probability
  5. Log loss and overconfident mistakes
  6. Calibration bins and their uncertainty
  7. Resolution delay and capital lock-up
  8. A causal forecast research ledger

Quantitative finance and development glossary · Python resources and libraries · Research sources and limitations