28.05.2013 Views

(Fac-simile frontespizio tesi di laurea specialistica) - Scor

(Fac-simile frontespizio tesi di laurea specialistica) - Scor

(Fac-simile frontespizio tesi di laurea specialistica) - Scor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

procRP := proc ( sins:: list, OP, CO, DE, freqOP)<br />

local sinsl, OPp, COp, DEp, freqOPp, alphastp , frequenzap, valoreme<strong>di</strong>osinp,<br />

vmsp, premio<strong>di</strong>rischiop, RLp;<br />

sinsl := sins;<br />

OPp := OP;<br />

COp := CO;<br />

DEp := DE;<br />

freqOPp := freqOP;<br />

alphastp := nops( sinsl ) / sum ( ln ( sinsl[ i] / OPp ) , i = 1 .. nops( sinsl ) ) ;<br />

frequenzap := freqOPp× ( OPp/ DEp ) ^alphastp<br />

;<br />

valoreme<strong>di</strong>osinp := proc ( COq, DEq, alphastq )<br />

local a, c, d, vms, errelle;<br />

a := alphastq ;<br />

c := COq;<br />

d := DEq;<br />

errelle := ( c+ d)/ d;<br />

if a = 1 then vms := d × ln( errelle )<br />

else vms := d × ( errelle ^(<br />

1 − a ) − 1 ) /( 1 − a )<br />

end if<br />

end proc ;<br />

vmsp := valoreme<strong>di</strong>osinp ( COp, DEp, alphastp ) ;<br />

premio<strong>di</strong>rischiop := ( f, v ) → f× v;<br />

RLp := premio<strong>di</strong>rischiop ( frequenzap, vmsp ) ;<br />

print( `Il parametro del modello è stato stimato in` ) ;<br />

print( alphastp ) ;<br />

print( `La frequenza me<strong>di</strong>a è stimata in` ) ;<br />

print( frequenzap ) ;<br />

print( `Il costo me<strong>di</strong>o <strong>di</strong> un sinistro trasferito è stimato in` ) ;<br />

print( vmsp ) ;<br />

print( `Infine, il premio <strong>di</strong> rischio è stimato in` ) ;<br />

print( RLp )<br />

end proc<br />

[>procRP([55715.50, 58370.30, 59865.80, 60380.00,<br />

60690.00, 60690.00, 63000.00, 65417.70, 80419.60,<br />

86075.90, 87000.00, 95662.50, 106303.80, 106658.50,<br />

121065.80, 132200.00, 135569.60, 173979.70, 180436.70],<br />

50000, 100000, 100000, 7.37);<br />

Il parametro del modello è stato stimato in<br />

95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!