Message Boards Message Boards


[WSS20] Persistent Homology

Posted 2 years ago
4 Replies
13 Total Likes

The barcode diagram and filtration from data sampled from a sphere

POSTED BY: Andrew Ortegaray
4 Replies
Posted 1 year 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

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}



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

POSTED BY: Rohit Namjoshi
Posted 1 year ago

Thank you - I get similar errors Rohit.

POSTED BY: Warren Tou

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 and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: Moderation Team
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract