Difference between revisions of "Manuals/calci/HYPGEOMDIST"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> <font face="Times New Roman">'''HYPGEOMDIST''' ('''n1, n2, n3, n4)'''</font> <font size="3"><font face="Times New ...")
 
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''<div style="font-size:30px">'''HYPGEOMDIST(n1,n2,n3,n4)'''</div><br/>
 +
*<math>n1</math> is the sample's success.
 +
*<math>n2</math> is the sample's size.
 +
*<math>n3</math> is population's success 
 +
*<math>n4</math> is the population size.
 +
==Description==
 +
"This function gives the result of Hypergeometric distribution.
 +
This distribution  is a discrete probability distribution which is contrast to the binomial distribution.
 +
A hypergeometric random variable is the number of successes that result from a hypergeometric experiment.
 +
The probability distribution of a hypergeometric random variable is called a hypergeometric distribution.
 +
In  HYPGEOMDIST(n1,n2,n3,n4) where n1 is thenumber of items in the Sample  that are classified as successes.
 +
n2 is the total number of items in the sample.
 +
n3 is thenumber of items in the population  that are classified as successes and n4 is the total number of items in the sample.
 +
The following conditions are applied to the Hypergeometric distribution:
 +
1.This distribution is applies to sampling without replacement from a finite population whose elements can be classified into two  categories like success or Failure.
 +
2.The population or set to be sampled consists of N individuals, objects,or elements
 +
3.Each individual can be  success (S) or a failure (F),
 +
and there areM successes in the population.
 +
4. A sample of n individuals is selected without replacement in such a way that each subset of size n is equally likely to be chosen. The Hyper geometric probability distribution is:
 +
P(X=x)=h(x;n,M,N)=(M          (N-M
 +
                                    x)          n-x)        /(N   
 +
                                                                      n)  for x is an integer satisfying  max(0, n-N+M)<=x<=min(n,M). where x is sample's success.n is the sample's size.M is population's success and N is the population size. Here we can give any positive real numbers. Suppose we are assigning any decimals numbers it will change in to Integers. This function will give result as error when 1. Any one of the argument is nonnumeric.
 +
2.n1<0 or n1 is greater than the smaller value of n2 or n3.
 +
3.n1 is less than the bigger of 0 or(n2-n4+n3)
 +
4. n2<=0 or n2>n4
 +
5.n3<=0 or  n3>n4 or n4<=0"
  
<font face="Times New Roman">'''HYPGEOMDIST''' ('''n1, n2, n3, n4)'''</font>
+
==Examples==
  
<font size="3"><font face="Times New Roman">n1- It is the number of successes in the sample</font></font>
+
Draw 6 cards from a deck without replacement.
 +
What is the probability of getting two hearts?
 +
Here M = 13 number of hearts
 +
N = 52 total number of cards
 +
so N-M= 52-13= 39 and
 +
x=2,n=6 so n-x=6-2=4
 +
HYPGEOMDIST(2,6,13,52)=0.315129882
 +
2.42 balls are numbered 1 - 42.
 +
You select six numbers between 1 and 42. What is the probability that they contain
 +
(i)match 3?
 +
(ii) match 4?
 +
(i)Here M= 6,N=42,x=3and n=6
 +
HYPGEOMDIST(3,6,6,42)=0.02722185
 +
(ii)Here M= 6,N=42,x=4and n=6
 +
HYPGEOMDIST(4,6,6,42)=0.001801446
 +
3.
  
<font size="3"><font face="Times New Roman">n2- It is size of the sample</font></font>
+
==See Also==
 +
*[[Manuals/calci/BINOMDIST  | BINOMDIST ]]
 +
*[[Manuals/calci/COMBIN  | COMBIN ]]
 +
*[[Manuals/calci/FACT  | FACT ]]
  
<font size="3"><font face="Times New Roman">n3-It is the number of successes in the population</font></font>
 
  
<font size="3"><font face="Times New Roman">n4- it is the size of the population</font></font>
+
==References==
 +
[http://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient| Correlation]
 +
(ar1,ar2)'''</div><br/>
 +
*<math>ar1</math> and <math>ar2 </math> are the set of values.
 +
==Description==
 +
*This function gives the correlation coefficient of the 1st set(<math>ar1</math>) of values and 2nd set(<math>ar2</math>) of values.
 +
*Correlation is a statistical technique which shows the relation of strongly paired variables. 
 +
*For example, test average and study time are related; those who spending more time to study will get high marks and Average will go down for those who spend less time for studies.
 +
*There are  different correlation techniques to measure the Degree of Correlation.
 +
*The most common of these is the Pearson Correlation Coefficient  denoted by <math>r_xy</math>.
 +
*The main result of a correlation is called the Correlation Coefficient(<math>r</math>)which  ranges from -1 to +1.
 +
*The <math>r</math> value is positive i.e +1  when the two set values increase together then it is the perfect Positive Correlation.
 +
*The <math>r</math> value is negative i.e. (-1)  when one value decreases as the other increases then it is called Negative Correlation.
 +
*Suppose the <math>r</math> value is 0 then there is no correlation (the values don't seem linked at all).
 +
*If we have a series of <math>n</math> measurements of <math>X</math> and <math>Y</math> written as <math>xi</math> and <math>yi</math> where <math>i = 1, 2,...n</math> then the Sample Correlation Coefficient is:
 +
<math>CORREL(X,Y)= r_{xy}= \frac{\sum_{i=1}^n (xi-\bar x)(yi-\bar y)}{\sqrt{ \sum_{i=1}^n (xi-\bar x)^2 \sum{i=1}^n (yi-\bar y)^2}}</math>
 +
*<math>\bar x</math> and <math>\bar y</math> are the sample means of <math>X</math> and <math>Y</math>.
 +
*This function will give the result as error when
 +
1.<math>ar1</math> and <math>ar2</math> are non-numeric or different number of data points.
 +
2.<math>ar1</math> or <math>ar2</math> is empty
 +
3.The denominator value is zero.
 +
*Suppose <math>ar1</math> and <math>ar2</math> contains any text, logical values, or empty cells, like that values are ignored.
  
<font size="3" face="Times New Roman"> </font>
+
==Examples==
  
</div>
+
#Find the correlation coefficients for X and Y values are given below :X={1,2,3,4,5};  Y={11,22,34,43,56}
----
+
=CORREL(A4:A8,B4:B8)=0.99890610723867
<div id="1SpaceContent" class="zcontent" align="left">
+
#The following table gives the math scores and times taken to run 100 m for 10 friends:SCORE(X)={52,25,35,90,76,40}; TIME TAKEN(Y)={11.3,12.9,11.9,10.2,11.1,12.5}
 +
=CORREL(A5:A10,B5:B10)= -0.93626409417769
 +
#Find the correlation coefficients for X and Y values are given below :X={-4,11,34,87};Y={9,2,59,24}
 +
=CORREL(A1:A4,B1:B4)=0.353184665607273
  
<font size="3"><font face="Times New Roman">Calculate the hyper geometric distribution.</font></font>
+
==See Also==
 +
*[[Manuals/calci/COVAR  | COVAR ]]
 +
*[[Manuals/calci/FISHER  | FISHER ]]
  
</div>
 
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
·         <font face="Times New Roman">All arguments are shortened to integers. </font>
+
==References==
 
+
[http://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient| Correlation]
·         <font face="Times New Roman">HYPGEOMDIST calculates error value, when n1 is less than the larger of 0 </font>
 
 
 
·         <font face="Times New Roman">HYPGEOMDIST calculates error value, n2 is less than or equal to 0(zero) or n2 is grater than the n4. </font>
 
 
 
·         <font face="Times New Roman">HYPGEOMDIST calculates the error value, when n3 is less than or equal to 0(zero) or n3 grater than n4</font>
 
 
 
·         <font face="Times New Roman">HYPGEOMDIST calculates error value, when n4 is less than or equal to 0(zero). </font>
 
 
 
<font face="Times New Roman"></font>
 
 
 
<font face="Times New Roman">
 
 
 
Formulas:-
 
 
 
·         <font face="Times New Roman">The equation to calculate the hyper geometric distribution is: </font>
 
 
 
<font face="Times New Roman"></font>
 
 
 
<font face="Times New Roman"></font>
 
 
 
<font size="3"><font face="Times New Roman">Where, n1=x, n2=n, n3=M and n4=N</font></font>
 
 
 
</font></div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
 
 
HYPGEOMDIST
 
 
 
</div></div>
 
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
 
 
<font color="#484848"><font face="Times New Roman"><font size="1">  </font>HYPGEOMDIST (C1,C2,C3,C4)</font></font>
 
 
 
<font color="#484848"><font face="Times New Roman"></font></font>
 
 
 
<font color="#484848"><font face="Times New Roman"><font size="1">  </font><font face="Times New Roman">HYPGEOMDIST (2,48,6,100)=0.2562</font></font></font>
 
 
 
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left"><div>
 
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| Column1
 
| class="        " | Column2
 
| class="    " | Column3
 
| class="sshl_f" | Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 2
 
| class=" " | 48
 
| class=" " | 6
 
| class="sshl_f " | 100
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 0.256178
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f    " |
 
<div id="2Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
|- class="odd"
 
| Row3
 
| class="sshl_f SelectTD SelectTD" |
 
<div id="2Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="  " |
 
|- class="even"
 
| Row4
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
| class=" " |
 
|- class="odd"
 
| class="sshl_f" | Row5
 
| class="sshl_f" |
 
| class="  " |
 
|
 
|
 
|- class="even"
 
| class=" " | Row6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|
 
| class="sshl_f" |
 
|}
 
 
 
<div align="left"></div>''''''</div></div>
 
----
 

Revision as of 01:32, 10 December 2013

HYPGEOMDIST(n1,n2,n3,n4)

  • is the sample's success.
  • is the sample's size.
  • is population's success
  • is the population size.

Description

"This function gives the result of Hypergeometric distribution. This distribution is a discrete probability distribution which is contrast to the binomial distribution. A hypergeometric random variable is the number of successes that result from a hypergeometric experiment. The probability distribution of a hypergeometric random variable is called a hypergeometric distribution. In HYPGEOMDIST(n1,n2,n3,n4) where n1 is thenumber of items in the Sample that are classified as successes. n2 is the total number of items in the sample. n3 is thenumber of items in the population that are classified as successes and n4 is the total number of items in the sample. The following conditions are applied to the Hypergeometric distribution: 1.This distribution is applies to sampling without replacement from a finite population whose elements can be classified into two categories like success or Failure. 2.The population or set to be sampled consists of N individuals, objects,or elements 3.Each individual can be success (S) or a failure (F), and there areM successes in the population. 4. A sample of n individuals is selected without replacement in such a way that each subset of size n is equally likely to be chosen. The Hyper geometric probability distribution is: P(X=x)=h(x;n,M,N)=(M (N-M

                                    x)           n-x)         /(N     
                                                                      n)  for x is an integer satisfying   max(0, n-N+M)<=x<=min(n,M). where x is sample's success.n is the sample's size.M is population's success and N is the population size. Here we can give any positive real numbers. Suppose we are assigning any decimals numbers it will change in to Integers. This function will give result as error when 1. Any one of the argument is nonnumeric.

2.n1<0 or n1 is greater than the smaller value of n2 or n3. 3.n1 is less than the bigger of 0 or(n2-n4+n3) 4. n2<=0 or n2>n4 5.n3<=0 or n3>n4 or n4<=0"

Examples

Draw 6 cards from a deck without replacement. What is the probability of getting two hearts? Here M = 13 number of hearts N = 52 total number of cards so N-M= 52-13= 39 and x=2,n=6 so n-x=6-2=4 HYPGEOMDIST(2,6,13,52)=0.315129882 2.42 balls are numbered 1 - 42. You select six numbers between 1 and 42. What is the probability that they contain (i)match 3? (ii) match 4? (i)Here M= 6,N=42,x=3and n=6 HYPGEOMDIST(3,6,6,42)=0.02722185 (ii)Here M= 6,N=42,x=4and n=6 HYPGEOMDIST(4,6,6,42)=0.001801446 3.

See Also


References

Correlation

(ar1,ar2)


  • and are the set of values.

Description

  • This function gives the correlation coefficient of the 1st set() of values and 2nd set() of values.
  • Correlation is a statistical technique which shows the relation of strongly paired variables.
  • For example, test average and study time are related; those who spending more time to study will get high marks and Average will go down for those who spend less time for studies.
  • There are different correlation techniques to measure the Degree of Correlation.
  • The most common of these is the Pearson Correlation Coefficient denoted by .
  • The main result of a correlation is called the Correlation Coefficient()which ranges from -1 to +1.
  • The value is positive i.e +1 when the two set values increase together then it is the perfect Positive Correlation.
  • The value is negative i.e. (-1) when one value decreases as the other increases then it is called Negative Correlation.
  • Suppose the value is 0 then there is no correlation (the values don't seem linked at all).
  • If we have a series of measurements of and written as and where then the Sample Correlation Coefficient is:

  • and are the sample means of and .
  • This function will give the result as error when
1. and  are non-numeric or different number of data points.
2. or  is empty
3.The denominator value is zero.
  • Suppose and contains any text, logical values, or empty cells, like that values are ignored.

Examples

  1. Find the correlation coefficients for X and Y values are given below :X={1,2,3,4,5}; Y={11,22,34,43,56}

=CORREL(A4:A8,B4:B8)=0.99890610723867

  1. The following table gives the math scores and times taken to run 100 m for 10 friends:SCORE(X)={52,25,35,90,76,40}; TIME TAKEN(Y)={11.3,12.9,11.9,10.2,11.1,12.5}

=CORREL(A5:A10,B5:B10)= -0.93626409417769

  1. Find the correlation coefficients for X and Y values are given below :X={-4,11,34,87};Y={9,2,59,24}

=CORREL(A1:A4,B1:B4)=0.353184665607273

See Also


References

Correlation