Community Profile

photo

susman


Last seen: 8 months ago Active since 2020

Statistics

  • Thankful Level 3

View badges

Content Feed

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 ...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 0 answers | 0

0

answers

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...

3 years ago | 0 answers | 0

0

answers

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...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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 "...

3 years ago | 1 answer | 1

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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)...

3 years ago | 1 answer | 0

1

answer

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 years ago | 1 answer | 0

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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 =...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 1 answer | 0

1

answer

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...

3 years ago | 2 answers | 0

2

answers

Question


Find the first incidence of 1 in a logical vector and replace all other 1s by zero
I need to find the first incidence of 1 in a logical vector and replace all other 1s by zero. For example, I have a logical ve...

3 years ago | 2 answers | 0

2

answers