統計 第四部分

[text/scalc/01/func_averageif.xhp#averageif_head not found].

Returns the arithmetic mean of all cells in a range that satisfy a given condition. The AVERAGEIF function sums up all the results that match the logical test and divides this sum by the quantity of selected values.

[text/scalc/01/func_averageifs.xhp#averageifs_head not found].

Returns the arithmetic mean of all cells in a range that satisfy given multiple criteria. The AVERAGEIFS function sums up all the results that match the logical tests and divides this sum by the quantity of selected values.

AVEDEV

傳回其中數的資料點之絕對偏差的平均。 顯示資料集中的擴散。

語法

AVEDEV(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are values or ranges that represent a sample. Each number can also be replaced by a reference.

範例

=AVEDEV(A1:A50)

AVERAGE

傳回引數的平均值。

語法

AVERAGE(Number1; Number2; ...; Number30)

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

範例

=AVERAGE(A1:A50)

AVERAGEA

傳回引數的平均值。文字的值為 0。

語法

AVERAGEA(Value1; Value2; ...; Value30)

Value1, Value2, ..., Value30 are values or ranges. Text has the value of 0.

範例

=AVERAGEA(A1:A50)

MAX

傳回引數清單中的最大值。

若沒有任何數值且傳送為儲存格參照的儲存格範圍中未發生任何錯誤,即會傳回 0。MIN() 和 MAX() 會忽略文字儲存格。若沒有任何值 (數值或文字) 且沒有發生任何錯誤,MINA() 和 MAXA() 函式即會傳回 0。將文字字串引數傳送給 MIN() 或 MAX() (例如 MIN("string")) 仍會產生錯誤。

語法

MAX(Number1; Number2; ...; Number30)

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

範例

=MAX(A1;A2;A3;50;100;200) 傳回清單中的最大值。

=MAX(A1:B100) 傳回清單中的最大值。

MAXA

傳回引數清單中的最大值。相對於最大值,您可以在此處輸入文字。文字的值為 0。

若沒有任何值 (數值或文字) 且沒有發生任何錯誤,MINA() 和 MAXA() 函式即會傳回 0。

語法

MAXA(Value1; Value2; ...; Value30)

Value1; Value2;...; Value30 are values or ranges. Text has the value of 0.

範例

=MAXA(A1;A2;A3;50;100;200;"Text") 傳回清單中的最大值。

=MAXA(A1:B100) 傳回清單中的最大值。

MEDIAN

傳回一組數字的中位數。在包含奇數值的組中,中位數將是該組數中間的數字,而在包含偶數值的組中,中位數將是組數中間兩個值的平均值。

語法

MEDIAN(Number1; Number2; ...; Number30)

Number1, Number2, ..., Number30 are values or ranges, which represent a sample. Each number can also be replaced by a reference.

範例

若是奇數:=MEDIAN(1;5;9;20;21) 會傳回 9 作為中間值。

若為偶數:=MEDIAN(1;5;9;20) 會傳回兩個中間值 5 與 9 的平均值,結果為 7。

MIN

傳回引數清單中的最小值。

若沒有任何數值且傳送為儲存格參照的儲存格範圍中未發生任何錯誤,即會傳回 0。MIN() 和 MAX() 會忽略文字儲存格。若沒有任何值 (數值或文字) 且沒有發生任何錯誤,MINA() 和 MAXA() 函式即會傳回 0。將文字字串引數傳送給 MIN() 或 MAX() (例如 MIN("string")) 仍會產生錯誤。

語法

MIN(Number1; Number2; ...; Number30)

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

範例

=MIN(A1:B100) 傳回清單中的最小值。

MINA

傳回引數清單中的最小值。您也可以在此處輸入文字。文字的值為 0。

若沒有任何值 (數值或文字) 且沒有發生任何錯誤,MINA() 和 MAXA() 函式即會傳回 0。

語法

MINA(Value1; Value2; ...; Value30)

Value1, Value2, ..., Value30 are values or ranges. Text has the value of 0.

範例

=MINA(1;"Text";20) 傳回 0。

=MINA(A1:B100) 傳回清單中的最小值。

MODE

傳回資料集中的最大共用值。 如果有好幾個值具有相同頻率,則會傳回最小值。值不出現兩次時發生錯誤。

評註圖示

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


語法

MODE(Number1; Number2; ...; Number30)

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

範例

=MODE(A1:A50)

MODE.MULT

Returns a vertical array of the statistical modes (the most frequently occurring values) within a list of supplied numbers.

語法

MODE.MULT(Number1; Number2; ...; Number30)

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

警告圖示

As the MODE.MULT function returns an array of values, it must be entered as an array formula. If the function is not entered as an array formula, only the first mode is returned, which is the same as using the MODE.SNGL function.


範例

=MODE(A1:A50)

MODE.SNGL

傳回資料集中的最大共用值。 如果有好幾個值具有相同頻率,則會傳回最小值。值不出現兩次時發生錯誤。

語法

MODE.SNGL(Number1; Number2; ...; Number30)

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

警告圖示

If the data set contains no duplicate data points, MODE.SNGL returns the #VALUE! error value.


範例

=MODE(A1:A50)

NEGBINOMDIST

傳回負二項式分佈。

語法

NEGBINOMDIST(X; R; SP)

X 為試驗失敗所傳回的值。

R 為試驗成功所傳回的值。

SP 為嘗試成功的機率。

範例

=NEGBINOMDIST(1;1;0.5) 傳回 0.25。

NEGBINOMDIST

傳回負二項式分佈。

語法

NEGBINOM.DIST(X; R; SP; Cumulative)

X 為試驗失敗所傳回的值。

R 為試驗成功所傳回的值。

SP 為嘗試成功的機率。

Cumulative (選擇性) = 0 計算密度函式,Cumulative = 1 計算分佈。

範例

=NEGBINOMDIST(1;1;0.5) 傳回 0.25。

=NEGBINOMDIST(1;1;0.5) 傳回 0.25。

NORMDIST

傳回密度函式或一般累計分佈。

語法

NORMDIST(Number; Mean; StDev; C)

Number 是據以計算常態分佈之分佈的數值。

Mean 為分佈的平均值。

StDev 是指分佈的標準差。

C 為選用項目。C = 0 計算密度函式;若 C = 1 則計算分佈。

範例

=NORMDIST(70;63;5;0) 傳回 0.03。

=NORMDIST(70;63;5;1) 傳回 0.92。

NORMDIST

傳回密度函式或一般累計分佈。

語法

NORMDIST(Number; Mean; StDev; C)

Number 是據以計算常態分佈之分佈的數值。

Mean 為分佈的平均值。

StDev 是指分佈的標準差。

C 為選用項目。C = 0 計算密度函式;若 C = 1 則計算分佈。

範例

=NORMDIST(70;63;5;0) 傳回 0.03。

=NORMDIST(70;63;5;1) 傳回 0.92。

NORMINV

傳回一般累計分佈的逆運算。

語法

NORMINV(Number; Mean; StDev)

Number 為用以決定常態逆分佈的機率值。

Mean 為常態分佈的平均值。

StDev 表示常態分佈的標準差。

範例

=NORMINV(0.9;63;5) 傳回 69.41。若蛋的平均重量為 63 公克,標準差為 5,則會有 90% 的機率,蛋的重量不會超過 69.41 公克。

NORMINV

傳回一般累計分佈的逆運算。

語法

NORMINV(Number; Mean; StDev)

Number 為用以決定常態逆分佈的機率值。

Mean 為常態分佈的平均值。

StDev 表示常態分佈的標準差。

範例

=NORMINV(0.9;63;5) 傳回 69.41。若蛋的平均重量為 63 公克,標準差為 5,則會有 90% 的機率,蛋的重量不會超過 69.41 公克。

PEARSON

傳回 Pearson 乘積時刻相關係數 r。

語法

PEARSON(Data1; Data2)

Data1 代表第一個資料集的陣列。

Data2 表示第二個資料集的陣列。

範例

=PEARSON(A1:A30;B1:B30) 傳回兩個資料集的普松相關係數。

PERCENTILE

傳回陣列中資料值的字母-百分位數。百分位數會傳回資料序列的比例值,從資料序列的最小值 (Alpha=0) 到最大值 (Alpha=1)。若是 Alpha = 25%,百分位數表示第一四分位;Alpha = 50% 表示中位數。

語法

PERCENTILE(Data; Alpha)

Data 為資料的陣列。

Alpha 為比例的百分比,介於 0 和 1 之間。

範例

=PERCENTILE(A1:A50;0.1) 表示資料集中的數值,等於 A1:A50 中總資料比例的 10%。

PERCENTILE.EXC

Returns the Alpha'th percentile of a supplied range of values for a given value of Alpha, within the range 0 to 1 (exclusive). A percentile returns the scale value for a data series which goes from the smallest (Alpha=0) to the largest value (Alpha=1) of a data series. For Alpha = 25%, the percentile means the first quartile; Alpha = 50% is the MEDIAN.

警告圖示

If Alpha is not a multiple of 1/(n+1), (where n is the number of values in the supplied array), the function interpolates between the values in the supplied array, to calculate the percentile value. However, if Alpha is less than 1/(n+1) or Alpha is greater than n/(n+1), the function is unable to interpolate, and so returns an error.


評註圖示

The difference between PERCENTILE.INC and PERCENTILE.EXC is that, in the PERCENTILE.INC function the value of alpha is is within the range 0 to 1 inclusive, and in the PERCENTILE.EXC function, the value of alpha is within the range 0 to 1 exclusive.


語法

PERCENTILE(Data; Alpha)

Data 為資料的陣列。

Alpha 為比例的百分比,介於 0 和 1 之間。

範例

=PERCENTILE(A1:A50;0.1) 表示資料集中的數值,等於 A1:A50 中總資料比例的 10%。

PERCENTILE.INC

傳回陣列中資料值的字母-百分位數。百分位數會傳回資料序列的比例值,從資料序列的最小值 (Alpha=0) 到最大值 (Alpha=1)。若是 Alpha = 25%,百分位數表示第一四分位;Alpha = 50% 表示中位數。

評註圖示

The difference between PERCENTILE.INC and PERCENTILE.EXC is that, in the PERCENTILE.INC function the value of alpha is is within the range 0 to 1 inclusive, and in the PERCENTILE.EXC function, the value of alpha is within the range 0 to 1 exclusive.


語法

PERCENTILE(Data; Alpha)

Data 為資料的陣列。

Alpha 為比例的百分比,介於 0 和 1 之間。

範例

=PERCENTILE(A1:A50;0.1) 表示資料集中的數值,等於 A1:A50 中總資料比例的 10%。

PERCENTRANK

傳回範例中值的百分比排名。

語法

PERCENTRANK(Data; Value; Significance)

Data 為樣本中的資料陣列。

Value 為須確定其百分比等級的數值。

Significance An optional argument that specifies the number of significant digits that the returned percentage value is rounded to. If omitted, a value of 3 is used.

範例

=PERCENTRANK(A1:A50;50) 從包含位於 A1:A50 中所有值的總範圍中,傳回值 50 的百分比等級。若 50 落在總範圍之外,會顯示錯誤訊息。

PERCENTRANK.EXC

Returns the relative position, between 0 and 1 (exclusive), of a specified value within a supplied array.

評註圖示

The difference between PERCENTRANK.INC and PERCENTRANK.EXC is that PERCENTRANK.INC calculates a value in the range 0 to 1 inclusive, whereas the PERCENTRANK.EXC function calculates a value in the range 0 to 1 exclusive.


語法

PERCENTRANK.EXC(Data; Value; Significance)

Data 為樣本中的資料陣列。

Value 為須確定其百分比等級的數值。

Significance An optional argument that specifies the number of significant digits that the returned percentage value is rounded to.

範例

=PERCENTRANK(A1:A50;50) 從包含位於 A1:A50 中所有值的總範圍中,傳回值 50 的百分比等級。若 50 落在總範圍之外,會顯示錯誤訊息。

PERCENTRANK.INC

Returns the relative position, between 0 and 1 (inclusive), of a specified value within a supplied array.

評註圖示

The difference between PERCENTRANK.INC and PERCENTRANK.EXC is that PERCENTRANK.INC calculates a value in the range 0 to 1 inclusive, whereas the PERCENTRANK.EXC function calculates a value in the range 0 to 1 exclusive.


語法

PERCENTRANK.INC(Data; Value; Significance)

Data 為樣本中的資料陣列。

Value 為須確定其百分比等級的數值。

Significance An optional argument that specifies the number of significant digits that the returned percentage value is rounded to.

範例

=PERCENTRANK(A1:A50;50) 從包含位於 A1:A50 中所有值的總範圍中,傳回值 50 的百分比等級。若 50 落在總範圍之外,會顯示錯誤訊息。

PHI

傳回標準常態分佈的分佈函式之值。

語法

phi(number)

Number 是據以計算標準常態分佈之數值。

範例

=PHI(2.25) = 0.03

=PHI(-2.25) = 0.03

=PHI(0) = 0.4

POISSON

傳回普松分佈。

語法

POISSON(number; mean; K)

Number 為應據以計算普松分佈的數值。

Mean 為普松分佈的中間值。

C (選擇性) = 0 或 False 計算密度函式。C = 1 或 True 計算分佈。省略時,會於儲存文件時插入預設值 True,與其他程式及舊版的 LibreOffice 具有最佳相容性。

範例

=POISSON(60;50;1) 傳回 0.93。

POISSON.DIST

傳回普松分佈。

語法

POISSON(number; mean; K)

Number 為應據以計算普松分佈的數值。

Mean 為普松分佈的中間值。

C (選擇性) = 0 或 False 計算密度函式。C = 1 或 True 計算分佈。省略時,會於儲存文件時插入預設值 True,與其他程式及舊版的 LibreOffice 具有最佳相容性。

範例

=POISSON(60;50;1) 傳回 0.93。

QUARTILE

傳回資料集的四分位數。

語法

QUARTILE(Data; Type)

Data 為樣本中的資料陣列。

Type 是四分位數的類型。 (0 = 最小,1 = 25%,2 = 50% (中間),3 = 75% 和 4 = 最大。)

範例

=QUARTILE(A1:A50;2) 傳回數值,其中 50% 的比例對應至範圍 A1:A50 中的最低值到最高值。

QUARTILE.EXC

Returns a requested quartile of a supplied range of values, based on a percentile range of 0 to 1 exclusive.

評註圖示

The difference between QUARTILE.INC and QUARTILE.EXC is that the QUARTILE.INC function bases its calculation on a percentile range of 0 to 1 inclusive, whereas the QUARTILE.EXC function bases its calculation on a percentile range of 0 to 1 exclusive.


語法

QUARTILE(Data; Type)

Data represents the range of data values for which you want to calculate the specified quartile.

Type An integer between 1 and 3, representing the required quartile. (if type = 1 or 3, the supplied array must contain more than 2 values)

範例

=QUARTILE(A1:A50;2) 傳回數值,其中 50% 的比例對應至範圍 A1:A50 中的最低值到最高值。

QUARTILE.INC

傳回資料集的四分位數。

評註圖示

The difference between QUARTILE.INC and QUARTILE.EXC is that the QUARTILE.INC function bases its calculation on a percentile range of 0 to 1 inclusive, whereas the QUARTILE.EXC function bases its calculation on a percentile range of 0 to 1 exclusive.


語法

QUARTILE(Data; Type)

Data 為樣本中的資料陣列。

Type 是四分位數的類型。 (0 = 最小,1 = 25%,2 = 50% (中間),3 = 75% 和 4 = 最大。)

範例

=QUARTILE(A1:A50;2) 傳回數值,其中 50% 的比例對應至範圍 A1:A50 中的最低值到最高值。