Message Boards Message Boards

[WSS20] Persistent Homology

Posted 4 years ago

The barcode diagram and filtration from data sampled from a sphere

POSTED BY: Andrew Ortegaray
4 Replies

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Posted 3 years ago

Hi Andrew I am trying to apply Persistent Homology to stocks. Trying the example below I get an error message but clicking on that message or searching for the strong does not show any answers as to how to resolve. The examples show using point cloud data while stocks are time series. Do I need to perform some transformation first in an interim step? Thank you regards Warren

data = FinancialData["SBUX", "Close", {{2013, 1, 1}, {2013, 12, 1}, "Week"}, Method -> "WDF"]

ph = ResourceFunction["PersistentHomology"][data]

Error message is Syntax :Expression "ResourceFunction[PersistentHomology][data] has no closing ].

POSTED BY: Warren Tou
Posted 3 years ago

From the documentation

works for any dataset where the ei are numerical lists of the same length.

FinancialData returns {DateObject, Quantity}. One way to convert to numerical

numerical = Normal@data /. {d_, v_} :> {UnixTime@d, QuantityMagnitude@v}

But

ResourceFunction["PersistentHomology"][numerical]

seems to hang at "Reducing Boundary Matrix" 6 / 8

POSTED BY: Rohit Namjoshi
Posted 3 years ago

Thank you - I get similar errors Rohit.

POSTED BY: Warren Tou
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract