For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

Is was wondering how i would go about using PCA in python to create an index i.e. Brexit index or FX sentiment index

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonpca
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
23k 22 9 14

Hello @Justin McQueen,

As the question is asked in Eikon Data API, I would approach the answer from what DAPI makes available. It's a data set, Eikon content, the retrieval is described in Eikon Data API for Python - Reference Guide.

Once the required data, consisting of data set or multiple data sets is retrieved, the data sets can optionally be combined, formatted, presented, analyzed, visualized. These important steps, in my understanding, are outside of Eikon Data API functionality.

By running a quick search on "PCA in Python", I can find useful materials from different sources on how to approach using PCA in Python in general, for example here.

In my understanding, the task such as designing an index, is fairly complex, driven by specific requirements, and in my understanding, more of a custom project, with requirement and scope definition, design, approval, implementation, delivery, then a concise applicable answer.

Having said this, there is an example, that I think can be of some relevance and interest, given your requirement. In Eikon/Refinitiv Workspace, run "Codebook", and go into Example -> 03 - Modeling Sand Box -> see and run pca_yield_curve.ipynb example.

Hope this helps

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea