PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm developing a stats counter website (http://www.pridetrack.com/stats/6) and I'm lost with the computation for the forecast. can anybody help me on how to compute for the forecasts for the hour, day, month, and year?
When collecting stats, you have to have a way to store each different stat. You have to give each different stat a different place to be, different numbers to update, different conditions to meet, etc.
It's mostly in the storage methods how easy it will be.
superdezign wrote:When collecting stats, you have to have a way to store each different stat. You have to give each different stat a different place to be, different numbers to update, different conditions to meet, etc.
It's mostly in the storage methods how easy it will be.
Thanks for the input but I'm done with that part already. My only problem is how to compute for the forecast
You need to determine calculate a good future value you would need to collect data on trends.
Based on:
- Hour of day
- Day of week
- Month of year (season)
I think determining such information, by looking at the history, you should be able to determine calculate an estimation of how much traffic you receive for that hour, day, and week, by the growth or shrinkage in traffic compared to the previous time.