本文介绍了供应需求建模的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我会要求SO社区帮助我完成当前正在从事的项目.我需要在市场情况下为小部件的价格建模.小部件的价格应该是当前供求的结果.用户将能够以固定价格买卖窗口小部件.当用户购买小部件时,需求将与价格一起上涨.相反,当用户出售小部件时,供应量将上升,价格将下降.小部件的数量和当前价格以及小部件的买卖总数将存储在数据库中.

I thought I would ask the SO community on helping me with a project that I am currently working on. I need to model the price for a widget in a market situation. The price for the widget should be a result from the current supply and demand. Users will be able to buy and sell the widget at the fixed price. As users buy the widget the demand will go up along with the price. Conversely as users sell the widget the supply will go up and the price will go down. The quantity and current price of the widget will be stored in a database along with the total number of buys and sells for the widget.

Protrade.com有一个很好的买卖小部件(玩家和团队)的示例,我想以类似的方式对我的系统进行建模.

Protrade.com has an excellent example of buying and trading widgets (players and teams), I would want to model my system in a similar fashion.

有没有好的编程库可以根据供需准确地对市场进行建模?

Is there any good programming libraries that will accurately model a market based on supply and demand?

推荐答案

不幸的是,我不知道任何库,但是也许您可以利用Excel的统计功能.

Unfortunately I do not know of any libraries, but perhaps you can tap into Excel's statistics functions.

我的看法如下.

这就是为什么经济学如此无聊,一切都在供求关系的原因.

This is why economics is so boring, everything is supply/demand.

以下内容应作为开始:

ListPrice = (Cost + Profit) * (demand/supply * economic-factor)

其中economic-factor是一些确定的常数.

where economic-factor is some determined constant.

如果您有一些历史数据,例如每日的供求比率,则可以考虑使用它,也许可以使用基于时间的比例.

If you have some historical data, eg daily supply/demand ratio's you could factor it in, perhaps using some time-based scale.

这篇关于供应需求建模的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 05:12