TTest Module

Types

Type Description

Tails

Union type indicating whether One Tail or Two Tail Student's T critical value is desired.

Functions and values

Function or value Description

getCriticalTValue df significanceLevel tailed

Full Usage: getCriticalTValue df significanceLevel tailed

Parameters:
    df : float - Confidence Level
    significanceLevel : float - Significance Level
    tailed : Tails - One Tail vs Two Tail

Returns: float

Calculates the Student's T critical values

df : float

Confidence Level

significanceLevel : float

Significance Level

tailed : Tails

One Tail vs Two Tail

Returns: float

oneSample sample1 mu

Full Usage: oneSample sample1 mu

Parameters:
    sample1 : Vector<float>
    mu : float

Returns: TTestStatistics
sample1 : Vector<float>
mu : float
Returns: TTestStatistics

oneSampleFromMeanAndStDev (mean, stDev, n) mu

Full Usage: oneSampleFromMeanAndStDev (mean, stDev, n) mu

Parameters:
    mean : float
    stDev : float
    n : float
    mu : float

Returns: TTestStatistics
mean : float
stDev : float
n : float
mu : float
Returns: TTestStatistics

twoSample assumeEqualVariances sample1 sample2

Full Usage: twoSample assumeEqualVariances sample1 sample2

Parameters:
    assumeEqualVariances : bool
    sample1 : Vector<float>
    sample2 : Vector<float>

Returns: TTestStatistics

Computes a t-test or a Welch test (unequal variances)

assumeEqualVariances : bool
sample1 : Vector<float>
sample2 : Vector<float>
Returns: TTestStatistics

twoSampleFromMeanAndVar assumeEqualVariances (mean1, variance1, n1) (mean2, variance2, n2)

Full Usage: twoSampleFromMeanAndVar assumeEqualVariances (mean1, variance1, n1) (mean2, variance2, n2)

Parameters:
    assumeEqualVariances : bool
    mean1 : float
    variance1 : float
    n1 : float
    mean2 : float
    variance2 : float
    n2 : float

Returns: TTestStatistics
assumeEqualVariances : bool
mean1 : float
variance1 : float
n1 : float
mean2 : float
variance2 : float
n2 : float
Returns: TTestStatistics

twoSamplePaired sample1 sample2

Full Usage: twoSamplePaired sample1 sample2

Parameters:
Returns: TTestStatistics

which observations in one sample can be paired with observations in the other sample.

sample1 : Vector<float>
sample2 : Vector<float>
Returns: TTestStatistics