Difference between revisions of "Manuals/calci/HYPGEOMDIST"

From ZCubes Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="font-size:30px">'''HYPGEOMDIST(n1,n2,n3,n4)'''</div><br/>
+
<div style="font-size:20px">'''HYPGEOMDIST (sample_s,number_sample,population_s,number_population,cumulative)'''</div><br/>
*<math>n1</math> is the sample's success.
+
*<math>samples</math> is the sample's success.
*<math>n2</math> is the sample's size.
+
*<math>number sample</math> is the sample's size.
*<math>n3</math> is population's success.
+
*<math>population s</math> is population's success.
*<math>n4</math> is the population size.
+
*<math>number population</math> is the population size.
 +
**HYPGEOMDIST(),returns the hypergeometric distribution.
  
 
==Description==
 
==Description==
Line 10: Line 11:
 
*A Hypergeometric random variable is the number of successes that result from a Hypergeometric experiment.  
 
*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.
 
*The probability distribution of a Hypergeometric random variable is called a Hypergeometric Distribution.
*In  HYPGEOMDIST(n1,n2,n3,n4) where n1 is the number of items in the Sample  that are classified as successes.  
+
*In  HYPGEOMDIST (sample_s,number_sample,population_s,number_population,cumulative) where samples is the number of items in the Sample  that are classified as successes.  
*<math>n2</math> is the total number of items in the sample.
+
*<math>number sample</math> is the total number of items in the sample.
*<math>n3</math> is the number of items in the population  that are classified as successes and <math>n4</math> is the total number of items in the sample.  
+
*<math>populations</math> is the number of items in the population  that are classified as successes and <math>numberpopulation</math> is the total number of items in the sample.  
 
*The following conditions are applied to the Hypergeometric distribution:  
 
*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
 
  1.This distribution is applies to sampling without replacement from a finite population whose elements can be
Line 18: Line 19:
 
  2.The population or set to be sampled consists of N individuals, objects,or elements  
 
  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 are M successes in the population.
 
  3.Each individual can be  success (S) or a failure (F), and there are M successes in the population.
  4.A sample of <math>n</math>n individuals is selected without replacement in such a way that each subset of  
+
  4.A sample of <math>n</math> individuals is selected without replacement in such a way that each subset of  
 
   size <math>n</math> is equally likely to be chosen.
 
   size <math>n</math> is equally likely to be chosen.
 
*The Hyper geometric probability distribution is:
 
*The Hyper geometric probability distribution is:
Line 29: Line 30:
 
*This function will give result as error when  
 
*This function will give result as error when  
 
  1.Any one of the argument is non-numeric.
 
  1.Any one of the argument is non-numeric.
  2.<math>n1 < 0</math> or n1 is greater than the smaller value of n2 or n3.
+
  2.<math>samples < 0</math> or samples is greater than the smaller value of numbersample or populations.
  3.<math>n1</math> is less than the bigger of 0 or(n2-n4+n3)
+
  3.<math>samples</math> is less than the bigger of 0 or(numbersample-numberpopulation+populations)
  4.<math>n2 \le 0</math> or <math>n2>n4</math>
+
  4.<math>numbersample \le 0</math> or <math>numbersample>numberpopulation</math>
  5.<math>n3 \le 0</math> or  <math>n3>n4</math> or <math>n4 \le 0</math>
+
  5.<math>populations \le 0</math> or  <math>populations>numberpopulation</math> or <math>numberpopulation \le 0</math>
 +
 
 +
==ZOS==
 +
*The syntax is to calculate HYPGEOMDIST in ZOS is <math>HYPGEOMDIST (sample s,number sample,population s,number population,cumulative)
 +
</math>
 +
**<math>sample s</math> is the sample's success.
 +
**<math>number sample</math> is the sample's size.
 +
**<math>population s</math> is population's success.
 +
**<math>number population</math> is the population size.
 +
*For e.g.,HYPGEOMDIST(2..3,6..7,9..10,20)
 +
 
 +
{{#ev:youtube|fui0xWgBO4g|280|center|Hyper-geometric Distribution}}
  
 
==Examples==
 
==Examples==
  
Draw 6 cards from a deck without replacement.
+
#Draw 6 cards from a deck without replacement.What is the probability of getting two hearts?
What is the probability of getting two hearts?
+
Here M = 13 number of hearts
Here M = 13 number of hearts
+
N = 52 total number of cards
N = 52 total number of cards
+
so N-M= 52-13= 39 and  
so N-M= 52-13= 39 and  
+
x=2,n=6 so n-x=6-2=4
x=2,n=6 so n-x=6-2=4
+
=HYPGEOMDIST(2,6,13,52)=0.315129882
HYPGEOMDIST(2,6,13,52)=0.315129882
+
#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
2.42 balls are numbered 1 - 42.
+
(i)Here M= 6,N=42,x=3and n=6
You select six numbers between 1 and 42. What is the probability that they contain
+
HYPGEOMDIST(3,6,6,42)=0.02722185
(i)match 3?
+
(ii)Here M= 6,N=42,x=4and n=6
(ii) match 4?
+
HYPGEOMDIST(4,6,6,42)=0.001801446
(i)Here M= 6,N=42,x=3and n=6
+
 
HYPGEOMDIST(3,6,6,42)=0.02722185
+
==Related Videos==
(ii)Here M= 6,N=42,x=4and n=6
+
 
HYPGEOMDIST(4,6,6,42)=0.001801446
+
{{#ev:youtube|NMeVWPdo7e4|280|center|Hyper-Geometric Distribution}}
3.
 
  
 
==See Also==
 
==See Also==
Line 60: Line 71:
 
==References==
 
==References==
 
[http://en.wikipedia.org/wiki/Hypergeometric_distribution| Hypergeometric Distribution]
 
[http://en.wikipedia.org/wiki/Hypergeometric_distribution| Hypergeometric Distribution]
 +
 +
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 16:19, 7 August 2018

HYPGEOMDIST (sample_s,number_sample,population_s,number_population,cumulative)


  • is the sample's success.
  • is the sample's size.
  • is population's success.
  • is the population size.
    • HYPGEOMDIST(),returns the hypergeometric distribution.

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 (sample_s,number_sample,population_s,number_population,cumulative) where samples is the number of items in the Sample that are classified as successes.
  • is the total number of items in the sample.
  • is the number of items in the population that are classified as successes and 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 are M successes in the population.
4.A sample of  individuals is selected without replacement in such a way that each subset of 
  size  is equally likely to be chosen.
  • The Hyper geometric probability distribution is:

for is an integer satisfying . where is sample's success.

  • is the sample's size.
  • is population's success and 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 non-numeric.
2. or samples is greater than the smaller value of numbersample or populations.
3. is less than the bigger of 0 or(numbersample-numberpopulation+populations)
4. or 
5. or   or 

ZOS

  • The syntax is to calculate HYPGEOMDIST in ZOS is
    • is the sample's success.
    • is the sample's size.
    • is population's success.
    • is the population size.
  • For e.g.,HYPGEOMDIST(2..3,6..7,9..10,20)
Hyper-geometric Distribution

Examples

  1. 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
  1. 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

Related Videos

Hyper-Geometric Distribution

See Also

References

Hypergeometric Distribution