With replacement, successive draws are independent, with red probability and green probability . The first red on draw requires greens followed by one red. Hence
This is a geometric distribution. Its total probability is one because the geometric series sums to .
Use the real logarithm near zero and subtract its two Taylor series:
Thus the first three nonzero terms are
Factor the Gaussian function as . Multiplying the two exponential series gives
For , its first three nonzero terms are
Vanishing coefficients require separate treatment in this Taylor expansion of a translated Gaussian. If , the first three nonzero terms are . If , they are
The latter expression retains the cubic term because the quadratic coefficient is zero.
For fixed real , write the square root as and use the binomial series with exponent :
The absolute values are necessary for negative . This Taylor series is valid for . If , the quotient is for ; it has no continuous extension at zero and therefore has no Taylor expansion about zero.
Integrate the geometric series for from zero to . The first three nonzero terms are
The resulting Taylor series converges for .
Row reduction, or the cofactor formula for a matrix inverse, gives
Multiplying by the right-hand-side column gives, at ,
For general , the coefficient matrix has determinant . Thus other parameter values give a unique solution. If , subtracting the first equation from the second gives , while subtracting it from the third gives , a contradiction. If , subtraction gives and , again inconsistent. Hence
The triangular probability density function is normalized because . It is even, so the mean integrand is odd and . Its variance is consequently its second moment:
For a probability density function , the mean and variance are
These formulas assume the required moments are finite; finiteness of the second moment ensures a finite mean as well.
For , write . The equation becomes , whose roots are , both of modulus one. Hence . If , the double root is , giving the same relation. Therefore

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact