Setting up a group
Priya Shah, a risk analyst at Northgate Energy, wants the correlations and covariances of the desk's main prices every evening for the value at risk model, plus a weekly correlation and this year's statistics for the monthly risk pack. This page follows her set-up.
1. Make a group
The Matrix Generator works on a group of curves and timeseries (a group of the data service). Priya already has the group Northgate hubs on the Groups screen (see the Group Manager to make one), with:
| Item | What it is |
|---|---|
NGE.GAS.TTF:MID | TTF front month |
NGE.GAS.NBP:MID | NBP front month |
NGE.EUA:SETTLE | EU carbon |
NGE.POWER.DE:BASE | German power base, a curve |
NGE.OIL.BRENT:SETTLE | Brent |
NGE.POWER.DE:SPOT | German power spot |
NGE.COAL.API2:SETTLE | API2 coal, a new series with a short history |
Open it in either of two ways:
- Groups, choose the group, Apps > Matrix Generator, or
- Data > Matrix Generator > Set up a group, and Set up beside the group.

A group that is not set up yet starts with a correlation and a covariance matrix, and nothing is saved until you select Save.
2. Choose where to save the matrices
On the Matrices tab, under Where and when:

| Field | Example | Notes |
|---|---|---|
| Master data record | NGE.RISK | Start typing to search your private master data. If the record does not exist yet, select Create it and give it a name |
| Ondate of a scheduled run | The day it runs | Or The weekday before, for a run early in the morning that should build yesterday's matrices |
| Curve tenors | M01 | The relative tenors read from curves, such as M01, M02, Q01 or a range such as M01-M06. Each tenor of each curve is a row and column of its own; the line under the field lists the tenors it reads. Each curve can have its own on the Items tab |
| Rows and columns are called | By the items' names | Or by their ids. Any item can have its own name on the Items tab |
3. Choose the matrices
Each card is one matrix. Add more with + Correlation, + Covariance and + Statistics; Duplicate copies a card with all its settings, the arrows change the order and Build it switches one off without losing its settings.

| Field | Example | Notes |
|---|---|---|
| Key | CORRELATION | Saved on the record as NGE.RISK:CORRELATION. Capital letters, digits and _; each key once |
| Kind | Correlation | Correlation, covariance or statistics |
| Name | (empty) | The matrix's name on the record; empty gives "Correlation of Northgate hubs" |
| Worked out on | Log returns | See Values and changes |
| Frequency | Daily | Or the last date of each week or month |
| Window | A number of days, 90 | See Windows |
| At least | 20 | The matrix is not saved with fewer observations |
| Leave out items with fewer than | 20 | Keeps a short series from shortening the window for every item |
| Carry values over gaps of | 1 | Lets an item's last value stand in over a holiday |
| Annualise, Periods a year | On, 252 | Covariance only |
Priya's four matrices:
| Key | Kind | Settings |
|---|---|---|
CORRELATION | Correlation | Daily log returns, 90 days, at least 20, gaps of 1 |
COVARIANCE | Covariance | The same, annualised with 252 periods a year |
CORR_WEEKLY | Correlation | Weekly returns, the last 26 observations, named "Weekly correlation of Northgate hubs" |
STATISTICS | Statistics | Daily, the year to date, every statistic |
For a statistics matrix, tick the statistics you want; the line under each card says in words what will be built.

4. Check the items
The Items tab lists the group's items. Untick one to leave it out, give a curve its own tenors (M02 for the second month only, or M01-M03, Q01 for several), or give any item its own name in the matrices: Priya calls NGE.EUA:SETTLE simply EUA. After a preview, the tab also shows how many values each item has, for each tenor of a curve.

To see how the German power curve's months and first quarter move together, Priya gives NGE.POWER.DE:BASE the tenors M01-M03, Q01 and the name DE base. The curve then gives four rows and columns, DE base M01 to DE base Q01:

To add or remove items, change the group on the Groups screen: the next run uses the group as it is then.
5. Save
Select Save. The settings are kept on the group itself, so they go wherever the group goes, and a run always uses the settings saved last. Anything that would stop the matrices being built (no record, a key used twice, a fixed window that ends before it starts) is listed in red, and nothing is saved until it is put right.
Before you schedule it, preview the matrices to check the number of observations and the items left out.