Difference between revisions of "Manuals/calci/BERNOULLI"
Jump to navigation
Jump to search
| Line 12: | Line 12: | ||
*<math>p</math> is the probability value. The <math>p</math> vaule is ranges from 0 to 1. | *<math>p</math> is the probability value. The <math>p</math> vaule is ranges from 0 to 1. | ||
*The Bernoulli distribution is defined by:<math>f(x)=p^x(1-p)^{1-x}</math> for x=0,1, where <math>p</math> is the probability that a particular event will occur. | *The Bernoulli distribution is defined by:<math>f(x)=p^x(1-p)^{1-x}</math> for x=0,1, where <math>p</math> is the probability that a particular event will occur. | ||
| − | *The probability mass function is :<math>f(k,p) = \begin{cases}p | + | *The probability mass function is :<math>f(k,p) = \begin{cases}p if& k=1\\ |
| − | 1-p | + | 1-p if &k=0. |
\end{cases}</math> | \end{cases}</math> | ||
*This function will give the result as error when | *This function will give the result as error when | ||
Latest revision as of 14:01, 7 December 2016
BERNOULLIDISTRIBUTED(k,p)
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle k} represents the number of variables.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p} is the probability value.
Description
- This function gives the value of the Bernoulli distribution.
- It is a discrete probability distribution.
- Bernoulli distribution is the theoretical distribution of the number of successes in a finite set of independent trials with a constant probability of success.
- The Bernoulli distribution is simply BINOM(1,P).
- This distribution best describes all situations where a trial is made resulting in either success or failure, such as when tossing a coin, or when modeling the success or failure.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle BERNOULLIDISTRIBUTED(k,p)} ,Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle k} represents the number of variables.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p} is the probability value. The Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p} vaule is ranges from 0 to 1.
- The Bernoulli distribution is defined by:Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)=p^x(1-p)^{1-x}} for x=0,1, where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p} is the probability that a particular event will occur.
- The probability mass function is :Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle f(k,p)={\begin{cases}pif&k=1\\1-pif&k=0.\end{cases}}}
- This function will give the result as error when
1. Any one of the argument is nonnumeric.
2. The value of p<0 or p>1.
ZOS
- The syntax is to calculate this function in ZOS is Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle BERNOULLIDISTRIBUTED(a,b)}
.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a} represents the number of variables.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle b} is the probability value.
- For e.g.,BERNOULLIDISTRIBUTED(5,0.4)
- BERNOULLIDISTRIBUTED(3..7,0.7)
Examples
- =BERNOULLIDISTRIBUTED(5,0.5)=1 1 0 0 1, 0 0 0 0 0
- =BERNOULLIDISTRIBUTED(3,0.2)= 0 0 0