[ November 2012 ]

Powered by glolg
Display Preferences Most Recent Entries Chatterbox Blog Links Site Statistics Category Tags About Me, Myself and Gilbert XML RSS Feed
Friday, Nov 30, 2012 - 19:14 SGT
Posted By: Gilbert

Riding Shotgun

As foreshadowed in the previous post, an interesting problem (apparently for an interview for a quant job), second hand from our man at Stanford, after some cosmetic adjustments from Mr. Ham and the newly-empowered Mr. Robo:

If there are n hamsters in a line on a road, what is the expectation value for the number of hamsters that are the nearest neighbour to their nearest neighbour hamster?


Mr. Robo was fast to come up with an attempt at an answer:

First, we state some obvious crap:

Theoham Zero

For all non-trivial cases n>1, every hamster has at least one neighbour hamster.


Theoham Zero Point Five

For every hamster that has at least one neighbour hamster, it will have one, and only one, nearest neighbour hamster.

(No ties allowed, Mr. Ham will whack the stuffing out of any hamsters who play punk with uncountable infinities)



Take me home, hamster road
(Original image source: singapore.gumtree.sg)


Now consider any sequence of four consecutive hamsters ..., hi, hi+1, hi+2, hi+3, ... somewhere within the line of hamsters. Define the respective distances between them as D1, D2 and D3. There are then six possible permutations of distances:

D1, D2, D3
D1, D3, D2
D2, D1, D3
D2, D3, D1
D3, D1, D2
D3, D2, D1

Properly assuming a uniform distribution of hamsters, due to their egalitarian sensibilities, expectations E(D1) = E(D2) = E(D3), so each of these permutations are equally probable. We now consider only those (three) permutations where hi+1 is closer to hi+2 than it is to hi, i.e. D2 < D1:

D2, D1, D3
D2, D3, D1
D3, D2, D1

...and we can note that in two of the three equally-likely cases, D2 < D3 too (feels kind of Monty Hall-lish). Or in other words:

Theoham One

Given that some hamster h has its neighbour hc as its nearest (nearer) neighbour, then there is a 2/3 probability that hc also has h as its nearest neighbour.


...justified as the mutually-nearest neighbour property of the middle two hamsters hi+1 and hi+2 depends only (locally) on themselves and their other two neighbours hi and hi+3.

And since the theohams apply independently for all hamsters (well, excepting maybe the boundary hamsters, but as the newly-assertive Mr. Robo said, who cares, n is big - or if not, Mr. Ham will make it so), the desired solution is simply 2n/3, and we are done.

The question is - is Mr. Robo correct?


Entirely Unnecessary Elucidation

A popular recourse is of course simulation, and the average of thousand iterations with a thousand hamsters suggests strongly that the solution, if not correct, is pretty dang close (simulated result: 0.666116), and moreover pirated the first half of A Midsummer Night's Dream under Mr. Ham's purview.

[N.B. Simulating with larger numbers of hamsters requires special handling of the limitations of numerical precision and random number generators, not to mention the smell]

As a sidenote, it may be interesting to note that the possible number of mutually-nearest hamsters can range from all n (or at least n-1, when n is odd), down to just two.

An example of all n hamsters satisfying the property would be spacing n/2 of the hamsters at a uniform distance d/(n/2+1) from each other, then assigning each of these hamsters a (mutually) nearest neighbour a distance ϵ << d/(n/2+1) away.

An example of only two hamsters satisfying the property would come from placing the first hamster halfway along the road, then the second hamster halfway between the first hamster and the further end of the road, and so on for all hamsters; then, no matter how many hamsters there are, only the last two hamsters would be mutually nearest.

It could also be noted that, as already mentioned by our resident math expert, the expectation of 2/3 does not hold when n=2 (since the two hamsters must necessarily be each others' nearest neighbours)

The expectation does hold when n=3, from the observation that the middle hamster must have either its left or right hamster as its nearest, and that hamster must necessarily have the middle hamster as its own nearest, and therefore exactly two of the three hamsters are always mutually nearest.

It also holds when n=4, from an exhaustive enumeration like that leading to Theoham One - in two of the six permutations, the first two and the last two hamsters are respectively mutually nearest, while in the other four permutations, only two of the four hamsters are as such.

There is probably no reason why similarly direct proofs cannot be constructed for n=5 and beyond, though a rigorous inductive unification has so far eluded Mr. Robo.

But, as the redoubtable Mr. Ham shall shortly explain, that was probably not the point of it at all.


Mr. Ham Talks Sense

Mr. Ham: See, this was an interview question. The whole idea was to give an answer, and get closer to snagging the job, m'kay?

And let's be frank, coming up with the correct answer, as we have seen, wasn't that hard at all. It could have been done the Mr. Robo way, with his three fancy theohams, but then even I, presently a Cult Leader, can understand them, so any sciency grad student should too. Worst come to worst, one would expect the interviewee to at least figure out the answers for n=3 and/or n=4 by common sense, at a bare minimum.

In any of these cases, the interviewee would have gotten the right answer. The only way not to get it was either to be so dumb as to not even be able to construct the smallest meaningful special case, or so lacking in confidence as to not want to stick his paw out after that. Ok, so he might not be able to prove to a math professor's satisfaction that it is right, but remember the job being applied for. It's a quant job.

A job where, in case you weren't aware, you create theories and algorithms to rake in the cash. Fine, you might take pride in them being internally consistent, but the only place they're gonna be used is externally, interacting in unimaginably complex ways against countless other models created by competitor quants, all of whom think they're smarter than ya.

And if any quant thinks that such a state of affairs can be unilaterally rendered safe, and that he can even prove it, maybe he can consider assembling a nuclear warhead where the other fellows involved are adversaries instead of collaborators - he either has a suicidally high opinion of himself, or is criminally naive.

*Mr. Ham inhales on his cigar*

No, the name of the game as a quant is to bluster through as far as yer can with pages of impressive-looking formulas and code, and grab as much dough as yer able to before the whole party blows up again, same as it always was. And if ya gonna let a roadful of hamsters stop ya, maybe ya not cut out for yer fistful of dollars after all.



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

Back to top


Wednesday, Nov 28, 2012 - 21:34 SGT
Posted By: Gilbert

Tokyo Drifting


16 Nov 2012



My last night at the Kenshu Center hostel [1] was spent commiserating with the soon-to-be-abandoned bottles and cans that had done so much for me [2] (I did save one), and then it was time to move out. Wheeling my luggage behind me to the conference center one last time while taking in the sights [3], I dumped it in a 100-yen locker and awaited the bus for the official Technical Tour, which had attracted a meaningful 42 participants.

It's not everyday that one gets to visit the University of Tsukuba and the National Institute of Advanced Industrial Science and Technology (AIST, which does bear some similarities to an outfit back home obtained by swapping the I out for an AR) in a day, and the first stop was the supercomputer center (one can't help but recognize the katakana for "Senta~" on sight after long exposure) at UT.

Apparently, they once had the honour of owning the world's fastest machine back in 1996 [4], a Hitachi CP-PACS/2048 going at 368.2 Gflop/s (to give a point of reference, a decent desktop circa 2011 achieves around 50 Gflop/s, and today's champion, a Cray with half a million cores, is about 30000 times the speed of the Hitachi)

[N.B. More on this, my current mid-range graphics card supposedly does over 900 Gflop/s in theory, though they are of course not quite general-purpose, but this only goes further to show that yesterday's behemoth is tomorrow's pocket calculator]

Some other prize projects were showcased too, such as Xcalable MP, which automatically generates parallel code and appears to be mostly OpenMP for distributed memory systems (and so a sort-of MapReduce generator?). Then there's Tightly Coupled Accelerators, to reduce latency between GPUs via direct PCI-express links, and a Global Distributed Filesystem (gfarm; see abstract and paper using Hadoop, though to be honest the first thing I thought of when I read the description was the Internet and Akamai)

We were let loose in the supercompter room [5], and then got to retrieve our shoes before being split into three groups for rotating visits to three labs. I first set foot in their Computer Vision Laboratory, home of the famous (justified by my recognizing it despite not quite being in the field) stereo/depth-map head-and-lamp dataset [6] (and now also the winner of the HEp-2 contest), which they have updated to a full 3D scene. Got handed a paper on subspace methods, again related to PCA, but will take some comprehension.

Next up was the Computer Vision and Image Media Laboratory, where we witnessed a live demonstration of how to manipulate camera angles on a soccer pitch with tagged flags [7] (a satisfying real-life implementation would probably require a lot of cameras, plus some restriction on viewing angles), and a presentation on sensing emotions through microexpressions and other cues.

Last but not least was the Computational Intelligence & Multimedia Laboratory, where the quadcopter made a reappearance, together with a quick superresolution algorithm (well, who doesn't like to play with quadcopters?), as a disaster management tool. Apparently, they can be built with off-the-shelf parts for less than a thousand bucks.



Lunch was very kindly provided, and then it was on to AIST. The first demonstration included an extremely detailed 3D reconstruction of the floor we were on, with tracking by smartphone signal, represented by a cloud-of-points hypothesis.

Then came Songle (demo song), which analyses the structure, chords, melody line and beats of songs, and also VocaWatcher and VocaListener, used in unison to simulate singing by robot. The uncanny valley hasn't quite been escaped, but the year-and-a-half toddler with us took it quite well. We then closed off with ArrayMark, a custom AR marker that offers better head-on stability, and some grid-based active stereo [8].

Final drop-off was at the Science Square Tsukuba, perhaps geared towards a slightly younger audience, where there was a voice-activated robot demo, as well as several Paro therapeutic baby seals (supposedly, seals were chosen since few would have come into contact with live examples, and would thus not be able to judge their realness, unlike say kittens)

My duties dispensed with, I had some personal business to settle. Without changing, I made full use of the complimentary round-trip tickets to Akihabara, thence on to Suidobashi, right outside the Tokyo Dome City, which had queues outside, even at this hour, for the rides (and which, for some reason, looped Christmassy English tunes). It was not my destination, though, and I inquired at the information office for the legendary (at least to fans of Ippo, anyhow) Korakuen Hall.

It turned out to be on the fifth floor of a side building, and slightly smaller than anticipated, with the corridor outside the hall proper packed with vendors selling memorabilia for the boxing event for the evening. Thinking back, I probably could have mixed in and watched it for free, but went back to picking up tickets for tomorrow at a not-straightforward-to-find side office, just in time as there were only a few dozen seats left in the price range.


The reach of hams extends long indeed


Task accomplished, it was dinner and back to Tsukuba to check-in with the Hotel New Takahashi Takezono, which was actually my first choice for the conference before vacancies were snapped up, being only very slightly more dear than the Kenshu Center. It was quite excellent, with carpeted floor, ensuite washroom, adjustable heater and in-room wifi - just that the hot water didn't work. Can't have it all.

Caught up on my SimCity Social, and also got wind of a long WhatsApp conversation about an interesting problem, which may yet make an appearance here.


17 Nov 2012



What better way to kick off a vacation than to climb a mountain? Mount Tsukuba was invitingly just a short bus-trip away from the city proper. I had planned to down a couple of cans of coffee, beat it straight up the Miyukigahara Course running roughly parallel to the cable car track (estimated completion in 90 minutes [1]), and be done in time for lunch. I mean, it's just maybe 700m vertically, how hard could it be?

Slightly harder than expected, with the first, unforeseen, difficulty being finding the start of the trail after bypassing the shrine at the foot. Spotted a small notice pointing to the start [2] only after a false start, and from there it was mostly alternating between rocky slopes and log-ended stairs, with occasional signs indicating distance [3] (and an about 20-degree slope on average)

Despite being a weekend, the route was much less crowded than was expected, and I kept myself before a large family group and a lone elderly guy with my surge-and-pant mode of climbing, with most of the encounters in the other direction being single or paired middle-aged hikers. By the time I was wondering what I had signed on for, I was already somewhere past the half-way spot, so there was nowhere to go but up.

And then it began to rain.

Wasn't that great? Thankfully, the final stretch consisted of long flights of proper stairs, and I emerged at the cradle between the actual peaks with sore feet (no canvas shoes next time)... to a huge gaggle of tourists, who had presumably taken the cable car. Not that there was much else to see, with the rapidly-descending mist [4] making it hard to make objects out past fifty metres, much less further sights.

Nothing for it but a good, hot bowl of beef noodles before catching the next car down (standing room only). Well, seems like the shrine's a popular spot for weddings [5]. Realised that I was rather behind schedule, with the climb itself taking a bit over two hours, added to the dallying about and trip down, and hauled ass out of Tsukuba for what would be the last time for the foreseeable future.

Fortunately, the magnificently-reviewed Quality Hostel K's House Tokyo Oasis was only a short walk from the Asakusa Tsukuba Express station, where I was received by Nabe, an extremely friendly staff member (as were all the rest). But I had places to go - who cares if it's pouring? - and headed via the subway to Ueno Park...

Where I finally gave up. There was some King Tut exhibit there, and if there's something worse than an open park on a rainy day, it's an open park on a rainy day still filled with crowds milling about, and sectioned off by cords. At least my trusty new backpack proved largely impervious to water.

My body parts voted to sit in a cosy restaurant and drag out an early dinner [6] before the highlight of the day - All Japan Pro Wrestling's 40th Anniversary Real World Tag League 2012!


Puro!


It was no trouble finding the hall the second time round, and there were again plenty of vendors selling souvenirs (with the odd wrestler standing by), though I passed seeing as the cheapest T-shirt went for about 3000 Yen. While the arena [7], for lack of a better term, could best be described as "well-used", the view from my assigned seat was surprisingly good.

The seats began to fill, and the show started with a rather energetic introduction, two large trophies were brought out, the sashed stars were presented in the ring (which in a departure from the WWE, has only two sets of steps on opposite sides, instead of at the corners), and then a free-for-all erupted out of nowhere. Promising.

[N.B. In the following recounting, names are taken from the above link, since the intro videos generally didn't include English titles]


Match One

The opening card was masked luchador SUSHI (ok, couldn't miss that with him having a plate of sushi stuck to the top of his head to make it easy) against Shuji Kondo ("big guy with golden hair" in my notes). Now, it would be tough for SUSHI not to be a comedy character, which he was, and he had a genuinely funny spot begging his opponent not to approach when stranded atop a turnbuckle.

There may be something about luchadors that makes selling to them awkward - Kondo flying out between the ropes wasn't completely convincing in an otherwise uproarious match (but if I had a dollar for each time some poor sap has had to try and disguise a crawl to the middle rope and then drape himself over it as inconspicuously as possible to set up Mysterio's 619...). Some fine spears though, including a post-spear-part-lift variation I hadn't seen previously.


Match Two

Well, the light relief guy doesn't usually win, and Kondo pinned after a combination counter, but the next matchup wasn't too serious either. On one side, three averagely-proportioned guys (with streamers and a bola). On the other, three freakin' big (if not uniformly shaped) dudes. The usual big guy vs. small guy drill followed, with the big guys basically (and quite realistically) no-selling most of their opponents' offence.

The KENSO fella, despite winding on the losing side, seemed extremely popular, with his own Kensomania banner on display, and was persuaded with a lot of chanting to work the mic (dramatically, I might add). AJPW's Zach Ryder (though given that they may be having a tie-up, it might not be that far-fetched a comparism)?

The ringside fellas showed their full repertoire here, not only gathering up the streamers thrown into the ring with an efficiency beling long experience, but also always being present to support the ringside freestanding barriers at the right time to prevent accidents to the paying customers.


Match Three

Starting to heat up now, the next contest had two heels, the Tumeric Storm, enter first - or that's what I assumed, given that there was no clapping, and even scattered booing. Saying that, playing a baddie in Japan is not the same as in the USA - audiences tend to applaud them for good moves or fighting spirit anyhow, regardless of whether they're the uber-charismatic likeable asshole type.

It's exactly the same in other ways, with the Storm attacking their opponents as they were still making their way to the ring, before exhibiting the full gamut of bad behaviour and classic cheats - raging on the railings, whacking with chairs and poles, choking with the ropes, biting the forehead, etc.

There were some light-hearted moments too, such as nonchalent kick to the face to break up a count (instead of the usual frantic rush - and on this note, the whole switching to partner bit is far more believable in puroresu than the WWE, where competitors routinely execute a perfect flying kick before finding they can't even crawl to the corner)

It ended after a clever spot that had the heels slide a chair over to the out-of-play good guy to draw the referee, which while not completely original is still a departure in that it's generally the bad guys who get presented as the less-clever butt monkeys. Tumeric Storm won with interference at the end, and continued attacking with steel chairs after that, until good guy got hold of one, at which they cut and ran.


Match Four

Shifted a few rows down to a mostly-free section during the interval, and then it was another tag team - Junior Stars vs. Strong BJ (I'm clueless as to the acronym too, don't ask), who came down in black robes and with (presumably title) belts.

Well, this took a long time, though not for lack of ideas. These big guys were surprisingly athletic, with backflip escapes in their movesets, along with tons of other maneuvers (I would have contrasted against the WWE's big men, especially *cough* The Great Khali, but it turns out that Strong BJ are like five-feet-nine. They sure appeared larger than that)

Junior Stars attacked the thighs, but Strong BJ had power moves to spare, including a Ryback-like arm lift and slam. Submission moves were on show too, with Junior Stars trying an ankle lock, and Strong BJ going for both the Walls of Jericho and the Sharpshooter in quick succession, seldom seen in the WWE with its Five Moves of Doom addiction (recent example: hey, let's see who can eat more Brogue Kicks/Weapons of Mass Destruction before collapsing!)

The resemblances didn't end there, as the fighters channeled Daniel Bryan's reverse kick (admittedly not unique) and Ryder's Broski Boot among others, coming to a crescendo with Strong BJ doubling up on fireman carries and suplexes and Junior Stars refusing to submit by wagging fingers... and then the bell rang, and they were all back-slapping each other as respected opponents (something very, very rare in the WWE) before crumbling, exhausted. I had no idea what the finish was at the time, but apparently it's a time-limit draw.


Match Five

Sounded like some betrayal angle going on here from the pre-match video, and the atmosphere got heavier than previously. It was popular belt-holder Hiroshi Yamato against veteran Kaz Hayashi, with Hayashi going for the neck with lariats and suffocation locks. And what the... Yamato can do Sin Cara's backflip-off-the-ropes too (though he did get hit after that)

Well, the champ defended his belt after taking some punishment and in some style, exhibiting the ability to roll on after slamming, as well as a beautiful high back kick to the face that echoed, ending it with a cover followed by a suplex pin. The referee was more convincing with his two-and-a-half counts this time (there were some disquieting delays on the last count previously, an area in which WWE officials have generally been excellent), but I would have appreciated more struggling while pinned.

Yamato had several supporters yelling his name when he was in trouble (or about to thrown down a big move), as did some of the more popular stars before him, though of course given the business it's hard to tell if they were plants. The crowd was rather more middle-aged than those at WWE shows (though WWE has gone famously PG-13), with rather few kids, and next to no homemade signs. Still, they were all happy enough to clap rhythmically when called upon.


Match Six

Now, two guys whose brandings I could make out - "Evil Weapon on Earth" and "Runaway Truck" (Joe Doering, a Canadian; they don't seem to be official nicknames, however). Facing them were two foreigners, and let's face it, it's hard to go over with the fans with a ring name like Bambikiller.

Another jump start before the streamers were cleared (the referee was caught up in them), and they soon did some fanservice by taking the brawl to the stands, which had the commentator (usually silent) yelling "audience get to the side" on repeat, punctuated with a few hearty headbangs into the metal sign proclaiming "East Side".

Otherwise, it was perhaps one of the less-inspired matches technically, with far too many elbow drops for my liking, but at least the diving headbutt made a comeback. That said, you've got to give it to Japan for intra-team spirit being emphasized, even among heels (ok, Team Hell No is fresh)


Match Seven

What should be the main draw, GET WILD vs. STACK OF ARMS (in capitals). Everybody gets loads of streamers! There appears to be a long-running feud between these two tag teams, and one has to admit that GET WILD has one catchy theme song. As if that wasn't enough, they came out in caveman furs, and one of them had neat legwarmers.

Let's see - rare flying knee to face, fierce kicks (though using the free leg to attack when the other is held doesn't seem popular here), lots of slaps, rolling kick to head. And is that Undertaker's chokeslam? GET WILD won after a mishap on STACK OF ARMS' part, with a pin after a huge clothesline.


I didn't realise that this was the last match (not having forked out for the programme either), but it was already about nine, and a good time to get back to the hostel. Found that my roommate in the four-person bunk [8] was a German named Benjamin, who had been zipping around Japan for nearly a month. Couldn't help but notice he had a copy of Gladwell's Tipping Point lying about.

Had enough space left inside for a late ramen snack [9] at the establishment down the road, where the chef asked if I was Chinese after my pointing attempts (as it turns out, he probably was too). The noodles weren't exactly cheap, as I would have thought, but boy were they filling - a wooden ladle was included to help fish for those last scraps. It was needed.


18 Nov 2012



Spent some time in the splendid shower once again, before venturing out to another corner of Tokyo - so many areas, so little time. The other two lodgers had returned sometime during the night, and were both bunked down in the other double-decker bed.


This attraction didn't pass the Mr. Ham veto
[N.B. He's thinking about a Hamcafe concept, where diners pay for the right to feed hamsters. He already rejects four of five sunflower seeds]


As it was a Sunday, the obvious destination was Harajuku, for the Meiji shrine as well as the famed cosplayers. Didn't spot any of the latter at the bridge [1], but the shrine and its surrounding gardens were easy enough to find, and certainly very peaceful, with some mammoth torii [2] and barrels of sake [3] and wine for consecration purposes on display (and perhaps aging nicely in the open air)

Harajuku itself was bustling and had about anything anyone would want to wear on sale (Laforet was rather more commercial and less niche than I had expected), ranging from used kimonos to black T-shirts featuring basically any rock or metal band that has made it in recent decades. I never knew I had a need of so many things until I popped into their Daiso (wall thermometer and humidity meter, each for just 100 Yen? Yes please). Yet, zero cosplayers.

Either way, one still has to eat, and the snazzy 50 Things To Do In Harajuku guide I got from the hostel informed me that there was a Singaporean chicken rice shop, Mr. Chicken, in the vicinity. And just to be sure no-one missed the connection, there was a Singapore flag on their poster, the main dishes were Singapore Chicken Rice White/Brown [5], and there were sketches of Clarke Quay [4] on the wall.

Full again, I decided to inquire of the waitress/cashier, who fortuitously spoke some English, on a couple of matters, beginning with wheether she knew where to get those T-shirts in cans (ok, plastic canisters, but it don't matter - I demand my shirts to come in cans!). No luck there.

Fair enough, so did she know about the cosplayers? She wasn't familiar with the term, so I did my best at dissecting the concept, together with the hand signals I have come to rely so much upon. I was getting rather proud of my ability to converse beyond the language barrier when:

"You want to... look at girls wearing... special clothes?"

This wasn't going where I had expected it to. Frankly, I wasn't sure where the gender designation had slipped in, though truth be told a majority of cosplayers (at least the better ones) do happen to be female. Sensing a misunderstanding, I collected myself and tried again, with more hand signals.

"...and photograph them?" (slightly concerned now)

I knew when I was sinking without a trace, and bailed with as much residual dignity as I could muster. Scratch that one off the list.

Central Tokyo was a good place to escape, and it never fails to amaze me how quiet an inner city can be on Sundays - there were almost no pedestrians, but a long string of runners once I hit the perimeter of the Imperial Gardens [6]. Not much I can say about the Gardens that I haven't about those around the Meiji shrine - tranquil, immaculate, quickly routine. Impressive moats [7] though.

Another of my plans went awry as I became aware at the Ginza Tourist Information office (tucked away in a department store) that the temporary Kabuki theater (the original is under reconstruction) no longer issued single-act tickets, and I was certainly not that big of a fan to sit through a whole show [8]. Back to wandering the streets then (or actually roads, with Ginza's major throughfares closed to vehicles to cater to the many shoppers on foot)

Finally, it was time to settle in for the next day, of which foremost on the list was a 5 a.m. tuna auction and guided tour of the Tsukiji Fish Market, limited to the first 120 visitors to arrive. As the metro would not have begun at that hour, this called for a strategic response, which was to overnight far closer to the market (i.e. in Ginza itself)

There were several ways this could be achieved, and the method I chose was to become a member of a 24-hour Internet cafe [9]. All in all, it was an excellent deal - for about thirty bucks, one gets a cubicle with privacy door-curtain, recliner and all the Internet access one can handle for the night. And that's without mentioning the shelves of comics (unfortunately, all in Japanese), free flow of coffee and supply of cheap instant noodles. In short, graduate student paradise.


19 Nov 2012



Perhaps too much of a paradise after all. I had turned in near twelve, after having cup noodles how I like them as well as settling the slightly-complex billing procedure (communication by Excite translate on a tablet), and after setting my smartphone's alarm for 3:40, woke near five. Turned out the phone was on silent mode.

I debated not going, but had come too far to just walk away, and hotfooted it down [1] just in time to see the first tour group complete their observation of the tuna auction [2]. That did provide an opportunity to mingle in with them for the next part of the tour, and despite not having a green vest I made it about halfway before being discovered and asked to make my way back - which naturally meant a bit more poking about.

Keeping alert is a must with workers zipping about on their distinctive and nimble "turret" trucks, and when I got to the Outer Market, some of the restaurants [3] had a waiting list. I was having none of this, possessing an unrefined palate anyway, and settled for the first place where I could be served immediately - and it wasn't bad.

Souvenirs picked up, it was all the way to the hostel to bathe (yes, the shower is that good), then on to Sugamo, the Harajuku of the elderly, just to take the northwest of Tokyo in. Its title was no exaggeration, with plenty of older folk on the main shopping street, which was thankfully easy to navigate.

Next stop was Shimbashi and the Tamiya Plamodel Factory. This took longer than it should have, as I attempted to follow landmarks, only to realise after some fruitless circling that there may have been multiple 7-Elevens in the area.

The searching didn't stop at the Factory, as I explored the first floor only to find next to no Mini 4WD goods, then the second which basically was a racing area, before happening on the treasure trove that was the basement - stacks upon stacks of most of the Mini 4WD cars that had seen production [4], accompanied by a comprehensive collection of tune-up parts [5] ranging from motors to rollers and bumpers, and all reasonably-priced. What could I do but pick up another Big Bang Ghost, as well as a Ray Stinger for about seven bucks (more next time)?

Made a special detour to the Nagakin Capsule Tower [6], and while it won't be on many tourist maps, it still stands out for its imagination; the idea was to construct a high-rise scaffolding, and then populate it with upgradeable capsule rooms - replaceable prefabrication, in summary. The concept never quite took off and the structure itself has seen better days, but it's still worth a peek if you're into this sort of thing.

Another detour at Exit C6 of the Ginza subway station took me to an unprepossessing door, and thence to the domain of the mythical Jiro Ono, owner-chef of the triple-Michelin-starred Sukiyabashi Jiro [7]. As it was between lunch and dinner, the restaurant was empty, with what I believe was the man himself sitting at the counter overseeing his two assistants, in front of a Jiro Dreams of Sushi poster. It would probably have been rude to just snap away like that, so I moved on. Clearly, actually eating there was somewhat out of my budget (and might not be possible anyway)

Whiled away the evening at Odaiba [8], a reclaimed islet in Tokyo Bay, before it was time to return to the hostel and, you guessed it, take a long shower [9].

Roommate for the night was Krishna, an Indian engineer from Cape Town, South Africa (a rare combination, as he candidly admitted) on Rotary Club exchange. As it turns out, he had heard from a German guy (Benjamin?) about "an Asian guy" in the top bunk (that's me!), and also revealed that this or another German guy in the room had planned to cycle to the fish market at 3 a.m.; okay, it's maybe ten kilometres, but still. In any case, he overslept too and gave up the idea.

Decided to update my inventory, and could not account for a green ballpoint pen and the 2GB thumbdrive from the conference. Oh well. Back to the ramen shop, where the owner confirmed my suspicions about the Aoyama name whist chatting to his countrymen - 留得青山在, 不怕没柴烧。


20 Nov 2012



It was time to bid the delightful K's House goodbye, but not before picking up a couple of postcards to send to Mr. Ham. Laid about in bed for half an hour after waking, but was off at about eight. They nicely allowed me to stash my luggage on the ground floor for the morning, so I was free to walk around without having to secure a locker. Bought a copy of How To Solve It to have something to pull out when waiting.

Dropped by the Asakusa Kannon temple, which I had passed briefly on my very first day in Japan, and decided to try the kau cim (求簽) telling of fortunes. The process itself is quite simple - one gets a container filled with a load of sticks, each inscribed with a number corresponding to a fortune, and shakes it such that exactly one stick drops out.

Being a rather high-traffic area, the container in this case was a metallic cylinder, with a single hole of diameter barely larger than the sticks at one end. The official guide mentioned to "shake the box politely a few times", but it wasn't happening. Well, I had donated my 100 Yen and I was entitled to my fortune, darn it, even if I had no specific wish. A couple of minutes of energetic shaking in all directions followed, but it was not until I resorted to swirling the container around upside-down that the spirits deigned to give an answer [1].

Alright, Stick Number Two (which happens to be the third number two I've received in Japan, the other two being queue counters). Therefore, I opened the Number Two drawer [2], and extracted my postulated fate [3]:

第二小吉

月被浮雲陰
立事自混迷
幸乞陰公佑
何慮不開眉

With considerately-supplied English translation:

No.2 BETTER FORTUNE

The moon is covered by floating clouds. You will have difficulties in making plans. Do your best and ask for help of others. Then you will be able to catch good fortune. You don't have to worry; open your eyes and look into the future.


Not too bad, I suppose, even if all the advice is kind of general. Unfortunately for my ballpoint pen and thumbdrive, it adds that "The lost article will not be found"

[N.B. 小吉 seems to be third best of about twelve general ratings, though they are loaded towards the auspicious readings, and the worst ranks may not even be used]

Took the metro to the Tokyo Skytree after that (could probably have walked, as it basically towered over the skyline), but didn't access the observatories proper due to the cost, especially as shall soon be seen, there were other options. Changed some Singapore dollars to Yen just in case, as my paper money supply was running dry - most fairly-large stores do accept credit cards, though.

From there, the Ryogoku Kokugikan [4], home of sumo, wasn't far away, right beside the Edo-Tokyo Museum (not visited). While no photos were allowed within the Kokugikan museum, it more or less had a portrait of every Yokozuna to the present (recent champs appear... bigger, some of the earlier ones were simply stout), some woodcuts, and a television playing past bouts. Picked up my been-here T-shirt at the shop at the other end, and then tucked into some (chicken) chankonabe [5], the stew that sumo wrestlers gorge themselves on to gain the necessary weight.

Passed up the Japanese Sword Museum as I was again behind schedule, and took a long metro ride to Shibuya, retrieving my main luggage and storing it with the Rail-Go office at Tokyo station along the way - leave by Yaesu South Exit, down a lift in a narrow corridor, then down another lift, where one will be greeted by several elderly employees, who will take good care of it for 410 Yen a day.

Filmed the Shibuya Crossing, reputedly one of the busiest scramble crossings in the world:



Didn't miss giving Hachiko [6] a pet too. I know that feel, bro.

Made a trip down to the Tokyu Honten department store just for Mr. Ham, as it was known to host a pet shop on its topmost floor [7]. Turns out they sold supplies only for dogs and cats, along with the cutest puppies and kittens, in the range of three thousand bucks each. Too bad for Mr. Ham, but it was a nice place to put my feet up. Had come across a banana vending machine and passed through the notorious Love Hotel Hill on the way, but it was frankly not much unlike any normal neighbourhood.

Swung by Roppongi Hills [8] for a bit before going on to Shinjuku, my final destination for the day. Walked to the Tokyo Metropolitan Government Building mostly by an underground route, and there up to the North Observatory, which while not as high up as the Skytree, was completely free and granted a great night view of Tokyo (supposedly, skyscrapers are concentrated in Shinjuku as it is the most stable part of the city)

Being ravenous, I had forsaken donor kebab for a tuna & cheddar sandwich, and unfortunately encountered no kebab vans on the way to the Green Plaza Shinjuku Capsule Hotel. Took the opportunity to stroll through Kabukicho, which was kind of unremarkable if one doesn't give in to the touts.

And the capsule hotel experience - they were evidently used to first-timers, with the friendly counter staff handing me a stack of directions and how-tos upon learning that I was one, which persuaded me to upgrade to a capsule with wi-fi. To check-in, I had to first remove my footwear (the entire place is carpeted), lock it in a specialized cabinet, and hand the key to the counter staff. In exchange, he gave me a surprisingly comfortable wrist-strap with a pouch for the locker key [9].


Home for the night.


The capsule itself didn't have a lock, just a roll-down screen, so all valuables were supposed to be either left at the front desk, or in the locker. Other than that, it was cosy, if a bit warm (no individual temperature controls)

Since the capsule hotel was geared primarily towards local businessmen (who did in fact make up most of the clientele), it assumed little of the way in preparedness, and supplied a basic pajama set to all guests. Most other necessities, such as collared shirts, could be very conveniently bought.

The entire sixth floor was given over to sento facilities, which while not quite an onsen, was close enough for me. Once inside, naked guys of all shapes and sizes will be milling about, making it hard to be self-conscious after awhile. Avoiding eye-contact and keeping competitive spirits in check is advisable, of course.

The first stage is inevitably a thorough shower by the side of the main bathing pool, with plenty of soap, shampoo, etc available at a low bench, with stool equipped. That done, it is allowed to soak in the heated communal bath. Conversation was rare, with most attention fixated on the television. Had supper after that, conveniently charged direct to my account.


21 Nov 2012



The built-in alarm was well loud enough, and I avoided the ten a.m. check-out rush handily. Final destination: Akihabara, geek mecca. [N.B. For those hankering after the capsule experience, it's available in Singapore nowadays]

Not much was open at this early hour, although Yodobashi Camera was, and I picked up a G-Shock for myself from there. Next in line was the Tokyo Anime Center, which unfortunately was much, much more limited in scope than I had expected. Some nice decorations [2] though.

It was mostly a free-for-all after that. I sifted through some of the electronic wares at the Radio Market, but didn't see too much there that I couldn't get at, say, Sim Lim Tower.

Eventually, I wound up at Mandarake, where I snapped up the collected 45 Opening Works of Doraemon for about ten bucks. Yes, so I can't read Japanese yet, but if my childhood is any indication, comics are a great way to ease into a new language (and I even remember most of those 45 stories)

The next floor up was devoted to dojinshi for men. Nice, I have nothing against giving amateur artists a leg up if it doesn't cost too much. And then I swiftly discovered what the male doujinshi market is all about. Well, come on, it's not like we fantasize about ladies wearing very little to that extent. I briefly considered fulfilling the "special order" requests of friends-who-shall-not-be-named, but figured I didn't know squat of their tastes, and would like to keep it that way.

About the only comics I could safely take home from that floor looked to be set in some alternate Second World/Korean/ Vietnam War reality, reminding me of the Victor annuals of long ago. Wasn't that eager, though, and I went up one floor for the ladies' doujinshi.

It has to be said that there were few if any built men swinging their gear from the covers, in parallel to the mainstream male doujinshi style, but there was a disturbingly large selection of pretty boys who are... very close friends. Plenty of good old-fashioned bodice rippers, and yes, vampires. No shortage of customers on this floor, either.

Still empty-handed but for my Doraemon, I ascended to the top floor, which thankfully was dedicated to uncontroversial collectibles [3] and models. Spotted a Tamiya Thunder Shot Mk. II, which wouldn't have been all that had it not also been the Momoi-Halko Special in bright pink, proving again that cute girls are the universal saleswomen. Couldn't resist a huge deck of Pocket Monsters cards for two bucks plus change, just because I could.

Next visit was Don Quixote, which some might know as the home base of AKB48. They're a bit too mass-produced for my taste, with strong cheerleader effect in play, but whatever; there's a pretty ok manga centered around the group. The stores were certainly quirky - grenade coin cases [4], anyone? Got a furry football [5], probably the best buy of the trip.

I certainly didn't want to be late for the return flight, and therefore got to Tokyo station early, where I retrieved my main luggage and waited an hour for my designated Narita Express train to arrive. Astoundingly, despite my purchases requiring me to allow the suitcase to expand another layer, it was only about three kilos heavier than its original weight.

Enjoyed some sumo in the departure lounge while waiting for the gate to open [6], and I happily discovered that the neighbouring seat was empty. Tried watching Mr. & Mrs. Smith, Madagascar 3, Clash of the Titans and Batman Begins but for some reason they all hung towards the end.


On the bright side, it was discovered that Delta's in-flight entertainment systems are Linux-based




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

Back to top

Sunday, Nov 25, 2012 - 23:07 SGT
Posted By: Gilbert

Conference Report

Covering a fortnight of action in enough words to do it justice, yet not so many that the post becomes unwieldy, is a tall order, but I'll do my best. As such, the narrative will be almost fully chronological (with scattered observations), level of technical detail shallow, with liberal plastering of images.

While it happened to be my first shot at travelling overseas completely solo, I wasn't too perturbed given my past experiences, and spent some time before the trip planning a conference timetable (before the organizers released their webapp), and a post-conference itinerary.



My necessities went into a single medium-sized suitcase [1], and the flight itself was a mere seven hours direct on Delta Airlines [2] (just S$640 two-way - I would have been happy to support our local carrier, but found it hard to do so when the quote came to over twice as much. Next time perhaps)

Air travel has gradually gone from being a Big Thing to a glorified train ride, personally, what with all the price-slashing taking much of the old glamour away - they don't even carry complimentary poker cards any longer. I can see standing room coming soon, and then the redundancy of the pilot (in fact, cruising an airplane may be less complicated than a car)

Having said that, Delta's banana/yoghurt/muffin snack was well-received, and I was mildly if pleasantly surprised at there being chicken rice and sponge cake after that.

Though I had resolved to sleep most of the way, I could not help but be drawn to their Sky Mall magazine, which was chock-full of products I never knew I had always wanted till now. While there are too many examples to list, here are some of the more memorable:


There were a few I wasn't completely sold on, such as an aging accelerator that touts to age wine a decade in seconds, and the sheet holders (since I had done well with safety pins through my army days), but heck, I wouldn't refuse them.

Picked up my 2-Day and 1-Day Tokyo Metro Passes after two redirections [3], as well as a Suica & NEX Round Trip combo, which solved my need for a metro farecard for the Toei and JR lines. Passed a bunch of farming communities on the Narita Express to Tokyo proper [4], and noted that homes usually had very similar form, but were rarely exactly identical. For some reason, sloped exteriors and rounded stairs were popular on the larger structures.

Being slightly ambitious, I dragged my luggage to the Asakusa Kannon [5] in an effort to witness participants in the Shichi-Go-San festival, but sighted none - was probably too late. I was struck by how commercialised the area around the temple was, though. Exercised my finger-ordering technique for the first time at a Burger King's - anything would do then, really - and then raced to find the Tsukuba Express, boarding the 5:52 p.m. line, with the sky rapidly darkening.

Here, the attraction of going it alone should be stated; sure, one misses the company, but then one can push any pace and make any diversions without being concerned about imposing oneself overly on fellow travelers.

Twenty stops later, I had how plainly large Tokyo was drummed into me (it's the largest metropolitan area in the world, after all), as I gaped at fifty minutes of unbroken cityscape. The first blast of cold air hit me as I emerged at Tsukuba, as pulling 15kg behind me suddenly seemed less exciting then before.

Mercifully, the bus came soon, though I had some trouble with the payment - apparently, the practice was for passengers to board from the middle, and only pay when disembarking from the front, which had a handy slot to convert 1000 Yen notes to a balanced mix of coins. By the way, concerns about coins being hard to come by were completely unfounded - I soon had more than I wanted through normal usage of notes, with no one blinking at breaking 10000 Yen.

Dropped off at the Medical Center, and eventually fumbled my way to the Tsukuba Kenshu Center [6] [7] [8] [9], which would be my home for the next six nights. Was handed the key to Room 314, which was spartan, but had a desk and power sockets (whereupon I discovered that my power convertor had a built-in USB connector), but no wi-fi. Oh well. The bathrooms were all situated on the first floor, and thankfully they were spotless.


11 Nov 2012



First morning in Japan. I had set my alarm for seven, but managed to wake by myself five minutes before it went off. Breakfast was a large slab of boiled fish, with rice, some sticky beans, and a stick of seaweed. Good enough.

Well, time to receive some results. Marched with a guy from Google named Joe to the conference site after we got tired of waiting for the bus, picked up my goodie bag (with programme, neat wooden box, and a 2GB thumbdrive!) and settled into the venue.

I'll skip most of the technical details here, but suffice to say my submitted entry (F-measure 0.4908) wound up seventh. Although my latest results (after completing parameter grid-search properly) had an F-measure of 0.5960 (which might have placed fifth, if unfairly since the other participants might well have improved too), it's still clearly no match for the winner, who used a deep convolutional neural network on raw pixel values to achieve an F-measure of 0.7821.

[N.B. Yes, that's the same state-of-the-art CNN thing I've been putting aside from character recognition; got to get on it someday. However, the power does come at a cost - using some 66000 mitosis pixels and 2 million negative samples, their CNN takes 1 year to train on a desktop - or 1 week on a GPU, which means that in practice, I'll have to either pick up GPU programming, or commandeer a network to use this technique]

The second competition, in the same room, was more well-participated, predictable given how relatively simple it turned out to be. My cross-validation results of some 96%-plus appeared respectable enough, with the around two dozen other contestants declaring accuracies ranging from 91% to 98%, which while made it extremely unlikely that my entry would wind up ahead, was not completely out of the realm of possibility.

From what I could sense, not a few of the others were (quite admirably) thinking the same way, and we awaited the results with bated breath...

Only to see them all fall below the 73.3% achieved by a human medical doctor and used as a benchmark, all the way down to about 20%, though most got above 40%. My entry did 48%, somewhere in the middle of the pack, with the winner getting just over 69%, good if still nowhere near the cross-validated results claimed by almost everyone.

So what happened?

Well, the momemt I saw the graph come up, I could not prevent myself from indulging in a wry smile and muttering "Test set may bear little resemblance to training set" under my breath. Recall that the motivation behind cross-validation was to simulate how a model constructed on available training data would perform on unknown test data - but this extrapolates only if the true test set is of approximately the same distribution as the given training set.

There is a possible second explanation - that we had all grossly overfit on the given data - but this seemed extremely unlikely given how many independent submissions there were, none of which came anywhere close. And indeed, the organizers revealed that the test data came from completely different slides, with different origins, as compared to the training data.

One might still not expect the results to vary so much, given that some entries would have normalized the pixel data, but this could be explained by the test classes shifting wholesale. It is hard to tell without access to the actual images, but the importance of contrast invariance is suggested by the winning team using binary patterns as their base mechanism.

Then again, I suppose this only makes the problem more captivating - how does one account for image characteristics varying between labs (though the practical answer, given how quickly a simple SVM can be trained, is probably to simply create a model for each lab, or even machine)? Or, put another way, how to adapt a trained model to a new environment with similar but far from identical structure. Actually, the field - transfer learning - already exists.

More things to try (and discuss next time). Hoo-hah.

Lunched with an A*STAR PI, who happened to be sitting in on the contests, in between, at a nearby Japanese restaurant. Attempted the seiza for a few minutes before realising that they had evacuated the space under the low table, presumably for the comfort of less cultured guests like myself.

Sadly, it rained in the afternoon, which together with the sky being completely dark by five, made getting back to the hostel less than fun. At least it wasn't all that cold, and the umbrella dried quickly (probably due to the low humidity, which was much appreciated by my nose too). The welcome banquet was a nice pick-me-up.


12 Nov 2012



Conference began proper. Breakfast was more or less the same as yesterday. Decided to walk to the conference site, aided by roadside maps, passing by schoolkids already at baseball training.

The opening speech [2] was the usual stuff, where I learnt that there were about 25 Singaporean participants (as opposed to over 200 from each of Japan, China and the USA). The prize lectures followed, and frankly what I took from them was how fluent the presenters were (then again, I assume they had plenty of practice at lecturing)

I'll be honest, I had not heard too much about sparse coding and dictionaries before this lecture, but from the description shown it reminded me a lot about PCA (recall eigenfaces and all that), and as it turns out, it indeed seems to be a more generalized form of PCA. The next lecture could then be seen as largely on the same topic, with more video and an extension to sparse subspace clustering.

It was then time for the Kanade (of Lucas-Kanade fame), though his presentation was much heavier on demonstrating various projects with practical applications. Noted especially the slightly bulky wearable pupil tracker, even if the Big G's (and maybe M) probably going to better it.

Additionally, the presenters tried a joke or two, but generally the audience either didn't quite catch them, or were too polite to laugh. Would probably have gone over better in the West.

Lunch was a bento box [1] (only 298 Yen, disposable spoons [5] purchased separately, with five buns [6] for the night) from Dayz Town supermarket, and since I had gotten tabs on the water cooler on the first floor, I was all set indefinitely.

On the dress code, I had arrived in a tie, but discovered that while it was by no means unknown, it was clearly optional, and was soon glad to be rid of the neck constriction. The local workers tended towards being immaculately dressed, though, whether they were driving buses, or sweeping leaves off the road. It's a different economic structure than back home.

In general, the Westerners were decidedly more casually dressed, with some form of polo shirt with jeans commonplace. The elder professors tended to fall into two extremes - they were either dressed up to the nines, with bowties and rosettes, or so normally that they might as well have been on vacation (which, in a way, we were)

Bicycles were also prevalent, and with Tsukuba on the whole a pretty new city, bicycle lanes were everywhere too (though, again, not often kept to)

Sat through more image fusion and denoising stuff, and noted that the side halls were a wee bit less filled, particularly as the day wound on. Time passed surprisingly quickly as I went about absorbing some of what they said.

Dropped by Loft to purchase a new backpack [3] (as I did back in Europe - please remind me never to rely on that small thing in the future), confirming that my credit card, commissioned mostly for the occasion, was in working condition. Got dinner [4] at the basement food center (a lot like Singapore, then), and entertained myself with 3D Space Pinball and Hearts on the netbook back at the hostel.


13 Nov 2012



Walked the right way this time [1], passing by the museums, and enjoyed the different styles of talks [2]. Had my first international collaboration when I tried to get to the upper level of the main hall, only to discover that the doors on one side were locked. A simple mutual crossed-hand signal with a Caucasian who had the same idea at the other end saved additional effort on both our parts.

Enjoyed more lecturing styles in the morning, then snagged a tasty G-dog cheese hotdog sandwich [3] at a convenience store for lunch, then sat through an interesting session by the coauthor of OpenTLD. Most memorably, he described his participation in Robot Wars, a 2008 competition to procure solutions for military needs [N.B. DSTA has had a TechX Challenge too, but the results were... not optimal]

They went to great lengths in training their system, obtaining replica weapons and camoflague uniforms to take photos of, and settled on quadcopters as their platform since they wanted to be able to peer on roofs, and hover in place (saying that, drones haven't been doing too bad in the Middle East, depending on one's side). In early tests, they had a student walking the copter on a leash, just in case, which was a hoot.

As was inevitable, the big day came... and the landscape was drenched by rain and swept by gale-force winds, grounding their fleet while other competitors' more-stolid minature dirt buggies trundled happily along. The best-laid plans...

Got back to my room early to prepare my spiel for the morrow after a Subway dinner [4], with special emphasis on getting the timing right - knowing myself, it is not that simple to cover every detail in the allotted time, with drifting off on tangents all too easy. This called for plenty of canned coffee [5] [6] while I tried to ignore the wobbly door, which vibrated at the slightest movement outside, and completed my task only at about three in the morning.


14 Nov 2012



The big moment for me. I slipped on my blazer, since it was purchased especially for this, even if it was discounted, and the (invited) speaker before me helped to calm nerves with a couple of Monty Python skits. I then did my best oral examination impression through the next sixteen minutes, ended about on the dot (so my rehearsal was spot on)

Thinking back, I probably could have answered the ensuing questions in more detail, but then again there were only three minutes. One of them basically related to how transferable the process is to a range of circumstances - hmm, transfer...

Well, job done, it was bye bye blazer and tie, which went straight into my backpack. Not feeling too hungry, I passed up lunch in favour of the various snacks offered - the cakes and bagels were excellent - in preparation for the conference banquet dinner later. Took some photos about the site [1-9] and picked up a free back copy of IEICE Transactions on Communications, which served to remind of how wide the scope of computer science truly is.

Sat through more poster shotguns - they gave each presenter 30 seconds, which as it turned out was generally insufficient to explain the idea, but a pain to wait in the case of absentees. Speaking of absentees, one voice recording got chewed out for not being present in person, which could have been avoided by just getting his friend to read out a script, instead of being limited to setting up the computer.

The banquet was held at a hotel some ten minutes' walk away, made slightly less pleasant by windchill - luckily, I had my blazer this time. The hall was kind of overpopulated, though it turned out there was a second one, and after a couple of limericks by the hosts, the food arrived to drumming by a local troupe (all projected on screen). Nothing to be done but to stuff myself, and to my slight surprise nobody had much trouble with chopsticks.


15 Nov 2012



Not too much to be said about this final day, except that I shuttled between more venues than usual, and ended my technical notes at 127 pages (some sparsely filled, most taking some making sense of) of the 400-page notebook I got specially for the conference, which would no longer close flat. Will probably take some editing to be of use.

The last session ended at about 4 p.m., but dusk had fallen, and nearly all the attractions (mostly science-based) were closed. Explored a little [1-3] and ate at Lotteria [4-6], which despite its name had no English menu, so the ol' finger did its job again. There were some innovations, such as the wax paper wrapper for the burger having a pocket, and the fries container being low-cut for convenient access - features that larger chains could do well to adopt. Got back to my room by six and improved at Hearts.

Also got confirmation by email that I would be a co-author with some of the biggest names in the (sub-)field, thanks to the initiative of my supervisors. Granted, being a survey-type paper, it doesn't mean much at all, but it's still great encouragement to be on the same page as leading researchers whose papers one has read so often. A fine way to begin the second part of the trip...

[To be continued]



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

Back to top

Friday, Nov 09, 2012 - 14:32 SGT
Posted By: Gilbert

Nippon-ho

Mr. Robo has kindly prepared a pre-preliminary technical report in between his garbage bin-toppling practice, on the efficacy of Peripheral Direction Contributivity (PDC) features on Chinese text. The implementation follows Wu & Wu (2002), though a later search reveals that these features were known since Akiyama (1990), which itself cites a 1983 paper as the source, so it should be safe to say that PDC is well-known.

The most-basic pixel-by-pixel based template matching method has been previously described by Mr. Robo, particularly in the eponymous Roborovhunt, and it can be recalled that it was not especially reliable even with only a total of 52 English characters. Then, what hope Chinese, which has well over 50000 characters by most modern estimates?

There are however some saving graces. In analogy with English words, some characters are far more common than others (Zipf again), and data from Middle Tennessee State University suggests that 1000 characters make up 89.14% of all text, and 97.13% for 2000 characters. Following on, the 99% mark is reached at 2838 characters, 99.9% at 4818 and 99.99% at 6485, signifying that by far the majority of extant Chinese characters are seriously rare.

The other welcome realisation is that there are likely far fewer common Chinese fonts, as compared to English (imagine the pain of a designer crafting even 5000 characters from scratch), which means that plenty of encountered text should be in an exactly-known font.


This means (fittingly): verbose
(Source: wordvirus.us)


Back to the PDC feature model, what it does is basically to examine a character from all directions, and then at each of the first three white-to-black crossings encountered, obtain the stroke lengths in each of the eight cardinal directions. This would give 12288 dimensions for 64x64 images if all data is kept, which is a lot, and therefore it is usual to average the values in groups of eight scanlines, for 1536 dimensions. It is common to further reduce the number of dimensions through techniques such as K-L transform and LDA, omitted here.

This model does have its shortcomings, one easily observed example of which is the analysis of strokes that are slightly slanted and/or thin. Taking PDC vectors as trying to describe strokes, an ideal horizontal stroke would have, after normalization, a sum of near 1 in the east-west directions, and near 0 elsewhere. However, if the stroke were even slightly rising (or falling), the horizontal scanline might persist for only a few pixels, not much more if at all than the vertical ones, even though it is clear to a human observer that the stroke is near-horizontal.


Example with"No" in two fonts (3 of 8 directions shown) -
not all horizontal strokes are the same!
Note the PDC component in red for mysh completely absent in simfang


As such, correction by skeletonization does not help here (attempted and verified)

Despite this, PDC does give surprisingly decent out-of-the-box results. A simple experiment was run using some 20000 characters of Unicode value from 19968 to 40959, on five common fonts - msyh, msyhbd, simfang, simhei and simkai. Unsurprisingly, each font had perfect recognition when tested against itself (vector distance zero), with a median second-best character distance of some 1000-plus.

Things get more interesting when the fonts are tested against each other (i.e. PDC features are obtained from one font, and tested using samples from another font; in each cell, first row is the cross-recognition accuracy rate with 1000 characters, second with 2000, and third with all):

msyhmsyhbdsimfangsimheisimkai
msyh 100%
100%
100%
73.60%
72.35%
59.86%
65.10%
59.70%
37.76%
89.90%
88.20%
76.68%
50.20%
41.05%
18.12%
msyhbd 70.40%
67.65%
53.53%
100%
100%
100%
57.00%
50.60%
24.70%
90.60%
88.55%
76.38%
44.00%
36.20%
13.79%
simfang 47.20%
42.05%
28.32%
50.70%
46.40%
30.65%
100%
100%
100%
89.80%
87.95%
75.55%
96.60%
95.70%
85.53%
simhei 73.50%
71.60%
55.53%
78.30%
76.10%
64.21%
94.00%
91.05%
75.15%
100%
100%
100%
76.60%
70.15%
43.59%
simkai 23.20%
16.70%
6.83%
25.10%
19.90%
7.95%
94.70%
94.65%
81.71%
60.40%
54.40%
29.35%
100%
100%
100%


It is observed that when testing on a poorly-matched font, recognition accuracies can fall as low as 25%, though this should be seen in light of there being over 20000 classes. However, in practice, picking the correct (or best) font from the character distance should be straightforward, so this is not as huge an obstacle as it may seem.


Cross-font examples. Indexes of misclassified characters in red. Note some of these have the correct character in second or third place.


Now, one can hardly expect a truly 100% recognition rate even when the font is known, and research generally claims rates ranging from 97% to over 99% on same-font tests. It should be remembered that these results can be affected by many factors, most importantly probably being the size of the corpus (recognition should be easier for 1000 characters tested on themselves, as opposed to 100000 characters), as well as the quality of the test data (clean, high-resolution [300 dpi and above recommended] characters are clearly easier to recognize than small, faint and blurred ones)

As a practical demonstration, a couple of actual documents were scanned, with no particular care taken (note creases)


Not shown at actual size


In an admittedly small-scale experiment, 100% perfect recognition was achieved on headline text, of dimensions about 90x90 pixels (average character distance of 550). On the boldfaced body text, raw size about 40x40 pixels, an 83.75% recognition was achieved.

The next example will be the first page of the Three-Character Classic (obtained in Malaysia, well-thumbed by my grandma). It has been scanned at a relatively low resolution, such that each character is only about 28 pixels square (only about a quarter the size of the standard 64x64 template), with some characters near the binding further blurred. 900 characters (some duplicated in the text) were automatically extracted, and tested using the simhei font, with manual ground truth.


Original on left, recognized characters on right
(Full side-by-side comparism)


Using only the most common 2000 characters, 82.22% accuracy was achieved, and with all available 20000-odd characters, 79.67% was achieved. Note that using the smaller set gives up some possible recognitions because the character is simply not in the set, while using the larger set picks up some of these, but also admits more confusion due to there being more characters to match against:

Accuracy (1st)2nd3rdRest
200082.22%3.44%0.67%13.67%
all79.67%7.44%3.11%9.78%

Some of the successful recognitions were fairly surprising, given broken lines and loss of detail, with some mistakes probably explained by the loss of the bottommost horizontal stroke. Other known approaches include Gabor features and deformable meshes (especially for handwritten text), but these will be left for the future.


It's All Japanese To Me (Greek May Be Easier)

As it is unsatisfying to stop here, Mr. Robo wondered if there was a useful extension, when my trip to Tokyo came to mind. The language barrier is often a concern when travelling, and although recent visitee twc maintained that communication was adequately covered by the mechanism of "the finger", perhaps a more involved solution might be in order.

Now, the Chinese and Japanese languages have their similarities, and while not descended from a common tongue, many (modified) Chinese characters are employed in written Japanese.


Doesn't help all that much though
(Source: etext.virginia.edu)


It might be considered a mixed blessing for local Chinese to have to pick up both English and Chinese in their youth - Chinese (together with Japanese, Korean, Cantonese and Arabic) are considered the hardest languages for native English speakers, and I am not sure if I would have bothered to learn Chinese had I not been exposed to it early. My attempt at Japanese while in secondary school was short-lived, sadly, but this may yet be corrected in time (see some opinions on its difficulty, as compared to Chinese)

A quick and dirty primer on the Japanese language: the written form is considered among the most complex, since other than the kanji (汉字), which is basically Chinese, there are two native syllabary systems (which can be thought of as phoenetic alphabets) - hiragana and katakana (more for foreign loanwords, not to be confused with katana), each with 48 characters (or more) and their associated pronunciation.

But being fluent in Chinese should help, no? Well, put it this way - most of the kanji can be understood, but as unfortunately seen in the above example, they tend to be broken up by swathes of hiragana, with the effect being like reading redacted text - one gets fragments of the idea, but often doesn't actually understand much.

It probably only gets worse when spoken. With text, one at least has time to try and figure the context, and worse still, the pronunciation tends to bear but a very fleeting resemblance to the Chinese equivalent (though I do consider myself having a fair ear for dialect), and moreover multiple pronunciations for the same character are possible; then there's simply going Kaa! for car.

[N.B. Just for fun, the direct translation of my Chinese name 林勇山 comes out as Hayashi Yuuyama. Hayashi was not that hard to find, given that it is a pretty common surname in Japan (and even appears in the kanji chart for first grade - see full primary school list), while a cursory acquaintance with sumo ensures the -yama (mountain) suffix comes up often enough to stick. Yuu- for courage/bravery was a bit tougher, and as it turns out Yuuyama seems not to be that common a pairing, with only one fictional character coming up in Google (and that with Yuu- coming from "swim" instead]

On to the implementation, is there a way to get the required data? Mr. Robo quickly discovered Tagaini Jisho, a free and open-source Japanese dictionary, from which one can extract plenty of kanji, and their hiragana and English equivalents:


Subtleties may not be reflected in hiragana


One could then imagine recognizing Japanese in much the same way as Chinese, but with the extra hassle of handling hiragana and katakana spanning multiple characters.


Put Into Practice

On to the app itself, Mr. Robo recommends following the official first tutorial, which involves downloading the Android SDK, then following the instructions. Those without a suitable phone can use an emulator, but in this case USB Debug Mode worked flawlessly on the HTC (take care, when running the app, to have a code and not xml file in focus in Eclipse)


And... helloooo world!


The next step would be to interact with the camera and process captured images (many tutorials available), or even video, but we're out of time. Land of the Rising Sun, here I come (don't expect many updates over the next fortnight)



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

Back to top

Thursday, Nov 08, 2012 - 23:37 SGT
Posted By: Gilbert

Hard Ham Truths


Introductions

Mr. Ham: Righty, let's see what we have here. Looks a mixed bag. You there, the one not looking at me, whatcha's name?

*Unknown hamster squeaks, hides behind ham following him*

Front ham: There, you've gone and startled my master, Lord Ermine Pean Vair the Seventeenth. E's a sensitive soul.

Mr. Ham: And you are...

Front ham: Gentleham's gentleham at your service. Name's Heeves.

Mr. Ham: Heeves?

Heeves: We're all Heeves to his Lordship. E doesn't just talk to anybody, you know. Only his loyal servants, his family, and occasionally, himself. Very close-knit family, mind.

Mr. Ham: Great, another inbred aristocrat. No matter, we're taking anybody and everybody - who can pay - today.

Lord Vair: ...

Heeves: That means that His Lordship is most displeased.

Mr. Ham: Whatever. I take it that the next ham can speak for himself?

Next ham: Name's A. B. L. Chaser II, old boy. Barrister, solicitor, all-around Ham of Law. Got wind of this little diversion from my dear chum Esq. Sue O' Pants.

Mr. Ham: *pulls out some forms* Forgot I had these. Lord Vair, Mr. Heeves, Esq. Chaser... Mr. F. Rugg?

Mr. Rugg: *Big smile on face* That's me! Can't tell you how happy I am to be here!

Mr. Ham: I think I see your problem. Mr. I. E. Biz?

Mr. Biz: Present. Like, you know, the past is a gift, the future is... loaned? No, that's not it. Mortgaged? Doesn't fit either. Was it funny enough? Never mind.


All Action

Mr. Ham: Right. Let's get down to it. You know why you're here, I know why you're here, and I know why I'm here, which is for the betterment of hamkind while making a pile on the side. So for all our sakes, leave the pretty little lies at the door, or GTFO now. Have I made myself clear?

*Leafs through papers* Blow me, it's not looking good at all. Five hamsters, four advanced degrees, three million bucks, two successful startups, one hereditary title, and exactly zero lifetime satisfying intimate relations among this sorry lot.

Lord Vair: ...

Heeves: His Lordship disapproves of your tone. But in a most polite manner.

Mr. Ham: In, or out?

Lord Vair: ...

Heeves: His Lordship stays, under sufferance.

Mr. Ham: Good, in which case His Lordship drops ten.

Lord Vair: *in wisplike voice* I beg your pardon?

Mr. Ham: Ten push-ups. Decem. Diez. Dieci. Dix (heh). Excuse me. Or is His Lordship illiterate as well as inbred?

Lord Vair: Well, I never! Heeves, my cane!

Mr. Ham: *rolls up sleeves* I feel it fair to reveal that I have been waiting for this for a long, long time.

*A short scuffle and five minutes later*

Mr. Ham: (now in a sergeant-major's uniform, waving his new cane) I can't hear youse, you 'orrible, 'orrible hams! Louder!

Other hams in chorus: All done, sir!

Mr. Ham: I can't hear you! Do it again!

Other hams: Sir! Yes sir! At once, sir!

Mr. Ham: You there! Last to finish! Run and touch the wall and come back!

*No response as the hams try to figure out who was last*

Mr. Ham: Never mind, all of you touch the wall. Last one does it again.

*An hour passes in this vein*

Mr. Ham: *pacing* Well done, hams! You have made the first step towards being an asshole! WHAT DO YOU SAY?!

Other hams: *yelling in a near-frenzy, pumping fists* ASSHOLE! ASSHOLE! ASSHOLE! ASSHOLE!

Me: Well, I see how you managed to build your own gang, as well as your own cult.

Mr. Ham: *shrugs* They're more similar than you might think. Myself, I prefer the gangsters. More honour, less deviousness. Well, time to let them cool down before the second part.


Asshole Philosophy

*The hamsters are clad in plain white robes, seated in a candle-lighted circle around an identically-dressed Mr. Ham*

Mr. Ham: Thus the mysteries shalt be reveale... Oh, heck. I'm just going to answer your dumb questions. Ask away.

Lord Vair: !!!

Me: !!!?

Mr. Ham: It's an improvement. Well, to answer your question: what is the ultimate nature of asshole-ness? Indeed, it has been known by many names, in many places. In the West, it was perhaps best described as the antithesis of vainglory, humility if you will, even if it does not seem cogent at first. Eastern thought corresponds more tightly. Detachment. Emptiness. No-self. All this is asshole, and asshole is all this. If you master asshole, if you are asshole, you master the world.

Meditate therefore upon asshole, such that you gain all that is.

*Mr. Ham closes his eyes and sweeps his head around, stopping at the first hamster to cross his inner sight*

Yes, Lord Vair, I can sense the question you would ask, if you were not such a coward at heart. You lack neither for resources or for suitors, but lack badly for love.

Even as their beautiful faces smile at you and your visage is reflected in their dilated eyes, you cannot help but wonder if they would be by your side if you were not Lord Vair, a name you did nothing to earn, sitting in a mansion you did nothing to build, surrounded by treasures you did nothing to gain.

To your credit, you knew the answer, which is why you are, wisely, still by yourself. You could so easily have been with her, your third cousin once removed, as so many Lord Vairs before you have done, or drifted into.

Oh, she was comely enough, sweet enough, and the heavens know, rich enough. But it would have happened just because you were there. Your circles ran together, her dad golfed - badly - with yours, your moms went to the same exclusive prep schools, you were introduced when it was deemed proper. It was expected. But despite not being afforded the least opportunity to develop a spine, you found enough within you to refuse. For that alone, I commend you.

Heeves: That's... that's outrageous!

Mr. Ham: But it is also true. And you, Heeves. What did you feel when the eyes of your master's fair hangers-on passed over you, as if you were not there, even as you brought the drinks, handsomely attired in full livery? Did you - with good reason, mind - wonder why you were not considered his equal as an eligible ham, even as you felt ashamed of thinking such of your master and best friend immediately after that?

Heeves: I... I...

Mr. Ham: Now you, Esquire Chaser. Having your own law practice, for which you worked stupidly long hours and raced headlong to many accident sites uninvited, you are articulate and well-versed in many skills besides. Yet you are frustrated. You are at the peak of your career, but like Lord Vair - whom you mildly resent for being Seventeenth to your mere II - you cannot help but feel like a bird in a gilded cage.

You could have your pick, mostly, but you are afraid. Your colleagues and their significant others are in their forties, and you fear what they will say if you revealed that you have no interest in their like. That what you really want is a pretty young thing to your taste, and just a pretty young thing, for her lips and her legs and her derriere, her breeding and brains be damned. You walk in terror of being judged, of hearing talk behind your back, of being (gasp) shallow. Am I right?

Esq. Chaser: ...I cannot deny it, sir. It is true. As is sometimes whispered in the chambers, if the Honourable Member cannot rise, the Court must be adjourned.

Mr. Ham: A most wise saying, for there are mistakes that are trivial, mistakes that are painful but impermanent, and mistakes that are permanent. That is one of those.

And next, Mr. Rugg. All know you as the Nice Guy. First to lend a helping hand, last to leave, always with a sunny smile. And yet here you are. Without exception, your female friends think of you as a brother, and when there's a leaky tap to be fixed, it's Dear Ruggie to the rescue, even as their other guy friends lie on the couch. My sources tell me you have a stack of letters basically saying "just not my type, but would be perfect for some lucky girlham". I'm not sure if you figured it yet.

Mr. Biz. Two startups. Fairly fat wallet. But also fairly fat elsewhere. Doesn't like to shower. Lame jokes. Wants 'em to like you as you are. Hasn't worked so far. But turned down a couple of homely hopefuls, if my records are straight.

Well, see, this is what I've been trying to get through to you thick lot. You're not nice guys. If you were, you would have gotten someone. She might be ugly, overweight, or even - heaven forbid - feminist... but she would be someone.

Instead, you chose to reject that idea, to reject those thousands and thousands of effortless someones. Because you have standards. Because you are asshole.

Welcome to the club.


Secret Dance

*Long silence*

Mr. Rugg: That was... mind-altering.

Mr. Ham: And on the long-winded side. As time's nearly up, I will just teach you all the secret asshole dance before you leave. You can then use it to greet fellow assholes in the manner of a secret handshake, or to enter the proper-asshole frame of mind whenever you feel your discipline slipping.

Mix and match your own moves from the video below, heck, make up your own ones. The tune is the original version of Gangnam Style, called Gangham Style, which I developed with my underworld buddies, before it got stolen by some Korean. Simply substitute all the words for ASSHOLE, and you're done.

Me: Hey, that's an asshole accusation to... oh.

Mr. Ham: Quick learner, this human.



(Source: knowyourmeme.com)


Lord Vair: ..!

Heeves: His Lordship says that he feels stupid doing this, and I must say I agree.

Mr. Ham: ...And for added motivation, we have Alizee being screened too.

Lord Vair: !!!!!!

Heeves: His Lordship has changed his mind about dance.


Wrap Up

*Some minutes later, Mr. Ham claps twice solemnly*

Mr. Ham: Well, first lesson's over, till next time, y'all.

Me: Impressive Day One. I noticed that you left out Mr. Robo, though.

Mr. Ham: Well, even in a field of hopeless schmucks, he's in a class of his own.

Mr. Robo: What do you mean? I just received my certified world record (hamster category) for getting kicked in the groin! I think that deserves some consideration.

Mr. Ham: I rest my case.

Me: He badly needs some protection.

Mr. Ham: Whatever, on to the elections, Obama's won as predicted, but by a larger margin than Herr Ahm expected. Didn't expect nearly all the battleground states to go to him. I'm beginning to be convinced of the power of data.

Me: And almost no difference was made. I've got to say that Romney sounds almost decent when he speaks on topics that he actually believes in, some even sensible. Too bad he went all empty suit when it mattered.


It was an awkward coalition to begin with for the Reds
(Source: fark.com)


Now that the big show is over, hopefully the Americans will get stuck in together, since they really aren't all that different after all:


You hear that, you commie?
(Source: dailykos.com)




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

Back to top

Monday, Nov 05, 2012 - 23:46 SGT
Posted By: Gilbert

Dogbear

It has been a fairly busy week, kicked off by a family outing to the Singapore Flyer (first visit, minded the heights less than expected, appreciated the interactive displays triggered by QR code-like icons) and the billion-dollar Gardens By The Bay (Cloud Forest literally cooler than expected), with a stopover at Marina Bay Sands for a view overlooking the casino (which was less crowded than expected, but then it was midday)


Mr. Robo doubts the first, Mr. Ham will set the second right


Friday was smk's wedding day, with a bunch of the 4O guys as his best men, two of whom flew back from America specially for the occ-asion (and whom duly took up half the groom's speech, among the best I have heard, largely as it took barely a minute), held appropriately at the Ocean Ballroom (surely a mere coincidence). No tables were flipped.

Was seated at the unofficial Table of Sad Bachelors (two exceptions) with our former maths teacher, who now has her very own smartphone app, as well as our very own National Man of Mystery, who once again managed to keep his occupation a complete secret. If he has entered the espionage business, I have no doubt that he is terrific at it.

This was followed by lunch (with regrettable but frankly par-for-the-course undercommunication) with the returnees from America on Sunday, and another KTV session where my inability to sing remained mostly unexposed.


Give Us Our Daily "News"

Interspersed between a never-ending deluge of warnings, rumblings and totally missing the point on imported labour, the State's Times has somehow managed to find space to feature a taxi-driver earning S$7000 a month, hot on the heels of dishwashers earning S$3000 (barely-veiled message: if you can't make it, you're lazy/stupid, none of our business)

The lesson of bleedin' obvious overstatements not being taken kindly by the prickly masses appears to have been swiftly forgotten by the feel-good-at-all-costs official media, who may have forgotten how many residents are, or personally know, hardworking cabbies, most of whom despite driving long hours take home barely half of the seven thousand claimed.

The by-now-commonplace virtual outrage led to the high-flying cabbie being outed for defaulting on a S$4000 loan, casting justified doubt on the veracity of his claims. Shortly after, the cabbie complained of misrepresentation, with the S$7000 figure revealed to be an absolute maximum (and let's face it, perhaps still a slight exaggeration, which is by itself nothing much - sit in on an average reunion dinner)

Stung by having the journalistic integrity of its hard-won 135th-in-the-world reputation impugned, National Mouthpiece Number One went into damage control mode, with the reporter (who happened apparently to not be a local, to additional online fury) essentially washing her hands off the affair, offering as part defence the lame observation that another driver who claimed S$6000 a month was not flamed.

Technically, it is true that S$7000 is achievable - with inhuman hours, and everything falling into place. Assuming that a driver never has to cruise for customers, and either travels at near top speed (since the meter fare goes by distance) or is at a complete stop to maximize revenue, he can earn S$68 an hour by making eight 10km relays at 80km/h, which by the way is probably completely unrealistic.

A bigger question mark may lie over the nice-sounding closing hope that "what the two cabbies revealed appeared to be a starting point to find out how other cabbies could earn more than the current $2000 average" (figure supplied by an MP - note decision to publicise outlier instead of average, yet again)

Cruelly, I suspect that the demand for taxi rides is largely inelastic, and even if our cabbies all became smarter and more hardworking than our latest Lei Feng, it probably does not mean that the average salary will hit (or even approach) S$7000 (or even S$5000). There are only so many customers to go around, after all. At least a Ph.D. is not mandatory yet.


Late Again

Well, the renew-immediately trick hasn't worked out too well, and I ended up hanging onto my books for too long again. In no order: Leverage, Popes & Bankers, Scammed and Debunkery. I have to say that I have read about tulips and bubbles in this category one too many times.

Popes covers usury (its condemnation in particular) from a religious perspective (not that this ever eliminated the practice) in great detail, but the most noteworthy section was on the compulsory (forced) government bonds (prestiti) historically collected by Italian city-states such as Venice and Genoa. Inspiration for the CPF?

It was Leverage that I spent the most time on, however, drawn by some of its simple but convincing arguments (the ones which I agreed with). It is hard to quibble with, for example, a division between productive and non-productive income equality, where inequality can be tolerated if the person makes a tangible good (e.g. Ford's automobiles), less so with investment for interest, and even less for speculation.

[N.B. Many financial transactions are simply zero-sum, and in the aggregate can provide no benefit - pit a hundred Einsteins against each other as traders, and no matter how insightful their models, how involved their calculations, they cannot come out with more than they began with. Or: finance should play at best a tertiary role in the economy]

It goes on to a startling observation on interest - one is often told of its power after compounding, with say $1000 invested at 5% a year becoming over $120000 in a century, a fine reward for the virtue of saving. What is far less often mentioned is the flip side of the equation - that the debtors who together borrowed the $1000 will have to somehow come up with the $120000 to repay their creditor - O(n)s are, in practice, not created equal.

[N.B. I had toyed with writing a short story about generations of a family benefitting from such interest; of course, in real life, decent returns are difficult to guarantee once wealth reaches a certain level, and of course fortunes can be completely destroyed in an instant during wars and the like. Might still make an okay tale though]

This simple mathematics (mentioned here in another form in the local housing context), the author says, is the cause of inevitable business cycles. He also states that the US GDP growth is basically a Ponzi scheme based on debt accumulation, and that experts are often intentionally clueless (quoting Bernake's assertion in 2007, before the big crash, that prices were ultimately supported by increases in income and employment - gee, that turned out well)

[N.B. The SDP has been busy coming up with a Non Open-Market (NOM) flat scheme, whereby flats are sold only at construction plus administrative cost (without factoring in land), but can then only be sold back to the HDB at cost price less depreciation. Completely unsurprisingly, the policy launch was met with indifference by the incumbents (but this tends to go both ways)]


As they say, NOM NOM NOM


More points:

  • Homebuyers are leveraged by default (since price fluctuations can easily exceed their downpayment), though they may not think of it as such
  • Health care is not really insurance, as almost everyone eventually needs it
  • Health care and education costs are rapidly outpacing income, to an extent due to unnecessary frills (defensive medicine, fancy dorms) - but what else is there?
  • Caution advised against over-the-counter derivatives, as there is no protection against parties not actually having the money
  • Asserts that FDR prolonged the Great Depression (not sure about this)
  • Predicts Greek and Irish failure if they continue to seek debt rather than undergo a partial default ASAP - and predicts the same for the USA in time (let's just say that if all else fails, America still has the bomb)
  • Quantitative Easing II was not a success just because the stock market rebounded (there is some sentiment that the third iteration may be losing its effectiveness, but if not, guess where a chunk of the hot money's gonna go? Rock and a hard place...)

    [N.B. Frankly, I see very little difference between "quantitative easing" and plain old "printing money", which naturally leads to increased inflation]
  • Notes that proper policy consists of two parts - stimulating the economy in downturns (easy and popular), and taxing more when the economy is booming (hard)
  • Discounts gold as a solution, argues impossibility with a fixed gold supply, as with interest demanded, one party must end up with all the gold (a slightly simplistic argument, and in fact one of the cases often made for the gold standard is that the supply grows steadily if slowly, and is free from manipulation - but who owns the mines may be a problem...)
  • The whole idea behind increased productivity is that people won't have to work as much! Therefore, deflation should be the natural state of affairs (this is contentious to me, and I personally can't see much wrong with low inflation as an invisible tax - merit should dissipate as time passes, after all, and does persistent deflation not encounter the same problem as compound interest?)
  • Proposed (incomplete) solutions - cut relationships between government and big business (haha), trim the complex tax code (slightly more plausible)

One more thing I realised is how inexact economics actually is - there is nothing magical about many of the definitions often taken as gospel. Take the consumer price index: this single bland statistic rests on many assumptions, ranging from what consumers actually buy, to how they should be weighted, and it is perhaps no coincidence that such figures can be tweaked (even in a completely proper manner) to taste...

Also got lost in Archer's As the Crow Flies, which raised Mr. Ham's ire for having the Trenthams as the antagonists.


A CITOW AI?

Conversation at the table turned at one point to the possibility of writing an artificial intelligence (AI) for the Chaos in the Old World (CITOW) board game, which might explain to an extent the sad part to an extent. As I do have a (very) little experience in this area, and find it hard to convey information precisely purely through conversation, I shall unilaterally continue the discussion here.

As frequent readers may recall, there are only two major types of decisions that players have to make - where to place units/cards, and to whom to assign damage. While it was proposed to develop an AI without regard to card status, such an AI would at times be extremely ineffective, to say the least (e.g. piling Warriors onto a region with Field of Ecstasy)

This might be a good opportunity for a very brief overview of (board)game AIs. To begin with, consider Tic-Tac-Toe. As most kids should quickly realise, it ends in a draw if both players know what they are doing. For example, given the below scenario, being able to think ahead just two turns ("what would he do if I did this, and what could I do then?") would eliminate many options:


Long-winded exposition by novice


Although there are only nine squares (and thus a maximum of nine possible turns to play and think ahead), the number of choices can get quite big, though optimal play can be condensed into relatively few rules.

On to chess, each player controls up to sixteen pieces, most of which can make several possible moves. The basic idea of "thinking ahead" is actually the same as for Tic-Tac-Toe, but the complication is the far larger number of possible moves available (about 30), compared to nine (actually even fewer considering rotations, and decreasing) for Tic-Tac-Toe. To think even two moves ahead would mean considering about a thousand scenarios, and to think through the entire game (usually dozens of moves) would be nigh unimaginable.

Of course, some people are (far) better chess players than others, which suggests that although fully solving chess may not be possible, adopting good heuristics is very possible. What generally happens with human grandmasters is that they can, looking at a position, identify with high probability the most promising (and concerning) options, and analyse these options deeply, further ignoring (most) bad or unlikely developments along the way by experience and intuition.

Computers, on the other hand, often largely dispense with the creativity and simply crunch the numbers, actually examining millions upon millions of possibilities, although they do get help at the beginning and end, though opening books and endgame tables containing precomputed information. While computers can run into trouble if unable to search deeply enough (such as in Go), they never tire, never get discouraged, and never blunder (within searched positions) - which has been enough for them to consistently defeat human champions.

So how does all this carry over to CITOW?

For a start, one can consider a baseline AI that chooses among all valid moves completely randomly, which is easy enough to arrange. The next level up would probably be a "scripted" AI that adheres rigidly to a fixed goal - for example, playing Slaanesh, it could pile Cultists on regions with Noble tokens, come what may, perhaps playing defensive cards (if able) once any opposition Warrior appears.

Moving on, one could of course go the traditional way and simulate future moves to judge their goodness. This may however be less fully applicable in CITOW than chess, as there is more than one opponent and thus it is not a zero-sum game, with inter-player politics coming into play, with some element of luck involved (combat dice rolls), and hidden information (Chaos cards) on top of that.

Well, it is not that an invincible AI is possible anyway (defined as one that always wins - proof left to reader). One for next time, maybe.


Hole In Two


Like a hamster


Smartphone doesn't admit a lanyard? Not a problem with a suitable case and a power drill.


Ham Boot Camp

I got invited back to the second day of Mr. Ham's Asshole Seminar, as he needed an external observer to lend credibility, and I had little better to do anyway. I arrived at the disused warehouse early, and entered into some chit-chat.

Mr. Ham: Herr Ahm's a specialist on Singaporean, not American, politics, but I have it that he has Obama to take it. He's thinking 290 electoral college votes, plus or minus ten, but don't quote him on that. Personally, he thinks the Chinese transition far more captivating; stakes higher, more cloak-and-dagger, right up his alley - though he is now of the opinion that grabbing a ball might be the best method of all.

And... ah, they're here!

*A very straight-backed Mr. Robo enters, trailed by five other hamsters*

[To be continued...]



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


<< December 2012October 2012 >>

Copyright © 2006-2026 GLYS. All Rights Reserved.