# Beta-Weighted Distribution

Yamata's optional beta function rewards both stake size AND timing, creating incentives for early market participation when enabled by the market creator.

### How Beta Works

* **Before Market Opens** (t < tOpen): Maximum beta weight (betaOpen, typically 5.0)
* **During Market Period** (tOpen ≤ t ≤ tClose): Beta decreases linearly from betaOpen to 1.0
* **At Market Close** (t = tClose): Beta = 1.0 (no timing bonus)

### Mathematical Formula

<figure><img src="/files/KoAMtzQTVQc1jZWHPiPc" alt=""><figcaption></figcaption></figure>

### Numerical Example

Market Parameters:

* betaOpen: 5.0
* tOpen: Jan 1, 2025 00:00
* tClose: Jan 2, 2025 00:00
* tResolve: Jan 2, 2025 01:00

### Commitments:

<table data-header-hidden><thead><tr><th width="66.5234375"></th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>User</strong></td><td><strong>Time</strong></td><td><strong>Outcome</strong></td><td><strong>Amount</strong></td><td><strong>Beta</strong></td><td><strong>Weighted</strong></td></tr><tr><td>Alice</td><td>Dec 31, 23:00</td><td>Germany</td><td>$20</td><td>5.0</td><td>$100</td></tr><tr><td>Bob</td><td>Jan 1, 00:00</td><td>France</td><td>$300</td><td>5.0</td><td>$1,500</td></tr><tr><td>Carol</td><td>Jan 1, 06:00</td><td>Germany</td><td>$50</td><td>4.0</td><td>$200</td></tr><tr><td>Dave</td><td>Jan 2, 00:00</td><td>Brazil</td><td>$100</td><td>1.0</td><td>$100</td></tr></tbody></table>

**Resolution**: Germany wins

### **Payout Calculation:**

* Total losing stakes: $300 + $100 = $400
* Platform fees: $10
* Profits to distribute: $390

### **Winners' Share:**

* Alice's share: 100/(100+200) × $390 = $130 profit + $20 stake = $150 total
* Carol's share: 200/(100+200) × $390 = $260 profit + $50 stake = $310 total

**Notice**: Alice committed less money but received a higher profit ratio due to earlier timing and higher beta weight.


---

# Agent Instructions: 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:

```
GET https://docs.yamata.io/using-yamata/predictions-market/beta-weighted-distribution.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
