Giter Club home page Giter Club logo

steam-bayesian-average's Introduction

Steam Bayesian Average

Build status Code coverage Code Quality

This repository contains Python code to compute the Bayesian average of Steam games, developers, and publishers.

The most reliable publishers at Steam250

Requirements

  • Install the latest version of Python 3.X.

  • Install the required packages:

pip install -r requirements.txt

Usage

  • Call the Python script. SteamSpy data will be automatically downloaded through an API.
python compute_bayesian_average.py

Vocabulary

Formulas are shown on the Wiki.

Acclaimed

The higher the ratio of positive reviews, and the more reviews, the more likely a game, a developer or a publisher is acclaimed.

Reliable

The higher the game scores, and the more released games, the more likely a developer or a publisher is reliable.

Established

The most acclaimed its most reviewed games, and the more reliable, the more likely a developer or a publisher is established.

Results

Results are shown in the Wiki for:

References

Appendix: custom formulas

Tip

For "Best of Steam", you can use the following custom ranking formulas to rely on the Bayesian Average.

  • Using average values obtained on September 3, 2023 for the prior:
const C = 1117 ;  // prior: average #reviews
const m = 0.756 ; // prior: average score
const n = game.votes ;
return (C*m + game.positiveVotes) / (C+n) ;
  • Using median values obtained on September 3, 2023 for the prior:
const C = 17 ;    // prior: median #reviews
const m = 0.822 ; // prior: median score
const n = game.votes ;
return (C*m + game.positiveVotes) / (C+n) ;
  • For comparison, replicating SteamDB's formula, which does not use Bayesian average::
const C = 1 ;    // offset for #reviews
const m = 0.50 ; // middle point for score
const n = game.votes ;
const p = game.positiveVotes / n ;
const t = (C+n) ** Math.log10(m) ;
return t*m + (1-t)*p ;

Appendix: data

The current algorithm relies solely on SteamSpy data. In case SteamSpy API stops providing the numbers of positive and negative reviews, data from SteamDB could be merged with SteamSpy data.

  • To download data from SteamDB, first sign-in with your Steam account.

SteamDB login

Once you are signed-in, make sure to view all games, then copy and paste the whole table as text into data/steamdb.txt.

SteamDB start

SteamDB end

steam-bayesian-average's People

Contributors

pyup-bot avatar renovate[bot] avatar woctezuma avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

steam-bayesian-average's Issues

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/python-app.yml
  • actions/checkout v4
  • actions/setup-python v5
  • codecov/codecov-action v4
pip_requirements
requirements.txt
  • numpy ==2.0.1
  • steamspypi ==1.1.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.