PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, October 7, 2022

[FIXED] How to make a regression that never underestimates but may overestimate?

 October 07, 2022     artificial-intelligence, machine-learning, regression, statistics     No comments   

Issue

Let's say I am making an AI that predicts how many police cars are needed for an emergency situation, using multiple regression. When using linear regression, it overestimates half of the time and underestimates for the other half. But I can't underestimate, but it is somewhat ok if it overestimates. Which method should I use to prevent that?

I'm using Python BTW.


Solution

You might want to look into Quantile Regression. Of course the limitations mentioned by @Florian H are still true for that approach. By selecting a higher Quantile (e.g. 75% quantile) you can train your model to favour overestimations.

enter image description here

The respective loss function is quantile loss.



Answered By - bk_
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing