Tuesday, 18 February 2014

McCullum's 300 and WASP

UC's media consultant loves cricket and so asked me if I could do something WASPish about the probability of McCullum scoring 300 runs in an innings. The resulting media release is here. (The request came before the start of play today when McCullum was already on 281, but I looked at it from the point of view of the start of his innings.) The guts of the conclusion was that you would only expect McCullum to reach 300 once every 4310 innings if he scored with his career average strike rate and dismissal rate, and that is before taking into account how unlikely it would be that the other batsmen around him would survive long enough to not leave him stranded short of the target.

This was just a bit of fun for a media release. If I was to do the job properly (unlikely, since it is not the sort of thing that results in a peer-reviewed publication), this is what I would like to do:

  1. Do a Kaplan-Meier estimate of hazard rates out of batting as a function of runs scored, rather than assume that a constant strike-rate and poisson dismissal rate apply at all times.
  2. Do a monte-carlo simulation using McCullum's Kaplan-Meier estimates and other players' dismissal rates to find a combined probability of McCullum and at least one other player surviving until McCullum had scored 300 runs.
  3. Try to estimate a joint distribution of survival rates and strike rates across games to take into account statistical dependence. 
Above all, I would love to work out a historically applied test cricket WASP in order to rank past innings not only by size, but importance in game context. What are the innings that have most changed the expected outcome of a match (2 points for a win, 1 for a draw, 0 for a loss). So many of the very high innings have been in matches that were clearly headed for a draw on a lifeless pitch, or where one team was totally dominant. The really great innings--Laxman (2001), Lara (2003?), Jessop (1902), Botham (1981) Astle (2002) if we had won--are the ones that change the course of the match. 

I don't think this one qualifies for the "future Honours projects" label. Perhaps I need a label "if we had world enough and time". 

HRC-backed? [Updated: Crampton's been trolled]

I'd interpreted New Zealand's Health Research Council's logo being all over the conference materials for the anti-sugar Fizz-2030 conference as indicating HRC support for the conference. Typically agencies exercise pretty strict control over the use of their branding and have to give permission for such uses.

In comments in my prior post, HRC Chief Exec Robin Olds corrected things, noting that while they have provided research grants to some of the people who were presenting, they were not supporting the conference. The conference's materials were up on the HRC website, but I expect that HRC mirrors a whole lot of health-related conference materials.

The HRC's logo being on the conference materials intrigued the NZ Taxpayers' Federation, though. Jordan Williams put out an OIA request. Robin Olds replied that,
"The HRC has never funded FIZZ, nor has it ever received a funding request (for research or otherwise from FIZZ. The HRC has funded research by individuals who identify themselves (on the website) as members of FIZZ. Such funding is through contracts with their host institution, for example the University of Auckland and the University of Otago."
In response to Jordan's asking what other support the Council has provided FIZZ, HRC replied "The HRC has provided no support to FIZZ."

Now that can't be entirely right, because HRC hosts FIZZ's materials on its website. Here's the conference programme, on the HRC website, link working as of 18 February. Here is a flyer advertising the conference keynote speakers, on the HRC website. Both of these have the HRC logo on them. This is why I thought that HRC was backing the conference: hosting the conference's materials on your website with your own logo on the conference's materials is a pretty strong signal of support. But, it's also possible that HRC just mirrors anything in that space and that FIZZ put the logo on without HRC's knowing about it. In that case, it's entirely possible for Olds honestly to reply that they didn't provide any support to FIZZ - he might not have known that the conference materials are mirrored on the HRC website, or he might not have interpreted hosting those materials as constituting support over and above the identical support HRC gives to other health-related conferences.

This version is supported by an email that the Taxpayers' Union reports that Robin Olds sent to the Taxpayers' Union:
“In a phone call to the conference organiser we pointed out that using our logo was inappropriate, given that [Fizz] did not seek our permission, and that some appeared to interpret the logo as the HRC endorsing the conference."
If the Taxpayers' Union is accurately reporting the email, then HRC is not supporting the conference and FIZZ was being a bit naughty in using the HRC logo.

And all of that makes this twitter exchange really interesting. [Update: I'm growing increasingly sure that @Fizz2030 is a parody account and that I have been successfully trolled. Kudos to whomever's done it. Details at the end of the post.]






I've pasted a screenshot at the bottom of the post in case anybody deletes anything. [Update: FIZZ reiterated its HRC backing in a couple other tweets.]

The Chief Exec of the HRC said they have never funded FIZZ and have provided no other support to FIZZ. FIZZ, on its Twitter account, says they have HRC/HPA/MOH backing for the FIZZ 2030 conference.

Now it's possible that FIZZ has just interpreted, for example, enthusiastic kudos from some in HRC (possible, I have no clue) as constituting HRC backing for the conference. Or maybe they've interpreted HRC's hosting of the conference materials as backing. But if it's something more than that, well, there's something interesting here. It'll be interesting to see how this plays out.

It's also odd that FIZZ's twitter rep interprets these questions as an attempt to shut down the conference. It would be pretty much impossible to stop the conference, unless they somehow managed to annoy the conference host, Auckland Uni, in the process. But even then it would be pretty rare for a conference to be canned at the last minute.

UPDATE: I no longer believe that Fizz2030 is the official Twitter account for the Fizz group's conference. In that case, there's no conflict in stories; I've just been successfully and magnificently trolled. Here's the evidence on either side:

Real: The account has 29 followers and include a bunch of folks affiliated with Fizz. @JustWaterNZ, Dr. Robyn Toomath, public health physicians, the Heart Foundation, and some media folks. Other folks on their side have been interacting with them as though they're real.

Fake: No link to their twitter account on the FIZZ website. When I scroll back through their account, I see some exchanges that are simply implausible. It's hard to tell what's parody any longer in this kind of space. Most of the tweets would be plausible either from a real account or a parody account; these have to be parody. Kudos to @JaninePaynter, whose radar seemed sharper than mine.

I'm rather sure I've been trolled. And magnificently. Excellent job, but you'll likely want to put "Parody Account" in your headers to avoid issues.

Update 2: @JaninePaynter reports she's had confirmation it's parody. Here is the list of some of @Fizz2030's followers as of 18 February, many of whom also must have reckoned that @Fizz2030 passed the Turing test (but some of whom might just follow-back by default).

I also think it's pretty funny that the trolling got caught not because of their over-the-top anti-sugar tweets, but rather because @JaninePayner's radar turned on when FIZZ tweeted "Support growing for tax on SSBs despite attacks on us by @TaxpayersUnion @EricCrampton @CarrickGraham", and mine turned on when they tweeted that their financial backing was none of anybody's business. 


Big Food

New Zealand's tell-people-what-to-eat campaigners have a busy week. 

Monday, the University of Otago at Wellington hosted a one-day session on the evils of "Big Food". Stuff covers it here; David Farrar nicely critiques things.

Here's one of the Otago presenters' policy recommendations, as noted in the Stuff piece:
Gabrielle Jenkin's advice to New Zealand's policymakers:
  • Ban advertising and marketing of unhealthy food.
  • Improve food labelling, ideally with a "traffic light" system.
  • Change planning policy so unhealthy food outlets are unable to set up near schools.
  • Outlet numbers should be restricted by population size.
  • Restrict unhealthy food in public institutions such as schools.
  • Install more public water fountains.
  • Make unhealthy food unaffordable, either by taxation or by subsidising healthy food.
  • Force "Big Food" to reduce salt, fat and sugar in products.
  • Restrict portion sizes, as New York tried with soft drink in 2013. 
Farrar uses the appropriate language in response.

Jenkin seems to particularly hate KFC:
Television shows such as The Biggest Loser, Downsize Me and Embarrassing Fat Bodies reinforced the personal responsibility message. "The message is ‘Get your big arse off the sofa', rather than ‘Stop the KFC opening across the road'."
However,some governments had stood up to Big Food. In Britain, manufacturers have been forced to reduce fat, sugar and salt, and New York's governor attempted to restrict portion sizes and introduce nutritional information in restaurants.
In New Zealand, politicians remained cowed by Big Food, she said. In deprived towns and suburbs, fast food outlets were so numerous as to be unavoidable.
"New Zealand is appalling. You're sniffing KFC wherever you go."
Maybe I'm weird, but I love the smell of KFC. It makes me so hungry every time I drive by one. I just wish there were one on campus.

And while you can totally get public choice models where interest groups are able to shift policy away from what the public wants, does it really seem like industry lobbying is the binding constraint here? KFC is delicious. Does it seem that likely that people who find KFC delicious would warmly welcome politicians who banned them from eating KFC? A median voter model seems by far the more plausible explanation of why KFC hasn't yet been banned here. John Key's National government campaigned against all the nanny state stuff. And while his government is happy to keep paying Otago and Auckland to churn out the 'ban stuff' studies and conferences, Key's not going to take on a new nanny initiative that doesn't have broad public support, unless it's a play to throw some support to ACT.

I wasn't at the BigFood shindig, but here are some reports from their twitter hashtag.


The big anti-sugar conference is coming up at Auckland Uni on Wednesday and Thursday. I expect that the news and talk radio will be intolerable for much of the week.

Otago used to own the "ban stuff" niche; now, Auckland and Otago seem to be competing with each other to see which can be the most vocal advocates of banning stuff. Rents predict entry I suppose.

Monday, 17 February 2014

Uber opposition

I'd expected that the Taxicab Federation wouldn't like Uber.

In last week's Herald, they protested that Uber would need to become an Approved Taxi Organisation. [HT: EdBlog]
NZTA [NZ Transport Agency] spokesman Andy Knackstedt said there were many requirements that must be met for establishing a company as an 'Approved Taxi Organisation' such as clearly displaying fares and driver identification, using a tested fare meter and having an in-vehicle security camera system installed.
"If Uber did not establish themselves as an ATO, they would rely on existing ATOs and their drivers integrating or using their system," Knackstedt said.
...
University of Canterbury senior lecturer in economics and transport commentator, Eric Crampton said Uber may be able to side-step taxi industry regulations by hiring drivers with a P endorsed drivers' license and using unmarked vehicles to operate as a 'private hire service'.
"Current cabbies could flip to Uber in their own cars, retired cabbies who still have the P endorsement could start up again, and others willing to sit the test could come into the market," Crampton said in his blog.
The New Zealand Taxi Federation has voiced safety concerns about the growth of app-based taxi booking systems becoming available around the country.
Other transport apps to launch in New Zealand recently are Zoomy, in use by taxi organisations, and Cab Chooze, along with other apps developed for taxi companies.
In a letter to the NZTA, Taxi Federation executive director Tim Reddish called for the apps to be shut down until the companies prove their drivers are properly licensed and operating under the control of approved ATO's.
"In our view any app-based taxi service delivery system must also ensure that customers are protected from unlicensed drivers and untested as fit for purpose vehicles," Reddish said.
Again, I am not a lawyer. But it looks to me like Uber could run under existing private hire service regulations. I expect that the Taxi Federation will do their best to block it.

If I were the Taxi Federation, I'd be claiming that an app-based immediate hire is a lot more like flagging down a cab than it is like an advance booking; if I were Uber, I'd say it's rather more like calling a bunch of car companies to see who'll give the best rate. I think the latter's the more accurate description and that the private hire regs could then apply, but again, I'm not a lawyer. If running as a private hire service under Section 6 hits the 'too hard' basket, Uber could still come in as an app booking system for more standard cabs, but we'd lose much of Uber's benefit: the ability to surge supply into the market with higher fares during periods of anticipated high demand. It's harder to bring part-timers into the market when they'd need to be running a signed, metered, and camera-equipped car.

And a big thank-you to Daniel Lynch at the Herald for doing this properly. He quoted from the blog while linking to it to provide context for those wanting the additional context. Nice job!

Friday, 14 February 2014

These are the people in my neighbourhood

Neighbours around the block frustrated with EQC spray-painted their cement fence back in October.
It reads:
"Too dangerous to work on. But safe enough to live in. Look at my roof. Be aware! This is a finished EQC Repair. Can't sell it. Too dangerous to live in."
The Christchurch Star explains what's happened.
This house was repaired six months ago by a Fletcher EQR contractor - a plumbing company.
The plumbing company told Mr Walkinshaw it was out of its expertise to fix the roof - and it was too dangerous to try.
The Walkinshaw family is now stuck on an Earthquake Commission and Fletcher EQR merry-go-round to get the roof and other repairs fixed. 
EQC says the roof damage was pre-existing; the Walkinshaws have an engineering report from 6 December 2010 (post-September, pre-February) with no evidence of cracked beams. EQC told the Star they hadn't received the engineering report; Walkinshaw tells the Star that he'd never heard that from EQC. A typical EQC SNAFU. Meanwhile, the family's worried that the roof will fall in on their kid's bedroom.

The full Star report is here, or go to their website and find the issue of 12 February 2014.


For those who've forgotten: The Earthquake Commission (EQC) is the government-run insurance scheme handling natural disasters. Anyone buying insurance on a house pays a levy for EQC coverage. In the event of natural disasters, EQC handles land remediation around the house and the first $100,000 (plus GST) in damages to the house. If you have minor damage to your house, EQC is your first port of call. If you have damage in excess of $100,000, you'll have to deal with both EQC and your private insurer.

The general principle of the scheme is good. Absent compulsory natural disaster coverage as part of your homeowner's insurance, a lot of people would be sorely tempted to simply bet on that the government would bail everybody out in the event of a natural disaster. With EQC, anybody with private home insurance, which is pretty much compulsory for anybody wanting to get a mortgage, has coverage for natural disasters. It's then way easier for the government, post-disaster, to refuse to bail out those who didn't buy insurance. Alas, the execution's been rather disappointing in the Canterbury quakes.

Our own frustrating but still happier situation? When last we reported in, we thought repairs would be coming soon. Alas, we're still waiting for EQC to approve our builder's quotes. Fortunately, our house is safe and liveable while we wait. We had an AMI Premier Home Insurance policy which specified that repairs must be undertaken to an "as new" standard. Since we have less than $100k total damage, EQC is handling the claim on our house. EQC won't sign off on the builder's quotes, as best I can tell, because our builder won't come down to Fletcher's rates.

Fletcher's is the project management company that the government is using as first port of call for earthquake repairs under EQC; we opted out and chose a builder specialising in older character homes. We heard too many horror stories in Fletcher's managed projects: shoddy workmanship, repeat repairs, and poor project management where one set of subcontractors gets the job half-finished and the next set aren't booked in until months later.  Read the comments thread here, for example. EQC seems to be trying to force the opt-out contractors down to rates inconsistent with the quality of job specified in homeowners' insurance contracts. There's talk of a class action suit on it.

Our private insurer had a look at the out-of-scope damage* and will be sending us a quote for fixing the paths and driveway; we're waiting on their specialist engineer to come look at the pool.

After all of our home repairs are finally completed, I will be shopping around for a new home insurance company. I will also be asking whether I can pay extra to have actual real coverage for under-cap damage in any EQC event. I can't avoid paying premiums for EQC's near-fraudulent-but-still-mandatory insurance coverage, but I hope that I'm able to buy actual real insurance that will pay out in the case of an adverse event. Many of us in Christchurch thought we were paying for insurance contracts with a $5,000 deductible; where EQC won't honour the terms of your contract, the effective deducible is rather higher than that.

For those Wellington readers in positions to change things: These messes will happen to you and to people you care about when Wellington gets its quake if you don't fix EQC. EQC shouldn't be involved in house assessment for a major event: they just can't scale up to do it properly. Homeowners should only have to deal with their private insurers. The insurer would then bill EQC for repairs up to the EQC-covered amount. Couple it with audits to make sure the insurer isn't just providing $100k home-improvement gifts to its policy-holders. This will be more expensive than the current system, so increase the EQC levies and risk-adjust them.

I wonder whatever happened to the promised review of the Earthquake Commission Act. The 2009 Review of EQC's Catastrophic Response Capability also had suggestions worth looking over, although that document seems to have disappeared from EQC's site (still available at the Wayback Machine).

Update: In response to my emailed query, Treasury tells me that the Government is still working on the review, that things have been complex, and there is no new target date for the release of the public discussion document.

* EQC covers damage to your house and buildings; paths, driveways, swimming pools, and fences are out of EQC scope and are handled directly by your insurer.

Previously:

Thursday, 13 February 2014

Migration beats activism

I agree with everything in Bryan Caplan's post. If you have the option to move away from an oppressive place, moving makes far more sense than trying to change the system. You're doing pointless harm to your family by staying.

Now imagine that you live in a place that, while pretty prosperous, has a whole lot of things you find oppressive. You spend a lot of time complaining about those things. Your sons stand a non-trivial chance of someday being drafted into the army or some kind of national service. While you don't find the laws against using drugs to be personally binding, there's the lowish probability risk of being subject to an erroneous no-knock armed police raid if the cops get something wrong. Cops kill people very often in these raids; at best, they just terrify your children. If you drive near the country's borders, the internal security police might stop you and demand your papers. There's the low but real risk that the cops will just decide to seize whatever cash you have with you. The schools are guarded like a prison camps. You like betting on odd claims; the local police in your county have a history of showing up at the front door of people who make bets and shooting them - this happened to a dentist just a few miles from your own house. And the police could use selections from your anarchist writings to ex post justify just about anything they decided to do, if you get the unlucky lotto ticket. If your kids screw up a bit when they're older or are even suspected of having done so (again, low but non-zero chance), the system's really pretty horrible. If one of your children messes up and sells drugs even once from your house (very very unlikely, but not impossible), the government can make you homeless.

While you're able to live most of the time unimpeded by this stuff in a bubble of like-minded friends, the random-draw risks are a bit worrying. You could kinda model it as living in a nice place, but with a small risk that you and your family will be the ones selected for some horrible annual ritual sacrifice. You never attend the annual sacrificial ritual despite its broad popularity; you instead do what you can to try and stop the ritual. Maybe you have more protection against being selected for the annual sacrifice ritual than do most folks because you're not really in the typically preyed-upon cohort, but that risk is still there. You pay your taxes, knowing that that money is taken to fund the annual sacrificial ritual.

Yes, the case for migrating out of really terrible third world places is definitely much much stronger than the case for moving out of Fairfax County. But still...

Previously:

Wednesday, 12 February 2014

Outlaw prostitutes

It's worth remembering where the word "outlaw" comes from. An outlaw was someone who was outside of the protection of the law. That wasn't always a happy place to be. Recall that even the Catholic Church of late 13th Century England didn't fare well when outside the law's protection.

When prostitution is outlawed, prostitutes are largely outside the law's protection. Going to the police to report on their customers' offences means turning themselves in at the same time. And so customers come to expect that they can abuse prostitutes, and prostitutes then need pimps to provide protection instead.

New Zealand legalised prostitution a decade ago. It can take a while for local norms to change, but they are changing. The gangs that controlled prostitution prior to legalisation can now be sued; prostitutes know that they have the law's protection.

Christchurch has had an influx of migrant labour for the rebuild. And a lot of these construction workers haven't figured out that prostitutes here have just a bit more power than they might have back home.
Christchurch sex workers say they are being mistreated by migrant workers unfamiliar with New Zealand's prostitution laws.
Prostitutes' Collective regional co-ordinator Anna Reed said street workers had reported incidents of people from "other cultures" treating them rudely, trying to get more for less, being abusive or stealing money afterwards - "assuming that they wouldn't go to the police or tell anyone because they're just ‘common prostitutes'," she said.
"This is in the mindset of some people from some cultures, which we will not name," she said. "It's not that they are flocking but we're certainly noticing them in our stats."
So what's being done about it?
Community and Public Health (CPH) has produced a "man-friendly" pamphlet which outlines New Zealand prostitution laws and where to access health services and advice.
The pamphlet has been distributed to backpackers, accommodation providers, businesses who may be employing migrant or itinerant workers and has a free condom attached.
Medical Officer of Health Alistair Humphrey said the pamphlet was not just about informing migrant workers, but also the wider public about the new locations of health services.
Legalisation hasn't gotten rid of all of the problems. Some workers simply prefer streetwork to being in brothels. And streetwork can cause local nuisance.
CPH is located in Manchester St, where there had also been patch conflict between prostitutes, tension between prostitutes and residents, and "so-called minders" using dogs as weapons. Those matters also needed addressing, Humphrey said.
Licences for street workers - much like those required for busking - could be an option, he said.
If the licences came with a small fee, the Christchurch City Council could hire security guards to monitor the area.
"It would be good for the agencies to think about how this whole industry is kept safe for everyone," he said.
I've read of reasonably serious problems of nuisance and trespass affecting residents, though there's no particular evidence that that's worse than prior to legalisation. There seems no particular reason that street-based sex work shouldn't be subject to whatever regulation generally applies to other street-based vendors.