ArchitectureStrategiesResearchWhy UsPricing
Statistical Transform Statistic Functions

VAR: Variance

Variance

Visual Rule Syntax: @VAR(close, 30)

Key Takeaways

  • Provides quantitative rigor for factor modeling and risk management.
  • Normalizes price series to evaluate trend trajectory and relative dispersion.
  • Core building block for multi-factor systematic strategies.

What It Means in Simple Terms

Variance applies rigorous statistical modeling to price series over time. It evaluates linear trend slopes, volatility dispersion, or correlation against benchmark indices.

How It Helps You as an Investor

It transforms raw rupee price levels into standardized statistical metrics, allowing objective cross-sectional comparisons between stocks of different prices.

Visual Node Rule Syntax & How to Plug in Values

Visual Node Expression No Code Required
@VAR(close, 30)

Parameter Tuning & Market Calibration

Choose a lookback window $n$ that matches your investment horizon. Use 30 to 60 days for intermediate factor screening, or 252 days for annual beta and volatility calibration.

Input Fields & Parameters

Field / Parameter Type Default Role & Description
close field Required Historical input price or volume series from market feed.
timeperiod int 5 Lookback period or tuning parameter for market calibration.
nbdev float 1 Lookback period or tuning parameter for market calibration.

Mathematical Formulation

The mathematical definition of VAR (Variance) as evaluated within the Saral Engine execution pipeline:

σ2=1n−1∑i=1n(Pi−Pˉ)2\sigma^2 = \frac{1}{n-1}\sum_{i=1}^n (P_i - \bar{P})^2

Variable & Parameter Definitions

Calculates Variance over rolling lookback window $n$.

Systematic Strategy Applications

Variance Filter Quantitative Gate
@VAR(close, 60) > 0

Require positive statistical trajectory (Variance) over 60 bars.

Common Questions & Practical Considerations

How is VAR used in factor investing?

It allows systematic rules to rank and select stocks based on objective statistical properties (like smooth upward slope or low variance) rather than emotional hunches.