Community Profile

# susman

##### Last seen: environ un mois ago
19 total contributions since 2020

View details...

Contributions in
View by

Question

Plotting the data in the given file over time period and tabulating the results
I have a model with 10 states and I have frequency of each state over time. The data is stored in a cell array, where each cell ...

environ un mois ago | 1 answer | 0

### 1

Question

options for analyzing simulation results. Looking for suggestions
I have developed a Markov Model and got 100000 simulations for a time period of 57 years. That means my output is 100000 by 57 m...

environ un mois ago | 0 answers | 0

### 0

Question

How can I simulate this code with 1000 simulations?
If I run a chain of n = 50 with four states, then how can I adjust the following code to run for 1000 times. % I want to r...

environ un mois ago | 0 answers | 0

### 0

Question

plot states sequence over time
I want to plot the state transitions chain of markov process. My original state transitions matrix is 56 by 1000. But here I giv...

environ 2 mois ago | 1 answer | 0

### 1

Question

Using accumarry and changing size of output
I am using the accumarray by using the following command on the first and second column of struct array. The first part of the c...

environ 2 mois ago | 1 answer | 0

### 1

Question

Make a for loop for the following code
I am estimating the probabilities over time. for example, my data matrix is 6 by 5 (where 6 is the number of simulations and 5...

environ 2 mois ago | 1 answer | 0

### 1

Question

For loop for a function
I have the following function and I want to run it for age 30 to 100. I think I need to develop a for loop here. Can anyone plea...

environ 2 mois ago | 1 answer | 0

### 1

Question

evaluate function handle (determine the value of function handle using my code
Please tell me how to determine the value of a function handle in a quick way. hf12 = @(age) exp(-0.0625.*age-0.0134) % ex...

2 mois ago | 1 answer | 0

### 1

Question

Simulate inhomogeneous continuous time Markov Chain (IHCTMC)
I am working on simulating an inhomogeneous continuous time Markov Chain. I have found most of the material here deadling with "...

2 mois ago | 0 answers | 0

### 0

Question

solution to differential equations system looks strange. What is wrong with my code?
I am writing a code to solve the differential equations. I have written the following code but my solution looks wierd. First, I...

2 mois ago | 1 answer | 0

### 1

Question

create dummy variable for different time periods
I have to create dummy variable for interval1 and interval 2 Suppose,I have equation; Dependent = exp(1.2 + 0.0099*(Interval1)...

2 mois ago | 1 answer | 0

### 1

Question

exponential of a matrix to determine transition probability matrix
I have a transition rate matrix for five states in period t as follows; where, last state is an abosrbing state. Now using the...

3 mois ago | 0 answers | 0

### 0

Question

Specify specific cell in the formula
I am working with mortality tables and my question is how can I specific a specific cell (e.g. the value of the variable discoun...

7 mois ago | 1 answer | 0

### 1

Question

create a new variable that is the product of lag value of another variable and its own lag value
my two input variables are age and mortality, I want to create another variable "survival = 1" for first value of "age" like h...

8 mois ago | 1 answer | 0

### 1

Question

Calculating survival probabilities from Mortality tables in MATLAB
I am working with mortality tables on MATLAB. My aim is to upload any (Mortality Table) data file in Matlab and calculate surviv...

8 mois ago | 1 answer | 0

### 1

Question

Calculate mean of a matrix columnwise if a condition is met
I am stuck on a small coding issue. I have a big matrix "A" and a scalar value "b" and I want to determine, Expected value =...

8 mois ago | 1 answer | 0

### 1

Question

optimal allocation of two assets by minimizing shortfall probability using fmincon
I want to determine the optimal allocation of two assets (here "x") such that shortfall probability is minimized. Shofrtfall pr...

9 mois ago | 1 answer | 0

### 1

Question

Minimizing a scalar value using "fmincon" derived through many variables
I have portfolio optimal allocation problem (two assets equity and bond) and I want to use "fmincon" to minimize "PCS", which is...

9 mois ago | 2 answers | 0