Significance tests for factors and backtests¶
Author: Artur Sepp / First recorded: 2026-11-03
Implemented in qis — Quantitative Investment Strategies. Software citation: CITATION.cff.
A significance test measures evidence against a specified null hypothesis, conditional on its sample, model and assumptions. A family correction addresses testing several supplied hypotheses; it does not reconstruct an unrecorded search for successful strategies.
Pitfall
The family interfaces in this chapter ship with qis 5.44.6 and later as
submodule-only development interfaces: import them from their qis.perfstats and
qis.utils submodules, not from qis.*. They are not in qis.__all__ or the API reference
and carry no stability guarantee beyond the CHANGELOG. Correctness and reference checks do not
establish nominal size or coverage, and the maintainer’s finite-sample validation study did
not meet all of its predeclared gates for either intercept estimator.
Overview¶
Three questions have different estimands:
Question |
Null hypothesis |
Calculation |
|---|---|---|
Does each supplied return series have a nonzero mean? |
Mean equals zero |
Equal-weight mean with Bartlett HAC inference, optionally AR(1)-prewhitened |
Does each supplied strategy have alpha against supplied factors? |
Regression intercept equals zero |
Common-sample OLS with an intercept and Bartlett HAC inference, optionally AR(1)-prewhitened |
Does each candidate differ from one fixed benchmark? |
Arithmetic Sharpe difference equals zero |
Existing paired Sharpe-difference test, followed by family correction |
Heteroskedasticity- and autocorrelation-consistent (HAC) standard errors address dependence
under their asymptotic assumptions. Holm controls family-wise error rate (FWER); the
Benjamini–Yekutieli procedure, called BHY in qis, controls false discovery rate (FDR) under
arbitrary dependence when the marginal p-values are valid. These are different error targets,
not interchangeable names for the same test.
The optional stationary bootstrap changes the marginal p-values of the mean and alpha tests. It does not implement bootstrap Sharpe inference, simultaneous intervals, a maximum-statistic test, or a rerun of strategy selection. Factor-return means and time-series alphas are not cross-sectional prices of factor risk.
Hypothesis tests in qis¶
The table lists every hypothesis test that qis computes. The first five rows are the
submodule-only interfaces of this chapter and carry the qualification limits of the Pitfall
above; the other rows are qis.* exports documented in the linked chapters. A test without a
family correction reports marginal statistics only.
Null hypothesis |
Inference |
Family correction |
Entry point |
Chapter |
|---|---|---|---|---|
Each supplied mean equals zero |
Bartlett HAC or AR(1)-prewhitened standard error, normal reference |
Holm or BHY |
|
This chapter |
Each alpha against supplied factors equals zero |
Common-sample OLS, Bartlett HAC or AR(1)-prewhitened standard error |
Holm or BHY |
|
This chapter |
Each candidate’s Sharpe ratio equals one fixed benchmark’s |
Ledoit–Wolf delta method, Bartlett HAC |
Holm or BHY |
|
This chapter |
Each mean or alpha equals zero, with bootstrap p-values |
Studentised circular stationary bootstrap, HAC refitted in every draw |
Holm or BHY |
|
This chapter |
Any declared family of supplied p-values |
Supplied marginal p-values |
Holm or BHY |
|
This chapter |
Two Sharpe ratios are equal |
Ledoit–Wolf delta method, Bartlett HAC |
None |
|
|
A sample mean equals zero |
Sample mean over its IID standard error |
None |
|
|
An EWMA-WLS regression alpha equals zero |
Bartlett HAC, normal reference |
None |
|
|
A pooled cross-sectional signal slope equals zero |
OLS t-statistic charging one residual degree of freedom per date |
None |
|
|
The mean information coefficient equals zero |
t-statistic of the per-date IC series |
None |
|
|
The summed lagged Dimson slopes equal zero |
Classical OLS t-statistic, a screening statistic |
None |
|
qis does not compute the probabilistic or deflated Sharpe ratio, the minimum track record
length, the probability of backtest overfitting, White’s reality check, Hansen’s test of
superior predictive ability, a Romano–Wolf stepdown maximum-statistic test, or Ljung–Box and
Box–Pierce portmanteau tests; for the last two use statsmodels.stats.diagnostic.acorr_ljungbox.
No function corrects for a research search that was not recorded as a declared family.
Inputs, notation, and assumptions¶
Convention |
This article |
|---|---|
Return basis |
Supplied fractional simple returns; the caller has already applied reference-currency, cash/funding and cost treatment consistently |
Sampling grid |
One complete common |
Annualisation |
|
Mean adjustment |
Equal-weight estimation with an intercept; mean bootstrap subtracts sample means, alpha bootstrap subtracts fitted intercepts only |
Timing |
Full-sample descriptive inference on supplied realised returns; decision timing and model selection must already be free of look-ahead |
Output units |
Fractional return per period for mean/alpha, dimensionless Sharpe-difference units for the paired test; p-values and statistics are dimensionless |
qis default |
Family method |
Symbol or input |
Meaning |
Units and convention |
|---|---|---|
\(T\), \(M\), \(k\) |
Common observations, supplied hypotheses, design columns including the intercept |
Counts; \(T\geq24\) and \(T>k\) |
\(y_{j,t}\), \(f_t\) |
Response \(j\) and supplied factor vector |
Fractional simple returns on identical dates |
\(\theta_j\) |
Mean, alpha or candidate-minus-benchmark arithmetic Sharpe difference |
The chosen test’s estimand |
\(L\), \(B\) |
Bartlett lag count and bootstrap draws |
Observation counts, not calendar durations |
\(q\), \(c\) |
Requested error-rate target and pointwise confidence level |
|
\(N_{\mathrm{false}}\), \(N_{\mathrm{rej}}\) |
False rejections and all rejections in the declared family |
Counts in one experiment |
Supply real numeric DataFrames with unique, nonblank hypothesis labels and finite values.
Responses, factors and the fixed benchmark must have exactly the same ordered dates. An attached
index.freq alone does not declare the sampling contract. With a regular frequency, missing
interior observations fail validation. A custom expected_index explicitly defines its sessions;
it is not inferred from the observed gaps.
Factors must be nonempty and full rank, without constants, duplicate columns, self-regressors
or a column named Intercept. Invalid family members reject the entire call. Zero or
scale-relative degenerate residuals/SEs are errors, not hypotheses silently dropped from \(M\).
The paired Sharpe test retains its existing identical/positively proportional-series convention.
The descriptions return_basis and cost_basis are required provenance, not transformations.
For excess-return inference, prepare the returns before calling the tests; see
reference-currency excess returns. The code does not
subtract cash, convert currencies, deduct costs or choose factors from these strings.
Methodology¶
Means and regression alphas¶
Definition. Each two-sided null is \(H_{0,j}:\theta_j=0\). For alpha, fit the supplied model
The mean test is the intercept-only case. Both delegate to the shared equal-weight regression core. For design rows \(x_t\), fitted residuals \(\hat\varepsilon_{j,t}\) and scores \(g_{j,t}=x_t\hat\varepsilon_{j,t}\), the Bartlett meat is
The covariance estimate is
The intercept’s diagonal element gives its squared HAC standard error. The correction is \(T/(T-k)\), not an effective-sample-size replacement. See regression and HAC inference for derivation and assumptions, and Newey–West (1987) for the covariance estimator.
The statistic \(z_j=\hat\theta_j/\widehat{\operatorname{se}}_j\) uses the standard normal reference: \(p_j=2\Phi(-|z_j|)\). The unadjusted pointwise interval is
This is not an exact finite-sample Student distribution. hac_lags=None selects the existing
newey_west_lag_rule(T) once; an explicit lag must satisfy \(0\leq L<T\) and is not silently capped.
AR(1) prewhitening of the intercept score¶
With a fixed lag count \(L\), Bartlett truncation and downweighting can underestimate long-run
variance when score autocovariances are positive. That truncation bias need not vanish as
\(T\) grows. InterceptInference.PREWHITENED_AR1
applies the prewhitening of Andrews–Monahan (1992) to the
scalar influence of each intercept. For the intercept row \(a\) of \((X^\top X)^{-1}X^\top\) and
residuals \(\hat\varepsilon_{j,t}\), the influence is
This is the fitted, centred influence used to estimate covariance, not an identity for the unknown estimation error. The error representation instead involves the unobserved true disturbances; replacing them with fitted residuals makes the displayed sum zero.
A zero-intercept AR(1) fitted to \(\psi_j\) gives \(\hat\rho_j=\sum_{t\geq2}\psi_{j,t}\psi_{j,t-1}\big/\sum_{t\geq2}\psi_{j,t-1}^2\) and the \(T-1\) innovations \(v_{j,t}=\psi_{j,t}-\hat\rho_j\psi_{j,t-1}\). The Bartlett sum of the innovations is recoloured at frequency zero:
The normaliser keeps the original \(T\), as in Andrews–Monahan, so with \(\hat\rho_j=0\) the estimate
equals the plain sandwich without the first observation’s contribution. Statistics, p-values and
pointwise intervals are formed as above, and the table adds the column rho. A fit with
\(|\hat\rho_j|\geq1\) or a lag count above \(T-2\) raises instead of truncating \(\hat\rho_j\) or
falling back to the plain kernel. The filter acts on the intercept’s scalar influence, not on the
joint parameter score, so no joint covariance is produced.
Prewhitening can reduce persistence-related bias, but consistency at fixed \(L\) requires the filter to leave no relevant residual serial dependence (for example, correctly specified AR(1) dependence with white innovations). It is not a general fixed-bandwidth consistency result for arbitrary persistent scores. Remaining dependence requires an appropriate bandwidth/asymptotic treatment. Estimating the filter can increase sampling variability; neither option guarantees finite-sample size or pointwise coverage. Another treatment of a persistent score, fixed-\(b\) asymptotics with a nonstandard reference distribution (Kiefer–Vogelsang (2005); Sun (2014)), is not implemented; qis keeps the normal reference for both estimators.
Paired Sharpe differences¶
For each candidate, compute_sharpe_significance delegates to the existing
qis.sharpe_difference_test against the same fixed benchmark on the same complete sample.
The estimand is candidate minus benchmark arithmetic Sharpe, not the Sharpe ratio of their
return difference. The paired delta method retains population moments (ddof=0), the existing
uncorrected Bartlett covariance convention and its neutral result for identical or positively
proportional returns. It is not the mean/alpha covariance above with a new label.
Read the paired Sharpe methodology for the shared-return covariance and sufficient-moment assumptions. A fixed-benchmark family is not an automatic all-pairs search.
Family error control¶
Definition. The two error targets are
Declare the family before inspecting its results, including unsuccessful variants. For sorted p-values \(p_{(1)}\leq\cdots\leq p_{(M)}\), the adjusted values are
Results return to the supplied label order, and reject means adjusted p-value \(\leq q\).
MultipleTestingMethod.HOLM implements Holm (1979);
MultipleTestingMethod.BHY implements the harmonic dependence correction of
Benjamini–Yekutieli (2001), not ordinary
Benjamini–Hochberg; applying them to strategy t-statistics follows the practice of
Harvey, Liu and Zhu (2016). Neither procedure repairs
invalid marginal p-values or adjusts the displayed pointwise intervals. Under an all-null family,
FDR and FWER coincide; under a mixture they differ.
Null-centred joint stationary bootstrap¶
For a mean test, construct \(y^0_{j,t}=y_{j,t}-\bar y_j\). For alpha, construct \(y^0_{j,t}=y_{j,t}-\hat\alpha_j\) and leave factor means unchanged. Draw entire paired rows of the responses and factors with one circular stationary-bootstrap index matrix. Refit the intercept, all factor slopes and the HAC SE in every draw, keeping the originally selected lag. Do not sort the sampled sequence by its repeated original dates.
For \(K_j\) inclusive absolute-tail exceedances among \(B\) studentised draws,
The finite-resample adjustment prevents a zero p-value. Holm/BHY correct these approximate bootstrap p-values. This is the studentized block bootstrap with HAC standard errors refitted in every draw of Romano–Wolf (2006) and Ledoit–Wolf (2008), with a Bartlett rather than a quadratic-spectral kernel; the family structure follows White (2000) and Romano–Wolf (2005) without their stepdown maximum-statistic test. The retained effect intervals remain normal HAC pointwise intervals; no bootstrap effect CI is constructed. The separate 95% Clopper–Pearson bounds describe the conditional tail probability underlying \(K_j/B\), before the add-one adjustment, assuming independent draws. They are not confidence intervals for a mean or alpha.
Generated draws use the existing stationary bootstrap of
Politis–Romano (1994), with minimum block length
one and expected block length block_size. One means IID row sampling. Supplied integer indices
of shape (T, B) are authoritative, must lie in [0, T-1], and carry their caller’s sampling
law; the code does not infer a stationary-bootstrap origin from them.
The minimum p-value is \(1/(B+1)\). The first-ranked threshold is \(q/M\) for Holm and \(q/(M H_M)\) for BHY. An unreachable threshold emits a warning; BHY can still reject at higher ranks. An invalid draw aborts with its zero-based replicate/hypothesis context: no deletion, redraw, clipping, fallback or replacement changes the denominator.
Annual display is not a different test¶
Proposition. A common positive display scale applied to an estimate and its SE leaves its statistic, p-values and family decisions unchanged.
Proof. The scale cancels in their ratio; the same p-value vector enters the correction. For mean/alpha use \(\mathrm{af}\), and for arithmetic Sharpe differences use \(\sqrt{\mathrm{af}}\). This is a display convention, not a new temporal aggregation or independence assumption. \(\square\)
What is standard and what is specific to qis¶
None of the estimators or corrections in this chapter is new. The table separates the published method from the choices made in qis, so that a reader can cite the former and audit the latter.
Element |
Published method |
qis choice |
|---|---|---|
Bartlett HAC with the \(T/(T-k)\) correction |
Newey–West (1987); Andrews (1991) |
One fixed lag count \(L\) shared by every estimator; |
Prewhitening with recolouring at frequency zero |
Andrews–Monahan (1992) |
Applied to the scalar intercept influence, which is their estimator for the linear combination \(a^\top g_t\) of the score, instead of a VAR(1) of the full score; fixed Bartlett lag on the innovations instead of their automatic quadratic-spectral bandwidth; abort at \(\lvert\hat\rho_j\rvert\geq1\) instead of truncating \(\hat\rho_j\) at .97 |
Fixed-\(b\) asymptotics for persistent scores |
Kiefer–Vogelsang (2005); Sun (2014) |
Not implemented; the normal reference is retained |
Holm and Benjamini–Yekutieli corrections |
Holm (1979); Benjamini–Yekutieli (2001); Harvey, Liu and Zhu (2016) |
Applied to marginal p-values of a predeclared family; no stepdown or maximum-statistic test |
Bootstrap tests over a family of strategies |
White (2000); Romano–Wolf (2005) |
Same null-centred joint resampling; corrections stay marginal rather than stepwise |
Studentized block bootstrap with HAC standard errors refitted in every draw |
Romano–Wolf (2006); Ledoit–Wolf (2008) |
Stationary bootstrap of Politis–Romano (1994) with one index matrix shared by every response and factor; Bartlett rather than quadratic-spectral kernel; inclusive \((1+K_j)/(B+1)\) p-values; an invalid draw aborts the family |
Paired Sharpe-difference test |
Ledoit–Wolf (2008) delta method; Opdyke (2007) |
The existing |
Specific to qis, and not claimed as methodology: the declared-family and provenance conventions
(family_id, return_basis, cost_basis, declared calendar, index hash, scale-relative
degeneracy rule), the abort-rather-than-replace policy for invalid draws, and the finite-sample
validation record quoted above.
Worked example¶
A correction with hand-checkable values¶
These fixed p-values isolate the family arithmetic; they are not empirical return results.
import numpy as np
import pandas as pd
from qis.perfstats.multiple_testing import MultipleTestingMethod, adjust_pvalues
p = pd.Series([0.01, 0.04, 0.03], index=["A", "B", "C"])
holm = adjust_pvalues(p, family_id="fixed_three_tests")
bhy = adjust_pvalues(p, family_id="fixed_three_tests", method=MultipleTestingMethod.BHY)
np.testing.assert_allclose(holm["pvalue_adjusted"], [0.03, 0.06, 0.06])
np.testing.assert_allclose(bhy["pvalue_adjusted"], [0.055, 11 / 150, 11 / 150])
assert holm["reject"].tolist() == [True, False, False]
assert not bhy["reject"].any()
Hypothesis |
Raw p-value |
Holm adjusted |
BHY adjusted |
|---|---|---|---|
A |
.010 |
.030 |
.055 |
B |
.040 |
.060 |
.073333… |
C |
.030 |
.060 |
.073333… |
At .05 Holm rejects A; BHY rejects none. This particular outcome does not make either error target a substitute for the other.
Mean, alpha and paired Sharpe families on the frozen synthetic panel¶
Use the first 72 monthly returns of the fixed synthetic market panel, after discarding only the initial undefined price return. The two responses and one factor/benchmark are fixed in advance. All inputs are gross fractional simple total returns, with cash assumed zero for this teaching example; no costs or cash adjustment is performed by the tests. The three families answer different questions and are not merged into one family after seeing their results.
import qis
from qis.datasets.synthetic import generate_synthetic_prices
from qis.perfstats.significance import (
compute_alpha_significance, compute_mean_significance, compute_sharpe_significance,
)
prices = generate_synthetic_prices()
panel = qis.to_returns(
prices[["SEQ_US", "SBD_IG", "SBD_TSY"]], freq="ME", is_log_returns=False
).iloc[1:73]
responses = panel[["SEQ_US", "SBD_IG"]]
factors = panel[["SBD_TSY"]]
settings = dict(
return_basis="simple total returns; zero cash assumed",
cost_basis="gross; no fees or transaction costs",
sampling_frequency="ME", hac_lags=3, af=12,
)
means = compute_mean_significance(responses, family_id="synthetic_means", **settings)
alphas = compute_alpha_significance(
responses, factors, family_id="synthetic_alphas", **settings
)
pairs = compute_sharpe_significance(
responses, panel["SBD_TSY"], family_id="synthetic_sharpe_pairs", **settings
)
assert means.metadata["nobs"] == alphas.metadata["nobs"] == pairs.metadata["nobs"] == 72
np.testing.assert_allclose(means.table["estimate"], 12 * responses.mean())
design = np.column_stack([np.ones(len(panel)), factors.to_numpy()])
coef = np.linalg.lstsq(design, responses.to_numpy(), rcond=None)[0]
np.testing.assert_allclose(alphas.table["estimate"], 12 * coef[0], rtol=1e-10)
# Independent dense Bartlett reference for the first mean's annual-display SE.
y = responses.iloc[:, 0].to_numpy()
e = y - y.mean()
distance = np.abs(np.subtract.outer(np.arange(len(y)), np.arange(len(y))))
kernel = np.maximum(1 - distance / 4, 0)
reference_se = np.sqrt((e @ kernel @ e) / (len(y) * (len(y) - 1)))
np.testing.assert_allclose(means.table["hac_se"].iloc[0], 12 * reference_se, rtol=1e-10)
assert means.table.attrs["confidence_interval"] == "unadjusted/pointwise"
Inspect each result’s table together with metadata, not just reject. These are synthetic
teaching calculations, not evidence about real factors, investability or finite-sample calibration.
The same means with prewhitened standard errors¶
The estimates do not change; the standard errors, intervals and p-values do, and the table gains
the fitted rho. The dense reference below filters the first demeaned series directly.
from qis.perfstats.significance import InterceptInference
prewhitened = compute_mean_significance(
responses, family_id="synthetic_means", inference=InterceptInference.PREWHITENED_AR1,
**settings
)
np.testing.assert_allclose(prewhitened.table["estimate"], means.table["estimate"])
assert prewhitened.metadata["intercept_inference"] == "prewhitened_ar1"
assert "rho" in prewhitened.table and "rho" not in means.table
# Independent reference for the first mean: AR(1) filter, Bartlett sum, recolouring.
rho = (e[1:] @ e[:-1]) / (e[:-1] @ e[:-1])
v = e[1:] - rho * e[:-1]
distance_v = np.abs(np.subtract.outer(np.arange(len(v)), np.arange(len(v))))
kernel_v = np.maximum(1 - distance_v / 4, 0)
reference_se = np.sqrt((v @ kernel_v @ v) / (1 - rho) ** 2 / (len(y) * (len(y) - 1)))
np.testing.assert_allclose(prewhitened.table["rho"].iloc[0], rho, rtol=1e-10)
np.testing.assert_allclose(prewhitened.table["hac_se"].iloc[0], 12 * reference_se, rtol=1e-10)
A small bootstrap interface demonstration¶
The following uses only 39 draws to exercise the interfaces, not to support an empirical significance claim or a calibration. It uses the existing default seed and block length. The alpha call reuses the exact indices generated by the mean call, without a new sampler call.
from qis.perfstats.bootstrap_significance import (
compute_bootstrap_alpha_significance, compute_bootstrap_mean_significance,
)
boot_mean = compute_bootstrap_mean_significance(
responses, family_id="synthetic_bootstrap_means", num_samples=39,
block_size=6, seed=20261101, include_diagnostics=True, **settings
)
boot_alpha = compute_bootstrap_alpha_significance(
responses, factors, family_id="synthetic_bootstrap_alphas",
bootstrapped_indices=boot_mean.metadata["bootstrap_indices"], **settings
)
assert boot_mean.metadata["bootstrap_index_shape"] == (72, 39)
assert boot_mean.metadata["minimum_pvalue"] == 1 / 40
assert boot_mean.metadata["index_source"] == "generated"
assert boot_alpha.metadata["index_source"] == "supplied"
assert boot_alpha.metadata["seed"] is None
assert boot_alpha.metadata["indices_sha256"] == boot_mean.metadata["indices_sha256"]
np.testing.assert_allclose(
boot_mean.table["pvalue_raw"], (1 + boot_mean.table["bootstrap_exceedances"]) / 40
)
np.testing.assert_allclose(boot_mean.table["pvalue_hac"], means.table["pvalue_raw"])
np.testing.assert_allclose(boot_mean.table["ci_lower_pointwise"], means.table["ci_lower_pointwise"])
np.testing.assert_allclose(boot_alpha.table["ci_upper_pointwise"], alphas.table["ci_upper_pointwise"])
The bootstrap p-value columns change their source; the normal HAC bounds do not become bootstrap intervals. Supplied-index metadata does not assert the original generation law: retain the mean call’s generation settings as the provenance of this particular matrix.
Implementation in qis¶
The modules below ship with qis 5.44.6 and later. Import them from their submodules: they are
not qis.* exports, so the generated API reference does not list them, and they carry no
stability guarantee beyond the CHANGELOG. Documenting the interfaces does not promote them or
complete their outstanding qualification; see
Interpretation and limitations.
Submodule |
Entry points |
Contract |
|---|---|---|
|
One complete labelled p-value Series; no return estimation |
|
|
One complete common sample and an explicit family |
|
|
Null-centred joint resampling; no bootstrap Sharpe or effect CI |
|
|
Per-response AR(1)-prewhitened intercept standard errors; no joint covariance |
SignificanceResult.table has estimate, hac_se, statistic, pvalue_raw,
pvalue_adjusted, reject, ci_lower_pointwise and ci_upper_pointwise. Sharpe families add
sharpe_candidate and sharpe_benchmark; prewhitened mean/alpha families add rho. Bootstrap
tables add pvalue_hac, bootstrap_exceedances and bootstrap_tail_mc_lower/bootstrap_tail_mc_upper.
Metadata records the family ID/members/method, null/alternative, sample boundaries/count,
declared calendar, factor columns or fixed benchmark, lag choice, intercept_inference,
funding/cost descriptions and display units. Bootstrap metadata also records effective \(B\), the
index source/hash, generated block/seed settings where applicable, minimum p-value and first-rank
reachability. With include_diagnostics=True it retains copied (T, B) indices and (B, M)
statistics, plus the (B, M) fitted rho for prewhitened inference, not \(B\) full market panels.
Without it the draw statistics are streamed into counts.
The canonical numerical owners are the shared
regression.py,
hac_intercept_prewhitening.py,
sharpe_inference.py
and existing sampler. The examples above are executed offline by
documentation_examples_test.py:
python -m pytest src/qis/tests/documentation_examples_test.py -k factor_and_backtest_significance
The frozen market generator and its seed are unchanged. No market-data download or Fama–French
study is involved. The repository example
examples/perfstats/factor_and_backtest_significance.py
runs every analytic of this chapter on the nine full-history instruments of the panel: both
intercept inferences side by side with the fitted \(\hat\rho_j\), Holm and BHY through the family
functions and directly through adjust_pvalues, the four bootstrap families on one shared index
matrix, and a two-panel figure of p-values and standard-error ratios.
Interpretation and limitations¶
Valid marginal inference is a prerequisite for family control. HAC needs stationary, weakly dependent scores, sufficient moments and an appropriate bandwidth; alpha needs an identified, exogenous full-rank factor design. Paired Sharpe inference needs sufficient fourth moments.
The 24-observation check is an input-validity threshold, not a claim that 24 observations give reliable asymptotic inference. An automatic lag rule is not a finite-sample guarantee.
Finite-sample qualification remains incomplete for the Bartlett default and AR(1) prewhitening. Implementation/reference checks do not establish marginal-size or pointwise-coverage guarantees; no promotion or changed acceptance gate is implied.
Corrected p-values are not posterior probabilities, and nonrejection is not proof of zero return or zero alpha. Statistical evidence does not establish economic materiality or net investability. State funding, fees, leverage and the tested effect units.
A pointwise CI excluding zero need not agree with a Holm/BHY family decision. The intervals are not simultaneous or selection-adjusted, and tail MC bounds are not effect intervals.
Freeze the tested family, sample, factors, benchmark, lags and resampling plan before looking at results. Testing only winners, changing families, repeated peeking, selecting block length by the smallest p-value or using revised data as point-in-time data invalidates the intended interpretation. These functions do not rerun or reconstruct the research search.
No Fama–French empirical validation or production promotion is claimed by the synthetic examples. Published Sharpe/return conventions elsewhere in qis are not newly certified or changed by this development chapter.
See also¶
References¶
Newey, W. K., and West, K. D. (1987). A Simple, Positive Semi-Definite, Heteroskedasticity and Autocorrelation Consistent Covariance Matrix. Econometrica, 55(3), 703–708. Working paper and published-version record.
Andrews, D. W. K. (1991). Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation. Econometrica, 59(3), 817–858. DOI: 10.2307/2938229. [pending publisher check]
Andrews, D. W. K., and Monahan, J. C. (1992). An Improved Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimator. Econometrica, 60(4), 953–966. DOI: 10.2307/2951574. [pending publisher check]
Kiefer, N. M., and Vogelsang, T. J. (2005). A New Asymptotic Theory for Heteroskedasticity-Autocorrelation Robust Tests. Econometric Theory, 21(6), 1130–1164. DOI: 10.1017/S0266466605050565. [pending publisher check]
Sun, Y. (2014). Let’s fix it: Fixed-b asymptotics versus small-b asymptotics in heteroskedasticity and autocorrelation robust inference. Journal of Econometrics, 178(3), 659–677. DOI: 10.1016/j.jeconom.2013.10.001. [pending publisher check]
Holm, S. (1979). A Simple Sequentially Rejective Multiple Test Procedure. Scandinavian Journal of Statistics, 6(2), 65–70. Publisher archive.
Benjamini, Y., and Yekutieli, D. (2001). The control of the false discovery rate in multiple testing under dependency. The Annals of Statistics, 29(4), 1165–1188. DOI: 10.1214/aos/1013699998.
Harvey, C. R., Liu, Y., and Zhu, H. (2016). … and the Cross-Section of Expected Returns. The Review of Financial Studies, 29(1), 5–68. DOI: 10.1093/rfs/hhv059. [pending publisher check]
White, H. (2000). A Reality Check for Data Snooping. Econometrica, 68(5), 1097–1126. DOI: 10.1111/1468-0262.00152. [pending publisher check]
Romano, J. P., and Wolf, M. (2005). Stepwise Multiple Testing as Formalized Data Snooping. Econometrica, 73(4), 1237–1282. DOI: 10.1111/j.1468-0262.2005.00615.x. [pending publisher check]
Romano, J. P., and Wolf, M. (2006). Improved nonparametric confidence intervals in time series regressions. Journal of Nonparametric Statistics, 18(2), 199–214. DOI: 10.1080/10485250600687812. [pending publisher check]
Ledoit, O., and Wolf, M. (2008). Robust performance hypothesis testing with the Sharpe ratio. Journal of Empirical Finance, 15(5), 850–859. DOI: 10.1016/j.jempfin.2008.03.002.
Politis, D. N., and Romano, J. P. (1994). The Stationary Bootstrap. Journal of the American Statistical Association, 89(428), 1303–1313. DOI: 10.1080/01621459.1994.10476870.
Opdyke, J. D. (2007). Comparing Sharpe Ratios: So Where Are the p-Values? Journal of Asset Management, 8(5), 308–336. DOI: 10.1057/palgrave.jam.2250084.
Sepp, A. qis: Performance analytics, portfolio backtesting, risk analysis, and factsheet reporting in Python. Software citation metadata.