STK++ 0.9.13
|
Student distribution law. More...
#include <STK_Law_Student.h>
Public Types | |
typedef IUnivLaw< Real > | Base |
Public Member Functions | |
Student (int df=1.) | |
Default constructor. | |
virtual | ~Student () |
destructor | |
int | df () const |
void | setDf (int df) |
virtual Real | rand () const |
virtual Real | pdf (Real const &x) const |
virtual Real | lpdf (Real const &x) const |
virtual Real | cdf (Real const &t) const |
virtual Real | icdf (Real const &p) const |
![]() | |
virtual | ~IUnivLaw () |
Virtual destructor. | |
virtual Real | lcdf (Real const &t) const |
compute the lower tail log-cumulative distribution function Give the log-probability that a random variate is less or equal to t. | |
virtual Real | cdfc (Real const &t) const |
calculate the complement of cumulative distribution function, called in statistics the survival function. | |
virtual Real | lcdfc (Real const &t) const |
calculate the log-complement of cumulative distribution function Give the log-probability that a random variate is greater than t. | |
![]() | |
String const & | name () const |
Static Public Member Functions | |
static Real | rand (int df) |
static Real | pdf (Real const &x, int df) |
static Real | lpdf (Real const &x, int df) |
static Real | cdf (Real const &t, int df) |
static Real | icdf (Real const &p, int df) |
Protected Attributes | |
int | df_ |
degree of freedom | |
![]() | |
String | name_ |
Name of the Law. | |
Additional Inherited Members | |
![]() | |
IUnivLaw (String const &name) | |
Constructor. | |
IUnivLaw (IUnivLaw const &law) | |
copy Constructor. | |
![]() | |
ILawBase (String const &name) | |
Constructor. | |
~ILawBase () | |
destructor. | |
Student distribution law.
In probability and statistics, Student's t-distribution (or simply the t-distribution) is any member of a family of continuous probability distributions that arises when estimating the mean of a normally distributed population in situations where the sample size is small and population standard deviation is unknown. Whereas a normal distribution describes a full population, t-distributions describe samples drawn from a full population; accordingly, the t-distribution for each sample size is different, and the larger the sample, the more the distribution resembles a normal distribution.
The t-distribution plays a role in a number of widely used statistical analyses, including the Student's t-test for assessing the statistical significance of the difference between two sample means, the construction of confidence intervals for the difference between two population means, and in linear regression analysis. The Student's t-distribution also arises in the Bayesian analysis of data from a normal family
Student's t-distribution has the probability density function given by
where
Definition at line 72 of file STK_Law_Student.h.
Definition at line 75 of file STK_Law_Student.h.
|
inline |
Default constructor.
df | degree of freedom parameter |
Definition at line 79 of file STK_Law_Student.h.
|
inlinevirtual |
t | a positive real value |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 69 of file STK_Law_Student.cpp.
t | a positive real value |
df | degree of freedom parameter |
Definition at line 108 of file STK_Law_Student.cpp.
|
inline |
Definition at line 83 of file STK_Law_Student.h.
References df_.
Referenced by setDf().
p | a probability number |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 76 of file STK_Law_Student.cpp.
p | a probability number |
df | degree of freedom parameter |
Definition at line 116 of file STK_Law_Student.cpp.
x | a positive real value |
Reimplemented from STK::Law::IUnivLaw< Real >.
Definition at line 62 of file STK_Law_Student.cpp.
x | a positive real value |
df | degree of freedom parameter |
Definition at line 100 of file STK_Law_Student.cpp.
x | a positive real value |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 55 of file STK_Law_Student.cpp.
x | a positive real value |
df | degree of freedom parameter |
Definition at line 92 of file STK_Law_Student.cpp.
|
virtual |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 48 of file STK_Law_Student.cpp.
df | degree of freedom parameter |
Definition at line 84 of file STK_Law_Student.cpp.
df | degree of freedom parameter |
Definition at line 85 of file STK_Law_Student.h.
References df(), df_, and STKDOMAIN_ERROR_1ARG.
|
protected |
degree of freedom
Definition at line 145 of file STK_Law_Student.h.