Wednesday, May 18, 2011
R-bloggers
As I decided to try and blog a little more often now, and touch on "R" every now and then, I decided to take R-bloggers up on their standing offer to include R-related feeds at their site. So, everything I tag with "rstats" (you can guess where that came from) should flow through to them. I've added them to my (tiny) blogroll at the side of the blog, but if you just cannot wait to see what they are all about, and I recommend it, you can just go here.
Sunday, May 15, 2011
Why method of moments doesn't always work
A number of years ago, someone asked me "why does my company need actuaries to fit curves, once I have the mean and standard deviation of my losses, isn't that enough?" I explained to him that not every distribution is completely determined by its mean and standard deviation (as the normal and lognormal are), and as at that point, I did not have "R" installed on my laptop, I demonstrated it to him in Excel. Having wanted to start blogging about "R", even ever so infrequently, I figured I'd toss together a little code to demonstrate.
The example I gave was to compare a gamma and a pareto distribution, each of which has mean 10,000 and a CV of 150% (making the standard deviation 15,000). I will spare all of you the algebra, but suffice to say, that using the Klugman-Panjer-Wilmot parameterization (which is used by most casualty actuaries in the past 20 years or so) the parameters of the gamma would be theta (R's scale) = 22500 and alpha (R's shape) = 4/9. The equivalent pareto would have theta (R's scale) = 26000 and alpha (R's shape) = 3.6.
Graphing the two (and Hadley, please forgive me for using default R' plotting, I left my ggplot book in the office; mea culpa) you can easily see how the distributions are rather different.
To make things easier for me, I used the actuar package to do the graphing:
Obviously, the tails of the distributions, and thus the survival function at a given loss size, is different for the two, notwithstanding their sharing identical first two moments. So, this was just a brief but effective visualization as to how the first two moments do not contain all the information needed to find a "best fit," and why we like to use distributional fitting methods (maximum likelihood, maximum spacing, various minimum distance metrics like Cramer-von Mises, etc.) to get a better understanding of the potential underlying loss processes.
The example I gave was to compare a gamma and a pareto distribution, each of which has mean 10,000 and a CV of 150% (making the standard deviation 15,000). I will spare all of you the algebra, but suffice to say, that using the Klugman-Panjer-Wilmot parameterization (which is used by most casualty actuaries in the past 20 years or so) the parameters of the gamma would be theta (R's scale) = 22500 and alpha (R's shape) = 4/9. The equivalent pareto would have theta (R's scale) = 26000 and alpha (R's shape) = 3.6.
Graphing the two (and Hadley, please forgive me for using default R' plotting, I left my ggplot book in the office; mea culpa) you can easily see how the distributions are rather different.
To make things easier for me, I used the actuar package to do the graphing:
Created by Pretty R at inside-R.org
Obviously, the tails of the distributions, and thus the survival function at a given loss size, is different for the two, notwithstanding their sharing identical first two moments. So, this was just a brief but effective visualization as to how the first two moments do not contain all the information needed to find a "best fit," and why we like to use distributional fitting methods (maximum likelihood, maximum spacing, various minimum distance metrics like Cramer-von Mises, etc.) to get a better understanding of the potential underlying loss processes.
Friday, May 13, 2011
New look!
I decided to change things around a bit, and applied a new template and color scheme. Maybe now my next post won't take another five months! Let me know if you like the new look.
Labels:
blogger,
web design
Wednesday, January 12, 2011
It has been a while
It has been quite a while since I posted an update here. Possibly, because the longer I work, the less time I seem to have. Just to share something, I did recently have some fun programming a random gamma variate generator in VBA for some copula work. While I'm certain there are much more elegant implementations out there, it was good to figuratively roll up my sleeves and dust off some VBA programming skills. Now I can keep that line on the resume!
Tuesday, September 22, 2009
IE6 no more
I just came across this article, entitled "IE6 No More! Popular Web Companies Start Project to Kill IE6" and decided to add the code to my blog, so if you are using IE6, you may see a note to that effect. FireFox is the way to go anyway!
Monday, September 21, 2009
Hey, that sounds like my studying routine!
In my daily perusal of the intellectual side of the news, the comics, I came across another gem, which while ostensibly applied to elementary school, may be the best actuarial study technique ever printed. Enjoy!
http://d.yimg.com/a/p/umedia/20090920/largeimage.7b0f57af9a54b45f31e113377789cccb.gif

http://d.yimg.com/a/p/umedia/20090920/largeimage.7b0f57af9a54b45f31e113377789cccb.gif
Thursday, September 10, 2009
Actuaries in the media…
…well at least in cartoons. Unfortunately, even we are not immune from politics.
http://d.yimg.com/a/p/uc/20090910/largeimagepo090909.gif
http://d.yimg.com/a/p/uc/20090910/largeimagepo090909.gif
Wednesday, September 09, 2009
Future Education Methods and the Actuarial Profession
Recently, the "big three" actuarial organizations in North America, the CAS, SOA, and CIA, have promoted a proposal to radically change the actuarial education methods used to credential actuaries in the United States and Canada. Their letter describing the suggestions may be found here.
Personally, I think it is a very bad idea, and I sent the following to the feedback address at fem@actuarialdirectory.org. The deadline for responses is tomorrow, so if you have not already commented, you have one more day.
Personally, I think it is a very bad idea, and I sent the following to the feedback address at fem@actuarialdirectory.org. The deadline for responses is tomorrow, so if you have not already commented, you have one more day.
I believe that the proposed future education method (FEM) of exempting actuaries from examinations based on passing specific university courses is a bad idea, and I am strongly opposed to it.
Currently, one of the strongest elements of our profession is its being close to a true meritocracy; much more so than any given university. A candidate takes an examination simultaneously with his or her peers, has his or her exam anonymized, and then graded by anonymous referees (anonymous to the candidates) similar to a double-blind test, and has his or her results, still anonymous, compared with the results of all other test-takers. Then an pass score is set (we will leave the discussion of the score being set based on the actual distribution of results to another time) and all who have met or exceeded the score will be deemed to have net the requirements. There is very little opportunity for either "gaming the system" or for allowing any other external influence (pernicious, malicious, or otherwise) to effect the outcomes. Contrast the above with a university setting. Notwithstanding the various societies' intentions of ensuring "specific standard", it is undeniable that different teachers, and different universities for that matter, will have different standards. Furthermore, this opens the hideous potential for student-teacher relationships impacting the results, be they for good or ill. We lose the anonymity, we lose the simultaneity, we lose the ability to compare oneself to one's peers, we lose the "double-blind" nature of the exam process.
Another distinct shortcoming of the new process is the complete loss of standardization. Currently, all who pass Exam "X" in a given sitting do so with the exact same exam. Symmetrically, all those who fail Exam "X" in a given sitting, fail the same exam that those who pass have passed. When a change is made to the syllabus, and thus the exams, it will affect all sitting candidates in the same way. There is no preferential treatment possible. Under the new system, there can be many different "exams;" as many as there are approved courses. The syllabus, and any changes thereto, will not affect all candidates equally, but is completely dependant on the institution, and for that matter the teacher. This also includes the potential dilution of candidates, in that their passing is no longer controlled by the respective societies, but by external institutions.
A third distinct shortcoming of this new process, while less egregious, is the loss of its screening abilities. As a former employer of mine, a credentialed actuary, once told me in half-jest, "you do not pass actuarial exams, you win them." One of the benefits of the exam process, and I say this in hindsight having completed it, is its ability to isolate people who can deliver good answers under pressure. I cannot speak for anyone else, but to me, this is pretty much the epitome of what we as actuaries are called upon to do. We are not supposed to always have the best answer, but we are supposed to be able to help our clients (be they actual clients, employers, etc.) to address their concerns as best we can in the ever-shortening time-frames we are given. Furthermore, in actual work, we are not always given all the information "handed" to us on a platter. We need to be able to quickly identify good and useful data from bad, and use it as best we can. Exam work is very similar to this. We have to learn the material on our own—exam seminars are good refreshers, but I have never met an actuary who has only used them without other studying who has had any success—which includes triaging the material, identifying the areas on which to focus (the Brosious quartering comes to mind), and quickly "ingesting" what is needed to achieve success. In a university setting, much of this is lost. For all we know, the final can be a one week, open book, take home affair—unthinkable under the current method.
Regarding the purported benefits of such a system, I must respectfully disagree with some.
I do not see the quality of actuarial education improving any more because of institutionalized exam exceptions than it would should the current syllabus and exams be appropriately updated. Some of our syllabus papers, at least when I was a candidate, were written not for candidates but for actuaries, and experienced ones at those. What we need is a centralized effort at generating better exam material, not diffusing that effort throughout 20 or so universities, each with their own agenda and intentions.
The following, I feel, highlights a critical chasm between academic actuaries and practicing actuaries. I would like to know why "university" training in actuarial methods is considered a benefit? Many would argue that in truth it is a detriment. Universities are often known for their being "out-of-touch" with what is occurring in the "trenches" as it were. The ivory towers of academia are bastions of theory, but oft-times are highly impractical. As actuaries, most of us will practice, and not remain theoreticians, and as such, I would counter that one of the most important elements in becoming and being an actuary is the "apprenticeship" one undergoes in one's early actuarial career. Knowledge should never be confused with, or substituted for, experience, and it is experience that is key in our discipline, which at times is as much an art as it is a science (at least in my field of casualty reinsurance).
I can understand how allowing university classes to exempt students from actuarial exams would increase the career's attractiveness. However, that can be addressed by having the university courses geared towards the specific exams and preparing their students for taking said exam.
In closing, I feel that the FEM described would do far more harm than good to our profession, and I urge the societies to reject it in favor of enhancing our current process.
Thank you.
Tuesday, April 21, 2009
Cassini photos of Saturn and its environs
Cassini photos of Saturn, its rings, and its moons, as seen here http://www.boston.com/bigpicture/2009/04/cassinis_continued_mission.html, are simultaneously amazing and awe-inspiring. It is further serendipity that I am currently reading Jack McDevitt's Academy series; the one where the first book features the monument on Iapetus, whose surface is captured in glorious detail by Cassini.
Monday, April 06, 2009
Bit.Ly test
Now that I have twitterfeed posting to ping.fm, and from there to twitter and identi.ca, I'm trying one last time to get a shortened URL that does not contain "ping.fm" in it, for people behind websense or the like. This post will check the activity of a bit.ly account (not anonymous) as the shortener in twitterfeed. Let's hope this works!
Labels:
bit.ly,
identi.ca,
pingfm,
twitter,
twitterfeed
Sunday, April 05, 2009
Twitterfeed Test
Well, twitterfeed through Ping seemed to update both Twitter and Identica, but the url shortener has a ping domain which is blocked at work. Trying something else now. This may be a many-post day trying to get this set up.
Another test
Well, it seems that Ping.fm is great for cross-posting my tweets to identi.ca but it didn't take the previous blog post. So, let's try Twitterfeed feeding Ping.
Ping.Fm and the social-interaction revolution
We are witnessing a social-interaction revolution. First blogging, and then micro-blogging, have taken cyberspace by storm. With so many different options and niches, it may be difficult to manage all of one's separate service providers. There is a service, Ping.Fm, which promises to handle that. You can set it to accept feeds from one service and cross-post them to others. You can specify three different kinds of feeds (status, blog, and microblog) to decide which goes where; you can set up special tags to post to s defined subset of feeds, or you can even specify a particular feed. This blog entry is being made to test if Ping.fm is going to handle blogger posts the way I expect. Enjoy!
Tuesday, March 31, 2009
A single currency?
On Bloomberg Surveillance this morning the concept of a single world-wide currency was discussed. Personally, I am not sure how that would even be possible. How would investors or the market be able to reflect their opinions as to the relative security and stability of various governments?
Even with a single world-wide currency, governments and countries will have different levels of output, stability, production, etc. There needs to be a way for the markets to reflect this. Currently, this can be done by the relative value of one currency versus another. Now consider every country has just one currency. The governments, natural resources, and indigenous economies are still different. Unless the currency is 100% backed by some universal commodity (gold, for example) part of the value of the currency is the "full faith and credit" in the issuing body, and that the currency note is redeemable for equivalent goods and services across national borders. That discrepancy between entities still exists regardless of shape, color, size, and portraits on the bills or coins in use.
Perhaps the discrepancies will become evident in different interest rates that need to be offered by the treasuries of the respective countries; a government with a stronger economy can offer lower rates in return for the inherent stability. Well, doesn't that make government securities in and of themselves a "shadow currency"? We can have the two bonds with the same par value, the same coupon, and the same duration with different prices, due to the perceived difference in risk and stability. I'd guess that pretty soon thereafter a market for trading these identical yet different instruments will be created, and we are pretty much back where we started.
As this is just semi-knowledgeable ramblings on my part, I'm curious to know how investors bet the German economy against the French, if both use the Euro. While an optimal currency area may be larger than a country, I'm pretty sure it is smaller than the entire world.
Even with a single world-wide currency, governments and countries will have different levels of output, stability, production, etc. There needs to be a way for the markets to reflect this. Currently, this can be done by the relative value of one currency versus another. Now consider every country has just one currency. The governments, natural resources, and indigenous economies are still different. Unless the currency is 100% backed by some universal commodity (gold, for example) part of the value of the currency is the "full faith and credit" in the issuing body, and that the currency note is redeemable for equivalent goods and services across national borders. That discrepancy between entities still exists regardless of shape, color, size, and portraits on the bills or coins in use.
Perhaps the discrepancies will become evident in different interest rates that need to be offered by the treasuries of the respective countries; a government with a stronger economy can offer lower rates in return for the inherent stability. Well, doesn't that make government securities in and of themselves a "shadow currency"? We can have the two bonds with the same par value, the same coupon, and the same duration with different prices, due to the perceived difference in risk and stability. I'd guess that pretty soon thereafter a market for trading these identical yet different instruments will be created, and we are pretty much back where we started.
As this is just semi-knowledgeable ramblings on my part, I'm curious to know how investors bet the German economy against the French, if both use the Euro. While an optimal currency area may be larger than a country, I'm pretty sure it is smaller than the entire world.
Wednesday, June 18, 2008
AIG or ARRGGHH?
Interesting news today, from CNBC:
This is another example of where a good ERM study would have exposed the asset weakness. As The Economist writes:
Perhaps an outside analysis of the capital model may have been a good idea?
American International Group CEO Martin Sullivan stepped down from his post, as expected, after growing discontent among the board and shareholders with his management of the insurance giant.…Sullivan has come under intense criticism since AIG recently announced billions of dollars in writedowns from losses after Sullivan and the company assured investors the writedowns would be minimal.
This is another example of where a good ERM study would have exposed the asset weakness. As The Economist writes:
Mr Sullivan did himself no favours by mismanaging expectations. He and his team poo-pooed critics, insisting until this year that AIG had oodles of excess capital and that its actual (as opposed to mark-to-market) losses would be modest. The firm has since been forced to admit that its accounting models were too optimistic, after its auditors found “material weaknesses” in them
Perhaps an outside analysis of the capital model may have been a good idea?
Tuesday, September 04, 2007
MA INSURANCE COMMISSIONER PROPOSES BANNING USE OF SOCIOECONOMIC FACTORS IN RATING AND UNDERWRITING
From Insurance Journal - August 29, 2007
This does mean that subsidization will still be alive and well. Let's hope that there is less of it.
The draft regulation makes years of driving experience, driving record and a vehicle's model and safety features as the primary rating and underwriting factors in private passenger auto insurance.
The draft regulation bans insurers from using gender, marital status, education, occupation, national origin, religion, homeownership and other socioeconomic factors, some of which Burnes says are prohibited by statute and others which she deemed violate public policy, for either rating or underwriting.
It also forbids insurers from using information from credit reports or scores for rating for at least a year, during which time she said she would study the overall use of credit scores by insurers. It does not prohibit the use of credt scoring for underwriting.
This does mean that subsidization will still be alive and well. Let's hope that there is less of it.
Monday, August 20, 2007
Florida turbulence
At least some Florida legislators are seeing the light. Florida Underwriter writes:
Leave it to Governor Crist, however, to never confuse reality for political expediency:
The right thing to do? For whom?!
The resulting 91-page bill swept through the insurance code with all the fury of a major storm that left insurance representatives stunned and some legislator’s in disbelief. Representative Dennis Ross (R-Lakeland) said the bill was “as close to a socialist policy that we ever came to.” He was joined by Representative Don Brown (R-De Funiak Springs) who decried the changes to Citizens Property Insurance Corporation, which makes it certain the former residual market will be the state’s largest insurer. Speaking of the freeze of Citizens’ rates until January 1, 2009, Brown noted that the bill ensured that homeowners would be eventually face potentially crippling assessments. “A one-year rate freeze is playing Russian roulette and every year you continue the freeze you’re adding another bullet to the chamber,” he said.
Leave it to Governor Crist, however, to never confuse reality for political expediency:
But no matter how dire the message, Crist and the legislature were more than happy to press forward and place their imprint on the property market. “The Florida House and the Senate have been working very hard to bring relief to our homeowners, and I am grateful for their dedication,” said Crist . “The people have pleaded for relief, and the good men and women of the Florida Legislature have answered the call. This is the right thing to do.”
The right thing to do? For whom?!
Monday, August 01, 2005
Workers Compensation Data
This is interesting, and useful. Needing to do research on workers comp rate filings, I stumbled on this site, which links to near every rating bureaus you can think of: http://www.cutcomp.com/depts.htm
Rather helpful.
Rather helpful.
The Further adventures of a failed behemoth
From the Insurance Journal: August 1, 2005
It is amazing to see what is happening with AIG. It is even more amazing to see just how much AIG & Co. was doing sub rosa. I am very curious to see what else is unearthed. Stay tuned, this is going to develop for a long time.
Reinsurers Sue AIG Alleging Claims Fraud; AIGClick on the above link for the rest of the article.
Denies All WrongdoingA group of 18 insurers is suing American International Group and bankrupt
fronting company Trenwick America Reinsurance Corp. for allegedly scheming to
collect as much as $73 million in what the insurers claim are "grossly inflated"
workers compensation and other reinsurance claims.The suit alleges that only about $15 million of the $73 million in claims for which AIG has demanded payment appear to be legitimate paid losses eligible for reinsurance coverage. The remaining amount reflects "highly suspect" estimates of future (incurred but not reported) losses, according to the complaint, which was filed in Suffolk Superior Court in Boston on July 6.
It is amazing to see what is happening with AIG. It is even more amazing to see just how much AIG & Co. was doing sub rosa. I am very curious to see what else is unearthed. Stay tuned, this is going to develop for a long time.
Subscribe to:
Posts (Atom)