Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_insce.wasp
Title produced by softwareInsurance Experiment
Date of computationTue, 23 Sep 2008 03:35:46 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Sep/23/t1222162601vlkqlduccgzxz49.htm/, Retrieved Fri, 17 May 2024 03:21:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=14743, Retrieved Fri, 17 May 2024 03:21:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact266
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Histogram] [Frequentietabel l...] [2008-09-22 09:37:49] [74be16979710d4c4e7c6647856088456]
- RM    [Insurance Experiment] [parent child test...] [2008-09-22 15:58:33] [74be16979710d4c4e7c6647856088456]
-         [Insurance Experiment] [parent child test...] [2008-09-22 17:10:05] [74be16979710d4c4e7c6647856088456]
-           [Insurance Experiment] [parent child test...] [2008-09-22 17:15:30] [74be16979710d4c4e7c6647856088456]
- R P           [Insurance Experiment] [parent child test...] [2008-09-23 09:35:46] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14743&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14743&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14743&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Summary Statistics
Number of policies100
Number of simulations325
Mean of gross profit per policy in USD295.32
Risk of loss in percent12
SD of gross profit per policy243.67

\begin{tabular}{lllllllll}
\hline
Summary Statistics \tabularnewline
Number of policies & 100 \tabularnewline
Number of simulations & 325 \tabularnewline
Mean of gross profit per policy in USD & 295.32 \tabularnewline
Risk of loss in percent & 12 \tabularnewline
SD of gross profit per policy & 243.67 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=14743&T=1

[TABLE]
[ROW][C]Summary Statistics[/C][/ROW]
[ROW][C]Number of policies[/C][C]100[/C][/ROW]
[ROW][C]Number of simulations[/C][C]325[/C][/ROW]
[ROW][C]Mean of gross profit per policy in USD[/C][C]295.32[/C][/ROW]
[ROW][C]Risk of loss in percent[/C][C]12[/C][/ROW]
[ROW][C]SD of gross profit per policy[/C][C]243.67[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=14743&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=14743&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary Statistics
Number of policies100
Number of simulations325
Mean of gross profit per policy in USD295.32
Risk of loss in percent12
SD of gross profit per policy243.67



Parameters (Session):
par1 = 325 ; par2 = 100 ; par3 = 1480 ; par4 = 6000 ; par5 = 0.2 ; par6 = FALSE ;
Parameters (R input):
par1 = 325 ; par2 = 100 ; par3 = 1480 ; par4 = 6000 ; par5 = 0.2 ; par6 = FALSE ;
R code (references can be found in the software module):
reps <- as.numeric(par1)
policies <- as.numeric(par2)
prem <- as.numeric(par3)
cost <- as.numeric(par4)
prob <- as.numeric(par5)
if (par6 == 'TRUE') Poisson <- TRUE
if (par6 == 'FALSE') Poisson <- FALSE
gross.profit <- 1:policies
gross.profit.rate <- 1:reps
if (Poisson==T) {
for (j in 1:reps) {
totalcost=cost*rpois(policies,prob)
gross.profit=prem-totalcost
gross.profit.rate[j]=sum(gross.profit)/policies
}
}
if (Poisson==F){
for (j in 1:reps) {
totalcost=cost*rbinom(policies,1,prob)
gross.profit = prem-totalcost
gross.profit.rate[j] = sum(gross.profit)/policies
}
}
risk <- 100 * (length (gross.profit.rate[gross.profit.rate < 0]))/reps
print(risk)
avgprofit <- format(mean(gross.profit.rate), digits = 5)
sdprofit <- format(sd(gross.profit.rate), digits = 5)
bitmap(file='test1.png')
stripchart(gross.profit.rate, method = 'stack', main = main, xlab = xlab, ylab = ylab, col = 'blue', xlim = c( -800, 1300), at=0.1)
stripchart(gross.profit.rate[gross.profit.rate<0], method = 'stack', col = 'red', add = TRUE, at=0.1)
text(700, 1.55, 'number of policies = ',adj=1)
text(900, 1.55, policies)
text(700, 1.4, 'number of simulations = ',adj=1)
text(900, 1.4, reps)
text(700, 2.0, 'mean of gross profit/policy = ',adj=1)
text(800, 2.0, '$')
text(900, 2.0, avgprofit)
text(700, 1.7, 'risk of loss = ',adj=1)
text(875, 1.7, round(risk,))
text(975, 1.7, '%')
text(700, 1.85, 'SD of gross profit/policy = ',adj=1)
text(800, 1.85, '$')
text(900, 1.85, sdprofit)
dev.off()
x<-rnorm(100)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Summary Statistics',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Number of policies',header=TRUE)
a<-table.element(a,policies)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Number of simulations',header=TRUE)
a<-table.element(a,reps)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Mean of gross profit per policy in USD',header=TRUE)
a<-table.element(a,avgprofit)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Risk of loss in percent',header=TRUE)
a<-table.element(a, round(risk,0) )
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'SD of gross profit per policy',header=TRUE)
a<-table.element(a,sdprofit)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')