betagainst

Finance and crypto

stock correlation finder

SHOW HN2022

217points
143comments
#252of 2,570 in 2022
Top 10%of 2022 by points

How HN took it

CuriousMostly questions and neutral comments

5 positive, 26 neutral or asking, 5 mixed, 14 critical, out of 50 comments about the project. Thread score -0.20.

Idea: 3 for, 6 againstExecution: 1 for, 6 againstPerformance: 0 for, 2 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

Objections

  • Correlation is an unreliable basis for hedging and betting; correlations change over time

    From 3 comments
    • Couple of random thoughts: - Building things like this is always great. And its a fun site to poke around on. - I would not count on this approach or expect it to be reliable in…
      HFguy on HN
    • "We calculate the correlations between 2 securities on the daily closing values of the last 20 years." It's better to correlate daily returns than daily prices, since the latter…
      Bostonian on HN
    • Correlation between assets change over time. Predicting what the correlation will be in the future is important for asset managers. I am supervising a master thesis project (in…
      surfsvammel on HN
  • Splits and dividends are not handled correctly, producing wrong results

    From 3 comments
    • Well this tool does not cater for splits and dividends :-/ very misleading IMO
      flying_sheep on HN
    • This tool does not correctly handle stock splits and thus all the correlations it produces are wrong for any stock that has ever had a split or a reverse split. It shows a split…
      dmitrygr on HN
    • Data source? Did you correct for splits and dividends? Why not use returns? Nice idea, but we’re left with so many questions.
      Def_Os on HN
  • Server timeouts and rate-limit errors under load

    From 4 comments
    • Super useful! However, I get a “504 Gateway Time-out” error for https://betagainst.fun/asset/bz__f_bno/. HN hug of death?
      runeks on HN
    • Getting 429 status codes after I hit search
      daxaxelrod on HN
    • HN Hug of Death continues. 503 and 504 all morning. Congrats?
      TradingPlaces on HN
    • This is a really great idea, unfortunately also getting 504s.
      dom96 on HN
  • Index funds like S&P 500 and DJI give meaningless results

    From 2 comments
    • Very cool, although index funds like S&P 500 and DJI don't seem to work. https://betagainst.fun/asset/_gspc_spy/ https://betagainst.fun/asset/_dji_dia/
      vortico on HN
    • That doesn't make any sense anyway. You're asking what are the highest and lowest correlations of the market against the market itself. You cannot compare the same or roughly the…
      andrewmcwatters on HN

Requests

  • Use daily returns instead of prices, and a shorter window than 20 years

    From 1 comment
    • "We calculate the correlations between 2 securities on the daily closing values of the last 20 years." It's better to correlate daily returns than daily prices, since the latter…
      Bostonian on HN
  • Add lagged correlations

    From 2 comments
    • Are you also considering time lagged correlations? To me I don't care if a certain stock is correlated by something, I would more like to know which stocks do have correlations…
      karxxm on HN
    • I want LAGGING correlation please thanks.
      matt321 on HN
  • Add cointegration as well as correlation

    From 2 comments
    • I wonder if correlation is the best measure. Cointegration might be more important for this sort of trading. And might be a supplementary measure you want to add since you’re…
      omarhaneef on HN
    • Great project! Even more so, congrats on shipping something! A little tip from someone who dabbles in algorithmic trading, look into cointegration as well as correlation. Also,…
      loxias on HN
  • Support more tickers, indices, currencies and commodities

    From 4 comments
    • Does this support all publicly listed tickers? It didn't seem to find the few I searched for.
      lbhdc on HN
    • "any stock"? First two I tried are not available.
      ltbarcly3 on HN
    • Cool. Not sure how useful it is considering what other commenters said, but is there anything like this for indices or currencies? Also, typo: Higest -> Highest
      throwamon on HN
    • Nice. I've been stewing on a similar idea but that finds correlations in equities with commodity futures.
      c_o_n_v_e_x on HN

Questions

  • Where does the data come from and is it split and dividend adjusted

    From 2 comments
    • Where do you get your data from?
      throwaway4good on HN
    • Data source? Did you correct for splits and dividends? Why not use returns? Nice idea, but we’re left with so many questions.
      Def_Os on HN

Alternatives named

  • Beta calculations and risk models

    From 2 comments
    • Couple of random thoughts: - Building things like this is always great. And its a fun site to poke around on. - I would not count on this approach or expect it to be reliable in…
      HFguy on HN
    • The correlation of an asset to the market is the definition of 'beta' and it is not technical analysis (from investopedia): "Beta is a measure used in fundamental analysis to…
      JackFr on HN
  • Factor.fyi SQL correlation query

    From 1 comment
    • This is pretty easy to do in SQL too! https://factor.fyi/questions/top-10-aapl-correlating-stocks-s7v8xk0nsu
      sdcoffey on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/31247312)