# Statistilised funktsioonid, 5. osa

## SKEWP

Calculates the skewness of a distribution using the population of a random variable.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.1

### Süntaks

SKEWP(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are up to 30 numerical values or ranges.

Calculates the skewness of a distribution using the population, i.e. the possible outcomes, of a random variable. The sequence shall contain three numbers at least.

This function is part of the Open Document Format for Office Applications (OpenDocument) standard Version 1.2. (ISO/IEC 26300:2-2015)

### Näited

SKEWP(2;3;1;6;8;5) returns 0.2828158928

SKEWP(A1:A6) returns 0.2828158928, when the range A1:A6 contains {2;3;1;6;8;5}

SKEWP(Number1; Number2) always returns zero, if Number1 and Number2 results in two numbers.

SKEWP(Number1) returns Err:502 (Invalid argument) if Number1 results in one number, because SKEWP cannot be calculated with one value.

## DEVSQ

Returns the sum of squares of deviations based on a sample mean.

#### Süntaks

DEVSQ(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing a sample.

=DEVSQ(A1:A50)

## FORECAST

Extrapolates future values based on existing x and y values.

#### Süntaks

FORECAST(väärtus; andmed_Y; andmed_X)

Value is the x value, for which the y value on the linear regression is to be returned.

DataY is the array or range of known y's.

DataX is the array or range of known x's.

#### Näide

=FORECAST(50;A1:A50;B1;B50) returns the Y value expected for the X value of 50 if the X and Y values in both references are linked by a linear trend.

## FORECAST.LINEAR

Extrapolates future values based on existing x and y values.

#### Süntaks

FORECAST.LINEAR(Value; DataY; DataX)

Value is the x value, for which the y value on the linear regression is to be returned.

DataY is the array or range of known y's.

DataX is the array or range of known x's.

#### Näide

=FORECAST.LINEAR(50;A1:A50;B1;B50) returns the Y value expected for the X value of 50 if the X and Y values in both references are linked by a linear trend.

## NORM.S.DIST

Returns the standard normal cumulative distribution function. The distribution has a mean of zero and a standard deviation of one.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

NORM.S.DIST(Number; Cumulative)

Number is the value to which the standard normal cumulative distribution is calculated.

Cumulative 0 or FALSE calculates the probability density function. Any other value or TRUE calculates the cumulative distribution function.

#### Näide

=NORM.S.DIST(1;0) returns 0.2419707245.

=NORM.S.DIST(1;1) returns 0.8413447461. The area below the standard normal distribution curve to the left of X value 1 is 84% of the total area.

## NORM.S.INV

Returns the inverse of the standard normal cumulative distribution.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

NORM.S.INV(Number)

Number is the probability to which the inverse standard normal distribution is calculated.

#### Näide

=NORM.S.INV(0.908789) returns 1.333334673.

## NORMSDIST

Returns the standard normal cumulative distribution function. The distribution has a mean of zero and a standard deviation of one.

Selleks on GAUSS(x)=NORMSDIST(x)-0,5

#### Süntaks

NORMSDIST(arv)

Number is the value to which the standard normal cumulative distribution is calculated.

#### Näide

=NORMSDIST(1) returns 0.84. The area below the standard normal distribution curve to the left of X value 1 is 84% of the total area.

## NORMSINV

Returns the inverse of the standard normal cumulative distribution.

#### Süntaks

NORMSINV(Number)

Number is the probability to which the inverse standard normal distribution is calculated.

#### Näide

=NORMSINV(0.908789) returns 1.3333.

## PERMUT

Tagastab antud arvu objektide permutatsioonide arvu.

#### Süntaks

PERMUT(arv1; arv2)

Count1 is the total number of objects.

Count2 is the number of objects in each permutation.

#### Näide

=PERMUT(6;3) returns 120. There are 120 different possibilities, to pick a sequence of 3 playing cards out of 6 playing cards.

## PERMUTATIONA

Returns the number of permutations for a given number of objects (repetition allowed).

#### Süntaks

PERMUTATIONA(arv1; arv2)

Count1 is the total number of objects.

Count2 is the number of objects in each permutation.

#### Näide

How often can 2 objects be selected from a total of 11 objects?

=PERMUTATIONA(11;2) returns 121.

=PERMUTATIONA(6;3) returns 216. There are 216 different possibilities to put a sequence of 3 playing cards together out of six playing cards if every card is returned before the next one is drawn.

## PROB

Returns the probability that values in a range are between two limits. If there is no End value, this function calculates the probability based on the principle that the Data values are equal to the value of Start.

#### Süntaks

PROB(Data; Probability; Start; End)

Data is the array or range of data in the sample.

Probability is the array or range of the corresponding probabilities.

Start is the start value of the interval whose probabilities are to be summed.

End (optional) is the end value of the interval whose probabilities are to be summed. If this parameter is missing, the probability for the Start value is calculated.

#### Näide

=PROB(A1:A50;B1:B50;50;60) returns the probability with which a value within the range of A1:A50 is also within the limits between 50 and 60. Every value within the range of A1:A50 has a probability within the range of B1:B50.

## RANK

Returns the rank of a number in a sample.

#### Süntaks

RANK(Väärtus; Andmed; Tüüp)

Value is the value, whose rank is to be determined.

Data is the array or range of data in the sample.

Type (optional) is the sequence order.

Type = 0 means descending from the last item of the array to the first (this is the default),

Type = 1 means ascending from the first item of the range to the last.

#### Näide

=RANK(A10;A1:A50) returns the ranking of the value in A10 in value range A1:A50. If Value does not exist within the range an error message is displayed.

## RANK.AVG

Returns the statistical rank of a given value, within a supplied array of values. If there are duplicate values in the list, the average rank is returned.

The difference between RANK.AVG and RANK.EQ occurs when there are duplicates in the list of values. The RANK.EQ function returns the lower rank, whereas the RANK.AVG function returns the average rank.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

RANK.AVG(Value; Data; Type)

Value is the value, whose rank is to be determined.

Data is the array or range of data in the sample.

Type (optional) is the sequence order.

Type = 0 means descending from the last item of the array to the first (this is the default),

Type = 1 means ascending from the first item of the range to the last.

#### Näide

=RANK.AVG(A10;A1:A50) returns the ranking of the value in A10 in value range A1:A50. If Value does not exist within the range an error message is displayed.

## RANK.EQ

Returns the statistical rank of a given value, within a supplied array of values. If there are duplicate values in the list, these are given the same rank.

The difference between RANK.AVG and RANK.EQ occurs when there are duplicates in the list of values. The RANK.EQ function returns the lower rank, whereas the RANK.AVG function returns the average rank.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

RANK.EQ(Value; Data; Type)

Value is the value, whose rank is to be determined.

Data is the array or range of data in the sample.

Type (optional) is the sequence order.

Type = 0 means descending from the last item of the array to the first (this is the default),

Type = 1 means ascending from the first item of the range to the last.

#### Näide

=RANK.EQ(A10;A1:A50) returns the ranking of the value in A10 in value range A1:A50. If Value does not exist within the range an error message is displayed.

## SKEW

Returns the skewness of a distribution.

#### Süntaks

SKEW(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges.

#### Näide

=SKEW(A1:A50) calculates the value of skew for the data referenced.

## SLOPE

Returns the slope of the linear regression line. The slope is adapted to the data points set in the y and x values.

#### Süntaks

SLOPE(andmed_Y; andmed_X)

DataY is the array or matrix of Y data.

DataX is the array or matrix of X data.

#### Näide

=SLOPE(A1:A50;B1:B50)

## STANDARDIZE

Converts a random variable to a normalized value.

#### Süntaks

STANDARDIZE(arv; keskmine; stdev)

Number is the value to be standardized.

Mean is the arithmetic mean of the distribution.

StDev is the standard deviation of the distribution.

#### Näide

=STANDARDIZE(11;10;1) returns 1. The value 11 in a normal distribution with a mean of 10 and a standard deviation of 1 is as much above the mean of 10, as the value 1 is above the mean of the standard normal distribution.

## STDEV

Estimates the standard deviation based on a sample.

#### Süntaks

STDEV(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing a sample based on an entire population.

#### Näide

=STDEV(A1:A50) returns the estimated standard deviation based on the data referenced.

## STDEV.P

Calculates the standard deviation based on the entire population.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.2

#### Süntaks

STDEV.P(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing an entire population.

#### Näide

=STDEV.P(A1:A50) returns a standard deviation of the data referenced.

## STDEV.S

Calculates the standard deviation based on sample of the population.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.2

#### Süntaks

STDEV.S(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing a sample of the population.

#### Näide

=STDEV.S(A1:A50) returns a standard deviation of the data referenced.

## STDEVA

Calculates the standard deviation of an estimation based on a sample.

#### Süntaks

STDEVA(Value1; Value2; ...; Value30)

Value1, Value2, ..., Value30 are values or ranges representing a sample derived from an entire population. Text has the value 0.

#### Näide

=STDEVA(A1:A50) returns the estimated standard deviation based on the data referenced.

## STDEVP

Calculates the standard deviation based on the entire population.

#### Süntaks

STDEVP(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing an entire population.

#### Näide

=STDEVP(A1:A50) returns a standard deviation of the data referenced.

## STDEVPA

Calculates the standard deviation based on the entire population.

#### Süntaks

STDEVPA(Value1; Value2; ...; Value30)

Value1, Value2, ..., Value30 are values or ranges representing an entire population. Text has the value 0.

#### Näide

=STDEVPA(A1:A50) returns the standard deviation of the data referenced.

## STEYX

Returns the standard error of the predicted y value for each x in the regression.

#### Süntaks

STEYX(andmed_Y; andmed_X)

DataY is the array or matrix of Y data.

DataX is the array or matrix of X data.

#### Näide

=STEYX(A1:A50;B1:B50)

## T.DIST

Tagastab t-jaotuse.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

T.DIST(Number; DegreesFreedom; Cumulative)

Number is the value for which the t-distribution is calculated.

DegreesFreedom is the number of degrees of freedom for the t-distribution.

Cumulative = 0 or FALSE returns the probability density function, 1 or TRUE returns the cumulative distribution function.

#### Näide

=T.DIST(1; 10; TRUE) returns 0.8295534338

## T.DIST.2T

Calculates the two-tailed Student's T Distribution, which is a continuous probability distribution that is frequently used for testing hypotheses on small sample data sets.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

T.DIST.2T(Number; DegreesFreedom)

Number is the value for which the t-distribution is calculated.

DegreesFreedom is the number of degrees of freedom for the t-distribution.

#### Näide

=T.DIST.2T(1; 10) returns 0.3408931323.

## T.DIST.RT

Calculates the right-tailed Student's T Distribution, which is a continuous probability distribution that is frequently used for testing hypotheses on small sample data sets.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

T.DIST.RT(Number; DegreesFreedom)

Number is the value for which the t-distribution is calculated.

DegreesFreedom is the number of degrees of freedom for the t-distribution.

#### Näide

=T.DIST.RT(1; 10) returns 0.1704465662.

## T.INV

Returns the one tailed inverse of the t-distribution.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

T.INV(Number; DegreesFreedom)

Number is the probability associated with the one-tailed t-distribution.

DegreesFreedom is the number of degrees of freedom for the t-distribution.

#### Näide

=T.INV(0.1;6) returns -1.4397557473.

## T.INV.2T

Calculates the inverse of the two-tailed Student's T Distribution , which is a continuous probability distribution that is frequently used for testing hypotheses on small sample data sets.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

T.INV.2T(Number; DegreesFreedom)

Number is the probability associated with the two-tailed t-distribution.

DegreesFreedom is the number of degrees of freedom for the t-distribution.

#### Näide

=T.INV.2T(0.25; 10) returns 1.221255395.

## T.TEST

Returns the probability associated with a Student's t-Test.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.3

#### Süntaks

T.TEST(Data1; Data2; Mode; Type)

Data1 is the dependent array or range of data for the first record.

Data2 is the dependent array or range of data for the second record.

Mode = 1 calculates the one-tailed test, Mode = 2 the two- tailed test.

Type is the kind of t-test to perform. Type 1 means paired. Type 2 means two samples, equal variance (homoscedastic). Type 3 means two samples, unequal variance (heteroscedastic).

#### Näide

=T.TEST(A1:A50;B1:B50;2;2)

## TDIST

Tagastab t-jaotuse.

#### Süntaks

Number is the value for which the t-distribution is calculated.

DegreesFreedom is the number of degrees of freedom for the t-distribution.

Mode = 1 returns the one-tailed test, Mode = 2 returns the two-tailed test.

=TDIST(12;5;1)

## TINV

Tagastab t-pöördjaotuse.

#### Süntaks

Number is the probability associated with the two-tailed t-distribution.

DegreesFreedom is the number of degrees of freedom for the t-distribution.

#### Näide

=TINV(0,1;6) tagastab 1,94

## TTEST

Returns the probability associated with a Student's t-Test.

#### Süntaks

TTEST(andmed1; andmed2; režiim; tüüp)

Data1 is the dependent array or range of data for the first record.

Data2 is the dependent array or range of data for the second record.

Mode = 1 calculates the one-tailed test, Mode = 2 the two- tailed test.

Type is the kind of t-test to perform. Type 1 means paired. Type 2 means two samples, equal variance (homoscedastic). Type 3 means two samples, unequal variance (heteroscedastic).

#### Näide

=TTEST(A1:A50;B1:B50;2;2)

## VAR

Estimates the variance based on a sample.

#### Süntaks

VAR(Number1 ; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing a sample based on an entire population.

=VAR(A1:A50)

## VAR.P

Calculates a variance based on the entire population.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.2

#### Süntaks

VAR.P(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing an entire population.

=VAR.P(A1:A50)

## VAR.S

Estimates the variance based on a sample.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.2

#### Süntaks

VAR.S(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing a sample based on an entire population.

=VAR.S(A1:A50)

## VARA

Estimates a variance based on a sample. The value of text is 0.

#### Süntaks

VARA(Value1; Value2; ...; Value30)

Value1, Value2, ..., Value30 are values or ranges representing a sample derived from an entire population. Text has the value 0.

=VARA(A1:A50)

## VARP

Calculates a variance based on the entire population.

#### Süntaks

VARP(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are numerical values or ranges representing an entire population.

=VARP(A1:A50)

## VARPA

Arvutab kogu populatsioonil põhineva dispersiooni. Teksti väärtus on 0.

#### Süntaks

VARPA(Value1; Value2; ...; Value30)

Value1, Value2, ..., Value30 are values or ranges representing an entire population.

=VARPA(A1:A50)

## WEIBULL

Tagastab Weibulli jaotuse väärtused.

The Weibull distribution is a continuous probability distribution, with parameters Alpha > 0 (shape) and Beta > 0 (scale).

If C is 0, WEIBULL calculates the probability density function.

If C is 1, WEIBULL calculates the cumulative distribution function.

#### Süntaks

WEIBULL(Arv; Alfa; Beeta; C)

Number is the value at which to calculate the Weibull distribution.

Alpha is the shape parameter of the Weibull distribution.

Beta is the scale parameter of the Weibull distribution.

C indicates the type of function.

#### Näide

=WEIBULL(2;1;1;1) returns 0.86.

## WEIBULL.DIST

Returns the values of the Weibull distribution.

The Weibull distribution is a continuous probability distribution, with parameters Alpha > 0 (shape) and Beta > 0 (scale).

If C is 0, WEIBULL.DIST calculates the probability density function.

If C is 1, WEIBULL.DIST calculates the cumulative distribution function.

See funktsioon on saadaval alates LibreOffice'i versioonist 4.2

#### Süntaks

WEIBULL.DIST(Number; Alpha; Beta; C)

Number is the value at which to calculate the Weibull distribution.

Alpha is the shape parameter of the Weibull distribution.

Beta is the scale parameter of the Weibull distribution.

C indicates the type of function.

#### Näide

=WEIBULL.DIST(2;1;1;1) returns 0.8646647168.