---
title: "Cross Sectional Information Coefficient"
description: "The cross-sectional information coefficient (IC) is the standard IC of factor research: each period, it is the Spearman correla..."
canonical: https://www.quantconnect.com/docs/v2/writing-algorithms/indicators/supported-indicators/cross-sectional-information-coefficient
markdown: https://www.quantconnect.com/docs/v2/writing-algorithms/indicators/supported-indicators/cross-sectional-information-coefficient.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/03%20Writing%20Algorithms/28%20Indicators/01%20Supported%20Indicators/032%20Cross%20Sectional%20Information%20Coefficient
modified: 2026-11-27
index: https://www.quantconnect.com/llms.txt
---

# Cross Sectional Information Coefficient

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Writing Algorithms](https://www.quantconnect.com/docs/v2/writing-algorithms.md) > Indicators > [Supported Indicators](https://www.quantconnect.com/docs/v2/writing-algorithms/indicators/supported-indicators.md) > Cross Sectional Information Coefficient

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Introduction

The cross-sectional information coefficient (IC) is the standard IC of factor research: each period, it is the Spearman correlation across many assets between their signal values at the end of the previous period and their returns over this period. The indicator owns one signal per asset: each input updates its asset's signal first, so the signals must not be updated elsewhere, such as by an algorithm helper that registered them. The indicator throws when it detects such an update. The signals can't be built from other indicators, as `TimeSeriesInformationCoefficient` explains. An asset's price is its input's value. Inputs whose end times fall in the same UTC period, at the inputs' resolution, form a period, so assets whose bars end at different local times, such as futures of different exchanges, share their daily periods. The indicator correlates a period as soon as every asset it tracks has an input for it. Otherwise, such as when an asset was delisted, it correlates the assets that have one when the next period starts. Each value has the end time of its period's last input, in the exchange time zone of the first asset given at construction. A period needs at least three assets with a signal value and a return. An asset with no input for a period pairs its last signal value with its return since then. Use `Add` and `Remove` to follow a changing cross-section, such as a universe's constituents.

To view the implementation of this indicator, see the [LEAN GitHub repository](https://github.com/QuantConnect/Lean/tree/master/Indicators/CrossSectionalInformationCoefficient.cs).

## Using CSIC Indicator

To create an automatic indicator for `CrossSectionalInformationCoefficient`, call the `csic` helper method from the `QCAlgorithm` class. The `csic` method creates a `CrossSectionalInformationCoefficient` object, hooks it up for automatic updates, and returns it so you can use it in your algorithm. In most cases, you should call the helper method in the `initialize` method.

```python
class CrossSectionalInformationCoefficientAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self._symbols = [self.add_equity(ticker, Resolution.DAILY).symbol for ticker in ["QQQ", "SPY", "IWM"]]
        self._csic = self.csic(self._symbols, lambda symbol: RateOfChange(5))

    def on_data(self, slice: Slice) -> None:

        if self._csic.is_ready:
            # The current value of self._csic is represented by self._csic.current.value
            self.plot("CrossSectionalInformationCoefficient", "csic", self._csic.current.value)
```

To create an automatic indicator for `CrossSectionalInformationCoefficient` using universe constituents, call the `csic` helper method from the `QCAlgorithm` class. The `csic` method creates a `CrossSectionalInformationCoefficient` object, hooks it up for automatic updates, and returns it so you can use it in your algorithm. In this case, you should call the helper method in the `on_securities_changed` method.

```python
class CrossSectionalInformationCoefficientAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self.set_start_date(2024,1,1)
        self.set_end_date(2024,12,31)
        self.universe_settings.resolution = Resolution.DAILY
        self.universe_settings.schedule.on(self.date_rules.month_start())
        self._universe = self.add_universe(self.universe.etf('SPY'))

    def on_securities_changed(self, changes: SecurityChanges) -> None:
        self._csic = self.csic(list(self._universe.selected), lambda symbol: RateOfChange(5))

    def on_data(self, slice: Slice) -> None:

        if self._csic.is_ready:
            # The current value of self._csic is represented by self._csic.current.value
            self.plot("CrossSectionalInformationCoefficient", "csic", self._csic.current.value)
```

For more information about this method, see the [QCAlgorithm class](https://www.lean.io/docs/v2/lean-engine/class-reference/py/QuantConnect/Algorithm/QCAlgorithm/#QuantConnect.Algorithm.QCAlgorithm.csic).

You can manually create a `CrossSectionalInformationCoefficient` indicator, so it doesn't automatically update. Manual indicators let you update their values with any data you choose.

Updating your indicator manually enables you to control when the indicator is updated and what data you use to update it. To manually update the indicator, call the `update` method. The indicator will only be ready after you prime it with enough data.

```python
class CrossSectionalInformationCoefficientAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self._symbols = [self.add_equity(ticker, Resolution.DAILY).symbol for ticker in ["QQQ", "SPY", "IWM"]]
        self._crosssectionalinformationcoefficient = CrossSectionalInformationCoefficient(self._symbols, lambda symbol: RateOfChange(5))

    def on_data(self, slice: Slice) -> None:
        for symbol in self._symbols:
            bar = slice.bars.get(symbol)
            if bar:
                self._crosssectionalinformationcoefficient.update(bar)

        if self._crosssectionalinformationcoefficient.is_ready:
            # The current value of self._crosssectionalinformationcoefficient is represented by self._crosssectionalinformationcoefficient.current.value
            self.plot("CrossSectionalInformationCoefficient", "crosssectionalinformationcoefficient", self._crosssectionalinformationcoefficient.current.value)
```

For more information about this indicator, see its [reference](https://www.lean.io/docs/v2/lean-engine/class-reference/py/QuantConnect/Indicators/CrossSectionalInformationCoefficient).

## Visualization

The following plot shows values for some of the `CrossSectionalInformationCoefficient` indicator properties:

![CrossSectionalInformationCoefficient line plot.](https://cdn.quantconnect.com/docs/i/writing-algorithms/indicators/supported-indicators/cross-sectional-information-coefficient.png)

## Indicator History

To get the historical data of the `CrossSectionalInformationCoefficient` indicator, call the `self.indicator_history` method. This method resets your indicator, makes a [history request](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/history-requests.md), and updates the indicator with the historical data. Just like with regular history requests, the `indicator_history` method supports time periods based on a trailing number of bars, a trailing period of time, or a defined period of time. If you don't provide a `resolution` argument, it defaults to match the resolution of the security subscription.

```python
class CrossSectionalInformationCoefficientAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self._symbols = [self.add_equity(ticker, Resolution.DAILY).symbol for ticker in ["QQQ", "SPY", "IWM"]]
        self._csic = self.csic(self._symbols, lambda symbol: RateOfChange(5))

        indicator_history = self.indicator_history(self._csic, self._symbols, 100, Resolution.MINUTE)
        timedelta_indicator_history = self.indicator_history(self._csic, self._symbols, timedelta(days=10), Resolution.MINUTE)
        time_period_indicator_history = self.indicator_history(self._csic, self._symbols, datetime(2024, 7, 1), datetime(2024, 7, 5), Resolution.MINUTE)
```
