Parameter Combinations and Optimisation Flashcards

1
Q

Counting Parameters

A

If there are n parameters, and each takes at least k values, then there are at least k^n parameter combinations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Optimisation Criteria / Fitness Function

A
  • maps trading results to fitness.
  • higher fitness means better trading strategy results.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Example Fitness Function

A

Profit or return; normally one would incorporate risk too, e.g., via the Sharpe ratio.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Grid Search

A

We define allowable parameter values for each parameter individually, and then look at all combinations.
For a grid search, we must specify parameter ranges for each parameter individually.
We focus on regularly-spaced sequences as returned by the seq function, therefore we need to decide on:
- Endpoints
- Increments

We should also evaluate all parameter combinations.
This is a 2d grid for two parameters, in general a hypergrid, as an example.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Regularly-Spaced Sequences

A

These are sequences of values that are evenly distributed across a specified range.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Endpoints

A

The from and to arguments to seq.
Some parameters have natural upper/lower bounds.
The size of a moving average window is
* lower bounded by 0.
* upper bounded by the length of historical data available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Increments

A

Suppose you have already decided on endpoints:

  1. Estimate backtest time for one parameter combination.
  2. Based on how long you have to run the backtest determine the number of parameter combinations to test.
  3. Test the same number of parameter values for each parameter to achieve a total close to the target
How well did you know this?
1
Not at all
2
3
4
5
Perfectly