Skip to main content

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:

ItemWhat it is
NGE.GAS.TTF:MIDTTF front month
NGE.GAS.NBP:MIDNBP front month
NGE.EUA:SETTLEEU carbon
NGE.POWER.DE:BASEGerman power base, a curve
NGE.OIL.BRENT:SETTLEBrent
NGE.POWER.DE:SPOTGerman power spot
NGE.COAL.API2:SETTLEAPI2 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.

Choosing a group to set up

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:

Where and when, and the first matrices

FieldExampleNotes
Master data recordNGE.RISKStart 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 runThe day it runsOr The weekday before, for a run early in the morning that should build yesterday's matrices
Curve tenorsM01The 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 calledBy the items' namesOr 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.

A correlation matrix

FieldExampleNotes
KeyCORRELATIONSaved on the record as NGE.RISK:CORRELATION. Capital letters, digits and _; each key once
KindCorrelationCorrelation, covariance or statistics
Name(empty)The matrix's name on the record; empty gives "Correlation of Northgate hubs"
Worked out onLog returnsSee Values and changes
FrequencyDailyOr the last date of each week or month
WindowA number of days, 90See Windows
At least20The matrix is not saved with fewer observations
Leave out items with fewer than20Keeps a short series from shortening the window for every item
Carry values over gaps of1Lets an item's last value stand in over a holiday
Annualise, Periods a yearOn, 252Covariance only

Priya's four matrices:

KeyKindSettings
CORRELATIONCorrelationDaily log returns, 90 days, at least 20, gaps of 1
COVARIANCECovarianceThe same, annualised with 252 periods a year
CORR_WEEKLYCorrelationWeekly returns, the last 26 observations, named "Weekly correlation of Northgate hubs"
STATISTICSStatisticsDaily, 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.

A statistics matrix


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.

The Items tab

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:

A curve read at four tenors

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.

tip

Before you schedule it, preview the matrices to check the number of observations and the items left out.


Next​

Preview the matrices, then schedule them.