# Statistical Functions Part Two

\<bookmark_value\>FDIST function\</bookmark_value\>

## F.DIST.RT

Calculates the values of the right tail of the F distribution.

#### Syntax

FDIST(Number; degrees_freedom_1; degrees_freedom_2)

\<emph\>Number\</emph\> is the value for which the F distribution is to be calculated.

\<emph\>degrees_freedom_1\</emph\> is the degrees of freedom in the numerator in the F distribution.

\<emph\>degrees_freedom_2\</emph\> is the degrees of freedom in the denominator in the F distribution.

#### Example

=FDIST(0.8; 8; 12) yields 0.61.

#### Technical information

This function is available since LibreOffice 4.2.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.F.DIST.RT

\<bookmark_value\>FINV function\</bookmark_value\>\<bookmark_value\>inverse F probability distribution\</bookmark_value\>

## F.INV.RT

Returns the inverse right tail of the F distribution.

#### Syntax

FINV(Number; degrees_freedom_1; degrees_freedom_2)

\<emph\>Number\</emph\> is probability value for which the inverse F distribution is to be calculated.

\<emph\>degrees_freedom_1\</emph\> is the number of degrees of freedom in the numerator of the F distribution.

\<emph\>degrees_freedom_2\</emph\> is the number of degrees of freedom in the denominator of the F distribution.

#### Example

=FINV(0.5; 5; 10) yields 0.93.

#### Technical information

This function is available since LibreOffice 4.2.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.F.INV.RT

\<bookmark_value\>FDIST function\</bookmark_value\>

## FDIST

Calculates the values of an F distribution.

#### Syntax

FDIST(Number; degrees_freedom_1; degrees_freedom_2)

\<emph\>Number\</emph\> is the value for which the F distribution is to be calculated.

\<emph\>degrees_freedom_1\</emph\> is the degrees of freedom in the numerator in the F distribution.

\<emph\>degrees_freedom_2\</emph\> is the degrees of freedom in the denominator in the F distribution.

#### Example

=FDIST(0.8; 8; 12) yields 0.61.

\<bookmark_value\>FDIST function\</bookmark_value\>

## FDIST

Calculates the values of the left tail of the F distribution.

#### Syntax

F.DIST(Number; DegreesFreedom1; DegreesFreedom2 [; Cumulative])

\<emph\>Number\</emph\> is the value for which the F distribution is to be calculated.

\<emph\>degrees_freedom_1\</emph\> is the degrees of freedom in the numerator in the F distribution.

\<emph\>degrees_freedom_2\</emph\> is the degrees of freedom in the denominator in the F distribution.

\<emph\>C\</emph\> = 0 calculates the density function \<emph\>C\</emph\> = 1 the distribution.

#### Example

=FDIST(0.8; 8; 12) yields 0.61.

=FDIST(0.8; 8; 12) yields 0.61.

#### Technical information

This function is available since LibreOffice 4.2.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.F.DIST

\<bookmark_value\>FINV function\</bookmark_value\>\<bookmark_value\>inverse F probability distribution\</bookmark_value\>

## FINV

Returns the inverse of the F probability distribution. The F distribution is used for F tests in order to set the relation between two differing data sets.

#### Syntax

FINV(Number; degrees_freedom_1; degrees_freedom_2)

\<emph\>Number\</emph\> is probability value for which the inverse F distribution is to be calculated.

\<emph\>degrees_freedom_1\</emph\> is the number of degrees of freedom in the numerator of the F distribution.

\<emph\>degrees_freedom_2\</emph\> is the number of degrees of freedom in the denominator of the F distribution.

#### Example

=FINV(0.5; 5; 10) yields 0.93.

\<bookmark_value\>FINV function\</bookmark_value\>\<bookmark_value\>inverse F probability distribution\</bookmark_value\>

## FINV

Returns the inverse of the cumulative F distribution. The F distribution is used for F tests in order to set the relation between two differing data sets.

#### Syntax

FINV(Number; degrees_freedom_1; degrees_freedom_2)

\<emph\>Number\</emph\> is probability value for which the inverse F distribution is to be calculated.

\<emph\>degrees_freedom_1\</emph\> is the number of degrees of freedom in the numerator of the F distribution.

\<emph\>degrees_freedom_2\</emph\> is the number of degrees of freedom in the denominator of the F distribution.

#### Example

=FINV(0.5; 5; 10) yields 0.93.

#### Technical information

This function is available since LibreOffice 4.2.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.F.INV

\<bookmark_value\>FISHER function\</bookmark_value\>

## FISHER

Returns the Fisher transformation for x and creates a function close to a normal distribution.

#### Syntax

FISHER(Number)

\<emph\>Number\</emph\> is the value to be transformed.

#### Example

=FISHER(0.5) yields 0.55.

\<bookmark_value\>FISHERINV function\</bookmark_value\>\<bookmark_value\>inverse of Fisher transformation\</bookmark_value\>

## FISHERINV

Returns the inverse of the Fisher transformation for x and creates a function close to a normal distribution.

#### Syntax

FISHERINV(Number)

\<emph\>Number\</emph\> is the value that is to undergo reverse-transformation.

#### Example

=FISHERINV(0.5) yields 0.46.

\<bookmark_value\>FTEST function\</bookmark_value\>

## FTEST

Returns the result of an F test.

#### Syntax

FTEST(Data_1; Data_2)

\<emph\>Data_1\</emph\> is the first record array.

\<emph\>Data_2\</emph\> is the second record array.

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.

#### Example

=FTEST(A1:A30; B1:B12) calculates whether the two data sets are different in their variance and returns the probability that both sets could have come from the same total population.

\<bookmark_value\>FTEST function\</bookmark_value\>

## FTEST

Returns the result of an F test.

#### Syntax

FTEST(Data_1; Data_2)

\<emph\>Data_1\</emph\> is the first record array.

\<emph\>Data_2\</emph\> is the second record array.

#### Example

=FTEST(A1:A30; B1:B12) calculates whether the two data sets are different in their variance and returns the probability that both sets could have come from the same total population.

#### Technical information

This function is available since LibreOffice 4.2.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.F.TEST

\<bookmark_value\>GAMMAINV function\</bookmark_value\>

## GAMMA

Returns the Gamma function value. Note that GAMMAINV is not the inverse of GAMMA, but of GAMMADIST.

#### Syntax

GAMMA(Number)

\<emph\>Number\</emph\> is the value for which the Gamma distribution is to be calculated.

Returns the values of a Gamma distribution.

The inverse function is GAMMAINV.

#### Syntax

\<emph\>Number\</emph\> is the value for which the Gamma distribution is to be calculated.

\<emph\>Alpha\</emph\> is the parameter Alpha of the Gamma distribution.

Beta is the parameter Beta of the Gamma distribution.

\<emph\>C\</emph\> = 0 calculates the density function \<emph\>C\</emph\> = 1 the distribution.

#### Example

=GAMMADIST(2; 1; 1; 1) yields 0.86.

Returns the values of a Gamma distribution.

The inverse function is GAMMAINV or GAMMA.INV.

This function is similar to GAMMADIST and was introduced for interoperability with other office suites.

#### Syntax

GAMMA.DIST(Number; Alpha; Beta; Cumulative)

\<emph\>Number\</emph\> is the value for which the Gamma distribution is to be calculated.

\<emph\>Alpha\</emph\> is the parameter Alpha of the Gamma distribution.

Beta is the parameter Beta of the Gamma distribution.

Cumulative = 0 or False calculates the probability density function; Cumulative = 1, True, or any other value calculates the cumulative distribution function.

#### Example

=GAMMADIST(2; 1; 1; 1) yields 0.86.

#### Technical information

This function is available since LibreOffice 4.3.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.GAMMA.DIST

\<bookmark_value\>GAMMAINV function\</bookmark_value\>

## GAMMAINV

Returns the inverse of the Gamma cumulative distribution GAMMADIST. This function allows you to search for variables with different distribution.

#### Syntax

GAMMAINV(Number; Alpha; Beta)

\<emph\>Number\</emph\> is the probability value for which the inverse Gamma distribution is to be calculated.

\<emph\>Alpha\</emph\> is the parameter Alpha of the Gamma distribution.

\<emph\>Beta\</emph\> is the parameter Beta of the Gamma distribution.

#### Example

=GAMMAINV(0.8; 1; 1) yields 1.61.

\<bookmark_value\>GAMMAINV function\</bookmark_value\>

## GAMMAINV

Returns the inverse of the Gamma cumulative distribution GAMMADIST. This function allows you to search for variables with different distribution.

This function is identical to GAMMAINV and was introduced for interoperability with other office suites.

#### Syntax

GAMMAINV(Number; Alpha; Beta)

\<emph\>Number\</emph\> is the probability value for which the inverse Gamma distribution is to be calculated.

\<emph\>Alpha\</emph\> is the parameter Alpha of the Gamma distribution.

\<emph\>Beta\</emph\> is the parameter Beta of the Gamma distribution.

#### Example

=GAMMAINV(0.8; 1; 1) yields 1.61.

#### Technical information

This function is available since LibreOffice 4.3.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.GAMMA.INV

\<bookmark_value\>GAMMALN function\</bookmark_value\>\<bookmark_value\>natural logarithm of Gamma function\</bookmark_value\>

## GAMMALN

Returns the natural logarithm of the Gamma function: G(x).

#### Syntax

GAMMALN(Number)

\<emph\>Number\</emph\> is the value for which the natural logarithm of the Gamma function is to be calculated.

#### Example

=GAMMALN(2) yields 0.

\<bookmark_value\>GAMMALN function\</bookmark_value\>\<bookmark_value\>natural logarithm of Gamma function\</bookmark_value\>

## GAMMALN.PRECISE

Returns the natural logarithm of the Gamma function: G(x).

#### Syntax

GAMMALN.PRECISE(Number)

\<emph\>Number\</emph\> is the value for which the natural logarithm of the Gamma function is to be calculated.

#### Example

=GAMMALN(2) yields 0.

#### Technical information

This function is available since LibreOffice 4.3.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.GAMMALN.PRECISE

\<bookmark_value\>GAUSS function\</bookmark_value\>\<bookmark_value\>normal distribution; standard\</bookmark_value\>

## GAUSS

Returns the standard normal cumulative distribution.

It is GAUSS(x)=NORMSDIST(x)-0.5

#### Syntax

GAUSS(number)

\<emph\>Number\</emph\> is the value for which the value of the standard normal distribution is to be calculated.

#### Example

GAUSS(0.19) = 0.08

GAUSS(0.0375) = 0.01

\<bookmark_value\>GEOMEAN function\</bookmark_value\>\<bookmark_value\>means;geometric\</bookmark_value\>

## GEOMEAN

Returns the geometric mean of a sample.

#### Syntax

GEOMEAN(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.

#### Example

GEOMEAN(23; 46; 69) = 41.79. The geometric mean value of this random sample is therefore 41.79.

\<bookmark_value\>HARMEAN function\</bookmark_value\>\<bookmark_value\>means;harmonic\</bookmark_value\>

## HARMEAN

Returns the harmonic mean of a data set.

#### Syntax

HARMEAN(Number 1 [; Number 2 [; … [; Number 255]]])

Number 1, Number 2, … , Number 255 are numbers, references to cells or to cell ranges of numbers.

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.

#### Example

HARMEAN(23;46;69) = 37.64. The harmonic mean of this random sample is thus 37.64

\<bookmark_value\>HYPGEOMDIST function\</bookmark_value\>\<bookmark_value\>sampling without replacement\</bookmark_value\>

## HYPGEOMDIST

Returns the hypergeometric distribution.

#### Syntax

HYPGEOMDIST(X; NSample; Successes; NPopulation [; Cumulative])

\<emph\>X\</emph\> is the number of results achieved in the random sample.

\<emph\>N_sample\</emph\> is the size of the random sample.

\<emph\>Successes\</emph\> is the number of possible results in the total population.

\<emph\>N_population \</emph\>is the size of the total population.

Cumulative (optional) specifies whether to calculate the probability mass function (FALSE or 0) or the cumulative distribution function (any other value). The probability mass function is the default if no value is specified for this parameter.

#### Example

=HYPGEOMDIST(2; 2; 90; 100) yields 0.81. If 90 out of 100 pieces of buttered toast fall from the table and hit the floor with the buttered side first, then if 2 pieces of buttered toast are dropped from the table, the probability is 81%, that both will strike buttered side first.

\<bookmark_value\>HYPGEOMDIST function\</bookmark_value\>\<bookmark_value\>sampling without replacement\</bookmark_value\>

## HYPGEOMDIST

Returns the hypergeometric distribution.

#### Syntax

HYPGEOMDIST(X; N_sample; Successes; N_population)

\<emph\>X\</emph\> is the number of results achieved in the random sample.

\<emph\>N_sample\</emph\> is the size of the random sample.

\<emph\>Successes\</emph\> is the number of possible results in the total population.

\<emph\>N_population \</emph\>is the size of the total population.

Cumulative : 0 or False calculates the probability density function. Other values or True calculates the cumulative distribution function.

#### Example

=HYPGEOMDIST(2; 2; 90; 100) yields 0.81. If 90 out of 100 pieces of buttered toast fall from the table and hit the floor with the buttered side first, then if 2 pieces of buttered toast are dropped from the table, the probability is 81%, that both will strike buttered side first.

=HYPGEOM.DIST(2;2;90;100;1) yields 1.

#### Technical information

This function is available since LibreOffice 4.2.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.HYPGEOM.DIST

\<bookmark_value\>TRIMMEAN function\</bookmark_value\>\<bookmark_value\>means;of data set without margin data\</bookmark_value\>

## TRIMMEAN

Returns the mean of a data set without the Alpha percent of data at the margins.

#### Syntax

TRIMMEAN(Data; Alpha)

\<emph\>Data\</emph\> is the array of data in the sample.

\<emph\>Alpha\</emph\> is the percentage of the marginal data that will not be taken into consideration.

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.

#### Example

=TRIMMEAN(A1:A50; 0.1) calculates the mean value of numbers in A1:A50, without taking into consideration the 5 percent of the values representing the highest values and the 5 percent of the values representing the lowest ones. The percentage numbers refer to the amount of the untrimmed mean value, not to the number of summands.

\<bookmark_value\>ZTEST function\</bookmark_value\>

## ZTEST

Calculates the probability of observing a z-statistic greater than the one computed based on a sample.

#### Syntax

ZTEST(Data; mu [; Sigma])

Data is the given sample, drawn from a normally distributed population.

mu is the known mean of the population.

Sigma (optional) is the known standard deviation of the population. If omitted, the standard deviation of the given sample is used.

This function ignores any text or empty cell within a data range. If you suspect wrong results from this function, look for text in the data ranges. To highlight text contents in a data range, use the value highlighting feature.

\<bookmark_value\>ZTEST function\</bookmark_value\>

## ZTEST

Calculates the probability of observing a z-statistic greater than the one computed based on a sample.

#### Syntax

Z.TEST(Data; mu [; Sigma])

Data is the given sample, drawn from a normally distributed population.

mu is the known mean of the population.

Sigma (optional) is the known standard deviation of the population. If omitted, the standard deviation of the given sample is used.

#### Example

=Z.TEST(A2:A20; 9; 2) returns the result of a z-test on a sample A2:A20 drawn from a population with known mean 9 and known standard deviation 2.

#### Technical information

This function is available since LibreOffice 4.3.

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.Z.TEST