Hacker News new | ask | show | jobs
by afiodorov 598 days ago
That's awesome. Care to explain? Looks like Laplace estimator of some kind?

P.S. Query sharing is supported:

https://www.imdb-sql.com/?query=SELECT+*+EXCLUDE+%28titleTyp...

1 comments

Ah 7 might have been a typo. May be it was meant to be *7? Then that's exactly the Laplace estimator. We start with a prior of 1_000_000 votes of 7.0 and then adjust as we accumulate real votes.
Yup. The correct query is:

SELECT * EXCLUDE (titleType, primaryTitle, language) FROM 'imdb01-11-2024.parquet' WHERE (region is null and titleType = 'movie') ORDER BY ( (numVotes * averageRating)+(100000 * 7))/ (numVotes+100000) desc LIMIT 100