Time-Weighted Yield¶
The time-weighted yield is a measure of how well a fund was managed. Mathematically, it is defined as:
effective over the investment interval, where
The Bs represent the balances at points in time and the Cs represent the contributions. If we desire an annualized yield:
Examples¶
Suppose we deposit 100,000 in a bank account. It grows to 105,000 at time 1, and we immediately deposit an additional 5,000. It then grows to 115,000 at time 2. what is the time-weighted yield?
We can solve this problem by passing the balance amounts and times to the time_weighted_yield
method of the Payments()
class:
In [1]: from tmval import Payments
In [2]: pmts = Payments(
...: amounts=[100000, 5000],
...: times=[0, 1]
...: )
...:
In [3]: i = pmts.time_weighted_yield(
...: balance_times=[0, 1, 2],
...: balance_amounts=[100000, 105000, 115000],
...: annual=True
...: )
...:
In [4]: print(i)
Pattern: Effective Interest
Rate: 0.0477248077273309
Unit of time: 1 year