Statistic Functions

Variance (VAR)

Variance

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

VAR calculates the statistical variance of price over a specified period (default 5), measuring the average squared deviation from the mean. Variance quantifies volatility mathematically - higher variance means wider price swings and greater uncertainty. The nb_dev parameter (default 1) acts as a multiplier for scaling. Variance is the square of standard deviation (VAR = STDDEV²), and while less intuitive than STDDEV, it's essential for many statistical calculations and portfolio theory applications. Variance has units of 'price squared,' making direct interpretation challenging.

In Practice

How Traders Use It

Cryptocurrency traders and analysts use VAR primarily for statistical calculations, portfolio theory applications, and as a component in custom indicators rather than direct trading signals. Rising variance indicates increasing volatility regime; falling variance suggests consolidation. VAR is essential for calculating Sharpe ratios, portfolio variance, and risk metrics in quantitative finance. While STDDEV is preferred for direct volatility measurement (better interpretability), VAR is crucial for mathematical operations requiring variance specifically. It's used by quantitative analysts, portfolio theorists, and researchers building statistical models where variance is the natural metric.

Highlights

VAR at a Glance

Statistical variance of price (average squared deviation)
Square of standard deviation (VAR = STDDEV²)
Higher values = greater volatility and uncertainty
Units of 'price squared' (less intuitive than STDDEV)
Default 5-period with 1× multiplier
Essential for portfolio theory and risk metrics
Used in Sharpe ratio and portfolio variance calculations
Preferred for mathematical operations over direct trading
Popular among quants and statistical researchers

Get Started

Automate VAR with cryptorobot.ai

Build automated strategies using Variance and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.