Hi, Shrewd!        Login  
Shrewd'm.com 
A merry & shrewd investing community
Best Of MI | Best Of | Favourites & Replies | All Boards | Post of the Week!
Search MI
Shrewd'm.com Merry shrewd investors
Best Of MI | Best Of | Favourites & Replies | All Boards | Post of the Week!
Search MI


Investment Strategies / Mechanical Investing
Unthreaded | Threaded | Whole Thread (2) |
Post New
Author: lizgdal   😊 😞
Number: of 3957 
Subject: Finance with Real Estate Sectors: SIP changes and
Date: 12/08/2024 5:58 PM
Post Reply | Report Post | Recommend It!
No. of Recommendations: 8
Either [FINandREs] or [FinREa] can be used with the new SIP data, and have about 92% overlap.

FINwithRE: pref(if(trbc2.s=55!60,1,0),if(sector.s=7,1,if(incd.s=933,1,0)))
FINwithRE2024: pref(if(trbc2.s=40!60,1,0),FINwithRE)
FINandREs: if(ord(1)>=26081,FINwithRE2024,FINwithRE)

FinREa: if(fincd12.a=11,1,0)

=======================
Details:

TopLineFirst posted a field to handle the 2018 SIP industry change:
FINwithRE: pref(if(trbc2.s=55!60,1,0),if(sector.s=7,1,if(incd.s=933,1,0)))
http://www.datahelper.com/mi/search.phtml?nofool=y...

After the 20241001 SIP industry change, the Finance and Real Estate Sectors are trbc2.s=40!60. New fields to handle this change:

FINwithRE2024: pref(if(trbc2.s=40!60,1,0),FINwithRE)
FINandREs: if(ord(1)>=26081,FinanceRE2024,FINwithRE)

The ordinal date of Tuesday 20241001 is 26079, but Thursday 26081 gives smoother stock counts.
The number of S&P 1500 stocks in the Finance and Real Estate sectors increased from 217 to 343 in the last 20 years (using SIP data), and jumped to 368 with the new SIP data.


[fincd12.a] can also be used to find Finance and Real Estate stocks. Note that [fincd12.a]=11 includes most Real Estate stocks (styp.a=18!48):
FinREa: if(fincd12.a=11,1,0)

=======================
The screen {FINandRE2024} compares the 2 lists of stocks created by the fields [FINandREs] and [FinREa]. Stocks passing step2 are the union of the 2 lists. Stocks passing step3 are the intersection of the 2 lists. The Jaccard Index (intersection size over union size) is also calculated.

Define {FINandRE2024}
Create [sumFlags]: [[FINandREs] + [FinREa]]
Create [JaccardIndex]: [[# Eligible at step4]/[# Eligible at step3]]
step0: [S&P 1500 Member] == 1
step1: [Max([SI Sales Q1], [SI Sales Y1])] > 0
step2: [sumFlags] >= 1
step3: [sumFlags] == 2
step4: [JaccardIndex] != -987
https://gtr1.net/2013/?~FINandRE2024::sp1500.a:et1...


The Jaccard Index (IoU) using [FINandREs] and [FinREa] is about 90%.

                      IoU      IoU
From To Average StdDev
19970902 20011009 88% 4%
20011010 20140126 93% 2%
20140127 20181028 86% 1%
20181029 20241006 91% 1%
20241007 20241205 88% 0%

Print the post


Author: platykurtic   😊 😞
Number: of 3957 
Subject: Re: Finance with Real Estate Sectors: SIP changes and
Date: 12/15/2024 2:46 PM
Post Reply | Report Post | Recommend It!
No. of Recommendations: 2
Of course as I'm an idiot there's one small error and so the reply post should be...

Using the great work lizgdal has done above it's possible to formulate a 'drop in' replacement for FINwithRE that uses the GCIS coding in the TRBC2 field for dates after 20240930 & the TRBC coding for dates before that as long as there's data (and before that the sector.s & incd.s coding that was in place then). That is ...

FINwithRE: pref(if(ord(1)>=26079,if(trbc2.s=40!60,1,0),if(trbc2.s=55!60,1,0)),if(sector.s=7,1,if(incd.s=933,1,0)))


... should act as a single line 'drop in' replacement for both screening & back-testing. It essentially does SI-Pro pieces that lizgdal outlined in the first post within the original pref() statement.

Apologies - I don't use that field and so was unable to check it that thoroughly.
Platy
Print the post


Post New
Unthreaded | Threaded | Whole Thread (2) |


Announcements
Mechanical Investing FAQ
Contact Shrewd'm
Contact the developer of these message boards.

Best Of MI | Best Of | Favourites & Replies | All Boards | Followed Shrewds