[ November 2008 ]

Powered by glolg
Display Preferences Most Recent Entries Chatterbox Blog Links Site Statistics Category Tags About Me, Myself and Gilbert XML RSS Feed
Sunday, Nov 30, 2008 - 20:09 SGT
Posted By: Gilbert

- + -
Ham and Fish Return


Will get on the three past year papers for Game Development after City versus United...

Videos of the day: How to get a girl and L'Amour (watch with pinches of salt).

$1138.25/$1350 after Stoke drew Hull yesterday - the EPL is certainly getting more "artistic" as a rule. Why spoil a good thing?

$25 on Chelsea to draw Arsenal (at 3.30)
$25 on zero goals in Chelsea vs Arsenal (8.00)



comments (8) - email - share - print - direct link
trackbacks (0) - trackback url

Back to top


Saturday, Nov 29, 2008 - 19:45 SGT
Posted By: Gilbert

Three Fifths Through

Well, now I know what the paper recycling bins outside the multipurpose (i.e. examination venue) sports halls are for - for students to conveniently dispose of unneeded notes the moment they step out. Or were they plain rubbish bins?

General Biology wasn't too bad I suppose, but with a good portion of the questions being simply statements of facts (i.e. what family does this organism belong to, and the like), and being an open-book examination on top of that, I suspect that the difference between grades is going to be minute. Oh, my textbook and notes knew how to do about half the paper too; no scholarship for them either, regrettably.

A few tricky questions, and more than a bit of referencing assignments (Hint to future batches - bring those! One question probably couldn't be answered from the textbooks and notes, and would essentially be a toss-up unless you're a complete Biology geek to start with, but then you wouldn't be needing cheap hints)

Rewarded myself with $1 ice-cream-on-a-slice-of-bread on the way home. The icy chocolate milk will come later. Life' little comforts are certainly agreeable.

No luck at all with pretend football betting, now at $980.75/$1300. Then again, I figure nobody much got anything out of last week either. Manchester derby's tomorrow, and for today:

$50 on Stoke City to draw Hull City (at 3.15)

And out of nowhere, here's Bruce Lee playing ping pong with nunchucks. Got to try that one day.




comments (0) - email - share - print - direct link
trackbacks (0) - trackback url

Back to top

Friday, Nov 28, 2008 - 00:43 SGT
Posted By: Gilbert

Xams

Health Economics and Game Theory are done and dusted (what's with holding them all the way at Sheares and Kent Ridge Hall respectively, anyway?), and I guess I'm probably okay for both (N.B. I'm usually slightly optimistic towards examinations, unlike some who appear damn sad after omitting a full stop, but that's another story).

Probably could have done a bit better for Health Economics had I spent more time on the final (short essay) question instead of spending time to confirm MCQ answers for options that were virtually eliminated, but that's hindsight. For Game Theory, indeed no proofs appeared, with the main focus being on finding perfect Bayesian equilibria (including one on Nim); I think I got most of the stuff correct, but didn't manage to finish writing the answer for the last question (after showing most of the working). Sigh, for just a minute more - now I don't know whether this is worse than realising the answer only after the examination ends.

I suppose I'm pretty lucky to be mostly "fast enough" for examination purposes, as there probably are people out there who are quite brilliant but just cannot or will not calculate quickly (as a former teacher of Grigory Perelman [of Poincaré conjecture fame] said, "...he was not fast. Speed means nothing. Math doesn't depend on speed. It is about deep.") And indeed in the real world, "all the exams are open-book, and they don't have time limits".

Well, just for interest, here's the last question (heavily modified since I don't know if direct reproduction is acceptable, but the spirit is there):



Two players, A and B, are playing a promotional card game with a dealer at the Marina Bay Sands. The game is as follows:
  • The dealer puts two cards in front of each player (four cards in total for both players). One of these cards is an Ace, and the other is a Joker.
  • Each player picks one of the two cards (thus both may have Aces, both may have Jokers, or one may have an Ace and the other a Joker), and looks at it privately.
  • Then, each player may choose to continue the game or fold (they make this decision simultaneously and do not know whether the other player continues or folds. You can think of them submitting an envelope to the dealer with their card if they want to continue, and an empty envelope if they want to fold).
  • If the player folds, he does not have to pay anything, but also cannot win anything.
  • If a player continues, and the other player does not, the player that continues wins $10 from the dealer.
  • If both players continue, their cards are revealed, and the outcome is as follows:
    • If both players have an Ace, they both pay the dealer $2.
    • If both players have a Joker, they both pay the dealer $5.
    • If one player has an Ace and the other has a Joker, the one with a Joker pays the one with an Ace $5.
What is the optimal strategy that player A should pursue? (Possible AAAAA for good enough answers up for grabs!)


Skipping a 3:30 a.m. Champions League game due to the game theory paper at 9 a.m. would have been a big sacrifice on my part, had it not been yet another nil-all draw (which sent both United and Villareal into the knockout phase, though).


Villarreal v Manchester United
by thefootie


After the amusing incident involving a certain Gerrard some weeks back, Wayne Rooney has seen fit to emulate his Scouse pal with a rather lame effort (see 5:40 in the video above) despite starting that move brightly with a clever backheel. I don't know how honest Rooney really is (at least he promptly apologized for the incident), but he certainly sucks at diving - if you want to cheat, you may as well learn from the masters. His frustratingly long layoff from scoring (which began right after I ate my words about him) probably contributed.

Well, on to the open-book General Biology. Hope I do well here.



comments (0) - email - share - print - direct link
trackbacks (0) - trackback url

Back to top

Tuesday, Nov 25, 2008 - 00:17 SGT
Posted By: Gilbert

- -
On the Theory of Games

You know your hamster is too lazy/fat when:
  1. It looks up at you
  2. It loses its balance and flops over onto its side
  3. It continues to lie motionless on its side, with a "feed me" look


Examination Number Two is EC3312 Game Theory And Applications To Economics, a module aptly named as game theory is useful in other fields as well (though with all this cross-fertilization going on, watch out for EV1101 Everything You Need In Life). I have ventured an introduction to the subject over a year ago, with some schooling from the second half of Microeconomics II, and a bit of self-study, and while there is some overlap with that and a few other modules, EC3312 must be said to be more rigorous, systematic and extensive (as it should well be) in approaching game theory.

As already discussed in that year-old blog post linked above, game theory is the mathematical (rational) solution of well-defined situations ("games") under certain assumptions (yes, again). The textbook used is A Primer in Game Theory by Gibbons, with the professor following the incremental approach of the book, beginning from the simplest class of Static Games of Complete Information, then Dynamic Games of Complete Information, then Static Games of Incomplete Information, and finally Dynamic Games of Incomplete Information. To summarize (again, click to display):

Went through the 04/05 and 06/07 papers, managing to do all the questions (I think). They (and the midterm) have so far been capped at a maximum difficulty level quite a bit lower than the hardest questions appearing in tutorials (free-form derivations weren't seen in the examinations, which I suppose is fairer as one can't expect to be judged overly on [lucky] creativity); I hope that continues, since some tutorial questions certainly took me more than a couple of hours to complete.

Back to Health Economics for tomorrow (today)...



comments (1) - email - share - print - direct link
trackbacks (1) - trackback url

Back to top

Saturday, Nov 22, 2008 - 19:17 SGT
Posted By: Gilbert

Practise Safety

"...require large employees to offer health insurance to their workers..."

- typo, or tax on obesity?


Will close the book on Health Economics for now, and proceed on to Game Theory (in particular the final lecture or two, for which I skipped the tutorials). Two past year exams to try out.

More security hamgineering by my uncle for the Federal Hamster Prison...


Advanced Reinforced Rubber-Band Front Gate


Gravity-Assisted Ceiling Screw Stopper

Links of the week:
  • generatus - a little tool for those blank Facebook status moments
  • God Trumps - when is this card game hitting the market? (credit: wenhoo)
  • No Miming In China - other than at the Olympics, apparently
Broke exactly even on last week's pretend bets, for $980.75/$1200. Thanks, United. They travel to Villa Park this week, though, and are at just 1.65 for the win (Villa at 4.45!) despite being just two places (and one point) ahead. Bad wager for me, taken either way. Or is it?

There's Chelsea to beat Newcastle at 1.15 and Liverpool to beat Fulham at 1.20, but frankly the payouts are... poor.

$50 on Chelsea (-2.5) vs Newcastle (at 2.60) - Yes, that's -2.5, not -1.5. Sad to say, the Blues probably can do it
$25 on Man City to draw Arsenal (3.20) - Gallas finally gets the chop. Likely a good move as he never looked real captain material. A draw isn't improbable, my gut says (even more than usual)
$25 on Man Utd (-1.5) vs Aston Villa (2.90) - United have a great recent record against Villa, and seem to be finally hitting form; But so are Villa, and Friedel has been a stumbling block for ages when he was at Blackburn. Eleven straight EPL head-to-head wins says United have the upper hand, though

And back to Economics till United face Villa at one am...



comments (0) - email - share - print - direct link
trackbacks (2) - trackback url

Back to top

Saturday, Nov 22, 2008 - 04:41 SGT
Posted By: Gilbert

- -
On Economics

With my Health Economics and Game Theory examinations being five days away, I thought I would just blog about my chosen subjects by way of revision. This is after I couldn't resist breaking out Championship Manager 03/04 and guide Brighton to the Premier League and beyond (I stopped at the First Division), and discovered a few things:

  • Players walk very slowly to the referee in the 2D engine
  • Brighton's David Lee is a world beater, with Beckhamesque free kick ability (20) coupled with C. Ronaldo's dribbling (in real life, he plays at Conference level now though). Gary Hart isn't half bad either
  • Nobody predicted Cesc Fabregas' rise back then - he was nabbed from Arsenal's reserves for a mere 240k Euros (probably even less if I had bothered to negotiate). No wunderkid tag for him. Loves to take long shots in the game
  • Ben Foster could be gotten for free from Stoke City
  • Steve Guppy (35 years old then) wanted 10k+ Euros a week coming from Celtic, and stated he "had no interest in joining Brighton" even for over 3k a week (all I could afford then), whom were then flying high in the Second Division. He proceeded to sign for Northwich Victoria F.C. in a lower division on 700 Euros a week, before eventually being flogged off to Brighton for some 20k Euros and a 1.9k Euro per week salary. Career financial planning seemingly isn't CM4's strong suit
  • Woodlands would demand over 1 million Euros each for Itimi Dickson and Agu Casmir
  • Noh Alam Shah would be available for 300k+ Euros, but wouldn't get a work permit

In other news, Football Manager 2009 (the continuation of the series after naming rights were lost, it's complicated) has just been released, with a 3D match engine. In a way this is kind of overdue since all they had to do was plug in some long-available 3D capabilities ala the FIFA XX series, but they've done it decently enough:


Another genre enters 3D (Source: Eurogamer)

Meanwhile, Everton have brought armchair managing to a whole new level by officially using Football Manager to guide their player scouting. Not too long before real-life players pack it in, and we just simulate all the matches on FM instead?

So that's that for football manager simulations, on to the main topic: I'll try to collect my thoughts on Economics in general, and Health Economics in particular now, and express them in narrative. Any errors are, of course, my own.

Firstly, the fundamental tenet of all economics is scarcity; If we could have all we desired at the snap of a finger, there would be no need for this field of study. As this is not the case, there is room to explore how to employ our limited resources to produce selected goods and services, for the greatest good (N.B. what is the greatest good?). Here I must add that a lot depends on the assumptions taken, and in actual fact I am uncertain of how accurate some of these assumptions are. Many times a problem is posed with some mathematical function modelling for the utility of a population, and thus the "correct answer" can then be dragged out from the given figures with some manipulation.

In reality, I feel that the precision of the function, and if it is even appropriate to consider a problem by a certain method at all, is probably the major part of economic skill, as the math is relatively trivial once the assumptions are made. It appears there must be some limitation to the degree of perfection that economics can attain, as there exist non-verifiable entities (e.g. comparism of utility between two different individuals, or even the true utility of an individual).

[An aside: Saying that the Sun rotates around the Earth may agree with available evidence, but that does not make it true - A person may buy stock X because of reason Y, and if the price of stock X does rise he may infer that he was correct and it was due to Y, but in actual fact it may be due to some other reason Z. The danger in this is that the person may then be misled to be overconfident in his flawed logic, and overextend himself based on it.

One way to distinguish between skill and luck is through repeatability - if a person consistently picks winning stocks 60% of the time, day after day, we then say he has skill, statistically. An interesting question then concerns those who take huge one-off risks and succeed (e.g. walking into a casino and putting one's life savings on a single number at the roulette table, and winning) - can we call that skill? One might say that is clearly luck, but surely few long-term gamblers can ever claim a 3500% return, and it is the practical result that we are after, no? In other words, does it even matter whether someone succeeds (or fails) through luck or skill? For more on this, a possible read is Fooled by Randomness by Nassim Taleb.]

Leaving these considerations aside, the basic principles of economics are admittedly a reasonable approximation in some situations (as Newton's physical laws were. Incidentally economics might even be viewed as an offshoot of physics: "...the progenitors of neoclassical economics, all of whom were trained as engineers, developed their theories by substituting economic variables derived from classical economics for physical variables in the equations of a soon-to-be outmoded mid-19th century theory in physics.") - take the Law of Demand, that states that all other things being equal, as the price of a good rises, the quantity demanded by consumers falls (unless the demand is perfectly inelastic, that is, or the good is a Giffen or Veblen good). This is simple enough that it can be recognized as true in general. The corresponding Law of Supply states, what else - as the price of a good rises, the quantity produced by firms will increase. And where Demand meets Supply, we find Equilibrium, and consumers and firms transact and rejoice.

So does this happen in real life? Well, there are many imperfections. Offhand, there are additional costs associated with obtaining market information (e.g. reading the classifieds), adjusting prices (e.g. printing new price tags and adverts), labour practices (e.g. relatively long-term contracts, compensation, retraining, acclimatization etc), and this already for so-called perfectly competitive markets where there are many relatively small firms producing near-identical goods. Exactly how much all these imperfections reduce the applicability of economic theory, and whether they can be offset, should be a worthwhile study. When market power comes in, and a few firms (or one) dominates an industry, more considerations come in.

A timely case study would be the U.S. automobile industry, whose CEOs made the sincere gesture of flying in private jets to Washington to beg for another US$25 billion from the public (though in truth that expenditure is probably among the least of their concerns as cost structures go - they had better come to some sensible agreement with the unions ASAP, and from what I've read it appears that unions in the USA have gone from the admirable goal of protecting the "little guy" to hamstringing operations with dumb rules such as "no picking up your own litter, or you'll be putting the janitor out of a job"). If cast as an examination question, the answer is straightforward - let the inefficient automakers fail. In practice, sheer size has its own distortion field, and as classical mechanics does not apply at extremes, neither does classical economics.

And on to EC3353 Health Economics. The basics of general economics of course apply. The syllabus is as follows:

  • Week 1: Introduction to USA/UK/Singapore Health systems
  • Week 2: Economic Efficiency/Cost-Benefit Analysis (CBA)
  • Week 3: Production and Demand for Health (Capital)
  • Week 4: Demand and Supply of Health Insurance
  • Week 5: Asymmetric Information/Adverse Selection/Agency
  • Week 6: Physician's Practice/Services
  • Week 7: Non-profit Firms/Hospitals and Long-Term Care
  • Week 8/9: Pharmaceuticals/Technological Change
  • Week 10/11: Managed Care (apply Adverse Selection)
  • Week 12/13: Government Health Insurance/Health System Reform/Comparative Health Care (+Canada/Japan)
  • Week 14: Epidemics/Addiction
I will attempt to summarize the key points below (click button to display, since I didn't want to overload my blog):



comments (0) - email - share - print - direct link
trackbacks (3) - trackback url

Back to top

Saturday, Nov 15, 2008 - 21:34 SGT
Posted By: Gilbert

Total Relax

After managing an overdue breakthrough of sorts in my FYP, and tying up more loose ends (including applying for further studies at NUS), I decided to just take a few days off as Reading Week looms again. Broke out the old Simcity 4 and plonked down several cities, breaking past the 100000 population mark with one of them - the big one million probably will take some serious creative destruction.


Gilberta Central

Took the opportunity to spend more time with the hamsters too. Mr. Ham G. Bacon got interrogated for his part in the great escape (refer previous post) by my grandmother, who has years of experience with this business under her belt. A few minutes of tough-guy holding out and defiant squeaks of "I'll never tell!"/"Are you trying to steal the food in my mouth?" soon were all that poor Ham could sustain.

Okay, actually all that my grandmother wanted to know was whether a hamster has two (bottom) teeth, or three. I had internet evidence, but she insisted on the most direct observational evidence:


Two teef or three? You decide

If that distressed you, click on over to the Puppy Live Cam (recommended).

Signing off with the predictions of the week (on $880.75/$1100):

$50 on Man Utd (-2.5) vs Stoke City (at 2.00) - Long odds against the long-throw specialists, but a sneaky feeling they'll storm through this one
$50 on Tottenham to beat Fulham (at 2.10) - A dramatic turnaround of fortunes by Spurs under Redknapp. What a difference a manager makes.

comments (0) - email - share - print - direct link
trackbacks (0) - trackback url

Back to top

Saturday, Nov 08, 2008 - 20:27 SGT
Posted By: Gilbert

- + -
Happiness is…

...a found hamster

(HamWire) Convicted Campbell's hamster Mr. Fish F. Chips, 1, was recovered from under the bottommost shelf at the back of a storeroom behind a heap of items after a 12 hour-long search that involved multiple family members. Chips was promptly given food resuscitation, and returned to jail.

Chips was last seen wrestling with longtime cellmate Mr. Ham G. Bacon on the second storey of their deluxe cell at approximately 4 a.m. on November 8. That was the last that was to be seen of him for over twelve hours, as the dastardly duo staged a prison break between then and 5 a.m., when the rotund Bacon was apprehended by Uncle M after scurrying aimlessly across the living room floor tiles.

Partner in crime Chips was nowhere to be found, though, and the worst was assumed after a comprehensive search of the house was completed. Beds were peered under, cupboards opened and flashlights shone, but to no avail. Grandfather even went on a fruitless search about the void deck, in case the intrepid hamster had taken a fifteen-storey plunge off the balcony. No body was located.

No signs of life were observed either, though advice from the Internet indicated that the species was known for its nocturnal habits, and could very well lay low for days on end. Several searchers concluded that Chips was lost forever after a few hours of their best efforts, and suggested a replacement cellmate for a blissfully ignorant Bacon, who spent much of the intervening time dozing off. Explanations along the lines of Chips having a more magnificent destiny as a wild hamster after floating to the grass unscathed were suggested. Uncle P was one of the few dissenters, and following standard practice, food caches (including peanut butter) were laid out more in hope than anything.


Chips' hideout

Things were looking bleak until Uncle M returned from work and set about the rescue operation methodologically, as befits an engineer. The television cabinet was first to be dismantled, but it was not until something furry was felt huddled in the shadows of the storeroom, was the matter resolved. Chips put up a valiant last stand, having taken a dust bunny hostage, but gave himself up after an offer of three honey stars and a dab of peanut butter.


Chips, back behind bars

The prisoner was returned to his rightful location amidst much rejoicing, whereupon having tasted liberty he embarked upon an energetic spate of wheel-running, in between bouts of attacking Bacon for already having taken possession of his secret stashes in his short absence. The two will continue serving their life sentences, with Chips' additional ten years for his latest transgression to be run concurrently.

Reaction to the breakout has been mixed - while it has caused many to be able to better appreciate life's little pleasures, various hamster freedom fighter groups have hailed Chips as an inspirational hero, and reaffirmed their pledges for "Liberty or Death, or at least four honey stars".


...a written report

Or reaching campus for a meeting with my advisor with not much new to report, and realising that he wasn't free anyway. Figured out some extra stuff about the Torque Game Engine, so I'll probably be able to survive the 10-15 page CA Report to be submitted by Wednesday. Come to think about it, I probably don't need to be concerned overmuch about the page limit, since it's more common to have to slash than to stuff in my experience. A literature review being part of the report helps alot.

More news - Caligari trueSpace 7.6 [127 MB], a 3D modelling/animation package which used to cost upwards of US$800, is now absolutely free of charge (thanks to Microsoft). It's gonna take time to learn humanoid character modelling, but when there's a will, there's a way. MakeHuman [28.6 MB] will probably help in producing the initial body frame, but there are of course multiple ways. I've already tried Blender for an MNO movie, and will probably need its DTS Exporter some time or other.

Of course, I suppose just modelling rigid structures first is much easier, and indeed doing the easy stuff first is the way to go - at least there will be a guaranteed end product.


...Man Utd to beat Arsenal

One can hope. Despite all of Arsenal's troubles, the Fink Tank still gives them a 41% chance of winning outright, as opposed to 35% for United, based on computer modelling. Singapore Pools has United as the favourites at 2.25 for the win, compared to 2.77 for the Gunners though, and they actually put their money where their mouths are.

My unlikely draw trifecta last week nearly materalized, if not for a Roman Pavlyuchenko winner in injury time (again, not that I minded). That still paid out a virtual $236.25 for the best week so far this season, and corrected my overall numbers to a more respectable $880.75/$1000. The selection this week is obvious:

$100 on Man Utd to beat Arsenal (at 2.25)



comments (0) - email - share - print - direct link
trackbacks (0) - trackback url

Back to top

Thursday, Nov 06, 2008 - 03:42 SGT
Posted By: Gilbert

- -
Sucks To Be Me

#1 Quote of Avenue Q (Spoiler)
- Kate Monster, on getting the wedding bouquet

#2 Quote of Avenue Q (Spoiler)
- Bad Idea Bears, on beer logic

Avenue Q

Caught the Singapore run of the musical at the Esplanade Theatre (Circle 2, HH-22) on Tuesday night with fake chong, occ & joseph, and thus will never look at Sesame Street the same way again after a dose of "full frontal puppet nudity".

I again heard another familiar-sounding song that no-one knew the title too before the show began. Argh. At least I recalled one of my life's ambitions, to beat up a Teletubby, on the trip there.

Once again, I didn't manage to find the names of the cast members on the official site, though it seems that most of them are from the Philippines. Maybe the details were in the programme, but since I already owed fifty-five bucks to occ for the ticket, more purchases were not on my mind.

Okay, on to the show proper. General spoilers coming on, but you wouldn't care, would you? The opening numbers, "What Do You Do with a BA in English" (Youtube clip) [or Computer Science/Economics for that matter] and "It Sucks to be Me" (Youtube clip) fairly resonated with me (btw I don't want to talk about my FYP). Tidbit: The real Gary Coleman (if you know him, your American pop culture-fu is strong) supposedly wanted to sue the producers for the inclusion of his character.

Gay issues surfaced between the puppets Rod (i.e. Bert from Sesame Street) and Nicky (i.e. Ernie) in "If You Were Gay" (Youtube video, Harry Potter version). "Purpose" (Youtube video) ["that little thing that lights a fire under your ass"] was okay, nothing too special relatively. "Everyone's A Little Bit Racist" (Youtube video), it's true (but a milestone was passed today on that, on which more later). So just be careful where and to who you tell your must-listen ethnic jokes to.

Then probably the most famous song of the lot: "The Internet Is For Porn" (Youtube clip, Harry Potter version again) [indeed. it seems safe to say that at least close to half the bandwidth of the whole Internet is devoted to, what else, happy people]


"Normal people don't sit at home and look at porn on the Internet!"
- Kate Monster, Delusion of the Year Award Winner, probably right up there with Quote #1 and #2


Next up - "I'm Not Wearing Underwear Today", "Special", "You Can Be as Loud as the Hell You Want [When You're Making Love]", "Fantasies Come True", "There's a Fine, Fine Line" and How-to-search-Youtube-for-video-clips-by-yourself.

Twenty minute intermission, then Act Two. After we have "There is Life Outside Your Apartment" and "The More You Ruv Someone", there comes Schadenfreude (Youtube clip - Wikipedia definition) ["When I see how sad you are... it makes me sort of... happyyyyy" - "Happiness at the misfortune of others... that's German!"]

Despite what happens in the show, it's probably impossible to get badly hurt by a penny dropped from a high place. Just saying.

"I Wish I Could Go Back to College" (Youtube clip) [the idea is not to leave in the first place - oh and "to f**k my TA" must have brought back memories for someone :P]

Next: "The Money Song" and "School for Monsters" (go look them up yourself). Despite Trekkie Monster's suddenly revealed riches ["In volatile market, only stable investment is porn!"], it turns out that porn probably isn't recession-proof any longer.

Two songs repeat, then it all closes with "For Now" (Youtube clip). ["George Bush - is only for now!" (more later)] Yup, things are only for now!

In a way it does suck a little to be me, but surely there are people far worse off, though that doesn't (and shouldn't) completely negate that sucky feeling. A little more hope, a little change needed?


RMBR (no, not remember)


Always wondered what the Raffles Museum of Biodiversity Research (at S6) was all about, but never found an excuse to drop by until demanded to by my LSM1301 module. I have to say it's the place to go if you have a thing for dead animals.

Here's a slice of the tree that possibly gave Changi its name, cut down without approval (preservation process):


There was a landmark Changi Tree before WW2 - supposedly over 20 stories tall, imagine that!




Yep, if staring at dead stuff is your kind of thing, you'll have a wonderful time. Joking aside, the colours on the specimens were quite brilliant, impressive given that some of the specimens date from the 19th century.


This is a lousy photo of a cute reminder not to touch the specimens. Nice, but I would have missed both it and the "No Flash Photography" sign had I been slightly less attentive.

The exhibition closed off with a bunch of dead rats, and due to the influence of my hamsters I managed to find some of the smaller ones rather cute. In fact rats are supposedly friendlier to young kids than hamsters (no biting).

While we're on the subject of animals, here's one of the School of Computing Cats that I took a photo of some time ago:



Obama Wins


The landmark that was often predicted has actually been reached - America has its first (partly) black president. Good day all around for people of pigment as Hamilton picked up the F1 title (and Massa must be cursing his pit team's mess-up in Singapore). The Onion got it spot on again as they declared that the USA "was finally shitty enough to make social progress" (remember how prescient "Bush: 'Our Long National Nightmare Of Peace And Prosperity Is Finally Over'" [2001] was?)

Still, behind all the Hope and Change and GOBAMA chants, a few interesting things to note:

  1. Despite Obama appearing to win by a landslide (and thus have a solid mandate) with about 349 electoral votes to McCain's 163 (a 68%-32% split), in the popular (actual individual-for-individual) vote his margin was only 53%-47% (the ridiculousness of "normal" democratic implementations being discussed here before).

    If you subtract:
    • Bush and his administration (probably worth ten points by themselves)
    • The financial meltdown
    • The ongoing issue of Iraq
    • Palin

    from the equation, it becomes apparent that McCain was running under one heck of a handicap. Some of these problems were self-inflicted or a necessary consequence of the Republican ideology, but if say the subprime bubble hadn't imploded right on schedule in the run-up to the election, and he hadn't scared off undecideds with the possibility of a frighteningly underqualified Vice-President, he might actually have been in with a good shout.

  2. It was the young people (duh) and women (ah) who won it for Obama:
  3. (Source: CNN)

  4. How much change can Obama actually deliver? Remember '92, Gulf War, recession, "Change vs. more of the same" slogan, fresh-faced Democratic challenger? Yeah, that was Clinton, who was not too bad no doubt, but one gets the sense that nothing really changed.

Still, interesting times ahead, and whatever happens Obama couldn't possibly be worse than Bush. Right?


So will a great nation be United again? Stay tuned.


(Source: goalsforamericans.org)


New FIFA Rule


(Older examples)

The Laws of the Game aren't rewritten often, but it seems a new rule has been added:

"A direct free kick is awarded to the opposing team if a player commits any of the following offences in a manner considered by the referee to be careless, reckless or using excessive force..."

"...being jumped at by an opponent."

True, everyone's a bit of a hypocrite, but when someone who rails against diving in his autobiography and in the press does his best dying swan impression, I guess he can take some stick for it.

And if you have some time to spare, check out what it was like in 1783 courtesy of The Onion.



comments (3) - email - share - print - direct link
trackbacks (15) - trackback url

Back to top

Tuesday, Nov 04, 2008 - 01:14 SGT
Posted By: Gilbert

- -
What I Do

changelog v1.09b
---------------
* New comments, regardless of age of original post, will now trigger an email for Instant Response:



Only a week and a bit left to the Interim Report for the HYP to show what I've done on it so far (hint: not that much), but I think I'll keep my mind off it tonight at least, since there are still five or six months remaining, and my advisor seems to be hinting that the Report is not that important anyway (first batch to kana it. Gah) - I'll just have to bone up on my Desperation Programming feat once the examinations end. I think I'm pretty decent at that, by the way.

So, just in case anybody was wondering what a Computer Science university undergraduate does (other than playing researching computer games), I'll delve a bit into Lab 3 of CS4213 Game Development. Oh wait, that's researching computer games. Never mind. On balance some future student will probably Google this post up, so if you're him/her, hope this helps.

First off, I opened the Word document describing the lab. "Lab III: Neural Networks for Decision Making". Hmm. Next up was several pages mostly describing the classes and methods in the provided skeleton code, which weren't very inviting.

A summary: The lab is about implementing a simple neural network AI for (sixteen) robot enemies in a simple first-person shooter game (so simple that there's only one weapon, and not even any walls). There's Data Collection program code, Neural Network program code and the actual Simulation (game). The idea is to collect data using the Data Collection program, feed this data into the Neural Network program to create a neural network, and have the robots use the neural network to make decisions in the Simulation, and we're done. Ta-dah!

The high-level overview is simple enough, but coding all the nitty-gritty stuff isn't that straightforward. Furthermore, I didn't have any practical experience with neural networks (thereafter NN). The general idea behind NNs (AFAIK) is that they allow, given a selected set of inputs, to predict (certain) outputs. Let's have a simple example with two inputs: Age and educational level, and one output, the probability of getting refunded on a bad investment. Using this, we set up NN with three layers - the input layer, the output layer and a hidden layer (with perhaps two cells [why?]) in between them.

Having defined the structure of the NN, it's time to train it with actual data. Each input is ideally normalized such that it has a minimum value of 0 and a maximum value of 1. So, for age, we can have 0 years old as zero, and 122 years (current record) as 1. For educational level, we can probably work out some scale with no formal education at all as 0, and a terminal degree as 1.

So let's say we encounter Mr. X, a 70 year-old retiree with primary school education, who got his money back. Then, the input data would be something like (0.57,0.2), and the corresponding output data is (1). Next is Mr. Y, a 30 year-old investment banker with an MBA who probably isn't going to get anything back. His data would be (0.25,0.9),(0.01). By feeding all these data into the NN and iterating many times, the weights for the cells in the hidden layer(s) are eventually adjusted such that feeding the exact same data back into the NN corresponds very closely to reality, i.e. the NN is sort of a black-box function that will take (0.57,0.2) as input and give a value that is very close to the actual output of 1 back.

Why is this useful at all? The answer is that the NN allows output to be predicted with a certain level of intelligence for new data. Even given only the two sets of data so far, it wouldn't take much to guess that (0.71,0.15) should have an output closer to one than zero, and the other way around for (0.22,1.0). While this (and the Lab 3 NN) are rather simple examples that a human should have little trouble working out, I suppose NNs really shine when things get complex with dozens of inputs and outputs, which probably can't be adequately expressed with basic rules-based logic (e.g. FSMs).

Now, using only the age and educational level probably will not be enough to successfully determine whether a person gets back his cash all the time, since other factors like proportion of assets invested, evidence of misselling etc will come into play. Now one can of course model all the inputs one can think of (such as the last digit of the person's NRIC), but many will obviously be of minor or no consequence to the decision and only serve as unwanted noise. Thus, a balance is required - another win for Common Sense.

The next step was then to peruse the module's online forum on the IVLE, to get up to date on any time-wasting bugs, receive other students' insights so far (i.e. learning through others' experiences) and get a general idea of how to proceed. One of the few benefits of starting a lab assignment late.

Data Collection to a text file wasn't too hard - just dump S sets of L lines, where S is the number of samples taken and L = I+O, where I is the number of chosen inputs and O the number of required outputs respectively. I chose I = 4 and since robots have three available actions (Idle, Flee and Attack), O = 3.

Now on to the NN code. Reading the data in from the previous phase wasn't hard, and running the NN was easy too. Then the first major hitch struck. The actual NN structure (complete with weights, biases etc) had to be exported out to a file, to be read in by the Simulation code. The NeuralStructure class is constructed by incrementally adding new Layers, and there was no provision for injecting attributes directly within them (instead of building those attributes through training). I wasted a good few hours trying to serialize the object (the cheapskate way), though I should have gotten the hint that nested objects don't serialize easily (yes, sometimes C++ makes me want to bash my head against the wall). I ended up just adding new constructors that take in saved data in array form, which wasn't quite that hard since the values have a fixed structure behind them.

Finally, the Simulation program itself. I loaded the NN within the RobotManager instance and just had each Robot send their current input values to it every so often. They would then get back output values for the Idle, Flee and Attack actions, and perform whichever was the highest. I daresay even this very simple implementation shows a flicker of intelligence - see below video for example (using a NN which has the robots pursue and attack if close enough, and flee once their health is low enough compared to the player's). Note that in the group battle at 0:40, a robot flees once it is hurt sufficiently, but turns back to give support fire once the player switches his attack target - without this behaviour being explicitly specified!



Okay, in this application a few lines of logic would probably have performed just as well, but that takes all the fun away, doesn't it?

In the end, this lab took the better part of two days, with a big chunk of time sucked up by the ill-fated serialization attempt. So, moral of the story is, just get your head down and code, and things won't be too bad. Chins up!



More random stuff: My cousin gave me an overgrip for my tennis racket. It truly feels non-slip now as compared to the original smooth one, though the handle's become a teeny bit too fat for my liking. Also found a Buddhist intro-book, I Wonder Why, by Thubten Chodron (an American nun, and History major) lying around. A sign that it's time to branch out and widen my range of exploration (and likely critique)?



comments (0) - email - share - print - direct link
trackbacks (0) - trackback url

Back to top

Saturday, Nov 01, 2008 - 21:17 SGT
Posted By: Gilbert

- + -
Do Do Do

Got a few lingering tasks done today - did the sole Econs tutorial released so far, cleared up some more legacy issues from the summer job, booked my IPPT (ulp) for January, started reading up for the Game Development Lab 3 etc...

The last (all-MCQ) midterm was returned, and on this one I got a rather average score. Some I could put down to not having gone through the notes ("top of ivory tower syndrome"), but getting the income and substitution effects confused was something I would have kicked myself over, had I been flexible enough. They were introduced in junior college, for beep's sake!

Looking at the big picture, I probably shouldn't even be caring about these bits of carelessness; The main concern should be how dumb I am, all things considered. Doing pretty well in Economics as far as grades go is one thing, but then it's all been down to recycling a few key concepts. In the end, pretty much all I did was some combination of solving (admittedly sometimes tedious) simultaneous equations, performing basic differentiation, and applying Bayesian (read: common-sense) probabilities across most of my Economics modules, with some domain knowledge linking it all together. Nothing special at all.


Worse, It'll probably be more of the same inadequacy in grad school. Cue old joke about mathematicians faced with canned food on a desert island beginning "First, assume a can opener..." (Source: PhD Comics)

Some proofs in Game Theory were quite satisfying - I wouldn't have realised that first-price and second-price auctions differed so much in their theoretical underpinnings, though they do converge in cases where there is a large number of bidders (for one particular first-price equilibrium at least - the rigorous and complete derivation appears out of the scope of this module).

Still, my speed at solving such questions isn't particularly impressive, and I'm ashamed to say that even moderately complex simultaneous equations are potentially draining for me - often, after a few steps in, my mind would be wandering onto what I could be doing instead (like conquering the world in Civ 4 on epic speed at gigantic map size). Oh, for that wonderful technical ability to be able to look at abstract symbols and manipulate them effortlessly!

Then again, the history of science occasionally appears weird to me. For instance, algebra and counting numbers have been around for easily thousands of years, but a systematic study of probability came into being only about five hundred years ago. While it is difficult to believe that the ancients did not have an intuition about chance, it seems that none of them managed to relate it to fractions, or thought of them multiplying (i.e. an army is less likely to attack when it is raining, and less likely to attack when it is weak. The enemy army is weaker, and it is raining, so...) in any formal way. Indeed it is well known that Pascal introduced the notion of expected value (which by the way is sufficient to get through a lot of economical toy problems) only in the 1650s, thanks to a gambler friend.

I suppose since proving a known result is almost always much easier than getting the result in the first place (related: P=NP), what seems so obvious from being commonly taught nowadays, might have taken a quite superhuman leap of intellect to originate. Imagination >>> Knowledge.

Apart from this, there are other bothersome issues, chief among the non-FYP related ones being that of the hamsters. I thought that we were all best buddies after one of them presumably felt comfortable enough to relieve himself in my hand, but recently they have come to arbitrarily reject sunflower seeds again. It seems my post as official hamster food delivery guy has come up for grabs, but no fear:


A campaign is in order (Effect from: Vectortuts)

The fate of the civilized world will be determined in three days by the good people of America, but as I have a more important consideration in my FYP I regret that I will have to give it a miss. It would be entertaining if McCain scrapes out a come-from-behind victory, but the thought of Palin as Most Powerful Human on Earth in the not-improbable event that McCain passes on while in office is equal parts scary and hilarious. While we're at it, why not get Paris Hilton on the ticket too?

Oh, and Obama knows Computer Science too. Should be worth some geek votes.

Eked out a positive return on last week's play-predictions with Sunderland doing it over Newcastle (now up to $644.50/$900). Spurs incredibly came from 4-2 down in the last few minutes to consign Arsenal to a "4-4 defeat", which pulled Redknapp another few notches up in my estimation. Hull are somehow 12/1 outsiders to beat United despite being on top of them in the league table, with United again being quoted a 2.5 goal handicap. Singapore Pools must know that there are a lot of Man Utd fans/brandname consumers out there.

Nothing especially exciting this week, and I don't feel like going with the usual Big Four wins, so I might as well let loose on some draws:

$50 on Middlesbrough to draw West Ham (at 3.15)
$25 on West Brom to draw Blackburn (3.15)
$25 on Tottenham to draw Liverpool (3.20)



comments (3) - email - share - print - direct link
trackbacks (1) - trackback url


October 2008 >>

Copyright © 2006-2025 GLYS. All Rights Reserved.