> For the complete documentation index, see [llms.txt](https://nfa.gitbook.io/nfa-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nfa.gitbook.io/nfa-docs/the-forecasting-engine.md).

# The forecasting engine

## The forecasting engine

The engine is the core of NFA. Everything else exists to feed it good inputs or to check its output. This section explains how a single market becomes a calibrated probability, and why the design is built the way it is.

### Why debate and judge

A single model asked "what is the probability?" gives a confident guess with no structure you can inspect. NFA splits the work into three roles with different incentives:

* **Advocates** each argue for one outcome and only that outcome. Each does its own research, so it brings information the others lack.
* **The debate** forces the strongest case for every side into the open, with rebuttals aimed at the decisive question.
* **The judge** stays impartial, reads the whole exchange, and rules a calibrated distribution.

The result is a forecast with a full trace: who argued what, which claim was decisive, what evidence settled it, and how confident the ruling was.

### The pipeline at a glance

```mermaid
flowchart TD
    A[Market] --> B[Bind and classify]
    B --> C[Research]
    C --> D[Cast advocates]
    D --> E[Opening statements]
    E --> F[Rebuttal rounds]
    F --> G[Find the crux]
    G --> H[Verify the crux]
    H --> I[Judge rules]
    I --> J[Distribution]
    J --> K[Self-verification]
    K --> L[Record and price]
```

The pages in this section walk each stage in order, then cover the cross-cutting machinery: anchoring, self-verification, the quality badges, and how runs are priced and made reproducible.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://nfa.gitbook.io/nfa-docs/the-forecasting-engine.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
