Machine Learning Analysis on a Diversified Market Neutral Portfolio

The Portfolio

Portfolio Composition:

  • Total 149 Assets that can be aggregated into 4 sectors
  • Sector breakdown:
    • Ags & Livestock: 53
    • Metals: 23
    • Oil: 60
    • Power & Gas: 13
  • Each asset has two datasets (1 for Buy, 1 for Sell)
  • Signal Class: Imbalanced (< 0.30) vs Balanced (>= 0.30)
    • Across all sectors, most of the datasets are imbalanced.
    • Even across Buy vs Sell signal datasets, the signal imbalance distribution is consistent

Analysis Approach

  • For each asset dataset, we modelled 6 algorithms with hyperparameter tuning while using 0.5 as the default threshold for positive predictions.
  • Model Types:
    • Extreme Gradient Boosting (XGBoost)
    • LightGBM (LGBM)
    • CatBoost (CAT)
    • Random Forests (RF)
    • Extra Trees (ET)
    • Decision Tree (DT)
  • Metrics:
    • Minimizing False Positives (FP)
    • Minimizing False Negatives (FN)
  • We focus on ranking each model with a weighted average
    • Minimizing False Positives has a ranking weight of 2 units
    • Minimizing False Negatives has a ranking weight of 1 units
  • Given that each dataset has a unique distribution of binary signals, we perform the ranking across all models for each dataset using both metrics.
  • For a combination of Sector-Signal type, we calculate the average weighted ranking across those datasets, and finalize the ranking of the models.

Observations on the Long Side

General Observations:

  • CAT appears in the top 3 ranking for all 4 sectors
    • Ags & Livestock (Rank 2)
    • Metals (Rank 1)
    • Oil (Rank (3)
    • Power & Gas (1)
  • RF and LGBM appears in the top 3 for 3 sectors
    • RF:
      • Ags & Livestock (Rank 1)
      • Oil (Rank 2)
      • Power & Gas (2)
    • LGBM
      • Ags & Livestock (Rank 3)
      • Metals (Rank 3)
      • Power & Gas (3)
  • XGB and DT tends to be more aggressive in predictions, and are better in minimizing FN. However, due to the higher weightage on minimizing FP, they have a poorer overall weighted rank.
    • See detailed results in next slide
SectorModelFinal RankWeigted Average Rank
Ags & LivestockRF12.9057
CAT23.2925
LGBM33.5031
ET43.6101
XGB53.6258
DT64.0629
MetalsCAT13.0797
ET23.0870
LGBM33.4855
XGB43.6377
RF53.6957
DT64.0145
OilET13.3079
RF23.3139
CAT33.3194
LGBM43.5667
XGB53.6750
DT63.7722
Power & GasCAT12.7949
RF23.0513
LGBM33.5000
ET43.7692
XGB53.8333
DT64.0513

Long Allocations (Detailed Ranking Results)

SectorModelFinal RankWeighted Average RankRank False PositiveRank false Positive WeightWeighted Rank False PositiveRank False NegativeRank False Negative WeightWeighted Rank False Negative
Ags & LivestockRF12.90571.81132075523.62265.09433962315.0943
CAT23.29252.53773584925.07554.80188679214.8019
LGBM33.50313.71698113227.43403.07547169813.0755
ET43.61013.77358490627.54723.28301886813.2830
XGB53.62583.93396226427.86793.00943396213.0094
DT64.06295.226415094210.45281.73584905711.7358
MetalsCAT13.07972.65217391325.30433.93478260913.9348
ET23.08702.17391304324.34784.91304347814.9130
LGBM33.48553.82608695727.65222.80434782612.8043
XGB43.63773.95652173927.9130313.0000
RF53.69573.13043478326.26094.82608695714.8261
DT64.01455.260869565210.52171.5217391311.5217
OilET13.30792.49152542424.98314.94067796614.9407
RF23.31392.90833333325.81674.12514.1250
CAT33.31942.91666666725.83334.12514.1250
LGBM43.56673.85833333327.71672.98333333312.9833
XGB53.67504.31666666728.63332.39166666712.3917
DT63.77224.4528.90002.41666666712.4167
Power & GasCAT12.79491.53846153823.07695.30769230815.3077
RF23.05132.15384615424.30774.84615384614.8462
LGBM33.50003.46153846226.92313.57692307713.5769
ET43.76924.38461538528.76922.53846153812.5385
XGB53.83334.23076923128.46153.03846153813.0385
DT64.05135.230769231210.46151.69230769211.6923

Observations on the Short Side

General Observations:

  • RF & CAT appears in the top 3 ranking for all 4 sectors
    • RF:
      • Ags & Livestock (Rank 1)
      • Metals (Rank 2)
      • Oil (Rank 2)
      • Power & Gas (2)
    • CAT
      • Ags & Livestock (Rank 3)
      • Metals (Rank 3)
      • Oil (Rank 3)
      • Power & Gas (3)
  • ET appears in the top 3 for 3 sectors. However we noted that ET has a tendency to be relatively conservative in predicting any positive signals. This lines up with our focus on minimizing False Positives, but also means that it has sparse/insufficient positive signals.
    • Ags & Livestock (Rank 3)
    • Metals (Rank 1)
    • Oil (Rank (1)
  • LGBM consistently ranks 4th (just outside of the top 3) in 3 sectors, and only had a rank 3 in Power & Gas.
  • XGB and DT tends to be more aggressive in predictions, and are better in minimizing FN. However, due to the higher weightage on minimizing FP, they have a poorer overall weighted rank.
    • See detailed results in next slide
SectorModelFinal RankWeigted Average Rank
Ags & LivestockRF12.9937
CAT23.1698
ET33.3805
LGBM43.5881
XGB53.7170
DT64.1509
MetalsET12.6667
RF22.9855
CAT33.3478
LGBM43.6812
XGB54.0000
DT64.3188
OilET12.6667
RF22.9889
CAT33.3611
LGBM43.6861
XGB54.0750
DT64.1667
Power & GasRF12.6410
CAT23.2821
LGBM33.4615
XGB43.5641
ET53.9487
DT64.1026

Short Allocations (Detailed Ranking Results)

SectorModelFinal RankWeighted Average RankRank False PositiveRank False Positive WeightWeighted Rank False PositiveRank False NegativeRank False Negative WeightWeighted Rank False Negative
Ags & LivestockRF12.99371.943423.88685.094315.0943
CAT23.16982.462324.92454.584914.5849
ET33.38053.047226.09434.047214.0472
LGBM43.58813.905727.81132.952812.9528
XGB53.71704.132128.26422.886812.8868
DT64.15095.5094211.01891.434011.4340
MetalsET12.66671.000022.00006.000016.0000
RF22.98552.000024.00004.956514.9565
CAT33.34783.130426.26093.782613.7826
LGBM43.68123.913027.82613.217413.2174
XGB54.00005.0000210.00002.000012.0000
DT64.31885.9565211.91301.043511.0435
OilET12.66671.000022.00006.000016.0000
RF22.98892.000024.00004.966714.9667
CAT33.36113.100026.20003.883313.8833
LGBM43.68614.183328.36672.691712.6917
XGB54.07505.0833210.16672.058312.0583
DT64.16675.5500211.10001.400011.4000
Power & GasRF12.64101.307722.615385.3076915.3077
CAT23.28212.307724.615385.2307715.2308
LGBM33.46153.538527.076923.3076913.3077
XGB43.56413.769227.538463.1538513.1538
ET53.94874.846229.692312.1538512.1538
DT64.10265.2308210.46151.8461511.8462

Conclusions

  • We focused our ranking based on two primary metrics with a weighted ranking
    • Minimizing False Positives (2 rank units)
    • Minimizing False Negatives (1 rank unit)
  • Based on the ranking procedure, in general, there’s no model algorithm that outperforms the others consistently.
  • However, CAT, RF and LGBM tends to perform better than the others
  • XGBoost and DT tends to be more aggressive in making predictions. This tends to minimizes FN, but makes it more likely to increase FP.
  • ET has been observed to be too “conservative” in its nature. While it may outrank other models in terms of minimizing FP, it does not produce sufficient positive signals.
Share your Perspectives