Code Monkey home page Code Monkey logo

Comments (3)

atungate avatar atungate commented on August 17, 2024

Hey Matthew, great question and cool league settings! They are cumulative so they would end up with 9 in your example.

For season projections, we do impute these columns based on the pass_yds column (assuming the bonus columns are not present in the data). If you wanted to, you could approximate the settings you describe better in a similar fashion. E.g., keep the scoring the same for the pass_yds column 3 points every 25 yards but adjust the the pass_yds directly based on some historical data. Let me know if you are interested in this kind of approach and I can try to point to in the right direction / see if you are interested.

As a side-note, I found some old notes that I need to update related-to this code so I'll leave this issue open until I get through the updates.

from ffanalytics.

matthewpaley avatar matthewpaley commented on August 17, 2024

I ended up going with the approach I asked about, mostly due to time constraints. I'd definitely be interested in your suggested approach next year though :)

from ffanalytics.

atungate avatar atungate commented on August 17, 2024

Hey Matthew, as I start to type this out I realize it may be too in-the-weeds. I'll share it anyway and let me know if you have any questions.

The approach is to adjust the column directly based on historical data (lowering the number of yards based on how often games did not exceed the threshold in the past). We compute bonus stat columns using a similar/rudimentary method (e.g., a +1 point bonus if someone rushes 100+ yards). However, projections don't typically include # of games > 100 yards, so we impute the number of games that may happen based on how often it happened last year & total number of yards.

See here for how we compute the coefficients for those columns (https://github.com/FantasyFootballAnalytics/ffanalytics/blob/master/data-raw/bonus_yds_coefs.R). So in your case, you want to adjust the yards down based on the number of times it did not reach threshold.

Hope this is helpful / let me know if you have questions

from ffanalytics.

Related Issues (20)

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.