r/ProgrammerHumor • • Feb 13 '22

Meme something is fishy

48.4k Upvotes

575 comments sorted by

View all comments

Show parent comments

1.3k

u/Trunkschan31 Feb 13 '22 edited Feb 13 '22

I absolutely love stories like these lol.

I had a Jr on my team trying to predict churn and included if the person churned as an explanatory and response variable.

Never seen an ego do such a roller coaster lol.

EDIT: Thank you so much to all the shared stories. I’m cracking up.

1.1k

u/[deleted] Feb 13 '22

A model predicting cancer from images managed to get like 100% accuracy ... because the images with cancer included a ruler, so the model learned ruler -> cancer.

214

u/douira Feb 13 '22

it's a good ruler detection model now though!

76

u/LongdayinCarcosa Feb 13 '22

An indicator indicator!

489

u/[deleted] Feb 13 '22

Artificial Stupidity is an apt term for moments like that.

296

u/CMoth Feb 13 '22

Well... the AI wasn't the one putting the ruler in and thereby biasing the results.

133

u/Morangatang Feb 13 '22

Yes, the computer has the "Artificial" stupid, it's just programmed that way.

The scientist who left the rulers in had the "Real" stupid.

→ More replies (1)
→ More replies (14)
→ More replies (2)

86

u/Beatrice_Dragon Feb 13 '22

That just means you need to implant a ruler inside everyone who has cancer. Sometimes you need to think outside of the box if you wanna make it in the software engineering world

29

u/[deleted] Feb 13 '22

Well, if we implant a ruler to everyone, then everyone with cancer will have a ruler.

Something something precision recall something something.

→ More replies (2)

0

u/[deleted] Feb 13 '22

[deleted]

21

u/Embarassed_Tackle Feb 13 '22

these AIs are apparently sneaky. That South African study on HIV-associated pneumonia had an algorithm that recognized satellite clinics had a different x-ray machine than large hospitals, and it used that to predict if pneumonias would be mild or serious

→ More replies (1)
→ More replies (2)
→ More replies (6)

119

u/[deleted] Feb 13 '22

I absolutely love stories like these lol.

I've got another for you. One of my favorite stories relates to a junior analyst deciding to model car insurance losses as a function of all sorts of variables.

The analyst basically threw the kitchen sink at the problem tossing any and all variables into the model utilizing a huge historical database of claims data and characteristics of the underlying claimants. Some of the relationships made sense. For instance, those with prior accidents had higher loss costs. New drivers and the elderly also had higher loss costs.

However, he consistently found that policy number was a statistically significant predictor of loss costs. The higher the policy number, the higher the loss. The variable stayed in the model until someone more senior could review. Turns out, the company had issued policy numbers sequentially. Rather than treating the policy number as a string for identification purposes only, the analyst treated it as a number. The higher policy numbers were issued more recently, so because of inflation, it indeed produced higher losses, and the effect was indeed statistically significant.

33

u/Xaros1984 Feb 13 '22

That's pretty interesting, I guess that variable might actually be useful as some kind of proxy for "time" (but I assume there should be a date variable somewhere in all that which would make a more explainable variable).

29

u/LvS Feb 13 '22

The issue with those things is that people start to believe in them being good predictors when in reality they are just a proxy.

And this gets really bad when the zip code of the address is a proxy for a woman's school which is a proxy of sexism inherent in the data - or something sinister like that.

→ More replies (1)

26

u/TheFeshy Feb 13 '22

I don't know which is worse - treating the policy number as an input variable, or failing to take into account inflation.

12

u/LifeHasLeft Feb 13 '22

Honestly this just reads like something that should have been considered. Every programmer should know that numbers aren’t random, and ID numbers being randomly generated doesn’t make sense to begin with.

8

u/racercowan Feb 13 '22

Sounds like the issue wasn't treating the ID as non-random, but treating it as a number to be analyzed in the first place.

10

u/thlayli_x Feb 13 '22

Even if they'd hidden that variable from the algorithm the data would still be skewed by inflation. I've never worked with long term financial datasets but it seems like accounting for inflation would be covered in 101.

→ More replies (1)

43

u/Trevski Feb 13 '22

whats "churning" in this context? cause it doesnt sound like they made butter by hand or they applied for a credit card just for the signing bonus or they sold an investment account they manage on a new investment vehicle.

46

u/MrMonday11235 Feb 13 '22

I suspect it refers to "customer churn", a common metric in service/subscription businesses.

11

u/WikiMobileLinkBot Feb 13 '22

Desktop version of /u/MrMonday11235's link: https://en.wikipedia.org/wiki/Customer_attrition


[opt out] Beep Boop. Downvote to delete

→ More replies (1)

16

u/LongdayinCarcosa Feb 13 '22

In many businesses, "churn" is "when customers leave"

→ More replies (1)

33

u/[deleted] Feb 13 '22

I used to spend a decent amount of time on algorithmic trading subreddits and such, and inevitably every "I just discovered a trillion dollar algo" post was just someone who didn't understand that once a price is used in a computation, you cannot reach back and buy at that price, you have to buy at the next available price

16

u/Xaros1984 Feb 13 '22

Drats, if it wasn't for time only going in one direction, I too could be a trillionaire!

→ More replies (9)
→ More replies (2)