Question: Using Matlab, Develop a Monte Carlo simulation of the Risk model developed in class. Assume the following parameters 1=0.8day , 2=0.3days, 3=2 days, 4=0.5days Assume
%PROJECT 1 %Develop a Monte Carlo simulation of an attack %Then see perform random success trials %First - Poisson random attack close all clear all Parameters T= 1000 ;%Total test time Lambda [. 1 , . 2 , . 3, . 1 , .05, . 15 ] ; %attack arrival probability Ll-Lambda; Lambda2-[. 1 , . 1 , . 1 , . 1 , . 1 , . 1 ] %probability of success in time t T2-10; Weakness-Lambda2.*exp (-Lambda2+T2); %Exp prob of success W-Weakness Now run a Monte Carlo run of T unit for t-l:T for n-l:length(L1) A(t,n)-0 x-rand (1); %uniform pdf if x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
