Wednesday, March 18, 2015

Katapayadi system of verses


As I am researching the π, I find interesting ways ancient indian researchers described their findings. One such methodology used is Katapayadi System of verses. It is basically an system of code so that things can be defined in a way so that people can remember. The code is as follows.

1 23456789
क  ख ग घ ङ च  छ  ज  झ 
ट  ठ ड ढ ण त थ द ध 
प   फ  ब  भ  म  
य   र  ल  व  श  ष  स  ह  क्ष  
With the above key in place, Sri Bharathi Krishna Tirtha in his Vedic Mathematics gives following verse.
गोपी भाग्य मधुव्रात  श्रुङ्गिशो दधिसन्धिग  |
खलजीवित खाताव गलहालारसंधार |
If we replace the code from the above table in the above verse, here is what we get.
31 41 5926 535 89793
23846 264 33832792
That gives us \( \frac{π}{10} = 0.31415926535897932384626433832792\)

Apprantly this methodology of remembering digits of π has a name. It is called Piphilology.
Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. The word is a play on the word "pi" itself and of the linguistic field of philology.

Sunday, March 15, 2015

π Day and India

Yesterday was π day and my friend Haldar Rana posted this quiz on π. I started to look around the Indian contribution with respect to π. Here are some of the stuff that I found.

Aryabhatta talks about π in following way.



  • Add 4 to 100
  • Multiply by 8
  • Add 62000. 
  • The result is approximately the circumference of the circle whose diameter is 20000. 
With above calculation the value of PI comes to 3.1416.

Madhava has done some more serious work with π. He defines π as the ratio of the circumference (2,827,433,388,233) of a circle of diameter \( 9*10^{11} \). Which yields 3.14159265359.

Madhava also came up with Madhava Series.

\(\fracπ4 = 1 - \frac 13 + \frac 15 - \frac17+...\)

Ramanujam later discovered another series that converged much faster.


I will write another post with details of all that.

Tuesday, May 13, 2014

Loksabha Elections 2014: My Chinese arithmetic

Yesterday all the phases of polls closed in the country and all the television channels were out with their voodoo science that they call exit polls. Since everybody seem to be doing it, I thought I should also do it. So here it goes.

Exit polls have been wrong in pretty much all the elections in past. Here is a snipped of how exit polls have performed in past.

As we can see in the chart above, there has always been a significant difference in the exit poll results and actual results. Barring 1998, BJP has been always over-estimated in exit polls while congress has always been underestimated in exit polls. So, let's look at kind of error that has been seen in exit polls and actual results.

In the chart above, select Errors for Size, Actual for Y Axis and Time for X axis and click on Play and then we see that both BJP and congress seem to have increasingly higher errors over the years with BJP being over-estimated and congress underestimated.


So, I have decided that I am going to take the average underestimation for congress and BJP from 2004 and 2009 and try to predict the result for this year.

  • Average BJP overestimation = 27%
  • Average Congress underestimation = 21%
  • Average seats predicted for BJP in this year's exit polls = 273
  • Average seats perdicted for congress in this year's exit polls = 110
So my predictions for BJP and congress are as follows.

Thursday, April 3, 2014

India Elections Tidbits #2: Margin of victory

Psephology in Indian elections of always interesting. Television commentators and professors from some mathematics istitute discus on television as if what they discovered is a forgone conclusion. I have heard statements like "Now that congress has lost it, what next for them?".
Winning margin for constituencies with less than 5% margin
Following is the list of constituencies with the winning margin.

Constituency NoConstituencyStatePercentage Margin
5ZahirabadAndhra Pradesh1.71%
6MedakAndhra Pradesh0.57%
10ChelvellaAndhra Pradesh1.60%
11MahbubnagarAndhra Pradesh2.43%
12NagarkurnoolAndhra Pradesh4.66%
23KakinadaAndhra Pradesh3.53%
24AmalapuramAndhra Pradesh3.91%
25RajahmundryAndhra Pradesh0.21%
27EluruAndhra Pradesh3.97%
28MachilipatnamAndhra Pradesh1.19%
29VijayawadaAndhra Pradesh1.17%
30GunturAndhra Pradesh3.77%
31NarasaraopetAndhra Pradesh0.15%
37HindupurAndhra Pradesh2.22%
40TirupatiAndhra Pradesh1.82%
42ChittoorAndhra Pradesh1.02%
43Arunachal WestArunachal Pradesh0.46%
45KarimganjAssam1.16%
50BarpetaAssam3.38%
51GauhatiAssam1.07%
53TezpurAssam3.58%
54NowgongAssam4.54%
57DibrugarhAssam4.68%
58LakhimpurAssam4.90%
69KatiharBihar1.88%
74VaishaliBihar2.70%
79HajipurBihar4.45%
89PataliputraBihar3.75%
100South GoaGoa4.60%
102BanaskanthaGujarat0.84%
105SabarkanthaGujarat2.39%
118PanchmahalGujarat0.19%
126ValsadGujarat0.51%
129SirsaHaryana2.41%
147ChikkodiKarnataka4.42%
149BagalkotKarnataka2.47%
157DharwadKarnataka3.70%
163Dakshina KannadaKarnataka3.22%
167MysoreKarnataka1.70%
170Bangalore NorthKarnataka3.62%
172Bangalore SouthKarnataka2.90%
180MalappuramKerala0.00%
183AlathurKerala2.53%
184ThrissurKerala3.20%
186ErnakulamKerala1.58%
196BhindMadhya Pradesh4.38%
203SatnaMadhya Pradesh0.44%
209BalaghatMadhya Pradesh3.82%
216UjjainMadhya Pradesh4.48%
218RatlamMadhya Pradesh4.65%
222KhandwaMadhya Pradesh4.28%
224NandurbarMaharashtra3.97%
228BuldhanaMaharashtra3.29%
253Mumbai South CentralMaharashtra4.93%
264LaturMaharashtra1.51%
276MizoramMizoram0.00%
286DhenkanalOrissa2.17%
287BolangirOrissa4.82%
289NabarangpurOrissa0.00%
295BhubaneswarOrissa1.46%
303HoshiarpurPunjab2.93%
308FerozpurPunjab2.20%
339Chennai NorthTamil Nadu2.90%
340Chennai SouthTamil Nadu4.52%
342SriperumbudurTamil Nadu2.23%
344ArakkonamTamil Nadu1.41%
350ViluppuramTamil Nadu0.35%
360KarurTamil Nadu3.12%
362PerambalurTamil Nadu0.95%
368SivagangaTamil Nadu0.43%
370TheniTamil Nadu0.41%
380KairanaUttar Pradesh3.10%
381MuzaffarnagarUttar Pradesh1.60%
401BadaunUttar Pradesh1.96%
408SitapurUttar Pradesh2.79%
423JalaunUttar Pradesh0.91%
433Ambedkar NagarUttar Pradesh1.87%
437GondaUttar Pradesh1.37%
449SalempurUttar Pradesh4.64%
480JadavpurWest Bengal4.54%
483HowrahWest Bengal3.75%
484UluberiaWest Bengal4.64%
509MahasamundChattisgarh4.11%
523LohardagaJharkhand1.45%
In summary, based on last election, there are 149 constituencies which were won with less than 5% margin.

  • Less than 1% margin  -- 16 seats
  • Between 1% and 2% margin -- 19 seats
  • Between 2 % and 3% margin -- 30 seats
  • Between 3% and 4% margin -- 36 seats
  • Between 4% and 5% margin -- 48 seats
With such a large number of seats won with so low margin, how can these television commentators be so confident of seats won. Also how can they take the margin of error in votes polled and extrapolate that to number of seats.