ArchitectureStrategiesResearchWhy UsPricing
Statistical Transform Statistic Functions

CORREL: Pearson's Correlation Coefficient (r)

Pearson's Correlation Coefficient (r)

Visual Rule Syntax: @CORREL(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

Pearson's Correlation Coefficient (r) 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
@CORREL(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
high field Required Historical input price or volume series from market feed.
low field Required Historical input price or volume series from market feed.
timeperiod int 30 Lookback period or tuning parameter for market calibration.

Mathematical Formulation

The mathematical definition of CORREL (Pearson's Correlation Coefficient (r)) as evaluated within the Saral Engine execution pipeline:

r=∑(x−xˉ)(y−yˉ)∑(x−xˉ)2∑(y−yˉ)2r = \frac{\sum (x - \bar{x})(y - \bar{y})}{\sqrt{\sum(x - \bar{x})^2 \sum(y - \bar{y})^2}}

Variable & Parameter Definitions

Calculates Pearson's Correlation Coefficient (r) over rolling lookback window $n$.

Systematic Strategy Applications

Pearson's Correlation Coefficient (r) Filter Quantitative Gate
@CORREL(close, 60) > 0

Require positive statistical trajectory (Pearson's Correlation Coefficient (r)) over 60 bars.

Common Questions & Practical Considerations

How is CORREL 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.