bayesline.api.equity.FactorCovarianceReportAccessorImpl#

class bayesline.api.equity.FactorCovarianceReportAccessorImpl(accessor: ReportAccessorApi)#
__init__(accessor: ReportAccessorApi)#

Methods

__init__(accessor)

get_correlation()

Get the time-series of factor correlations for the factors.

get_covariance()

Get the time-series of factor covariances for the factors.

with_scenario(scenario_settings)

Return a new accessor with the given scenario settings applied.

Attributes

accessor

The underlying report accessor API.

scenario_types

__init__(accessor: ReportAccessorApi)#
property accessor: ReportAccessorApi#

The underlying report accessor API.

Returns#

ReportAccessorApi

The underlying report accessor API.

get_covariance() DataFrame#

Get the time-series of factor covariances for the factors.

Returns#

pl.DataFrame

A dataframe with a date and factor columns and columns for each factor with their respective factor covariances.

get_correlation() DataFrame#

Get the time-series of factor correlations for the factors.

Returns#

pl.DataFrame

A dataframe with a date and factor columns and columns for each factor with their respective factor correlations.