IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform

Joint Student's t-distribution of Function. More...

#include <IMP/isd/FStudentT.h>

Inheritance diagram for IMP::isd::FStudentT:

Detailed Description

Joint Student's t-distribution of Function.

If a vector of values \(F(X)\) is jointly distributed according to the t distribution with shared center \(F(M)\), scale \(\sigma\), and degrees of freedom \(\nu\), then the vector \(X\) is distributed according to the F-t distribution, where \(F\) is a one-to-one (strictly monotonic) function.

For a vector \(X=\{x_1,...,x_N\}\) containing \(N\) observations, the joint F-t density is given by

\[ p(X \mid M, \sigma, \nu) = \frac{ \Gamma[(N + \nu) / 2]}{\Gamma[\nu / 2]} (\pi \nu)^{-N / 2} \sigma^{-N} J(X) \left[1 + \frac{t(X, M, \sigma)^2}{\nu} \right]^{-(N + \nu)/2}, \]

where

\[ J(X) = \left| \prod_{i=1}^N F'(x_i) \right|, \]

is a normalization factor according to the change of variables technique.

\[ t(X, M, \sigma)^2 = \frac{S_2(X) - 2 F(M) S_1(X) + N F(M)^2}{\sigma^2}, \]

and the minimally sufficient statistics are

\begin{align*} S_1(X) &= \sum_{i=1}^N F(x_i) \ S_2(X) &= \sum_{i=1}^N F(x_i)^2. \end{align*}

The degrees of freedom \(\nu\) controls the heaviness of the tails. When \(\nu = 1\), the F-t distribution becomes the F-Cauchy distribution. For very large \(\nu\), the F-t distribution approaches the F-Normal distribution. Set \(J(X)\) values to 1 for the joint t distribution.

Note
The joint t distribution is derived by marginalizing a joint normal distribution with the scaled inverse chi-square distribution as a prior on the variance. The same distribution is not produced by multiplying t distributions. For more details, see Gelmen et al. Bayesian Data Analaysis. 3rd edition.
See also
FNormal

Definition at line 61 of file FStudentT.h.

Public Member Functions

 FStudentT (double sumFX, double sumFX2, unsigned N, double LogJX, double FM, double sigma, double nu, std::string name="FStudentT %1%")
 Create from sufficient statistics.
 FStudentT (Floats FXs, Floats JXs, double FM, double sigma, double nu, std::string name="FStudentT %1%")
 Create from observations vectors.
virtual double evaluate_derivative_FM () const
 Evaluate derivative of negative log-density wrt \(F(M)\).
Floats evaluate_derivative_FX (const Floats FXs) const
 Evaluate derivative of negative log-density wrt elements of \(F(X)\).
virtual double evaluate_derivative_Fx (double Fx) const
 Evaluate derivative of negative log-density wrt single \(F(x_i)\).
virtual double evaluate_derivative_LogJX () const
 Evaluate derivative of negative log-density wrt \(\log J(X)\).
virtual double evaluate_derivative_nu () const
 Evaluate derivative of negative log-density wrt \(\nu\).
virtual double evaluate_derivative_sigma () const
 Evaluate derivative of negative log-density wrt \(\sigma\).
double get_FM ()
double get_LogJX ()
unsigned get_N ()
double get_nu ()
double get_sigma ()
double get_sumFX ()
 Get sufficient statistic for passed \(J(X)\) values.
double get_sumFX2 ()
virtual std::string get_type_name () const override
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object.
void set_FM (double v)
void set_LogJX (double v)
void set_N (unsigned v)
void set_nu (double v)
void set_sigma (double v)
void set_sumFX (double v)
void set_sumFX2 (double v)
void update_cached_values () const
 Update cached intermediate values.
void update_sufficient_statistics (Floats FXs, Floats JXs)
 Update sufficient statistics with values and derivatives.
Public Member Functions inherited from IMP::isd::OneDimensionalSufficientDistribution
 OneDimensionalSufficientDistribution (std::string name="OneDimensionalSufficientDistribution %1%")
 Constructor.
double evaluate () const
 Get negative log-density using cached sufficient statistics.
double get_density () const
 Get probability density using cached sufficient statistics.
Floats get_sufficient_statistics () const
void update_sufficient_statistics (Floats vs)
 Update cached sufficient statistics from data.
Public Member Functions inherited from IMP::isd::Distribution
 Distribution (std::string name="Distribution %1%")
Public Member Functions inherited from IMP::Object
CheckLevel get_check_level () const
 get_derived_object (self)
 Return this object cast to the most derived subclass.
LogLevel get_log_level () const
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
const std::string & get_name () const
 Get the (not necessarily unique) name of this object.
void set_name (std::string name)
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
virtual void clear_caches ()

Protected Member Functions

virtual double do_evaluate () const override
virtual Floats do_get_sufficient_statistics () const override
virtual void do_update_sufficient_statistics (Floats FXs) override
virtual void do_update_sufficient_statistics (Floats FXs, Floats JXs)
Protected Member Functions inherited from IMP::isd::OneDimensionalSufficientDistribution
virtual double do_get_density () const
Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name.
virtual void do_destroy ()

Constructor & Destructor Documentation

◆ FStudentT() [1/2]

IMP::isd::FStudentT::FStudentT ( Floats FXs,
Floats JXs,
double FM,
double sigma,
double nu,
std::string name = "FStudentT %1%" )

Create from observations vectors.

Parameters
[in]FXsVector of N \(F(x)\) observations drawn independently from the same F-t distribution.
[in]JXsVector of N derivatives of \(F(x)\) with respect to \(X\) vector.
[in]FMCenter of F-Student t with respect to \(F(x)\).
[in]sigmaScale of F-Student t with respect to \(F(x)\).
[in]nuDegrees of freedom of Student t distribution.
[in]nameName.

◆ FStudentT() [2/2]

IMP::isd::FStudentT::FStudentT ( double sumFX,
double sumFX2,
unsigned N,
double LogJX,
double FM,
double sigma,
double nu,
std::string name = "FStudentT %1%" )

Create from sufficient statistics.

Parameters
[in]sumFXSum of observations of \(F(x)\).
[in]sumFX2Sum of observations of \(F(x)^2\).
[in]NNumber of observations.
[in]LogJXLog of \(J(X)\).
[in]FMCenter of F-t with respect to \(F(x)\).
[in]sigmaScale of F-t with respect to \(F(x)\).
[in]nuDegrees of freedom of Student t distribution.
[in]nameName.

◆ ~FStudentT()

virtual IMP::isd::FStudentT::~FStudentT ( )
virtual

Definition at line 149 of file FStudentT.h.

Member Function Documentation

◆ do_evaluate()

virtual double IMP::isd::FStudentT::do_evaluate ( ) const
overrideprotectedvirtual

◆ do_get_sufficient_statistics()

virtual Floats IMP::isd::FStudentT::do_get_sufficient_statistics ( ) const
overrideprotectedvirtual

◆ do_update_sufficient_statistics()

virtual void IMP::isd::FStudentT::do_update_sufficient_statistics ( Floats FXs)
overrideprotectedvirtual

◆ evaluate_derivative_FM()

virtual double IMP::isd::FStudentT::evaluate_derivative_FM ( ) const
virtual

Evaluate derivative of negative log-density wrt \(F(M)\).

◆ evaluate_derivative_FX()

Floats IMP::isd::FStudentT::evaluate_derivative_FX ( const Floats FXs) const

Evaluate derivative of negative log-density wrt elements of \(F(X)\).

This is equivalent to though faster than running evaluate_derivative_Fx() on every element of \(F(X)\).

◆ evaluate_derivative_Fx()

virtual double IMP::isd::FStudentT::evaluate_derivative_Fx ( double Fx) const
virtual

Evaluate derivative of negative log-density wrt single \(F(x_i)\).

\(F(x_i)\) represents an element of \(F(X)\). Since only the sufficient statistics are stored, this value must be provided.

◆ evaluate_derivative_LogJX()

virtual double IMP::isd::FStudentT::evaluate_derivative_LogJX ( ) const
virtual

Evaluate derivative of negative log-density wrt \(\log J(X)\).

◆ evaluate_derivative_nu()

virtual double IMP::isd::FStudentT::evaluate_derivative_nu ( ) const
virtual

Evaluate derivative of negative log-density wrt \(\nu\).

◆ evaluate_derivative_sigma()

virtual double IMP::isd::FStudentT::evaluate_derivative_sigma ( ) const
virtual

Evaluate derivative of negative log-density wrt \(\sigma\).

◆ get_FM()

double IMP::isd::FStudentT::get_FM ( )

Definition at line 145 of file FStudentT.h.

◆ get_LogJX()

double IMP::isd::FStudentT::get_LogJX ( )

Definition at line 144 of file FStudentT.h.

◆ get_N()

unsigned IMP::isd::FStudentT::get_N ( )

Definition at line 143 of file FStudentT.h.

◆ get_nu()

double IMP::isd::FStudentT::get_nu ( )

Definition at line 147 of file FStudentT.h.

◆ get_sigma()

double IMP::isd::FStudentT::get_sigma ( )

Definition at line 146 of file FStudentT.h.

◆ get_sumFX()

double IMP::isd::FStudentT::get_sumFX ( )

Get sufficient statistic for passed \(J(X)\) values.

Definition at line 141 of file FStudentT.h.

◆ get_sumFX2()

double IMP::isd::FStudentT::get_sumFX2 ( )

Definition at line 142 of file FStudentT.h.

◆ get_type_name()

virtual std::string IMP::isd::FStudentT::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::isd::OneDimensionalSufficientDistribution.

Definition at line 149 of file FStudentT.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::isd::FStudentT::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::isd::OneDimensionalSufficientDistribution.

Definition at line 149 of file FStudentT.h.

Here is the call graph for this function:

◆ set_FM()

void IMP::isd::FStudentT::set_FM ( double v)

Definition at line 136 of file FStudentT.h.

◆ set_LogJX()

void IMP::isd::FStudentT::set_LogJX ( double v)

Definition at line 135 of file FStudentT.h.

◆ set_N()

void IMP::isd::FStudentT::set_N ( unsigned v)

Definition at line 134 of file FStudentT.h.

◆ set_nu()

void IMP::isd::FStudentT::set_nu ( double v)

Definition at line 138 of file FStudentT.h.

◆ set_sigma()

void IMP::isd::FStudentT::set_sigma ( double v)

Definition at line 137 of file FStudentT.h.

◆ set_sumFX()

void IMP::isd::FStudentT::set_sumFX ( double v)

Definition at line 132 of file FStudentT.h.

◆ set_sumFX2()

void IMP::isd::FStudentT::set_sumFX2 ( double v)

Definition at line 133 of file FStudentT.h.

◆ update_cached_values()

void IMP::isd::FStudentT::update_cached_values ( ) const

Update cached intermediate values.

This method is automatically called during evaluation. If evaluating derivatives after modifying parameters but before evaluation, this method must be manually called.

◆ update_sufficient_statistics()

void IMP::isd::FStudentT::update_sufficient_statistics ( Floats FXs,
Floats JXs )

Update sufficient statistics with values and derivatives.

Definition at line 97 of file FStudentT.h.


The documentation for this class was generated from the following file: