Sunday, 11 January 2009

Precious Things

Robin Ator "international icon" tarot pack (30 usd)
http://www.glowinthedarkpictures.com/iitarot/

book, "Flesh House" by Stuart MacBride (5 gbp)
http://www.amazon.co.uk/Flesh-House-Stuart-MacBride/dp/000724455X/ref=sr_1_1?ie=UTF8&s=books&qid=1231715833&sr=1-1

book, "Beat the Reaper" by Josh Bazell (8 gbp)
http://www.amazon.co.uk/Beat-Reaper-Josh-Bazell/dp/0434019232/ref=sr_1_1?ie=UTF8&s=books&qid=1231715771&sr=1-1

book, "Toast" by Charles Stross (10 gbp)
http://www.amazon.co.uk/Toast-Charles-Stross/dp/0809556030/ref=sr_1_5?ie=UTF8&s=books&qid=1231715880&sr=1-5

book, "Set Theory and the Continuum Hypothesis" by Cohen (8 gbp)
http://www.amazon.co.uk/Theory-Continuum-Hypothesis-Dover-Mathematics/dp/0486469212/ref=sr_1_1?ie=UTF8&s=books&qid=1231717395&sr=1-1

book, "On Numbers and Games" by John Conway (35 gbp)
http://www.amazon.co.uk/Numbers-Games-John-H-Conway/dp/1568811276/ref=sr_1_1?ie=UTF8&s=books&qid=1231717461&sr=1-1

book, "Species of Spaces and Other Places" by Perec (8 gbp)
http://www.amazon.co.uk/Species-Spaces-Pieces-Penguin-Classics/dp/0141442247/ref=sr_1_2?ie=UTF8&s=books&qid=1231717678&sr=1-2

DVD, "The Saragossa Manuscript" by Wojciech Jerzy Has (9 gbp)
http://www.amazon.co.uk/Saragossa-Manuscript-Wojciech-Jerzy-Has/dp/B0013KAAX8/ref=pd_sim_b_1

Robert Aickman story collection
"collected strange stories" v 1 + 2 (but not if it costs huge amounts of money like on amazon!)
or anything else, he is hard to find and has been out of print for a fair bit
basically if you can track down any collection of his stuff that would be good, it will almost certainly be second hand...

Saturday, 13 September 2008

Prisoner's Dilemma

A great way to think about the guts of cooperation.

But there's more to life than game theory.

Consider the scorpion and the frog: http://www.spectacle.org/995/scorp.html

Wednesday, 9 July 2008

C++ Screening Questions

Q1) When you compile and run this program, what happens?

#include <iostream>
class A
{
public:
~A() { throw std::exception("whatever"); }
};
int main()
{
try
{
A a;
}
catch(...)
{
std::cout << "caught" <<>
}
}


A) it prints "caught" and exits normally
B) the output is undefined
C) the program exits with a call to std::terminate()
D) something quite different from any of the above

Thursday, 15 May 2008

Reading: Yield Curves

1) The Basics

Google for "curve boostrapping" and get the PDF from the university of chicago, real simple

2) More info

Google for "A Practical Guide to Swap Curve Construction" by Uri Ron, there's a PDF on the Bank of Canada website, this has a bit more on the practicalities

3) Interpolation

P. S. Hagan and G. West "Interpolation Methods for Curve Construction" gives a thorough survey, with their own method "monotone convex" being touted as best - a copy is here: www.finmod.co.za/Hagan_West_curves_AMF.pdf

Template Metaprogramming: is it worth it?

I split C++ features into 3 classes:
* useless/dangerous: eg, export keyword, throw specifications, uncaught_exception
* significant downsides: eg, template metaprogramming
* essential: eg, const, exceptions, inheritance

The downsides of template metaprogramming are:
(a) inconsistent compiler support across vendors (this is improving all the time though)
(b) a lack of compiler support for decent error messages (being remedied as "concepts" in the next revision of C++, C++0x)
(c) a lack of compiler support for closures (being remedied as lamda functions in C++0x)
(d) a lack of compiler support for external templates ("export" is useless, again this is remedied in C++0x)
(e) a lack of standard library support for metaprogramming, particularly for type traits (again being remedied in C++0x)

I have seen the results of three attempts at different banks to introduce extensive templating into quant libraries using metaprogramming concepts that have failed for the reasons above - these are not theoretical concerns.

In the same way that a gentleman was once defined as "someone who can play the saxophone, but refrains from doing so", I'd regard a decent C++ programmer as someone who's read the literature on this (my own reading includes Josuttis/Vandevoorde. Abrahams/Gurtovoy, Alexandrescu, some of the older papers on expression templates) and then **refrains** from using template metaprogramming unless they have sufficient reason.

So - template metaprogramming? Probably not. Unless it's a good idea. In which case I'm all for it.

Friday, 14 December 2007

Personality: the big 5

Having recently had my first child, Isabel, make an appearance on the scene, I've got interested in personality and how it's formed.

The "big five" personality traits most commonly used are:
- extraversion (response to positive stimuli)
- neuroticism (reponse to negative stimuli)
- conscientiousness (impulse control)
- agreeableness (acting on empathy)
- openness (breadth of activation)

In terms of where they come from, the mainstream of research indicates:
- 40-50% of the variation is set via inheritance
- of the remaining 50-60% of variance, some will be due to random brain wiring and some to random environmental influences
- parental influence has no effect

The last point, in particular, is somewhat counter-intuitive. There's a natural association in most people's minds between types of family atmosphere and the character of the adults who result from growing up in it. But as far as people can tell from studies designed to tease out the effects of genes vs environment (twin studies, adoption studies, etc), the effect is from inherited tendency rather than how a child is bought up. Extraverted parents have extraverted children because the child has a natural tendedncy, not because the child is growing up in an extraverted household. And so on.

Does this make any difference to how one should act as a parent? Perhaps. One might draw the conclusion that you should pay attention to how your child seems to be as an individual, rather than viewing it as a blank template on which behaviour must be imposed and molded.

In terms of what one might wish for one's child, most of the traits are pretty neutral. What you want is for people to find a path that is in sympathy with their personality.

For example - personally, I'm very high on agreeableness and openness, high on extraversion and conscientiousness, and average on neuroticism. This means I'm great on stuff involving solving ill-defined problems that need wide co-operation across a number of people to tackle, and where attention to detail is important. I'm crap on stuff involving carrying out someone else's plan, where it's going to cause a lot of people pain, and lots of things will go wrong in the execution that I can't do anything to prevent.

So my current job troubleshooting analytics-related problems across derivatives trading areas is a good match. But maybe I should put off joining the army for a while longer.

And as for Isabel? Bearing in mind she's only 4 months old so far, it's hard to tell. I do have one wish: I hope that she's not at the top end in neuroticism, as by definition it's a lot harder to be happy if you are. And for myself, I hope I can help her to get the most out of life, however she turns out.

Thursday, 29 November 2007

xmas

"International Icon" Tarot deck
Music written in last 10 years

E: Skandium Kivi holders (86 Marylebone High St, W1U 4QS)