---
title: "QAStats V3 Released"
description: "QAStats V3, a strategy reporting library for Python: what is new, how to install it, daily statistics, drawdowns against a benchmark and VAMI."
url: "https://pythonparatrading.com/en/qastats-v3-released-2/"
lang: "en"
date: "2025-04-15"
updated: "2026-07-10"
image: "https://pythonparatrading.com/content/images/2025/04/army1.png"
tags: ["Portfolio"]
authors: ["Jesús Cuesta"]
---

# QAStats V3 Released

> What is new in QAStats V3, how to install it and first steps: daily statistics, drawdowns, VAMI and a full report.

- Language: en (English)
- Published: 2025-04-15
- Updated: 2026-07-10
- Topics: Portfolio
- Requires: qastats · pandas · numpy
- Code: https://github.com/quantarmyz/QAStats
- Dataset: Included in the repository (examples folder).
- Summary: We are excited to announce the release of QAStats V3, with new features and improvements for quantitative analysis.

Key points:

- What changes in V3 and how to install the library.
- Daily statistics and drawdown analysis against a benchmark.
- Daily VAMI and a full returns-and-drawdown report in one call.

---

We are excited to announce the release of **QAStats V3**, the latest version of our quantitative statistics library. This release brings significant improvements and new features that make financial reporting and analysis easier than ever.

![QAStats dashboard](https://pythonparatrading.com/content/images/2026/07/qastats-dashboard.svg)

*QAStats V3: financial reporting dashboard*

## What's New in V3

-   **Improved performance**: Faster calculations and report generation
-   **New metrics**: Additional performance and risk ratios
-   **Better visualization**: Enhanced charts and plots
-   **Modular architecture**: Easier to extend and customize
-   **Python 3.12 support**: Full compatibility with the latest Python versions

## Key Features

QAStats V3 maintains all the features that made previous versions great, while adding new capabilities:

-   Comprehensive performance reports
-   Risk analysis metrics (Sharpe, Sortino, Calmar, etc.)
-   Drawdown analysis
-   Return distribution analysis
-   Benchmark comparison
-   Custom report generation

## Installation

To install QAStats V3, simply use pip:

```bash
pip install qastats>=3.0.0
```

## Quick Start

Here's a quick example of how to use QAStats V3:

```python
import qastats as qa
import pandas as pd

# Load your returns data
returns = pd.Series([...])  # Your returns data
benchmark = pd.Series([...])  # Benchmark returns

# Generate a full report
report = qa.create_report(returns, benchmark=benchmark)
report.show()
```

## Advanced Statistics

```python
import qastats
import pandas as pd
import numpy as np

data = pd.read_pickle('examples/daily_returns.pickle')
data['bench'] = np.random.normal(0.0001, 0.01, len(data))
```

```python
stats = qastats.stats.get_daily_stats(data)
stats
```

```python
dds = qastats.stats.get_drawdown_stats(data['Close'])
dds
```

```python
qastats.stats.get_vami_daily(data['Close'])
```

```python
qastats.reports.create_return_dd(data)
```

$$
S_o = \frac{\mathbb{E}[R_p - R_f]}{\sigma_{\text{downside}}}
$$

$$
\text{MaxDD} = \min_t \left(\frac{V_t - \max_{s \leq t} V_s}{\max_{s \leq t} V_s}\right)
$$

## Repository

The QAStats V3 repository is available on GitHub:

> **[GitHub - quantarmyz/qastats-git](https://github.com/quantarmyz/qastats-git)**
> Based on private module for generate reports. Using empyrical calcs and create faster factsheets in a pandas-like style

$$
S = \frac{\mathbb{E}[R_p - R_f]}{\sigma_p}
$$

$$
S_o = \frac{\mathbb{E}[R_p - R_f]}{\sigma_{\text{downside}}}
$$

$$
\text{MaxDD} = \min_t \left(\frac{V_t - \max_{s \leq t} V_s}{\max_{s \leq t} V_s}\right)
$$

## What's Next

We are already working on the next version, which will include even more features and improvements. Stay tuned for updates!
