::Free Statistics and Forecasting Software::

v1.1.23-r2
 
  Black&White | Blue Theme | Normal Fontsize | Increase Fontsize | Decrease Fontsize | Toggle underline
Secure website (SSL) | Private
 
 


This software module is powered by R

:: Insurance Experiment - Free Statistics Software (Calculator) ::

All rights reserved. The non-commercial (academic) use of this software is free of charge. The only thing that is asked in return is to cite this software when results are used in publications.

This program shows how the variability of casualty policy experience creates a problem for small insurance companies. With only a few policies, the probability of loss can be quite high even when the premiums are set to produce a profit in the long run. One can see that the risk of loss is much higher for smaller companies than for larger companies. By lowering the premium paid by policy-holders, one can increase the chance of loss of small companies without much increase in the chance of loss for large companies. This is another application of the square root law.

Click here to edit the underlying code of this R Module.

Replications 
# Policies 
Annual Premium 
Cost per Claim 
Probability 
Poisson 
Chart options
Width:
Height:
Title:
Label y-axis:
Label x-axis:

Click here to edit the underlying code of this R Module.





Source code of R module
1reps <- as.numeric(par1)
2policies <- as.numeric(par2)
3prem <- as.numeric(par3)
4cost <- as.numeric(par4)
5prob <- as.numeric(par5)
6if (par6 == "TRUE") Poisson <- TRUE
7if (par6 == "FALSE") Poisson <- FALSE
8gross.profit <- 1:policies
9gross.profit.rate <- 1:reps
10if (Poisson==T) {
11for (j in 1:reps) {
12totalcost=cost*rpois(policies,prob)
13gross.profit=prem-totalcost
14gross.profit.rate[j]=sum(gross.profit)/policies
15}
16}
17if (Poisson==F){
18for (j in 1:reps) {
19totalcost=cost*rbinom(policies,1,prob)
20gross.profit = prem-totalcost
21gross.profit.rate[j] = sum(gross.profit)/policies
22}
23}
24risk <- 100 * (length (gross.profit.rate[gross.profit.rate < 0]))/reps
25print(risk)
26avgprofit <- format(mean(gross.profit.rate), digits = 5)
27sdprofit <- format(sd(gross.profit.rate), digits = 5)
28bitmap(file="test1.png")
29stripchart(gross.profit.rate, method = "stack", main = main, xlab = xlab, ylab = ylab, col = "blue", xlim = c( -800, 1300), at=0.1)
30stripchart(gross.profit.rate[gross.profit.rate<0], method = "stack", col = "red", add = TRUE, at=0.1)
31text(700, 1.55, "number of policies = ",adj=1)
32text(900, 1.55, policies)
33text(700, 1.4, "number of simulations = ",adj=1)
34text(900, 1.4, reps)
35text(700, 2.0, "mean of gross profit/policy = ",adj=1)
36text(800, 2.0, "$")
37text(900, 2.0, avgprofit)
38text(700, 1.7, "risk of loss = ",adj=1)
39text(875, 1.7, round(risk,))
40text(975, 1.7, "%")
41text(700, 1.85, "SD of gross profit/policy = ",adj=1)
42text(800, 1.85, "$")
43text(900, 1.85, sdprofit)
44dev.off()
45x<-rnorm(100)
46load(file="createtable")
47a<-table.start()
48a<-table.row.start(a)
49a<-table.element(a,"Summary Statistics",2,TRUE)
50a<-table.row.end(a)
51a<-table.row.start(a)
52a<-table.element(a,"Number of policies",header=TRUE)
53a<-table.element(a,policies)
54a<-table.row.end(a)
55a<-table.row.start(a)
56a<-table.element(a,"Number of simulations",header=TRUE)
57a<-table.element(a,reps)
58a<-table.row.end(a)
59a<-table.row.start(a)
60a<-table.element(a,"Mean of gross profit per policy in USD",header=TRUE)
61a<-table.element(a,avgprofit)
62a<-table.row.end(a)
63a<-table.row.start(a)
64a<-table.element(a,"Risk of loss in percent",header=TRUE)
65a<-table.element(a, round(risk,0) )
66a<-table.row.end(a)
67a<-table.row.start(a)
68a<-table.element(a,"SD of gross profit per policy",header=TRUE)
69a<-table.element(a,sdprofit)
70a<-table.row.end(a)
71a<-table.end(a)
72table.save(a,file="mytable.tab")
Top | Output | Charts | References | History | Feedback



Cite this software as:
Weldon Larry, (2008), Insurance Experiment (v1.0.3) in Free Statistics Software (v1.1.23-r2), Office for Research Development and Education, URL http://www.wessa.net/rwasp_insce.wasp/
The R code is based on :
Weldon Larry, Stat Ed Programs for Demos in R, Simon Fraser University, URL http://www.stat.sfu.ca/~weldon/title.doc
Weldon Larry, R Programs for Statistics Education, Simon Fraser University, URL http://www.stat.sfu.ca/~weldon/Programs
Weldon Larry, Instructions for using R programs for Statistics Education, Simon Fraser University, URL http://www.stat.sfu.ca/~weldon/instructions.doc
Top | Output | Charts | References | History | Feedback
Delete history
Server DateModuleCommand
Wed, 20 Aug 2008 01:04:17 -0600Start of session-
Top | Output | Charts | References | History | Feedback

Please, send us your feedback!
Overall rating
What do you think about the response time?
Rate the facility with which you interact with our software.
Is the output presented in an understandable (clear) form?
How did you find this website/module?
Do you have any comments or suggestions for our site?
Please enter the code that is displayed in this picture: captcha

To cite Wessa.net in publications use:
Wessa, P. (2008), Free Statistics Software, Office for Research Development and Education,
version 1.1.23-r2, URL http://www.wessa.net/

© Resa R&D, and the 'Office for Research, Development, and Education' - All rights reserved. Academic license for non-commercial use only.
This website is an intellectual and physical property of Resa R&D. This includes: html content, graphical illustrations (gif files), computer software, online or electronic documentation, associated media, and printed materials. The free use of the scientific content, services, and applications in this website is granted for non commercial use only. In any case, the source (url) should always be clearly displayed. Under no circumstances are you allowed to reproduce, copy or redistribute the design, layout, or any content of this website (for commercial use) including any materials contained herein without the express written permission of Resa R&D or the Office for Research, Development, and Education.

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, Resa R&D makes no warranties or representations as to the accuracy or completeness of such information (or software), and it assumes no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall Resa R&D be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.

Software Version : 1.1.23-r2
Algorithms & Software : Prof. dr. P. Wessa
Facilities : Resa R&D - Office for Research, Development, and Education
Server : www.wessa.net

Comments, Feedback & Errors | Privacy Policy | Statistics Resources | Wessa.net Home

 © Wessa.Net 2002-2008  
 
 

Home Page
Equation Plotter
Time Series Analysis (new)
Time Series Analysis (old)
Multiple Regression (new)
Multiple Regression (old)
Descriptive Statistics
Statistical Distributions
Hypothesis Testing
Statistics Education

Academic citations
Computations Archive
Search Computations
R Project
FAQ
About Wessa.net
Powered by Linux

Server status page
History list
Edit R Code
Google
Web wessa.net