This website uses cookies to collect usage information in order to offer a better browsing experience. By browsing this site or by clicking on the "ACCEPT COOKIES" button you accept our Cookie Policy.

The Magic of Fibonacci Numbers


Visit: QuantDare


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. 


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: 

Fibonacci is the key - rabbit chart


  • 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: 

  1. From the numbers 00 and 11, the Fibonacci numbers are defined by the function: 


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


  1. Explicit formula, this way of calculating Fibonacci numbers uses the golden number expression: 


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: 


The ratio or quotient between Fibonacci terms and the immediately preceding one varies continuously, but stabilizes in the golden number: 


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. 

Pascal's triangle-Fibonacci

This triangle has a number of curious properties: 

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

Pascal's triangle 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: 

  1.    Let aa be the product of the numbers belonging to the extremes a=xza=xz. 
  1.    Let bb be the double of the product of the intermediate numbers c=2ywc=2yw. 
  1.    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 Traders’ Insight that is provided by third-parties and not by Interactive Brokers does NOT constitute a recommendation by Interactive Brokers that you should contract for the services of that third party. Third-party participants who contribute to IBKR Traders’ Insight 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 permission from QuantDare. The views expressed in this material are solely those of the author and/or QuantDare and IBKR 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 sell or the solicitation of an offer to buy any security. To the extent that this material discusses general market activity, industry or sector trends or other broad based economic or political conditions, it should not be construed as research or investment advice. To the extent that it includes references to specific securities, commodities, currencies, or other instruments, those references do not constitute a recommendation to buy, sell or hold such security. 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.

trading top