爱好项目所需的回归公式
我有一个关于汽车的爱好网站。
我可以获取包含 3 个变量的汽车销售数据:价格、里程和车龄。如果我收集了足够的数据,是否可以输入年龄和里程并返回提取的价格?假设每种情况下的汽车型号相同。
谢谢。顺便说一句,我是一名程序员而不是数学家,所以不要假设我了解模型等。
I have a hobby website based around cars.
I can source car sold data with 3 variables: price, mileage and age. If I collect enough data, is it possible to enter an age and mileage and return an extracted price? Assuming same car model in each case.
Thanks. BTW I am a programmer not a mathematician so don't assume I know models etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确理解你的问题,听起来你是在根据某款汽车的车龄和行驶距离计算其平均价格。
如果是这种情况,为什么不设置一个小工作,按型号计算具有特定范围内里程的汽车的平均价格,例如 0-1000 英里、1000-5000 英里、5000-10000 英里英里等。
如果您这样做,您可以自己构建一个查找表,您可以使用指定的输入轻松查询该表。
If I understand your question correctly, it sounds like you're after the mean price for a model of car based on its age and how far it has travelled.
If that is the case, why don't you set up a little job that calculates, by model, the mean price for cars that have a mileage within a certain band, e.g. 0-1000 miles, 1000-5000 miles, 5000-10000 miles, etc.
If you do this you can build yourself a lookup-table that you can easily query against with the input you specified.