Skip to main content
Ctrl+K

statsmodels

  • Installing
  • Getting started
  • User Guide
  • Examples
    • API Reference
    • About statsmodels
    • Developer Page
    • Release Notes
  • GitHub
  • PyPI
  • DOI
  • Installing
  • Getting started
  • User Guide
  • Examples
  • API Reference
  • About statsmodels
  • Developer Page
  • Release Notes
  • GitHub
  • PyPI
  • DOI

Section Navigation

  • endog, exog, what’s that?
  • Import Paths and Structure
  • Fitting models using R-style formulas
  • Pitfalls
  • Linear Regression
  • Generalized Linear Models
  • Generalized Estimating Equations
  • Generalized Additive Models (GAM)
  • Robust Linear Models
  • Linear Mixed Effects Models
  • Regression with Discrete Dependent Variable
  • Generalized Linear Mixed Effects Models
  • ANOVA
  • Other Models othermod
  • Time Series analysis tsa
  • Time Series Analysis by State Space Methods statespace
  • Vector Autoregressions tsa.vector_ar
  • Methods for Survival and Duration Analysis
  • Nonparametric Methods nonparametric
  • Generalized Method of Moments gmm
  • Other Models miscmodels
  • Multivariate Statistics multivariate
  • Statistics stats
  • Contingency tables
  • Multiple Imputation with Chained Equations
  • Treatment Effects treatment
  • Empirical Likelihood emplike
  • Distributions
  • Graphics
  • Input-Output iolib
  • Tools
    • statsmodels.tools.tools.add_constant
    • statsmodels.tools.tools.clean0
    • statsmodels.tools.tools.fullrank
    • statsmodels.tools.tools.isestimable
    • statsmodels.tools.tools.recipr
    • statsmodels.tools.tools.recipr0
    • statsmodels.tools.tools.unsqueeze
    • statsmodels.tools.numdiff.approx_fprime
    • statsmodels.tools.numdiff.approx_fprime_cs
    • statsmodels.tools.numdiff.approx_hess1
    • statsmodels.tools.numdiff.approx_hess2
    • statsmodels.tools.numdiff.approx_hess3
    • statsmodels.tools.numdiff.approx_hess_cs
    • statsmodels.tools.eval_measures.aic
    • statsmodels.tools.eval_measures.aic_sigma
    • statsmodels.tools.eval_measures.aicc
    • statsmodels.tools.eval_measures.aicc_sigma
    • statsmodels.tools.eval_measures.bic
    • statsmodels.tools.eval_measures.bic_sigma
    • statsmodels.tools.eval_measures.hqic
    • statsmodels.tools.eval_measures.hqic_sigma
    • statsmodels.tools.eval_measures.bias
    • statsmodels.tools.eval_measures.iqr
    • statsmodels.tools.eval_measures.maxabs
    • statsmodels.tools.eval_measures.meanabs
    • statsmodels.tools.eval_measures.medianabs
    • statsmodels.tools.eval_measures.medianbias
    • statsmodels.tools.eval_measures.mse
    • statsmodels.tools.eval_measures.rmse
    • statsmodels.tools.eval_measures.rmspe
    • statsmodels.tools.eval_measures.stde
    • statsmodels.tools.eval_measures.vare
    • statsmodels.tools.docstring_helpers.Appender
    • statsmodels.tools.docstring_helpers.Substitution
    • statsmodels.tools.docstring_helpers.indent
  • Working with Large Data Sets
  • Optimization
  • The Datasets Package
  • Sandbox
  • User Guide
  • Tools
  • statsmodels.tools.eval_measures.bic

statsmodels.tools.eval_measures.bic#

statsmodels.tools.eval_measures.bic(llf, nobs, df_modelwc)[source]#

Bayesian information criterion (BIC) or Schwarz criterion

Parameters:
llf{float, array_like}

value of the loglikelihood

nobsint

number of observations

df_modelwcint

number of parameters including constant

Returns:
bicfloat

information criterion

References

https://en.wikipedia.org/wiki/Bayesian_information_criterion

previous

statsmodels.tools.eval_measures.aicc_sigma

next

statsmodels.tools.eval_measures.bic_sigma

On this page
  • bic
Show Source

© Copyright 2009-2025, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.20.0.