Wednesday, February 17, 2010

GDP per Capita versus FIFA Rank III

In earlier post titled GDP per Capita versus FIFA Rank I made the observation that the data must follow a binomial distribution. In a second post on the same subject I observed that the split between high and low GDP per capita countries is quite balanced.

To verify the above observations I will follow my posted axiom and transform the data!
I used MATLAB to generate a data plot, a lag plot, a histogram, and a normal probability plot:

y = GDPcapita *1e-3;


subplot(221)
plot(y, '.-', 'markersize', 10)



subplot(222)
plot(y(2:n),y(1:n-1), '*b')



subplot(223)
hist(y, 8)



subplot(224)
normplot(y) % This requires the Statistics Toolbox



FIFARankvsGDPCapita2
Observations:
  1. The run sequence plot shows a clear sinusoidal pattern (fixed location, fixed variation.)
  2. The lag plot also shows a non-random sinusoidal pattern.
  3. The histogram shows a bimodal distribution with noise.
  4. The normal probability plot is useless since we already know that the data are not random.
Since the data follows a sinusoidal pattern then the histogram of the data ought to be symmetric and bimodal. The two extremes are the max and min amplitude and the rest of the data points fall in between the two extreme bins. For example:

FIFARankvsGDPCapita_III_00
However, the histogram of the GDP per capita data for the WC2010 countries does not have such a clean shape. It actually looks like a binomial distribution mixed with an error component. It turns out that the error component is described fairly well by a uniform distribution.

To test this it is sufficient to create a sinusoidal pattern mixed with uniformly distributed pseudo-random noise.
 
% MODEL
t = 0:pi/2:15*pi;
v = cos(t);



%ADD PSEUDO-RANDOMNESS
r = rand( 1,length(t) );
vv = v + r; vv = vv ./max(vv);


% DATA
y = GDPCapita;
yy = y - mean(y); % DEMEAN
yy = yy ./max(yy); % NORMALIZE AMPLITUDE


FIFARankvsGDPCapita_III_01
I run the model a few times using the pseudo-random number generator and the results were reasonable. Though not sophisticated, the model seems to be sufficient to show that at least for WC2010 countries the GDP per capita  and FIFA rank are related through a sinusoidal function that results in a bimodal distribution with a uniformly distributed error component!

I cannot imagine that such behaviour is common for past World Cups. However, it is one more observation which shows that money makes little-to-no difference in football at the national level.

Wednesday, February 10, 2010

FIFA World Ranking Top 20: February 2010

Rank (previous) Team Points Comment
1 (1) Spain 1627  
2 (2) Brazil 1568  
3 (3) Netherlands 1288  
4 (4) Italy 1209  
5 (5) Portugal 1176  
6 (6) Germany 1173  
7 (7) France 1117  
8 (8) Argentina 1082  
9 (9) England 1076  
10 (24) Egypt 1069 A meteoric rise and the highest ranking ever!
11 (10) Croatia 1053  
12 (13) Greece 1030 A slight adjustment in points.
13 (12) Russia 1026  
14 (14) USA 963  
15 (22) Nigeria 956 Another African country that gained significantly.
16 (15) Chile 955  
17 (17) Mexico 947  
18 (18) Switzerland 924  
19 (19) Serbia 916  
20 (11) Cameroon 914 Naturally some African country must have suffered!

January 2010 was the month for the Africa Cup of Nations, a biennial competition that Egypt apparently owns! Egypt defended their title and shot up the rankings to reach to their highest position ever. It seems that Egypt destroyed most of the competition (Ghana, Cameroon, Nigeria, Algeria, Benin, and Mozambique).

Cote d’Ivoire reached the quarter finals and lost to Algeria. BTW, it seems that reaching the quarter finals is fairly automatic for the good African teams since they beat up on the likes of Burkina Faso, Mali, Benin, etc. Therefore, Ivory Coast dropped out of the top 20 and they do not seem like serious competition for Brazil and Portugal.

Algeria reached the semi finals and lost to Egypt (4-0!)

Nigeria managed wins against ‘powerhouses’ Benin, Mozambique, and Zambia (in penalties) before losing to Ghana. They finished third and they reached the 15th spot. (If Greece is serious the round of 16 is possible.)

Full table can be found at FIFA World Ranking.

Sunday, February 7, 2010

EURO 2012 Group F

That is the group the Greece belongs to for the EURO 2012 Qualification round. Group F is a section of Croatia, Israel, Latvia, Georgia, Malta along with Greece. Obviously the toughest opponent is Croatia. Israel and Latvia are well known from the WC2010 road to qualification. Georgia and Malta are not exactly powerhouses.

Cyprus has a much tougher task as was drawn with Portugal, Denmark, Norway, and Iceland in group H. Obviously Portugal is the favorite with Denmark being #2. However, Cyprus has a decent shot at qualification.

The first team from each of the 9 groups qualifies automatically along with the best second team. The other 8 second teams will be in a play off for the remaining 4 spots.

Wednesday, February 3, 2010

Visual Studio 2010 Express Beta 2

I have been using the Visual Studio Express C++ IDE since the Vista launch a few years ago. I had my personal copy of Visual C++ 6 to code for personal entertainment but unfortunately Microsoft made sure that their own program would not run properly on Vista!

Thankfully, they made available the VS Express suites for free starting with 2005 and then they upgraded to 2008 which is most recent official release and available under Downloads at the VS Express website.  (The full VS2008 suite sells from about $250 to a few thousand depending on version.)

VS2008_Capture

The Beta 2 version of VS2010 Express became available (again for free) from Microsoft at the end of October 2009. I played around a bit with it and though it seems like a potentially good upgrade. However, I soon realized that the Start Without Debugging option (Ctrl+F5) was not available which was rather painful for me. It looks cool though!

VS2010_Capture

Today I installed the latest Beta 2 available at

http://www.microsoft.com/express/Downloads/#Visual_Studio_2010_Express_Downloads

and I found that that the Start Without Debugging option is fixed but there is another annoying thing! I wrote a couple of simple test programs and when I run them I get the following warnings in the output window:

'test100204.exe': Loaded 'C:\Users\George\Documents\Visual Studio 2010\Projects\test100204\Debug\test100204.exe', Symbols loaded.
'test100204.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'test100204.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'test100204.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'test100204.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
The program '[2624] test100204.exe: Native' has exited with code 0 (0x0).

It seems that it is trying to load some .pdb file associated with some .dll and cannot find them! The program runs and executes properly but I do not like to receive warning messages for no reason. No such issues with VS2008.

I guess I would have to wait for the official release.

Monday, February 1, 2010

The future is in the pink

It took 5 months, we visited around 75 houses, made 7 offers, paid for 3 inspections, and today we finally we have a house!

 

001 002

We saw houses from Ashland to Georgetown and almost everything in between. I discovered places that I did not know they existed! Plus I found that I-95 is my preferred limit of distance from ‘civilization’!

MA Map_