Categories


Recent Posts


Latest Tweets

  • At the senate declaration nomination draw. #ausvotes

  • A government built NBN + government run Internet filter = scary. #ausvotes

  • @mikeyott yeah I have a few devs, but like to get my hands dirty every once in a while :)

  • the best way to reduce government waste and corruption is to reduce the amount government spends in the first place.

  • Trying to code and campaign is proving to be a challenge.

  • My "Graeme Klass for Senate 2010" Facebook page here: http://bit.ly/cPTJH3. #ausvotes #libertarian

  • is a senate candidate (Victoria) in the upcoming Federal Election for the Liberal Democratic Party. #libertarian #ausvotes


Join In:

Although you do not need to register to comment on posts


Archives


Archive for November, 2009

ClimateGate: CRU Hacked Code Comments

For those that have an interest in the code of the recently hacked emails and documents from the Hadley Centre, I have written a little program to automatically extract comments from the source code and text from “readme” text files*. This makes it a little easier to search through code comments.

You can download this file here.

What I discovered is this (documents\harris-tree\briffa_sep98_e.pro):

; PLOTS ‘ALL’ REGION MXD timeseries from age banded and from huge
; standardised datasets.
; Reads Harry’s regional timeseries and outputs the 1600-1992 por
; with missing values set appropriately.  Uses mxd, and just the
; “all band” timeseries
;****** APPLIES A VERY ARTIFICIAL CORRECTION FOR DECLINE*********

yrloc=[1400,findgen(19)*5.+1904]
valadj=[0.,0.,0.,0.,0.,-0.1,-0.25,-0.3,0.,-0.1,0.3,0.8,1.2,1.7,2.5,2.6,2.6,$
2.6,2.6,2.6]*0.75        ; fudge factor

Later in the code:

;
; APPLY ARTIFICIAL CORRECTION
;
yearlyadj=interpol(valadj,yrloc,x)
densall=densall+yearlyadj

The fudge factor above does not seem to have a basis in any physical reality. I have done many computer models previously and I recognise that this is a classic example of the programmer trying to massage the data to their needs. What this code does is apply a rudimentary filter to the data. What effect this code actually has is unknown at the present. I am still analysing the code to try to get some sort of filter coefficients so that we can plot the frequency response of these filters to get a better understanding of what is actually going on here.

Watts Up With That has a list of source code comments describing the need to “avoid the decline”.

*Postnote about the program:

  • program comments that start with ; or ! (these are FORTRAN comments tags)
  • any text document with readme, read.me, read me or read_me in the filename is included
  • .pdf’s and .docs are not included.
SocialTwist Tell-a-Friend
  • 0 Comments
  • Filed under: Climate
  • Horizontal vs Vertical Wells

    I stumbled across an interesting analysis of a new technological process, horizontal drilling and extraction of shale natural gas. Read the whole thing here but here is the key chart comparing horizontal vs vertical wells:

    Comparative production from a vertical and horizontal natural gas well (Chris McGill).

    Comparative production from a vertical and horizontal natural gas well (Chris McGill).

    Production Volume

    One thing that did strike me is that the horizontal peak production is well above the vertical well but has a shorter life span. Horizontal wells do have significant technical challenges (as seen in the article), but perhaps we can analyse the above chart to give us an idea of the benefits of horizontal drilling. Now to do this is a little tricky, as I do not have the original chart. However, using Photoshop, I was able to extract the area of the chart and the scale to get us total volume (note these are approximations only, but it gives us a “back of the envelope” view):

    • Vertical Well (Yellow): 3547 MMFC
    • Horizontal Well (Orange): 6097 MMFC
    • Horizontal to Vertical Well total production gain: +72%

    Judging from the chart the horizontal well extracts and extra 72% more oil in 10 months versus 100 months for vertical wells.

    Production Value

    Now to estimate the total value of the well let’s assume the price of natural gas is stable (at Henry Hub) at $8.00 per MCF:

    • Total value of the horizontal well is  6097*1000*$8.00 = $48,776,000
    • Total value of the vertical well is 3547*1000*$8.00 = $28,376,000

    Time Value of Money

    This is where we get to use some basic financial models to determine the value of horizontal wells compared to vertical wells. The time value of money is the value of money figuring in a given amount of interest earned over a given amount of time. As an example, with an interest rate of 5% per annum, 100 dollars received today is equivalent of receiving 105 dollars in a year’s time.

    Note that the horizontal well lifetime is 10 months compared to the vertical well lifetime of 100 months. Thus to be fair we need to compare the value of the horizontal well and the vertical well after 100 months. This is where the Time Value of Money comes in. Let’s pretend we bank the $48,776,000 that the horizontal well extracts, thus after 100 months (assuming 5% interest rates):

    • Total value of horizontal well at 100 months: $70,913,392
    • Total value of vertical well at 100 months: $28,376,000
    • Horizontal to Vertical well gain: +150%

    Extraction Costs

    I do not know, in detail, the relative difference in extraction costs for these two methods. However, we now have the Horizontal to Vertical Well gain to use in our decision making. If the Horizontal to Vertical well cost is less than Horizontal to Vertical Well gain (+150% in our example), then it becomes economical to use the horizontal well method.

    UPDATE: here is some commentary from The Oil Drum on this article regarding the discount rates:

    Rockman: I think you’re on a good track grae but a few questions: how are you using that “5% interest”? To do the type of comparison you’re attempting we use a discount rate (usually 10 to 15%) to calculate a net present value…NPV. It is essentially a negative interest rate. A dollar produced next year has a NPV of $0.90 ($1 x 0.9). A dollar produced the second year = $.80 ($1 X 0.8). As you can see by the time you get to year 7 or 8 the future revenue stream has almost no NPV.

    Beyond NPV the payout period (time to recover investment from net revenue stream) is a critical component of the decision process. When PO gets much beyond a couple of years a project becomes much less appealing. The longer payout obviously equates to a lower rate of return.

    The other big factor in doing NPV is the oil/NG price inflation factor. If it’s high enough in can neutralize the effect of the discount rate. There’s no good answer to what price inflation rate to use. But we tend to stay conservative… usually just a few per cent and often after the first couple of years being flat.

    Well costs: can vary a good bit. A horizontal might cost as little as 150% of a vert well but can also run 2 or 3 times more.

    Me: Thanks Rockman. I have used 5% because that seems to be the historical interest rate. In my business plans, I normally compare the ROI compared to this rate (eg. compared to sticking it in a bank). I find it interesting that the industry uses 10 – 15%, this is seems unusually high, perhaps the industry likes to compare returns based on long terms stock market returns?

    Yes, price inflation can reduce the impact of the discount rate, but pricing oil/natural gas so many years out is pretty difficult.

    Re: costs. I did some quick calcs for discount rates:
    10%: horizontal needs to be less than 3.62 times the vertical
    15%: horizontal needs to be less than 5.25 times the vertical

    Rockman: grae — We use the higher discount rate more as a “hair cut” as we call it. It allows us to add another risk factor. Actually more of a fudge factor. We also give the targeted reserves a hair cut also…maybe only use 50% to 80% of the proposed volume. Same thing with keeping the oil/NG inflation factor conservative. We’ll even normally use a contingency factor in the well cost: if the estimated well cost is $2 million we would use $2.2 million as an estimate. Lots of fudge factors. And then when oil sells for $38/bbl instead of the $70/bbl you used in your economic analysis all the fudge factors don’t come close to saving your butt.

    SocialTwist Tell-a-Friend
  • 0 Comments
  • Filed under: Economics, Tech
  • Enshrining Economic Liberty

    The Former Soviet Republic of Georgia is debating a law to enshrine economic liberty to its citizens and placing constitutional limits to government spending and taxation. This is interesting because we always hear politicians bleat about restraining spending but invariably once they are in a position of power, renege on their promises.  By enshrining it in a constitutional form means that it is harder to back away from (although not impossible, if parliamentarians/citizens vote for change).  From the Government of Georgia’s press release of the draft :

    Fiscal Responsibility

    1. Budget expenditure capped at 30% of GDP (FY 2012)
    2. Budget deficit capped at 3% of GDP (FY 2012)
    3. Public debt capped at 60% of GDP (FY 2012)
    4. Extrabudgetary funds are limited
    5. Budget earmarks are limited

    1. Budget expenditure capped at 30% of GDP (FY 2012): 30% budget expenditure cap is a little high (the US government spending is currently at 40% of GDP!). There is contention as to the optimum level of government expenditure, but below is a chart of reference by a Heritage Foundation report, that shows the optimum level is between 18 and 20% of GDP:

    8533393

    However, having a cap means that it can’t get any worse.

    2. Budget deficit capped at 3% of GDP (FY 2012): deficits generally occur when there is a downturn in the economy. Having a cap of 3% of GDP means that politicians will be not be tempted to “bailout” and provide special deals to inefficient industries.

    3. Public debt capped at 60% of GDP (FY 2012): This seems high, but Georgia is a newly democratised, fast growing economy in an military unstable region (eg. Russia’s recent invasion). It is understandable that public debt may be higher than OECD countries at this time.

    4. Extrabudgetary funds are limited and 5. Budget earmarks are limited: Placing spending limits on special deals for a politicians constituents is a positive measure.

    Empowering Citizens by Ensuring Choice in Social Programs
    The Liberty Act advances the long-standing policy of delivering targeted social assistance by funding citizens through vouchers and cash benefits (healthcare coverage, education, poverty benefits, etc) rather than funding directly the institutions engaged in the provision of healthcare, education and other services. It provides for the freedom of choice of the beneficiaries to select the service providers

    This is an good way to execute government spending programs, but a better way would be to let the free market provide these services. However, vouchers and tax/cash benefits is the least bad way of government providing such services. Citizens having the power to pick and choose their service provider, should mean that service providers must compete for their survival.

    Returning the Power to Tax to the People
    No new taxes or increase in the tax rates may be imposed other than following an affirmative vote in a nationwide referendum

    This is an excellent idea. The public generally hate paying more tax. Politicians running on a campaign of increased taxes, has a very short lived political career.

    Will be interesting to monitor its passage into law.

    (via Cato)

    SocialTwist Tell-a-Friend

    Legalise Insider Trading

    I have always believed in the Insider Trading laws that protect the market from distortions arising from investors acting on non-public information. Recent articles by Don Boudreaux, discusses Insider Trading, and perhaps it isn’t as bad as I once thought.

    One of the problems that was with enforcement of the law. Finding evidence that insider trading actually happened is incredibly difficult. Investors (including employees, directors etc.) buy and sell for many reasons: could it just be coincidence that they sold they shares just as a statement on profitability was about to be announced? Correlation does not prove causation and prosecutors would have to discover a “smoking gun” that proved that a trader acted on non-public information. But just because a law is hard to enforce doesn’t mean it is not worth having. We need another reason.

    A company’s share price is a signal to the market about the value of  that company’s assets. The goal for a market is for assets to be priced as accurately as possible.  So how does a market determine an accurate value? This is from information, ideally disseminated widely, so that thousands of investors can make a judgement call of the value of the company. Information is king.

    Let’s now jump to the way directors’ performance incentives. Directors are accountable to shareholders for the value of the company (ie. share price) that they have stewardship over. It is the shareholders interest (and thus the directors’ interest too) to increase the share price. Remember this as I will come back to this later.

    So let’s say you are an employee, who gets hold of company information that shows that the company isn’t exactly in good shape. What should you do? Should you go public with that information – no, not if you want to hold onto your job. What you can do it start selling (or shorting) the stock. This would immediately send a signal to the market that the value is not quite what is claimed by the current share price – in other words, the share price falls. So insider trading or acting in your “self interest” actually helps the market determine the value of the company.

    Now back to the directors of the company. With Enron, for example, they misled investors and “cooked” the books to artificially inflate the company. If employees/directors who knew this was going on and shorted the stock, this would have sent the share price down. Shareholders will be on the phone calling the CEO to politely enquire what is going on. Given that directors are directly compensated for the share price, they will have the incentive to rectify the problem, before it gets out of hand. While this may not prevent fraud, it will help price a company with greater accuracy, thus giving the market better information to base their investment decisions.

    But isn’t this unfair? Why should an insider, in such a privileged position, profit from such internal information? I do not have a entirely cogent argument to this other than: “Life is not fair.” People from all walks of life have advantages over others. The question is, is acting on this insider information better for the market and society in general. If insider trading creates a better indication of a company’s health, then investors can with greater confidence allocate capital to company’s they believe will offer the greatest returns. This increases the productive use of our scarce resources and providing a maximal return to all.

    (Thanks to the articles from Don Boudreaux)

    SocialTwist Tell-a-Friend
  • 2 Comments
  • Filed under: Economics
  • Beep Test

    Inspired by my sister in law’s induction into the Police Force, I have given myself a goal to get to level 10 on the Beep Test by Christmas 2009.

    Here is my progress – updated automatically from Google Spreadsheets:

    An MP3 version of the Beep Test can be found here.

    SocialTwist Tell-a-Friend
  • 1 Comment
  • Filed under: Fitness
  • Rocket Videos

    Videos of my hobby rockets. They had much cooler music previously, but I had to change the backing track due to copyright :(

    SocialTwist Tell-a-Friend
  • 0 Comments
  • Filed under: Rockets
  • “Denier!”

    Great post from science writer Joanne Nova:

    The world is considering a new financial market larger than any commodity, it’s “based on science”, but if you ask for evidence, you’re called names—“Denier”, and by our Prime Minister, no less.  This is supposed to pass for reasoned debate?

    In 6000 words Rudd uses ad hominem attacks, baseless allegations, argument from authority, mindless inflammatory rhetoric and quotes not a single piece of evidence that carbon drives our climate. He repeats quote after quote of sensible, ordinary points from his opponents as if it shows they are confused. Yet he can’t point out how any of them are wrong. It shows the depth of his own delusions—that he thinks merely questioning “the UN committee” is a flaw in itself.

    It’s as if being a sceptic is a bad thing, yet the opposite of sceptical is gullible.

    Rudd throws baseless innuendo when he claims vested interests are at work. The truth is the exact opposite. Exxon spent $23 million on sceptics, but the US government spent $79 billion on the climate industry. Big Government outspent big-oil 3000 to 1. Worse, carbon trading last year was $126 billion dollars. That’s for just one year. The real vested interests stand in the open like signposted black holes hidden in plain view by a legal disclaimer. The singularities at the centre of the climate change galaxy have names like Goldman Sachs, JP Morgan, ABN Amro, Deutche Bank, and HSBC.

    The banks… want us to trade carbon.

    Read on.

    SocialTwist Tell-a-Friend
  • 0 Comments
  • Filed under: Climate
  • Switch to our mobile site