Statistical Functions Part One

[text/scalc/01/func_countifs.xhp#countifs_head not found].

Returns the count of rows or columns that meet criteria in multiple ranges.

B

Returns the probability of a sample with binomial distribution.

Sintaksa

B(Trials; SP; T1; T2)

Broj je broj koji ce biti konvertovan

SP is the probability of success on each trial.

T1 defines the lower limit for the number of trials.

T2 (optional) defines the upper limit for the number of trials.

Primjer

What is the probability with ten throws of the dice, that a six will come up exactly twice? The probability of a six (or any other number) is 1/6. The following formula combines these factors:

=B(10;1/6;2) returns a probability of 29%.

BETADIST

Returns the beta function.

Sintaksa

BETADIST(Number; Alpha; Beta; Start; End; Cumulative)

Number is the value between Start and End at which to evaluate the function.

Alpha is a parameter to the distribution.

Beta is a parameter to the distribution.

Start (optional) is the lower bound for Number.

End (optional) is the upper bound for Number.

Cumulative (optional) can be 0 or False to calculate the probability density function. It can be any other value or True or omitted to calculate the cumulative distribution function.

U LibreOffice Calc funkciji, parametri označeni kao "izborni" mogu biti izostavljeni jedino kad ih ne slijede drugi parametri. Na primjer, u funkciji sa četiri parametra, u kojoj su zadnja dva označena kao “izborni", možete izostaviti parametar 4 ili parametre 3 i 4, ali ne možete izostaviti samo parametar 3.

Primjer

=OCT2BIN(3; 3) vraca string teksta 011.

BETADIST

Returns the beta function.

Sintaksa

BETA.DIST(Number; Alpha; Beta; Cumulative; Start; End)

Number (required) is the value between Start and End at which to evaluate the function.

Alpha (required) is a parameter to the distribution.

Beta (required) is a parameter to the distribution.

Cumulative (required) can be 0 or False to calculate the probability density function. It can be any other value or True to calculate the cumulative distribution function.

Start (optional) is the lower bound for Number.

End (optional) is the upper bound for Number.

U LibreOffice Calc funkciji, parametri označeni kao "izborni" mogu biti izostavljeni jedino kad ih ne slijede drugi parametri. Na primjer, u funkciji sa četiri parametra, u kojoj su zadnja dva označena kao “izborni", možete izostaviti parametar 4 ili parametre 3 i 4, ali ne možete izostaviti samo parametar 3.

Primjeri

=OCT2BIN(3; 3) vraca string teksta 011.

=OCT2BIN(3; 3) vraca string teksta 011.

BETAINV

Returns the inverse of the cumulative beta probability density function.

Sintaksa

BETAINV(Number; Alpha; Beta; Start; End)

Number is the value between Start and End at which to evaluate the function.

Alpha is a parameter to the distribution.

Beta is a parameter to the distribution.

Start (optional) is the lower bound for Number.

End (optional) is the upper bound for Number.

U LibreOffice Calc funkciji, parametri označeni kao "izborni" mogu biti izostavljeni jedino kad ih ne slijede drugi parametri. Na primjer, u funkciji sa četiri parametra, u kojoj su zadnja dva označena kao “izborni", možete izostaviti parametar 4 ili parametre 3 i 4, ali ne možete izostaviti samo parametar 3.

Primjer

=AND(A; B) returns FALSE

BETAINV

Returns the inverse of the cumulative beta probability density function.

Sintaksa

BETA.INV(Number; Alpha; Beta; Start; End)

Number is the value between Start and End at which to evaluate the function.

Alpha is a parameter to the distribution.

Beta is a parameter to the distribution.

Start (optional) is the lower bound for Number.

End (optional) is the upper bound for Number.

U LibreOffice Calc funkciji, parametri označeni kao "izborni" mogu biti izostavljeni jedino kad ih ne slijede drugi parametri. Na primjer, u funkciji sa četiri parametra, u kojoj su zadnja dva označena kao “izborni", možete izostaviti parametar 4 ili parametre 3 i 4, ali ne možete izostaviti samo parametar 3.

Primjer

=AND(A; B) returns FALSE

BINOM.INV

Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.

Sintaksa

BINOM.INV(Trials; SP; Alpha)

Trials The total number of trials.

SP is the probability of success on each trial.

Alpha The border probability that is attained or exceeded.

Primjer

=BINOM.INV(8;0.6;0.9) returns 7, the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.

BINOMDIST

Returns the individual term binomial distribution probability.

Sintaksa

BINOMDIST(X; Trials; SP; C)

X is the number of successes in a set of trials.

Broj je broj koji ce biti konvertovan

SP is the probability of success on each trial.

C = 0 calculates the probability of a single event and C = 1 calculates the cumulative probability.

Primjer

=BINOMDIST(A1;12;0.5;0) shows (if the values 0 to 12 are entered in A1) the probabilities for 12 flips of a coin that Heads will come up exactly the number of times entered in A1.

=BINOMDIST(A1;12;0.5;1) shows the cumulative probabilities for the same series. For example, if A1 = 4, the cumulative probability of the series is 0, 1, 2, 3 or 4 times Heads (non-exclusive OR).

BINOMDIST

Returns the individual term binomial distribution probability.

Sintaksa

BINOM.DIST(X; Trials; SP; C)

X is the number of successes in a set of trials.

Broj je broj koji ce biti konvertovan

SP is the probability of success on each trial.

C = 0 calculates the probability of a single event and C = 1 calculates the cumulative probability.

Primjer

=BINOM.DIST(A1;12;0.5;0) shows (if the values 0 to 12 are entered in A1) the probabilities for 12 flips of a coin that Heads will come up exactly the number of times entered in A1.

=BINOM.DIST(A1;12;0.5;1) shows the cumulative probabilities for the same series. For example, if A1 = 4, the cumulative probability of the series is 0, 1, 2, 3 or 4 times Heads (non-exclusive OR).

CHIDIST

Returns the probability value from the indicated Chi square that a hypothesis is confirmed. CHIDIST compares the Chi square value to be given for a random sample that is calculated from the sum of (observed value-expected value)^2/expected value for all values with the theoretical Chi square distribution and determines from this the probability of error for the hypothesis to be tested.

The probability determined by CHIDIST can also be determined by CHITEST.

Sintaksa

CHIDIST(Number; DegreesFreedom)

Number is the chi-square value of the random sample used to determine the error probability.

DegreesFreedom are the degrees of freedom of the experiment.

Primjer

=OCT2BIN(3; 3) vraca string teksta 011.

If the Chi square value of the random sample is 13.27 and if the experiment has 5 degrees of freedom, then the hypothesis is assured with a probability of error of 2%.

CHIINV

Returns the inverse of the one-tailed probability of the chi-squared distribution.

Sintaksa

CHIINV(Number; DegreesFreedom)

Broj je broj koji ce biti konvertovan

DegreesFreedom is the degrees of freedom of the experiment.

Primjer

A die is thrown 1020 times. The numbers on the die 1 through 6 come up 195, 151, 148, 189, 183 and 154 times (observation values). The hypothesis that the die is not fixed is to be tested.

The Chi square distribution of the random sample is determined by the formula given above. Since the expected value for a given number on the die for n throws is n times 1/6, thus 1020/6 = 170, the formula returns a Chi square value of 13.27.

If the (observed) Chi square is greater than or equal to the (theoretical) Chi square CHIINV, the hypothesis will be discarded, since the deviation between theory and experiment is too great. If the observed Chi square is less that CHIINV, the hypothesis is confirmed with the indicated probability of error.

=OCT2BIN(3; 3) vraca string teksta 011.

=OCT2BIN(3; 3) vraca string teksta 011.

If the probability of error is 5%, the die is not true. If the probability of error is 2%, there is no reason to believe it is fixed.

CHISQDIST

Returns the probability of a deviance from a random distribution of two test series based on the chi-squared test for independence. CHISQ.TEST returns the chi-squared distribution of the data.

The probability determined by CHISQ.TEST can also be determined with CHISQ.DIST, in which case the Chi square of the random sample must then be passed as a parameter instead of the data row.

Sintaksa

CHISQ.TEST(DataB; DataE)

Stopa je norma depricijacije.

DataE is the range of the expected values.

Primjer

Data_B (observed)

Data_E (expected)

1

0.00 novcanih jedinica

0.00 novcanih jedinica

2

0.00 novcanih jedinica

0.00 novcanih jedinica

3

0.00 novcanih jedinica

0.00 novcanih jedinica

4

0.00 novcanih jedinica

0.00 novcanih jedinica

5

0.00 novcanih jedinica

0.00 novcanih jedinica

6

0.00 novcanih jedinica

0.00 novcanih jedinica


=CHISQ.TEST(A1:A6;B1:B6) equals 0.0209708029. This is the probability which suffices the observed data of the theoretical Chi-square distribution.

CHISQDIST

Returns the probability density function or the cumulative distribution function for the chi-square distribution.

Sintaksa

CHISQ.DIST(Number; DegreesFreedom; Cumulative)

Number is the chi-square value of the random sample used to determine the error probability.

DegreesFreedom are the degrees of freedom of the experiment.

Cumulative can be 0 or False to calculate the probability density function. It can be any other value or True to calculate the cumulative distribution function.

Primjer

=CHISQ.DIST(3; 2; 0) equals 0.1115650801, the probability density function with 2 degrees of freedom, at x = 3.

=CHISQ.DIST(3; 2; 1) equals 0.7768698399, the cumulative chi-square distribution with 2 degrees of freedom, at the value x = 3

CHISQDIST

Returns the probability value from the indicated Chi square that a hypothesis is confirmed. CHISQ.DIST.RT compares the Chi square value to be given for a random sample that is calculated from the sum of (observed value-expected value)^2/expected value for all values with the theoretical Chi square distribution and determines from this the probability of error for the hypothesis to be tested.

The probability determined by CHISQ.DIST.RT can also be determined by CHITEST.

Sintaksa

CHISQ.DIST.RT(Number; DegreesFreedom)

Number is the chi-square value of the random sample used to determine the error probability.

DegreesFreedom are the degrees of freedom of the experiment.

Primjer

=OCT2BIN(3; 3) vraca string teksta 011.

If the Chi square value of the random sample is 13.27 and if the experiment has 5 degrees of freedom, then the hypothesis is assured with a probability of error of 2%.

CHISQDIST

Returns the value of the probability density function or the cumulative distribution function for the chi-square distribution.

Sintaksa

CHISQDIST(Number; Degrees Of Freedom; Cumulative)

Razdoblje definiše period za koji se racuna deprecijacija.

Degrees Of Freedom is the degrees of freedom for the chi-square function.

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

CHISQINV

Returns the inverse of CHISQDIST.

Sintaksa

Razdoblje definiše period za koji se racuna deprecijacija.

Degrees Of Freedom is the degrees of freedom for the chi-square function.

CHISQINV

Returns the inverse of the left-tailed probability of the chi-square distribution.

Sintaksa

CHISQ.INV(Probability; DegreesFreedom)

Razdoblje definiše period za koji se racuna deprecijacija.

Degrees Of Freedom is the degrees of freedom for the chi-square function.

Primjer

=OCT2BIN(3; 3) vraca string teksta 011.

CHISQINV

Returns the inverse of the one-tailed probability of the chi-squared distribution.

Sintaksa

CHISQ.INV.RT(Number; DegreesFreedom)

Broj je broj koji ce biti konvertovan

DegreesFreedom is the degrees of freedom of the experiment.

Primjer

A die is thrown 1020 times. The numbers on the die 1 through 6 come up 195, 151, 148, 189, 183 and 154 times (observation values). The hypothesis that the die is not fixed is to be tested.

The Chi square distribution of the random sample is determined by the formula given above. Since the expected value for a given number on the die for n throws is n times 1/6, thus 1020/6 = 170, the formula returns a Chi square value of 13.27.

If the (observed) Chi square is greater than or equal to the (theoretical) Chi square CHIINV, the hypothesis will be discarded, since the deviation between theory and experiment is too great. If the observed Chi square is less that CHIINV, the hypothesis is confirmed with the indicated probability of error.

=OCT2BIN(3; 3) vraca string teksta 011.

=OCT2BIN(3; 3) vraca string teksta 011.

If the probability of error is 5%, the die is not true. If the probability of error is 2%, there is no reason to believe it is fixed.

CHITEST

Returns the probability of a deviance from a random distribution of two test series based on the chi-squared test for independence. CHITEST returns the chi-squared distribution of the data.

The probability determined by CHITEST can also be determined with CHIDIST, in which case the Chi square of the random sample must then be passed as a parameter instead of the data row.

Sintaksa

CHITEST(DataB; DataE)

Stopa je norma depricijacije.

DataE is the range of the expected values.

Primjer

Data_B (observed)

Data_E (expected)

1

0.00 novcanih jedinica

0.00 novcanih jedinica

2

0.00 novcanih jedinica

0.00 novcanih jedinica

3

0.00 novcanih jedinica

0.00 novcanih jedinica

4

0.00 novcanih jedinica

0.00 novcanih jedinica

5

0.00 novcanih jedinica

0.00 novcanih jedinica

6

0.00 novcanih jedinica

0.00 novcanih jedinica


=CHITEST(A1:A6;B1:B6) equals 0.02. This is the probability which suffices the observed data of the theoretical Chi-square distribution.

COUNTBLANK

Returns the number of empty cells.

Sintaksa

COUNTBLANK(Range)

vraca broj praznih celija u dometu celija Opseg.

Primjer

=COUNTBLANK(A1:B2) returns 4 if cells A1, A2, B1 and B2 are all empty.

COUNTIF

Vraca broj celija koje zadovaoljavaju odredjeni uslov unutar celijskog ranga.

The search supports regular expressions. You can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must precede every character with a \ character. You can switch the automatic evaluation of regular expression on and off in - LibreOffice Calc - Calculate.

Sintaksa

COUNTIF(Rang; Kriterija)

Range is the range to which the criteria are to be applied.

Criteria indicates the criteria in the form of a number, an expression or a character string. These criteria determine which cells are counted. If regular expressions are enabled in calculation options you may also enter a search text in the form of a regular expression, e.g. b.* for all cells that begin with b. If wildcards are enabled in calculation options you may enter a search text with wildcards, e.g. b* for all cells that begin with b. You may also indicate a cell address that contains the search criterion. If you search for literal text, enclose the text in double quotes.

Primjer

A1:A10 je celijski rang koji sadrzi brojeve 2000 to 2009. Celija B1 Sadrzi broj 2006. U celiju B2 mozete unijeti formulu:

=COUNTIF(A1:A10; 2006) - vraca 1

=COUNTIF(A1:A10; B1) - vraca 1

=COUNTIF(A1:A10; ">=2006") - vraca 3

=COUNTIF(A1:A10; "<"&B1) - kada B1 sadrzi 2006, ovo vraca 6

=COUNTIF(A1:A10; C2) gdje celija C2 sadrzi tekst>2006 zbraja brojeve celija u rangu A1:A10 koji su > 2006

Z zbrajanje samo negativnih brojeva: =COUNTIF(A1:A10; "<0")

DCOUNT

Counts how many numbers are in the list of arguments. Text entries are ignored.

Sintaksa

COUNT(Value1; Value2; ... Value30)

Value1; Value2, ... are 1 to 30 values or ranges representing the values to be counted.

Primjer

The entries 2, 4, 6 and eight in the Value 1-4 fields are to be counted.

=COUNT(2;4;6;"eight") = 3. The count of numbers is therefore 3.

DCOUNTA

Counts how many values are in the list of arguments. Text entries are also counted, even when they contain an empty string of length 0. If an argument is an array or reference, empty cells within the array or reference are ignored.

Sintaksa

COUNTA(Value1; Value2; ... Value30)

Value1; Value2, ... are 1 to 30 arguments representing the values to be counted.

Primjer

The entries 2, 4, 6 and eight in the Value 1-4 fields are to be counted.

=COUNTA(2;4;6;"eight") = 4. The count of values is therefore 4.

EXPONDIST

Returns the exponential distribution.

Sintaksa

EXPONDIST(Number; Lambda; C)

Broj je broj koji ce biti konvertovan

Lambda is the parameter value.

C is a logical value that determines the form of the function. C = 0 calculates the density function, and C = 1 calculates the distribution.

Primjer

=OCT2BIN(3; 3) vraca string teksta 011.

EXPONDIST

Returns the exponential distribution.

Sintaksa

EXPON.DIST(Number; Lambda; C)

Broj je broj koji ce biti konvertovan

Lambda is the parameter value.

C is a logical value that determines the form of the function. C = 0 calculates the density function, and C = 1 calculates the distribution.

Primjer

=OCT2BIN(3; 3) vraca string teksta 011.

INTERCEPT

Calculates the point at which a line will intersect the y-values by using known x-values and y-values.

Sintaksa

INTERCEPT(DataY; DataX)

DataY is the dependent set of observations or data.

DataX is the independent set of observations or data.

Names, arrays or references containing numbers must be used here. Numbers can also be entered directly.

Primjer

To calculate the intercept, use cells D3:D9 as the y value and C3:C9 as the x value from the example spreadsheet. Input will be as follows:

=INTERCEPT(D3:D9;C3:C9) = 2.15.

RSQ

Returns the square of the Pearson correlation coefficient based on the given values. RSQ (also called determination coefficient) is a measure for the accuracy of an adjustment and can be used to produce a regression analysis.

Sintaksa

RSQ(DataY; DataX)

Stopa je norma depricijacije.

Stopa je norma depricijacije.

Primjer

=RSQ(A1:A20;B1:B20) calculates the determination coefficient for both data sets in columns A and B.