Page 1 of 1

Time Subscript

Posted: Fri Jan 05, 2018 1:30 am
by vahidi
Hi,
How can I formulate time subscript for variables?

For example, how can I define the formula in the attached pic?

In that formula p is variable.

Thank for your attention.

Re: Time Subscript

Posted: Fri Jan 05, 2018 5:40 am
by tomfid
This looks like discrete time notation, and presumably the summation indicates some kind of state variable dynamics. Hard to say how to implement it without knowing what it's for.

Generically, your two choices are to implement it directly using a subscript to represent the elements of j, or to use a stock to represent the dynamics explicitly.

However, since l(t-1) is independent of j in the summation, this simplifies readily:

r(t) = 1/p * p * l(t-1) = l(t-1)

http://metasd.com/2017/11/discrete-time-stinks/

Re: Time Subscript

Posted: Fri Jan 05, 2018 11:29 pm
by vahidi
Thanks tomfid,

The correct argument is l(t-j) as shown below:
Untitled.png
Untitled.png (3.02 KiB) Viewed 3124 times
I want to model a simple lending system as shown below:
Untitled1.png
Untitled1.png (52.73 KiB) Viewed 3124 times
In this system, loans are made every year and have a redemption period (p). Although p is constant, I want to change it in different simulation runs.
Every year we must repay 1/p of the principal of each loan until full redemption. In fact, the r(t) is the amount of repayment each year that should be calculated by p and l.

Time Subscript

Posted: Tue Jan 09, 2018 2:05 pm
by vahidi
I want to model a simple lending system as shown below:
Untitled1.png
Untitled1.png (52.73 KiB) Viewed 3105 times
In this system, loans are made every year and have a redemption period (p). Although p is constant, I want to change it in different simulation runs.
Every year we must repay 1/p of the principal of each loan until full redemption. In fact, the r(t) is the amount of repayment each year that should be calculated by p and l.

How can I formulate time subscript for variables?

For example, how can I define the formula in the attached pic for the loan redemption?
Untitled.png
Untitled.png (3.02 KiB) Viewed 3105 times

Re: Time Subscript

Posted: Tue Jan 09, 2018 2:13 pm
by Administrator
If I'm understanding correctly, all you need is

Code: Select all

debt redemption = loan amount / loans redemption period

Re: Time Subscript

Posted: Tue Jan 09, 2018 11:55 pm
by tomfid
I've attached a model of a loan. It gets a little messy if you're interested in exact representation of compounding and payment periods, as you can see. This could be quite a bit simpler if you assumed continuous time and payments.
loan1.mdl
(6.2 KiB) Downloaded 245 times