|












| |
JLMSim: Trace File Output Description
One of the output files produced by the run with input to be found now in
JLMSimInput for Case M23a NrS16NrIT8_1000_50_200NL -1.txt
is the Trace File
Trace file for Case M23a NrS16NrIT8_1000_50_200NL -1.txt
PART I: INITIAL CONDITIONS
The Trace File has two parts. The first part provides details about conditions at the start of the run. The second provides details concerning the course of the run.
We describe the first part in this section and the second part in the next.
The part of the Trace File begins with parameters used in historical return
generation, such as the following:
| Factor Nr. |
Daily Mean |
Daily Std Dev |
| 0 |
0.000000 |
0.001500 |
| 1 |
0.000000 |
0.000750 |
| Sec Nr. |
Alpha |
IdSigma |
Volume |
Betas: |
0 |
1 |
| 0 |
0.000260 |
0.0015 |
10000 |
|
0.900 |
1.200 |
| 1 |
0.000300 |
0.0030 |
10000 |
|
1.100 |
1.300 |
| 2 |
0.000260 |
0.0015 |
10000 |
|
0.900 |
1.200 |
| 3 |
0.000300 |
0.0030 |
10000 |
|
1.100 |
1.300 |
| 4 |
0.000260 |
0.0015 |
10000 |
|
0.900 |
1.200 |
*********************************************************************
The first output items are the means and standard deviations of the factors used in the factor model for generating initial returns. The second is a table showing
the alphas, betas and standard deviations of idiosyncratic risk used in the factor
model. The average volume of the security, before simulation, is also shown for
each security. (This an input; see
Input File Documentation.)
The next output gives each statistician's initial estimates of the means, variances and covariances
of each security, as illustrated below for Statistician 0:
Statistics after initialization
Statistician Nr. 0
| Means: |
|
|
|
|
|
|
|
|
|
| 0.050000 |
0.125000 |
0.050000 |
0.125000 |
0.050000 |
0.125000 |
0.050000 |
0.125000 |
0.050000 |
... |
| |
|
|
|
|
|
|
|
|
|
| Covariances: |
|
|
|
|
|
|
|
|
|
| 0.001316 |
0.000932 |
0.000886 |
0.001080 |
0.000667 |
0.001004 |
0.000780 |
0.001004 |
0.000772 |
... |
| 0.000932 |
0.003318 |
0.001085 |
0.001212 |
0.000851 |
0.001295 |
0.001072 |
0.001319 |
0.000882 |
... |
| 0.000886 |
0.001085 |
0.001410 |
0.001162 |
0.000758 |
0.001150 |
0.000933 |
0.001125 |
0.000872 |
... |
| 0.001080 |
0.001212 |
0.001162 |
0.003733 |
0.001057 |
0.001324 |
0.001206 |
0.001417 |
0.001194 |
... |
The next output in the Trace File shows the expected return vectors initially used
by each portfolio analyst, including the expected returns to short positions
inclusive of
rebates. In the headings, a long position in Security 0 is denoted L 0, a short position
S 0. "Slack" is a variable that appears in the optimization and represents the difference between allowed and used L + |S|. (See Input File Documentation.)
Expected return vectors used by Portfolio Analysts
Portfolio SecNr:
| Analyst |
L 0 |
L 1 |
... |
Cash |
Debt |
Slack |
S 0 |
S 1 |
|
| 0 |
0.050 |
0.125 |
... |
0.030 |
-0.060 |
0.000 |
-0.0425 |
-0.1175 |
... |
| 1 |
0.075 |
0.100 |
... |
0.030 |
-0.060 |
0.000 |
-0.0675 |
-0.0925 |
... |
The next two tables present material concerning the initial mean-variance efficient
frontiers computed by each of the portfolio analysts. A mean-variance efficient
frontier is piece-wise linear (in portfolio space). Each of these pieces is called an
efficient segment. The end points of efficient segments are called corner portfolios.
The first table (shown, in part, below) gives for each portfolio analyst in turn
information about each of the efficient segments in the portfolio analyst's frontier.
(Only the "lowest" five segments, i.e., the segments with lowest portfolio mean and
variance, for the Portfolio Analyst 0 are reproduced below.) The third through
sixth items of information shown are the highest and lowest means and standard deviations of portfolios on
each segment. The first and second
items of information are the lowest and highest "LambdaE"s on each segment, where LambdaE equals the slope of a curve with 1/2 times variance on the vertical axis
and expected return on the horizontal axis. This varies linearly along any efficient
segment. It is possible to have LambdaE (and some other Lagrangian multipliers) vary
on an efficient segment, while the portfolio remains unchanged. This appears as a kink in
the set of efficient mean-standard deviation combinations. The last column of the
first table indicates whether there is kink in the latter curve at this point.
Initial efficient frontiers
Portfolio Analyst 0
| Low LambdaE |
High LambdaE |
Low E |
Low Sigma |
High E |
High Sigma |
Segment Type |
| 0.000000 |
0.006305 |
0.030 |
0.0001 |
0.086 |
0.0188 |
not a Kink |
| 0.006305 |
0.006564 |
0.086 |
0.0188 |
0.087 |
0.0192 |
not a Kink |
| 0.006564 |
0.009934 |
0.087 |
0.0192 |
0.103 |
0.0250 |
not a Kink |
| 0.009934 |
0.010099 |
0.103 |
0.0250 |
0.104 |
0.0253 |
not a Kink |
| 0.010099 |
0.011704 |
0.104 |
0.0253 |
0.104 |
0.0253 |
not a Kink |
The next table of the two describing initial efficient portfolios shows, for each
portfolio analyst in turn, the holdings in each corner portfolio on the analyst's
frontier, listed from most cautious to most aggressive. Holdings include long positions, short positions,
cash, debt and slack, as illustrated below for Portfolio Analyst 0.
Initial corner portfolios
Holdings
Portfolio Analyst 0
| CP Nr. |
L 0 |
L 1 |
... |
Cash |
Debt |
Slack |
S 0 |
S 1 |
... |
| 22 |
0.00000 |
0.00000 |
... |
1.00000 |
0.00000 |
1.50000 |
0.00000 |
0.00000 |
... |
| 21 |
0.00000 |
0.12226 |
... |
0.12805 |
0.00000 |
0.00000 |
0.05112 |
0.00000 |
... |
| 20 |
0.00000 |
0.12383 |
... |
0.11878 |
0.00000 |
0.00000 |
0.04876 |
0.00000 |
... |
| 19 |
0.00000 |
0.14286 |
... |
0.00542 |
0.00000 |
0.00000 |
0.00939 |
0.00000 |
... |
| 18 |
0.00000 |
0.14363 |
... |
0.00000 |
0.00000 |
0.00000 |
0.00732 |
0.00000 |
... |
II. REPORTS PRODUCED DURING THE SIMULATION RUN
Once the simulation run begins, two events produce trace output. One is the end-of-day event; the other is the time for reoptimization for investors who
have been selected for trace output. (See Input File Documentation
for a description of how individual investors are selected to be traced.)
The following is an example of the report produced for an investor-to-be-traced
at reoptimization time if the investor is OK (not currently defunct or subject to a
margin call):
Reoptimization for Investor with Template 7 Seq Nr. 37 at 0.032108
| Starting wealth |
7736050.34 |
|
Deposits received |
0.00 |
|
Withdrawals paid |
109204.10 |
| Withdrawals due |
0.00 |
|
Net DorW |
-109204.10 |
|
|
|
| Current wealth |
7626846.24 |
|
Account status |
0 |
|
|
|
| sec |
x_units |
x_value |
x_fraction |
x_ideal |
d_fraction |
Price |
d_units |
| 0 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 1 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 2 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 3 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 4 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 5 |
2418.0 |
483600 |
0.06341 |
1.50000 |
0.04567 |
200.00 |
1741 |
| 6 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 7 |
2418.0 |
455164 |
0.05968 |
0.00000 |
-0.00190 |
188.24 |
-76 |
| 8 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 9 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 10 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 11 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 12 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 13 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 14 |
2418.0 |
483600 |
0.06341 |
0.00000 |
-0.00202 |
200.00 |
-76 |
| 15 |
2418.0 |
455164 |
0.05968 |
0.00000 |
-0.00190 |
188.24 |
-76 |
| 16 |
0.0 |
0 |
0.00000 |
0.00000 |
0.00000 |
1.00 |
0 |
| 17 |
110753.8 |
-110754 |
-0.01452 |
0.50000 |
0.00000 |
-1.00 |
0 |
**************************************************************************************
The heading for the report notes the investor's template, sequence number, and the
time of the report. Additional heading information includes the investor's starting
wealth, deposits received, withdrawals paid, withdrawals requested but not yet paid,
the difference between deposits received and withdrawals requested (whether paid or due),
the current wealth of the investor, and account status. Account status may be:
0 for OK,
1 for currently subject to margin call, or
2 for defunct.
The body of the report provides information concerning the investor's holdings and
intentions for each security. For each of the sixteen user-defined securities of
this run, numbered 0 through 15, the report displays security number, number of shares
(x_units) currently held, the current value of these shares, the fraction this represents
of the investor's portfolio, the fraction that the optimization says is ideal, the fraction of
the portfolio
that the investor will attempt to buy (+) or
sell (-) after considering turnover dampening rules, the current price of the security,
and the number of shares that the investor will attempt to buy or sell. In this output,
short positions are represented as negative x_units.
Securities 16 and 17 of
this run are cash and debt, respectively. The latter figures reflect the fact that
random deposits or withdrawals have been decided by this point in the code, but no transactions
have yet taken place. Cash and debt always have a price of 1.0 and -1.0 respectively.
No d_fraction or d_units (buys or sells) are noted for cash. There is an inconsistency
in this report in that x_value and x_fraction for Debt is reported with a minus sign,
whereas x_ideal is reported (as it appears in the optimization calculation) with a
plus sign. Thus the last line of the table should be interpreted as follows:
investor 7-37 currently has debt equal to 1.452 percent of the equity in the account but,
according to the optimization calculation, would like to increase this to 50 percent of
the equity in the account. The increase in debt sought this time is not listed in
the Security 17 row under d_units. Rather it is implicit in the fact that the value of
the purchase sought this time exceeds the sum of the values of the sales sought.
In the present case, none of the traced investors had a margin call in effect at the time
a reoptimization would normally occur for the investor; nor did any become
defunct. The tables below (taken from Case M23a NrS16NrIT8_1000_500_600 -1) give
illustrations of the cases for a margin call at reoptimization and a defunct
investor.
EXAMPLE 1:
Usual reoptimization time for Investor with Template 0 Seq Nr. 204 at
310.424862
| Starting Wealth |
138966137.43 |
|
Deposits Received |
63730534.56 |
|
Withdrawals Paid |
51402396.60 |
| Withdrawals Due |
0.00 |
|
Net D or W |
12328137.97 |
|
|
|
| Current Wealth |
23443018.26 |
|
Account Status |
1 |
|
|
|
|
Security |
x_Units |
|
0 |
0.0 |
|
1 |
7617.0 |
|
2 |
0.0 |
|
3 |
0.0 |
|
4 |
0.0 |
|
5 |
-10562.0 |
|
6 |
0.0 |
|
7 |
0.0 |
|
8 |
0.0 |
|
9 |
0.0 |
|
10 |
0.0 |
|
11 |
6236.0 |
|
12 |
0.0 |
|
13 |
0.0 |
|
14 |
3393.0 |
|
15 |
4769.0 |
|
16 |
17448572.2 |
|
17 |
0.0 |
*********************************************************************************************
Security 5's price exceeds $10,000 at the time of the above report. Thus the investor
is short over $100,000,000 worth of Security 5. The account includes an equal
amount of "cash" as collateral against the short position (not shown as part of
the over $17 million held in cash, represented by Security 16). The investor still has a net worth of over
$23 million; but this is not sufficient to avoid a margin call with total
positions, long + |short|, well over $100million.
EXAMPLE 2:
Usual reoptimization time for Investor with Template 1 Seq
Nr. 50 at 364.203056
| Starting Wealth |
93637439.56 |
|
Deposits Received |
3277543.67 |
|
Withdrawals Paid |
10387731.85 |
| Withdrawals Due |
0.00 |
|
Net D or W |
-7110188.18 |
|
|
|
| Current Wealth |
-3488440.12 |
|
Account Status |
2 |
|
|
|
|
Security |
x_Units |
|
0 |
0.0 |
|
1 |
0.0 |
|
2 |
0.0 |
|
3 |
0.0 |
|
4 |
0.0 |
|
5 |
0.0 |
|
6 |
0.0 |
|
7 |
0.0 |
|
8 |
0.0 |
|
9 |
0.0 |
|
10 |
0.0 |
|
11 |
0.0 |
|
12 |
0.0 |
|
13 |
0.0 |
|
14 |
0.0 |
|
15 |
0.0 |
|
16 |
0.0 |
|
17 |
3488440.1 |
The above investor is defunct. At the time the last of its assets were sold (or
short positions covered) it still owed $3,488,440.This amount has been
transferred from debt outstanding to bad debt in the macro statistics.
In addition to reports at reoptimization time for each investor marked for tracing, the
Trace File includes a System Summary Report for the end of each simulated day. The following
is an example from Case M23a NrS16NrIT8_1000_50_200NL -1:
End of day 407.000000 TotalBorrowing= 578212457 TotalLending= 712276978
TotalBadDebt= 0
TotalWithDrawals_due= 65422
| |
............Buy List................. |
|
................Sell List............... |
Security
Number |
Size |
Low |
High |
|
Size |
Low |
High |
|
Trade
Price |
Current
Price |
Trade
Time |
Tick |
| 0 |
93 |
177.91 |
185.07 |
|
183 |
186.88 |
188.77 |
|
185.07 |
185.07 |
407.97 |
up |
| 1 |
569 |
190.16 |
210.25 |
|
246 |
212.32 |
214.46 |
|
210.25 |
210.25 |
407.99 |
up |
| 2 |
18 |
160.34 |
163.56 |
|
889 |
163.61 |
178.29 |
|
163.61 |
163.61 |
407.97 |
down |
| 3 |
848 |
185.18 |
192.70 |
|
0 |
-1.#J |
1.#J |
|
190.85 |
192.70 |
407.98 |
up |
| 4 |
0 |
-1.#J |
1.#J |
|
1035 |
152.68s |
165.04 |
|
152.68 |
152.68 |
407.83 |
down |
| 5 |
475 |
161.94 |
165.20 |
|
530 |
165.24 |
180.91 |
|
165.24 |
165.24 |
408.00 |
down |
| 6 |
92 |
180.75 |
184.44 |
|
27 |
184.48 |
186.34 |
|
184.48 |
184.48 |
408.00 |
up |
| 7 |
26 |
198.08 |
202.04 |
|
28 |
202.12 |
214.66 |
|
202.04 |
202.04 |
408.00 |
down |
| 8 |
1173 |
167.32 |
183.28 |
|
0 |
-1.#J |
1.#J |
|
183.28 |
183.28 |
407.89 |
up |
| 9 |
738 |
174.95 |
190.01 |
|
184 |
191.87 |
193.81 |
|
190.01 |
190.01 |
408.00 |
up |
| 10 |
75 |
168.77 |
180.91 |
|
0 |
-1.#J |
1.#J
|
|
180.91 |
180.91 |
408.00 |
up |
| 11 |
152 |
151.21 |
154.30 |
|
38 |
154.30s
|
159.16 |
|
154.30 |
154.30 |
408.00 |
down |
| 12 |
202 |
187.48 |
198.90 |
|
253 |
200.85 |
202.88 |
|
198.90 |
198.90 |
408.00 |
up |
| 13 |
503 |
190.64 |
202.46 |
|
308 |
204.44
|
206.51 |
|
202.46 |
202.46 |
408.00 |
up |
| 14 |
67 |
175.81 |
179.35 |
|
780 |
179.40 |
196.55 |
|
179.40 |
179.40 |
407.84 |
down |
| 15 |
288 |
166.39 |
169.73 |
|
699 |
169.79 |
185.71 |
|
169.79 |
169.79 |
407.84 |
down |
This end-of-day
report includes total borrowing, total lending, total bad debt, and
total withdrawals due for the entire system. It also shows, for each security, the number of
limit orders on the Buy Book, the highest and lowest bids among these, and similar
information for the Sell Book. It also shows, for each security, the price at
which it last traded and its current price. The latter may differ from the
former when the last trade price is below the best bid or above the best offer.
Further information for each security is the (day and) time it last traded, and
whether it is currently on an up or down tick. The "s" following the best offer
for security 11 indicates that this offer is a short sale. No trade takes place
even though the best bid equals the best offer, since the trade would have to
take place at $154.30, the last trade price, and the security is currently on a
down tick.
Back to Top |