Skip to main content

Function Finder

Regression models, hypothesis tests, and diagnostics for in-database statistical analysis. All functions run natively in DuckDB with no external dependencies. Use aggregate functions with GROUP BY for per-group models or window functions with OVER for rolling analysis — see DuckDB Patterns for details.

Categories

All Functions

FunctionDescriptionSQL SignatureCategory
anofox_stats_ols_*Ordinary Least Squaresanofox_stats_ols_fit(y, x, [options]) -> STRUCTRegression
anofox_stats_ridge_*Ridge Regression (L2)anofox_stats_ridge_fit(y, x, alpha, [options]) -> STRUCTRegression
anofox_stats_wls_*Weighted Least Squaresanofox_stats_wls_fit(y, x, weights, [options]) -> STRUCTRegression
anofox_stats_rls_*Recursive Least Squaresanofox_stats_rls_fit(y, x, [forgetting_factor]) -> STRUCTRegression
anofox_stats_elasticnet_*Elastic Net (L1+L2)anofox_stats_elasticnet_fit(y, x, alpha, l1_ratio) -> STRUCTRegression
anofox_stats_poisson_fit_aggPoisson GLManofox_stats_poisson_fit_agg(y, x, [options]) -> STRUCTRegression
anofox_stats_alm_fit_aggAugmented Linear Modelanofox_stats_alm_fit_agg(y, x, options) -> STRUCTRegression
anofox_stats_bls_fit_aggBounded Least Squaresanofox_stats_bls_fit_agg(y, x, options) -> STRUCTRegression
anofox_stats_nnls_fit_aggNon-Negative Least Squaresanofox_stats_nnls_fit_agg(y, x, [options]) -> STRUCTRegression
anofox_stats_aid_aggAID Classificationanofox_stats_aid_agg(y, [options]) -> STRUCTDemand Analysis
anofox_stats_aid_anomaly_aggAID Anomaly Detectionanofox_stats_aid_anomaly_agg(y, [options]) -> LIST(STRUCT)Demand Analysis
anofox_stats_shapiro_wilk_aggShapiro-Wilk testanofox_stats_shapiro_wilk_agg(value) -> STRUCTNormality
anofox_stats_jarque_bera_aggJarque-Bera testanofox_stats_jarque_bera_agg(value) -> STRUCTNormality
anofox_stats_dagostino_k2_aggD'Agostino K² testanofox_stats_dagostino_k2_agg(value) -> STRUCTNormality
anofox_stats_t_test_aggStudent's t-testanofox_stats_t_test_agg(value, group_id, [options]) -> STRUCTParametric
anofox_stats_one_way_anova_aggOne-way ANOVAanofox_stats_one_way_anova_agg(value, group_id) -> STRUCTParametric
anofox_stats_yuen_aggYuen's trimmed meananofox_stats_yuen_agg(value, group_id, [options]) -> STRUCTParametric
anofox_stats_brown_forsythe_aggBrown-Forsythe testanofox_stats_brown_forsythe_agg(value, group_id) -> STRUCTParametric
anofox_stats_prop_test_one_aggOne-sample proportionanofox_stats_prop_test_one_agg(successes, trials, p0, [options]) -> STRUCTParametric
anofox_stats_prop_test_two_aggTwo-sample proportionanofox_stats_prop_test_two_agg(successes, trials, group_id, [options]) -> STRUCTParametric
anofox_stats_binom_test_aggBinomial testanofox_stats_binom_test_agg(successes, trials, p0, [options]) -> STRUCTParametric
anofox_stats_tost_t_test_aggTOST t-testanofox_stats_tost_t_test_agg(value, group_id, delta, [options]) -> STRUCTParametric
anofox_stats_tost_paired_aggTOST pairedanofox_stats_tost_paired_agg(v1, v2, delta, [options]) -> STRUCTParametric
anofox_stats_tost_correlation_aggTOST correlationanofox_stats_tost_correlation_agg(x, y, rho0, delta) -> STRUCTParametric
anofox_stats_mann_whitney_u_aggMann-Whitney Uanofox_stats_mann_whitney_u_agg(value, group_id, [options]) -> STRUCTNonparametric
anofox_stats_kruskal_wallis_aggKruskal-Wallisanofox_stats_kruskal_wallis_agg(value, group_id) -> STRUCTNonparametric
anofox_stats_wilcoxon_signed_rank_aggWilcoxon signed-rankanofox_stats_wilcoxon_signed_rank_agg(v1, v2, [options]) -> STRUCTNonparametric
anofox_stats_brunner_munzel_aggBrunner-Munzelanofox_stats_brunner_munzel_agg(value, group_id, [options]) -> STRUCTNonparametric
anofox_stats_permutation_t_test_aggPermutation t-testanofox_stats_permutation_t_test_agg(value, group_id, [options]) -> STRUCTNonparametric
anofox_stats_energy_distance_aggEnergy distanceanofox_stats_energy_distance_agg(value, group_id) -> STRUCTNonparametric
anofox_stats_mmd_aggMaximum Mean Discrepancyanofox_stats_mmd_agg(value, group_id, [options]) -> STRUCTNonparametric
anofox_stats_pearson_aggPearson correlationanofox_stats_pearson_agg(x, y, [options]) -> STRUCTCorrelation
anofox_stats_spearman_aggSpearman rankanofox_stats_spearman_agg(x, y, [options]) -> STRUCTCorrelation
anofox_stats_kendall_aggKendall's tauanofox_stats_kendall_agg(x, y, [options]) -> STRUCTCorrelation
anofox_stats_distance_cor_aggDistance correlationanofox_stats_distance_cor_agg(x, y) -> STRUCTCorrelation
anofox_stats_icc_aggIntraclass correlationanofox_stats_icc_agg(value, rater_id, subject_id, [options]) -> STRUCTCorrelation
anofox_stats_chisq_test_aggChi-square testanofox_stats_chisq_test_agg(row_var, col_var, [options]) -> STRUCTCategorical
anofox_stats_chisq_gof_aggChi-square GOFanofox_stats_chisq_gof_agg(observed, expected) -> STRUCTCategorical
anofox_stats_g_test_aggG-testanofox_stats_g_test_agg(row_var, col_var) -> STRUCTCategorical
anofox_stats_fisher_exact_aggFisher's exactanofox_stats_fisher_exact_agg(row_var, col_var, [options]) -> STRUCTCategorical
anofox_stats_mcnemar_aggMcNemar's testanofox_stats_mcnemar_agg(var1, var2, [options]) -> STRUCTCategorical
anofox_stats_cramers_v_aggCramér's Vanofox_stats_cramers_v_agg(row_var, col_var) -> DOUBLECategorical
anofox_stats_phi_coefficient_aggPhi coefficientanofox_stats_phi_coefficient_agg(row_var, col_var) -> DOUBLECategorical
anofox_stats_contingency_coef_aggContingency coefanofox_stats_contingency_coef_agg(row_var, col_var) -> DOUBLECategorical
anofox_stats_cohen_kappa_aggCohen's Kappaanofox_stats_cohen_kappa_agg(rater1, rater2) -> STRUCTCategorical
anofox_stats_diebold_mariano_aggDiebold-Marianoanofox_stats_diebold_mariano_agg(actual, f1, f2, [options]) -> STRUCTForecast Model Selection
anofox_stats_clark_west_aggClark-Westanofox_stats_clark_west_agg(actual, f1, f2) -> STRUCTForecast Model Selection
anofox_stats_vifVariance Inflation Factoranofox_stats_vif(x) -> LIST(DOUBLE)Diagnostics
anofox_stats_vif_aggVIF (aggregate)anofox_stats_vif_agg(x) -> LIST(DOUBLE)Diagnostics
anofox_stats_aicAkaike ICanofox_stats_aic(rss, n, k) -> DOUBLEDiagnostics
anofox_stats_bicBayesian ICanofox_stats_bic(rss, n, k) -> DOUBLEDiagnostics
anofox_stats_predictPredictionanofox_stats_predict(x, coefficients, intercept) -> LIST(DOUBLE)Diagnostics
anofox_stats_residuals_diagnostics_aggResidual analysisanofox_stats_residuals_diagnostics_agg(y, y_hat, [x]) -> STRUCTDiagnostics
Showing 53 of 53

🍪 Cookie Settings