So I built an SE service connection and as a piece of pure curiosity I wanted to see if I could determine what a given user's time-zone was by the times which they answer.
I managed to pull in all the answers using my service connection.
And then I grouped the users and the hours of the day (in Unix time) when they answered and then I got stuck.
Because I can tell you when Mr. Wizard answers questions on average:
In[82]:= Mean@userTimes["Mr.Wizard"] // N
Out[82]= 11.6578
But this alone isn't enough to tell me what his(?) time-zone is (although per his/her profile it's PST: ).
And I can give you an EstimatedDistribution
(using NormalDistribution
) of Kuba's answer times:
Plot[PDF[userDistributions["Kuba"], x], {x, -5, 30}]
But I don't know how to connect that to his time zone.
I know Mathematica should be able to give me this, maybe by comparing both the peak and the height in the distribution:
Plot[
PDF[#, x] & /@ Take[userDistributions, 3] // Values // Evaluate,
{x, -5, 30},
PlotLabels -> Keys@Take[userDistributions, 3]
]
But this is simply not something I know enough about.
So can someone crack the code? As I have it set-up I suppose this breaks down to a statistical argument about how likely it is that a given user has a given time-zone, but is there a way to do this better than just that (if I even knew how to do that)?