1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--***********************************************************
5 *
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements.  See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership.  The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License.  You may obtain a copy of the License at
13 *
14 *   http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied.  See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
22 *
23 ***********************************************************-->
24
25
26
27
28<meta>
29      <topic id="textscalc0104060181xml" indexer="include">
30         <title xml-lang="en-US" id="tit">Statistical Functions Part One</title>
31         <filename>/text/scalc/01/04060181.xhp</filename>
32      </topic>
33   </meta>
34   <body>
35      <paragraph xml-lang="en-US" id="hd_id3146320" role="heading" level="1" l10n="U" oldref="1"><variable id="ae"><link href="text/scalc/01/04060181.xhp">Statistical Functions Part One</link>
36</variable></paragraph>
37<sort order="asc">
38<section id="intercept">
39<bookmark xml-lang="en-US" branch="index" id="bm_id3145632"><bookmark_value>INTERCEPT function</bookmark_value>
40         <bookmark_value>points of intersection</bookmark_value>
41         <bookmark_value>intersections</bookmark_value>
42</bookmark><comment>mw added two entries</comment>
43<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ACHSENABSCHNITT" id="bm_id3153018" localize="false"/>
44<paragraph xml-lang="en-US" id="hd_id3145632" role="heading" level="2" l10n="U" oldref="2">INTERCEPT</paragraph>
45         <paragraph xml-lang="en-US" id="par_id3146887" role="paragraph" l10n="U" oldref="3"><ahelp hid="HID_FUNC_ACHSENABSCHNITT">Calculates the point at which a line will intersect the y-values by using known x-values and y-values.</ahelp></paragraph>
46         <paragraph xml-lang="en-US" id="hd_id3150374" role="heading" level="3" l10n="U" oldref="4">Syntax</paragraph>
47         <paragraph xml-lang="en-US" id="par_id3149718" role="code" l10n="U" oldref="5">INTERCEPT(DataY; DataX)</paragraph>
48         <paragraph xml-lang="en-US" id="par_id3149947" role="paragraph" l10n="U" oldref="6">
49            <emph>DataY</emph> is the dependent set of observations or data.</paragraph>
50         <paragraph xml-lang="en-US" id="par_id3147412" role="paragraph" l10n="U" oldref="7">
51            <emph>DataX</emph> is the independent set of observations or data.</paragraph>
52         <paragraph xml-lang="en-US" id="par_id3152983" role="paragraph" l10n="U" oldref="8">Names, arrays or references containing numbers must be used here. Numbers can also be entered directly.</paragraph>
53         <paragraph xml-lang="en-US" id="hd_id3157906" role="heading" level="3" l10n="U" oldref="9">Example</paragraph>
54         <paragraph xml-lang="en-US" id="par_id3148728" role="paragraph" l10n="U" oldref="10">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:</paragraph>
55         <paragraph xml-lang="en-US" id="par_id3149013" role="paragraph" l10n="U" oldref="11">
56            <item type="input">=INTERCEPT(D3:D9;C3:C9)</item> = 2.15.</paragraph>
57      </section>
58      <section id="count">
59<bookmark xml-lang="en-US" branch="index" id="bm_id3148437"><bookmark_value>COUNT function</bookmark_value>
60         <bookmark_value>numbers;counting</bookmark_value>
61</bookmark><comment>mw added one entry</comment>
62<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ANZAHL" id="bm_id3153040" localize="false"/>
63<paragraph xml-lang="en-US" id="hd_id3148437" role="heading" level="2" l10n="U"
64                    oldref="13">COUNT</paragraph>
65         <paragraph xml-lang="en-US" id="par_id3150700" role="paragraph" l10n="U" oldref="14"><ahelp hid="HID_FUNC_ANZAHL">Counts how many numbers are in the list of arguments.</ahelp> Text entries are ignored.</paragraph>
66         <paragraph xml-lang="en-US" id="hd_id3153930" role="heading" level="3" l10n="U"
67                    oldref="15">Syntax</paragraph>
68         <paragraph xml-lang="en-US" id="par_id3148585" role="code" l10n="U" oldref="16">COUNT(Value1; Value2; ... Value30)</paragraph>
69         <paragraph xml-lang="en-US" id="par_id3155827" role="paragraph" l10n="CHG" oldref="17">
70            <emph>Value1; Value2, ...</emph> are 1 to 30 values or ranges representing the values to be counted.</paragraph>
71         <paragraph xml-lang="en-US" id="hd_id3149254" role="heading" level="3" l10n="U"
72                    oldref="18">Example</paragraph>
73         <paragraph xml-lang="en-US" id="par_id3149953" role="paragraph" l10n="U" oldref="19">The entries 2, 4, 6 and eight in the Value 1-4 fields are to be counted.</paragraph>
74         <paragraph xml-lang="en-US" id="par_id3154558" role="paragraph" l10n="U" oldref="20">
75            <item type="input">=COUNT(2;4;6;"eight")</item> = 3. The count of numbers is therefore 3.</paragraph>
76      </section>
77      <section id="counta">
78<bookmark xml-lang="en-US" branch="index" id="bm_id3149729"><bookmark_value>COUNTA function</bookmark_value>
79         <bookmark_value>number of entries</bookmark_value>
80</bookmark><comment>mw added one entry</comment>
81<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_ANZAHL2" id="bm_id3148738" localize="false"/>
82<paragraph xml-lang="en-US" id="hd_id3149729" role="heading" level="2" l10n="U"
83                    oldref="22">COUNTA</paragraph>
84         <paragraph xml-lang="en-US" id="par_id3150142" role="paragraph" l10n="CHG" oldref="23"><ahelp hid="HID_FUNC_ANZAHL2">Counts how many values are in the list of arguments.</ahelp> 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.<comment>UFI: fix to #i35888#</comment></paragraph>
85         <paragraph xml-lang="en-US" id="hd_id3148573" role="heading" level="3" l10n="U"
86                    oldref="24">Syntax</paragraph>
87         <paragraph xml-lang="en-US" id="par_id3153111" role="code" l10n="U" oldref="25">COUNTA(Value1; Value2; ... Value30)</paragraph>
88         <paragraph xml-lang="en-US" id="par_id3150001" role="paragraph" l10n="U" oldref="26">
89            <emph>Value1; Value2, ...</emph> are 1 to 30 arguments representing the values to be counted.</paragraph>
90         <paragraph xml-lang="en-US" id="hd_id3150334" role="heading" level="3" l10n="U"
91                    oldref="27">Example</paragraph>
92         <paragraph xml-lang="en-US" id="par_id3154508" role="paragraph" l10n="U" oldref="28">The entries 2, 4, 6 and eight in the Value 1-4 fields are to be counted.</paragraph>
93         <paragraph xml-lang="en-US" id="par_id3158000" role="paragraph" l10n="U" oldref="29">
94            <item type="input">=COUNTA(2;4;6;"eight")</item> = 4. The count of values is therefore 4.</paragraph>
95      </section>
96      <section id="b">
97<bookmark xml-lang="en-US" branch="index" id="bm_id3150267"><bookmark_value>B function</bookmark_value>
98         <bookmark_value>probabilities of samples with binomial distribution</bookmark_value>
99</bookmark><comment>mw added one entry</comment>
100<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_B" id="bm_id3153044" localize="false"/>
101<paragraph xml-lang="en-US" id="hd_id3150267" role="heading" level="2" l10n="U"
102                    oldref="31">B</paragraph>
103         <paragraph xml-lang="en-US" id="par_id3156061" role="paragraph" l10n="U" oldref="32"><ahelp hid="HID_FUNC_B">Returns the probability of a sample with binomial distribution.</ahelp></paragraph>
104         <paragraph xml-lang="en-US" id="hd_id3150659" role="heading" level="3" l10n="U"
105                    oldref="33">Syntax</paragraph>
106         <paragraph xml-lang="en-US" id="par_id3148392" role="code" l10n="U" oldref="34">B(Trials; SP; T1; T2)</paragraph>
107         <paragraph xml-lang="en-US" id="par_id3149002" role="paragraph" l10n="U" oldref="35">
108            <emph>Trials</emph> is the number of independent trials.</paragraph>
109         <paragraph xml-lang="en-US" id="par_id3148875" role="paragraph" l10n="U" oldref="36">
110            <emph>SP</emph> is the probability of success on each trial.</paragraph>
111         <paragraph xml-lang="en-US" id="par_id3145352" role="paragraph" l10n="U" oldref="37">
112            <emph>T1</emph> defines the lower limit for the number of trials.</paragraph>
113         <paragraph xml-lang="en-US" id="par_id3149538" role="paragraph" l10n="U" oldref="38">
114            <emph>T2</emph> (optional) defines the upper limit for the number of trials.</paragraph>
115         <paragraph xml-lang="en-US" id="hd_id3148768" role="heading" level="3" l10n="U"
116                    oldref="39">Example</paragraph>
117         <paragraph xml-lang="en-US" id="par_id3154633" role="paragraph" l10n="U" oldref="40">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:</paragraph>
118         <paragraph xml-lang="en-US" id="par_id3149393" role="paragraph" l10n="U" oldref="41">
119            <item type="input">=B(10;1/6;2)</item> returns a probability of 29%.</paragraph>
120      </section>
121      <section id="rsq">
122<bookmark xml-lang="en-US" branch="index" id="bm_id3158416"><bookmark_value>RSQ function</bookmark_value>
123         <bookmark_value>determination coefficients</bookmark_value>
124         <bookmark_value>regression analysis</bookmark_value>
125</bookmark><comment>mw added regression analysis</comment>
126<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_BESTIMMTHEITSMASS" id="bm_id3153228" localize="false"/>
127<paragraph xml-lang="en-US" id="hd_id3158416" role="heading" level="2" l10n="U"
128                    oldref="43">RSQ</paragraph>
129         <paragraph xml-lang="en-US" id="par_id3154949" role="paragraph" l10n="U" oldref="44"><ahelp hid="HID_FUNC_BESTIMMTHEITSMASS">Returns the square of the Pearson correlation coefficient based on the given values.</ahelp> RSQ (also called determination coefficient) is a measure for the accuracy of an adjustment and can be used to produce a regression analysis.</paragraph>
130         <paragraph xml-lang="en-US" id="hd_id3152820" role="heading" level="3" l10n="U"
131                    oldref="45">Syntax</paragraph>
132         <paragraph xml-lang="en-US" id="par_id3155822" role="code" l10n="U" oldref="46">RSQ(DataY; DataX)</paragraph>
133         <paragraph xml-lang="en-US" id="par_id3150470" role="paragraph" l10n="U" oldref="47">
134            <emph>DataY</emph> is an array or range of data points.</paragraph>
135         <paragraph xml-lang="en-US" id="par_id3153181" role="paragraph" l10n="U" oldref="48">
136            <emph>DataX</emph> is an array or range of data points.</paragraph>
137         <paragraph xml-lang="en-US" id="hd_id3156258" role="heading" level="3" l10n="U"
138                    oldref="49">Example</paragraph>
139         <paragraph xml-lang="en-US" id="par_id3155991" role="paragraph" l10n="U" oldref="50">
140            <item type="input">=RSQ(A1:A20;B1:B20)</item> calculates the determination coefficient for both data sets in columns A and B.</paragraph>
141      </section>
142      <section id="betainv">
143<bookmark xml-lang="en-US" branch="index" id="bm_id3145620"><bookmark_value>BETAINV function</bookmark_value>
144         <bookmark_value>cumulative probability density function;inverse of</bookmark_value>
145</bookmark><comment>mw added one entry</comment>
146<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_BETAINV" id="bm_id3146154" localize="false"/>
147<paragraph xml-lang="en-US" id="hd_id3145620" role="heading" level="2" l10n="U"
148                    oldref="52">BETAINV</paragraph>
149         <paragraph xml-lang="en-US" id="par_id3149825" role="paragraph" l10n="U" oldref="53"><ahelp hid="HID_FUNC_BETAINV">Returns the inverse of the cumulative beta probability density function.</ahelp></paragraph>
150         <paragraph xml-lang="en-US" id="hd_id3152479" role="heading" level="3" l10n="U"
151                    oldref="54">Syntax</paragraph>
152         <paragraph xml-lang="en-US" id="par_id3156300" role="code" l10n="U" oldref="55">BETAINV(Number; Alpha; Beta; Start; End)</paragraph>
153         <paragraph xml-lang="en-US" id="par_id3149266" role="paragraph" l10n="U" oldref="56">
154            <emph>Number</emph> is the value between <emph>Start</emph> and <emph>End</emph> at which to evaluate the function.</paragraph>
155         <paragraph xml-lang="en-US" id="par_id3149710" role="paragraph" l10n="U" oldref="57">
156            <emph>Alpha</emph> is a parameter to the distribution.</paragraph>
157         <paragraph xml-lang="en-US" id="par_id3156306" role="paragraph" l10n="U" oldref="58">
158            <emph>Beta</emph> is a parameter to the distribution.</paragraph>
159         <paragraph xml-lang="en-US" id="par_id3150960" role="paragraph" l10n="U" oldref="59">
160            <emph>Start</emph> (optional) is the lower bound for <emph>Number</emph>.</paragraph>
161         <paragraph xml-lang="en-US" id="par_id3151268" role="paragraph" l10n="U" oldref="60">
162            <emph>End</emph> (optional) is the upper bound for <emph>Number</emph>.</paragraph>
163         <paragraph xml-lang="en-US" id="par_idN109DF" role="paragraph" l10n="NEW">
164            <embedvar href="text/scalc/00/00000004.xhp#optional"/>
165         </paragraph>
166         <paragraph xml-lang="en-US" id="hd_id3147077" role="heading" level="3" l10n="U"
167                    oldref="61">Example</paragraph>
168         <paragraph xml-lang="en-US" id="par_id3146859" role="paragraph" l10n="U" oldref="62">
169            <item type="input">=BETAINV(0.5;5;10)</item> returns the value 0.33.</paragraph>
170      </section>
171      <section id="betadist">
172<bookmark xml-lang="en-US" branch="index" id="bm_id3156096"><bookmark_value>BETADIST function</bookmark_value>
173         <bookmark_value>cumulative probability density function;calculating</bookmark_value>
174</bookmark><comment>mw added one entry</comment>
175<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_BETAVERT" id="bm_id3153213" localize="false"/>
176<paragraph xml-lang="en-US" id="hd_id3156096" role="heading" level="2" l10n="U"
177                    oldref="64">BETADIST</paragraph>
178         <paragraph xml-lang="en-US" id="par_id3150880" role="paragraph" l10n="U" oldref="65"><ahelp hid="HID_FUNC_BETAVERT">Returns the beta function.</ahelp></paragraph>
179         <paragraph xml-lang="en-US" id="hd_id3150762" role="heading" level="3" l10n="U"
180                    oldref="66">Syntax</paragraph>
181         <paragraph xml-lang="en-US" id="par_id3147571" role="code" l10n="CHG" oldref="67">BETADIST(Number; Alpha; Beta; Start; End; Cumulative)</paragraph>
182         <paragraph xml-lang="en-US" id="par_id3156317" role="paragraph" l10n="U" oldref="68">
183            <emph>Number</emph> is the value between <emph>Start</emph> and <emph>End</emph> at which to evaluate the function.</paragraph>
184         <paragraph xml-lang="en-US" id="par_id3156107" role="paragraph" l10n="U" oldref="69">
185            <emph>Alpha</emph> is a parameter to the distribution.</paragraph>
186         <paragraph xml-lang="en-US" id="par_id3153619" role="paragraph" l10n="U" oldref="70">
187            <emph>Beta</emph> is a parameter to the distribution.</paragraph>
188         <paragraph xml-lang="en-US" id="par_id3150254" role="paragraph" l10n="U" oldref="71">
189            <emph>Start</emph> (optional) is the lower bound for <emph>Number</emph>.</paragraph>
190         <paragraph xml-lang="en-US" id="par_id3149138" role="paragraph" l10n="U" oldref="72">
191            <emph>End</emph> (optional) is the upper bound for <emph>Number</emph>.</paragraph>
192         <paragraph xml-lang="en-US" id="par_id012020091254453" role="paragraph" l10n="NEW">
193            <emph>Cumulative</emph> (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.</paragraph>
194         <paragraph xml-lang="en-US" id="par_idN10AB3" role="paragraph" l10n="NEW">
195            <embedvar href="text/scalc/00/00000004.xhp#optional"/>
196         </paragraph>
197         <paragraph xml-lang="en-US" id="hd_id3145649" role="heading" level="3" l10n="U"
198                    oldref="73">Example</paragraph>
199         <paragraph xml-lang="en-US" id="par_id3156118" role="paragraph" l10n="U" oldref="74">
200            <item type="input">=BETADIST(0.75;3;4)</item> returns the value 0.96</paragraph>
201      </section>
202      <section id="binomdist">
203<bookmark xml-lang="en-US" branch="index" id="bm_id3143228"><bookmark_value>BINOMDIST function</bookmark_value>
204</bookmark>
205<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_BINOMVERT" id="bm_id3150146" localize="false"/>
206<paragraph xml-lang="en-US" id="hd_id3143228" role="heading" level="2" l10n="U"
207                    oldref="76">BINOMDIST</paragraph>
208         <paragraph xml-lang="en-US" id="par_id3146897" role="paragraph" l10n="U" oldref="77"><ahelp hid="HID_FUNC_BINOMVERT">Returns the individual term binomial distribution probability.</ahelp></paragraph>
209         <paragraph xml-lang="en-US" id="hd_id3149289" role="heading" level="3" l10n="U"
210                    oldref="78">Syntax</paragraph>
211         <paragraph xml-lang="en-US" id="par_id3156009" role="code" l10n="U" oldref="79">BINOMDIST(X; Trials; SP; C)</paragraph>
212         <paragraph xml-lang="en-US" id="par_id3154304" role="paragraph" l10n="U" oldref="80">
213            <emph>X</emph> is the number of successes in a set of trials.</paragraph>
214         <paragraph xml-lang="en-US" id="par_id3147492" role="paragraph" l10n="U" oldref="81">
215            <emph>Trials</emph> is the number of independent trials.</paragraph>
216         <paragraph xml-lang="en-US" id="par_id3146085" role="paragraph" l10n="U" oldref="82">
217            <emph>SP</emph> is the probability of success on each trial.</paragraph>
218         <paragraph xml-lang="en-US" id="par_id3149760" role="paragraph" l10n="U" oldref="83">
219            <emph>C</emph> = 0 calculates the probability of a single event and <emph>C</emph> = 1 calculates the cumulative probability.</paragraph>
220         <paragraph xml-lang="en-US" id="hd_id3151171" role="heading" level="3" l10n="U"
221                    oldref="84">Example</paragraph>
222         <paragraph xml-lang="en-US" id="par_id3145666" role="paragraph" l10n="U" oldref="85">
223            <item type="input">=BINOMDIST(A1;12;0.5;0)</item> shows (if the values <item type="input">0</item> to <item type="input">12</item> are entered in A1) the probabilities for 12 flips of a coin that <emph>Heads</emph> will come up exactly the number of times entered in A1.</paragraph>
224         <paragraph xml-lang="en-US" id="par_id3150120" role="paragraph" l10n="U" oldref="86">
225            <item type="input">=BINOMDIST(A1;12;0.5;1)</item> shows the cumulative probabilities for the same series. For example, if A1 = <item type="input">4</item>, the cumulative probability of the series is 0, 1, 2, 3 or 4 times <emph>Heads</emph> (non-exclusive OR).</paragraph>
226      </section>
227      <section id="chisqinv">
228<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_CHISQINV" id="bm_id0119200902430717" localize="false"/>
229<bookmark xml-lang="en-US" branch="index" id="bm_id0119200902432928"><bookmark_value>CHISQINV function</bookmark_value>
230</bookmark>
231<paragraph xml-lang="en-US" id="hd_id0119200902421451" role="heading" level="2" l10n="NEW">CHISQINV</paragraph>
232         <paragraph xml-lang="en-US" id="par_id0119200902421449" role="paragraph" l10n="NEW"><ahelp hid=".">Returns the inverse of CHISQDIST.</ahelp></paragraph>
233         <paragraph xml-lang="en-US" id="hd_id0119200902475241" role="heading" level="3" l10n="NEW">Syntax</paragraph>
234         <paragraph xml-lang="en-US" id="par_id0119200902475286" role="paragraph" l10n="NEW">
235            <emph>Probability</emph> is the probability value for which the inverse of the chi-square distribution is to be calculated.</paragraph>
236         <paragraph xml-lang="en-US" id="par_id0119200902475282" role="paragraph" l10n="NEW">
237            <emph>Degrees Of Freedom</emph> is the degrees of freedom for the chi-square function.</paragraph>
238      </section>
239      <section id="chiinv">
240<bookmark xml-lang="en-US" branch="index" id="bm_id3148835"><bookmark_value>CHIINV function</bookmark_value>
241</bookmark>
242<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_CHIINV" id="bm_id3148823" localize="false"/>
243<paragraph xml-lang="en-US" id="hd_id3148835" role="heading" level="2" l10n="U"
244                    oldref="88">CHIINV</paragraph>
245         <paragraph xml-lang="en-US" id="par_id3149906" role="paragraph" l10n="U" oldref="89"><ahelp hid="HID_FUNC_CHIINV">Returns the inverse of the one-tailed probability of the chi-squared distribution.</ahelp></paragraph>
246         <paragraph xml-lang="en-US" id="hd_id3159157" role="heading" level="3" l10n="U"
247                    oldref="90">Syntax</paragraph>
248         <paragraph xml-lang="en-US" id="par_id3150504" role="code" l10n="U" oldref="91">CHIINV(Number; DegreesFreedom)</paragraph>
249         <paragraph xml-lang="en-US" id="par_id3154898" role="paragraph" l10n="U" oldref="92">
250            <emph>Number</emph> is the value of the error probability.</paragraph>
251         <paragraph xml-lang="en-US" id="par_id3154294" role="paragraph" l10n="U" oldref="93">
252            <emph>DegreesFreedom</emph> is the degrees of freedom of the experiment.</paragraph>
253         <paragraph xml-lang="en-US" id="hd_id3154208" role="heading" level="3" l10n="U"
254                    oldref="94">Example</paragraph>
255         <paragraph xml-lang="en-US" id="par_id3150777" role="paragraph" l10n="U" oldref="130">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.</paragraph>
256         <paragraph xml-lang="en-US" id="par_id3153062" role="paragraph" l10n="U" oldref="131">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.</paragraph>
257         <paragraph xml-lang="en-US" id="par_id3148806" role="paragraph" l10n="U" oldref="132">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.</paragraph>
258         <paragraph xml-lang="en-US" id="par_id3149763" role="paragraph" l10n="U" oldref="95">
259            <item type="input">=CHIINV(0.05;5)</item> returns 11.07.</paragraph>
260         <paragraph xml-lang="en-US" id="par_id3159142" role="paragraph" l10n="U" oldref="133">
261            <item type="input">=CHIINV(0.02;5)</item> returns 13.39.</paragraph>
262         <paragraph xml-lang="en-US" id="par_id3158401" role="paragraph" l10n="U" oldref="134">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.</paragraph>
263      </section>
264      <section id="chitest">
265<bookmark xml-lang="en-US" branch="index" id="bm_id3154260"><bookmark_value>CHITEST function</bookmark_value>
266</bookmark>
267<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_CHITEST" id="bm_id3155355" localize="false"/>
268<paragraph xml-lang="en-US" id="hd_id3154260" role="heading" level="2" l10n="U"
269                    oldref="97">CHITEST</paragraph>
270         <paragraph xml-lang="en-US" id="par_id3151052" role="paragraph" l10n="U" oldref="98"><ahelp hid="HID_FUNC_CHITEST">Returns the probability of a deviance from a random distribution of two test series based on the chi-squared test for independence.</ahelp> CHITEST returns the chi-squared distribution of the data.</paragraph>
271         <paragraph xml-lang="en-US" id="par_id3148925" role="paragraph" l10n="U" oldref="135">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.</paragraph>
272         <paragraph xml-lang="en-US" id="hd_id3154280" role="heading" level="3" l10n="U"
273                    oldref="99">Syntax</paragraph>
274         <paragraph xml-lang="en-US" id="par_id3149162" role="code" l10n="U" oldref="100">CHITEST(DataB; DataE)</paragraph>
275         <paragraph xml-lang="en-US" id="par_id3158421" role="paragraph" l10n="U" oldref="101">
276            <emph>DataB</emph> is the array of the observations.</paragraph>
277         <paragraph xml-lang="en-US" id="par_id3166453" role="paragraph" l10n="U" oldref="102">
278            <emph>DataE</emph> is the range of the expected values.</paragraph>
279         <paragraph xml-lang="en-US" id="hd_id3146946" role="heading" level="3" l10n="U"
280                    oldref="103">Example</paragraph>
281         <table id="tbl_id3153233">
282            <tablerow>
283               <tablecell>
284</tablecell>
285               <tablecell>
286                  <paragraph xml-lang="en-US" id="par_id3154096" role="paragraph" l10n="U" oldref="136">Data_B (observed)</paragraph>
287               </tablecell>
288               <tablecell>
289                  <paragraph xml-lang="en-US" id="par_id3152948" role="paragraph" l10n="U" oldref="137">Data_E (expected)</paragraph>
290               </tablecell>
291            </tablerow>
292            <tablerow>
293               <tablecell>
294                  <paragraph xml-lang="en-US" id="par_id3152876" role="paragraph" l10n="U" oldref="138">1</paragraph>
295               </tablecell>
296               <tablecell>
297                  <paragraph xml-lang="en-US" id="par_id3159279" role="paragraph" l10n="U" oldref="139">
298                     <item type="input">195</item>
299                  </paragraph>
300               </tablecell>
301               <tablecell>
302                  <paragraph xml-lang="en-US" id="par_id3149105" role="paragraph" l10n="U" oldref="140">
303                     <item type="input">170</item>
304                  </paragraph>
305               </tablecell>
306            </tablerow>
307            <tablerow>
308               <tablecell>
309                  <paragraph xml-lang="en-US" id="par_id3149922" role="paragraph" l10n="U" oldref="141">2</paragraph>
310               </tablecell>
311               <tablecell>
312                  <paragraph xml-lang="en-US" id="par_id3148621" role="paragraph" l10n="U" oldref="142">
313                     <item type="input">151</item>
314                  </paragraph>
315               </tablecell>
316               <tablecell>
317                  <paragraph xml-lang="en-US" id="par_id3148987" role="paragraph" l10n="U" oldref="143">
318                     <item type="input">170</item>
319                  </paragraph>
320               </tablecell>
321            </tablerow>
322            <tablerow>
323               <tablecell>
324                  <paragraph xml-lang="en-US" id="par_id3149417" role="paragraph" l10n="U" oldref="144">3</paragraph>
325               </tablecell>
326               <tablecell>
327                  <paragraph xml-lang="en-US" id="par_id3148661" role="paragraph" l10n="U" oldref="145">
328                     <item type="input">148</item>
329                  </paragraph>
330               </tablecell>
331               <tablecell>
332                  <paragraph xml-lang="en-US" id="par_id3151128" role="paragraph" l10n="U" oldref="146">
333                     <item type="input">170</item>
334                  </paragraph>
335               </tablecell>
336            </tablerow>
337            <tablerow>
338               <tablecell>
339                  <paragraph xml-lang="en-US" id="par_id3148467" role="paragraph" l10n="U" oldref="147">4</paragraph>
340               </tablecell>
341               <tablecell>
342                  <paragraph xml-lang="en-US" id="par_id3149237" role="paragraph" l10n="U" oldref="148">
343                     <item type="input">189</item>
344                  </paragraph>
345               </tablecell>
346               <tablecell>
347                  <paragraph xml-lang="en-US" id="par_id3145304" role="paragraph" l10n="U" oldref="149">
348                     <item type="input">170</item>
349                  </paragraph>
350               </tablecell>
351            </tablerow>
352            <tablerow>
353               <tablecell>
354                  <paragraph xml-lang="en-US" id="par_id3149927" role="paragraph" l10n="U" oldref="150">5</paragraph>
355               </tablecell>
356               <tablecell>
357                  <paragraph xml-lang="en-US" id="par_id3150630" role="paragraph" l10n="U" oldref="151">
358                     <item type="input">183</item>
359                  </paragraph>
360               </tablecell>
361               <tablecell>
362                  <paragraph xml-lang="en-US" id="par_id3150423" role="paragraph" l10n="U" oldref="152">
363                     <item type="input">170</item>
364                  </paragraph>
365               </tablecell>
366            </tablerow>
367            <tablerow>
368               <tablecell>
369                  <paragraph xml-lang="en-US" id="par_id3143275" role="paragraph" l10n="U" oldref="153">6</paragraph>
370               </tablecell>
371               <tablecell>
372                  <paragraph xml-lang="en-US" id="par_id3144750" role="paragraph" l10n="U" oldref="154">
373                     <item type="input">154</item>
374                  </paragraph>
375               </tablecell>
376               <tablecell>
377                  <paragraph xml-lang="en-US" id="par_id3153947" role="paragraph" l10n="U" oldref="155">
378                     <item type="input">170</item>
379                  </paragraph>
380               </tablecell>
381            </tablerow>
382         </table>
383
384         <paragraph xml-lang="en-US" id="par_id3149481" role="paragraph" l10n="U" oldref="104">
385            <item type="input">=CHITEST(A1:A6;B1:B6)</item> equals 0.02. This is the probability which suffices the observed data of the theoretical Chi-square distribution.</paragraph>
386      </section>
387      <section id="chidist">
388<bookmark xml-lang="en-US" branch="index" id="bm_id3148690"><bookmark_value>CHIDIST function</bookmark_value>
389</bookmark>
390<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_CHIVERT" id="bm_id3147521" localize="false"/>
391<paragraph xml-lang="en-US" id="hd_id3148690" role="heading" level="2" l10n="U"
392                    oldref="106">CHIDIST</paragraph>
393         <paragraph xml-lang="en-US" id="par_id3156338" role="paragraph" l10n="U" oldref="156"><ahelp hid="HID_FUNC_CHIVERT">Returns the probability value from the indicated Chi square that a hypothesis is confirmed.</ahelp> 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.</paragraph>
394         <paragraph xml-lang="en-US" id="par_id3151316" role="paragraph" l10n="U" oldref="157">The probability determined by CHIDIST can also be determined by CHITEST.</paragraph>
395         <paragraph xml-lang="en-US" id="hd_id3155123" role="heading" level="3" l10n="U"
396                    oldref="108">Syntax</paragraph>
397         <paragraph xml-lang="en-US" id="par_id3158439" role="code" l10n="U" oldref="109">CHIDIST(Number; DegreesFreedom)</paragraph>
398         <paragraph xml-lang="en-US" id="par_id3148675" role="paragraph" l10n="U" oldref="110">
399            <emph>Number</emph> is the chi-square value of the random sample used to determine the error probability.</paragraph>
400         <paragraph xml-lang="en-US" id="par_id3155615" role="paragraph" l10n="U" oldref="111">
401            <emph>DegreesFreedom</emph> are the degrees of freedom of the experiment.</paragraph>
402         <paragraph xml-lang="en-US" id="hd_id3146787" role="heading" level="3" l10n="U"
403                    oldref="112">Example</paragraph>
404         <paragraph xml-lang="en-US" id="par_id3145774" role="paragraph" l10n="U" oldref="113">
405            <item type="input">=CHIDIST(13.27; 5)</item> equals 0.02.</paragraph>
406         <paragraph xml-lang="en-US" id="par_id3156141" role="paragraph" l10n="U" oldref="158">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%.</paragraph>
407      </section>
408      <section id="chisqdist">
409<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_CHISQDIST" id="bm_id0119200902213671" localize="false"/>
410<bookmark xml-lang="en-US" branch="index" id="bm_id0119200902231887"><bookmark_value>CHISQDIST function</bookmark_value>
411<bookmark_value>chi-square distribution</bookmark_value>
412</bookmark>
413<paragraph xml-lang="en-US" id="hd_id0119200901583452" role="heading" level="2" l10n="NEW">CHISQDIST</paragraph>
414         <paragraph xml-lang="en-US" id="par_id0119200901583471" role="paragraph" l10n="NEW"><ahelp hid=".">Returns the value of the probability density function or the cumulative distribution function for the chi-square distribution.</ahelp></paragraph>
415         <paragraph xml-lang="en-US" id="hd_id0119200902395520" role="heading" level="3" l10n="NEW">Syntax</paragraph>
416         <paragraph xml-lang="en-US" id="par_id0119200902395679" role="code" l10n="NEW">CHISQDIST(Number; Degrees Of Freedom; Cumulative)</paragraph>
417         <paragraph xml-lang="en-US" id="par_id011920090239564" role="paragraph" l10n="NEW">
418            <emph>Number</emph> is the number for which the function is to be calculated.</paragraph>
419         <paragraph xml-lang="en-US" id="par_id0119200902395660" role="paragraph" l10n="NEW">
420            <emph>Degrees Of Freedom</emph> is the degrees of freedom for the chi-square function.</paragraph>
421         <paragraph xml-lang="en-US" id="par_id0119200902395623" role="paragraph" l10n="NEW">
422            <emph>Cumulative</emph> (optional): 0 or False calculates the probability density function. Other values or True or omitted calculates the cumulative distribution function.</paragraph>
423      </section>
424      <section id="expondist">
425<bookmark xml-lang="en-US" branch="index" id="bm_id3150603"><bookmark_value>EXPONDIST function</bookmark_value>
426         <bookmark_value>exponential distributions</bookmark_value>
427</bookmark>
428<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_EXPONVERT" id="bm_id3152962" localize="false"/>
429<paragraph xml-lang="en-US" id="hd_id3150603" role="heading" level="2" l10n="U"
430                    oldref="115">EXPONDIST</paragraph>
431         <paragraph xml-lang="en-US" id="par_id3149563" role="paragraph" l10n="U" oldref="116"><ahelp hid="HID_FUNC_EXPONVERT">Returns the exponential distribution.</ahelp></paragraph>
432         <paragraph xml-lang="en-US" id="hd_id3153789" role="heading" level="3" l10n="U"
433                    oldref="117">Syntax</paragraph>
434         <paragraph xml-lang="en-US" id="par_id3150987" role="code" l10n="U" oldref="118">EXPONDIST(Number; Lambda; C)</paragraph>
435         <paragraph xml-lang="en-US" id="par_id3154663" role="paragraph" l10n="U" oldref="119">
436            <emph>Number</emph> is the value of the function.</paragraph>
437         <paragraph xml-lang="en-US" id="par_id3154569" role="paragraph" l10n="U" oldref="120">
438            <emph>Lambda</emph> is the parameter value.</paragraph><comment>UFI removed a double bookmark</comment>
439<paragraph xml-lang="en-US" id="par_id3147332" role="paragraph" l10n="U" oldref="121">
440            <emph>C</emph> is a logical value that determines the form of the function. <emph>C = 0</emph> calculates the density function, and <emph>C = 1</emph> calculates the distribution.</paragraph>
441         <paragraph xml-lang="en-US" id="hd_id3146133" role="heading" level="3" l10n="U"
442                    oldref="122">Example</paragraph>
443         <paragraph xml-lang="en-US" id="par_id3150357" role="paragraph" l10n="U" oldref="123">
444            <item type="input">=EXPONDIST(3;0.5;1)</item> returns 0.78.</paragraph>
445      </section>
446</sort>
447<section id="relatedtopics">
448         <embed href="text/scalc/01/04060100.xhp#drking"/>
449      </section>
450   </body>
451</helpdocument>
452