This article was first posted on QuantDare Blog.
Rabbits, triangles, and triplets. These three things are linked by an important series often characterised by shells and flowers. But what do the Fibonacci numbers (and their subsequent sequence) have to offer the world of finance?
In mathematics, the Fibonacci series refers to the ordered sequence of numbers described by Leonardo of Pisa, a 12th-century Italian mathematician.
0,1,1,2,3,5,8,13,21,34,55,89,144,…0,1,1,2,3,5,8,13,21,34,55,89,144,…
Each element in the series is known as a Fibonacci number.
The history of the Fibonacci sequence
This sequence was described by Fibonacci as the solution to a rabbit breeding problem: “a certain man has a pair of rabbits in a closed space and wants to know how many are created from this pair in a year when, according to nature, each couple requires one month to grow old and each subsequent month procreates another couple.” (Laurence Sigler, Fibonacci’s Liber Abaci, pg. 404).
The answer to this question is as follows:
- 1st month: we start from a pair of rabbits.
- 2nd month: the couple grows older but does not procreate.
- 3rd month: the pair procreates another pair (that is, we now have two couples).
- 4th month: the first couple procreate and the second age without procreating (we now have three couples).
- 5th month: the two older couples procreate, while the new pair ages (five pairs in total).
- Etc.
Schematically, this would be:
Where:
- Black arrow: the pair of rabbits ages.
- Red arrow: the pair of rabbits age for the first time (and therefore don’t procreate).
- Green arrow: the pair of rabbits procreates.
How are the Fibonacci numbers calculated?
There are different ways to calculate Fibonacci numbers:
- From the numbers 00 and 11, the Fibonacci numbers are defined by the function:
fnf0f1f2f3…=fn−1+fn−2=0=1=f1+f0=1=f2+f1=2fn=fn−1+fn−2f0=0f1=1f2=f1+f0=1f3=f2+f1=2…
- A generating function for any sequence a0,a1,a2,…a0,a1,a2,… is the function f(x)=ao+a1x+a2x2+…f(x)=ao+a1x+a2x2+…, that is, a formal power series where each coefficient is an element of the sequence. Fibonacci numbers have the generating function:
f(x)=x1−x−x2f(x)=x1−x−x2
- Explicit formula, this way of calculating Fibonacci numbers uses the golden number expression:
fn=(1+5√2)n−(1−1+5√2)n5–√=(1+5√2)n−(1−5√2)n5–√fn=(1+52)n−(1−1+52)n5=(1+52)n−(1−52)n5
Fibonacci numbers in Mathematics
Golden numbers
The golden number, gold number or divine proportion, is the numerical value of the proportion held by two segments of line aa and bb (with aa longer than bb): the total length is to segment aa, as aa is to segment bb.
One property stands out among many: the number itself, its square and its inverse, have the same decimal figures:
ϕϕ21ϕ=1.6180339887…=ϕ+1=2.6180339887…=ϕ−1=0.6180339887…ϕ=1.6180339887…ϕ2=ϕ+1=2.6180339887…1ϕ=ϕ−1=0.6180339887…
The ratio or quotient between Fibonacci terms and the immediately preceding one varies continuously, but stabilizes in the golden number:
limn→∞fn+1fn=ϕ≈1.6180339887limn→∞fn+1fn=ϕ≈1.6180339887
Pascal’s triangle
Pascal’s triangle is a representation of the binomial coefficients ordered in a triangle form. That is, each row of the triangle represents the coefficients of the monomials that appear in the development of the binomial (a+b)n(a+b)n (taking the top 11as the power n=0n=0) or, in the same way, the coefficients appear in Newton’s binomial coincide with the elements appearing in each row of the Pascal triangle.
The triangle’s construction is as follows:
We put a 11 in the triangle’s top vertex. Then, in the next row, we place a 11 on the right and a 11 on the left. In the lower rows, place 1st at the ends and for others, the sum of the numbers directly above on either side.
This triangle has a number of curious properties:
- If we add the elements of each row, we get the powers of 2:1,2,4,8,16,2:1,2,4,8,16, etc.
- Adding two consecutive elements of the diagonal 1−3−6−10−15,1−3−6−10−15, etc., we get a perfect square: 1,4,9,16,25,1,4,9,16,25, etc.
- If the first number in a row (after 11) is a prime number, then all other numbers are divisible by that prime number (excluding the 1s). For example, in row 1−7−21−35−35−32−71−7−21−35−35−32−7, the first number is 77, which is prime. The rest (7,21,35)(7,21,35) are all divisible by 77.
But the main curiosity is the property relating to the Fibonacci numbers:
Pythagorean triples
A Pythagorean triple consists of three elements (a,b,ca,b,c) that satisfy a2+b2=c2a2+b2=c2 (Pythagorean theorem).
There’s a close relationship between the Fibonacci numbers and the Pythagorean triples. If we take four consecutive numbers from the Fibonacci sequence, (w,x,y,z)(w,x,y,z), we can get a Pythagorean triple if we make the following assignments:
- Let aa be the product of the numbers belonging to the extremes a=xza=xz.
- Let bb be the double of the product of the intermediate numbers c=2ywc=2yw.
- Let cc be the sum of the product of the odd numbers and the product of the even numbers c=xw+zyc=xw+zy.
Therefore (a,b,ca,b,c) is a Pythagorean triple.
Fibonacci numbers in trading techniques
In trading, Fibonacci numbers appear in so-called Fibonacci studies. Fibonacci studies encompass a series of analysis tools based on sequence and Fibonacci ratios, which represent geometric laws of nature and human behaviour applied to financial markets.
The most popular of these tools are Fibonacci retracements, extensions, arcs, fan and time zones. Other tools include the Fibonacci eclipse, spiral and canals.
If you want to know how some of these tools work in financial markets, read our post “Fibonacci retracement and extensions“.
Disclosure: Interactive Brokers
Information posted on IBKR Campus that is provided by third-parties does NOT constitute a recommendation that you should contract for the services of that third party. Third-party participants who contribute to IBKR Campus are independent of Interactive Brokers and Interactive Brokers does not make any representations or warranties concerning the services offered, their past or future performance, or the accuracy of the information provided by the third party. Past performance is no guarantee of future results.
This material is from QuantDare and is being posted with its permission. The views expressed in this material are solely those of the author and/or QuantDare and Interactive Brokers is not endorsing or recommending any investment or trading discussed in the material. This material is not and should not be construed as an offer to buy or sell any security. It should not be construed as research or investment advice or a recommendation to buy, sell or hold any security or commodity. This material does not and is not intended to take into account the particular financial conditions, investment objectives or requirements of individual customers. Before acting on this material, you should consider whether it is suitable for your particular circumstances and, as necessary, seek professional advice.