Loading…
Everything will be ready in few seconds
- Theory
- Theory
- Comments
One small analytical investigation
- Again, tr-r-raffic rating is so-so?! Puffs the tail, pulls the whiskers forward
- But, boss boss, we’ve talked about this already. Statistics help us identify problems.
- And what do I care about these problems? The whiskers go back
- If you noticed any problems, you can find out why they occurred and fix them.
- Look for them and correct them! The tail goes back down
Got away with it this time. But now we need to delve deeper into the data. Maybe we’ll find the problem. I have an idea.
What if we highlight days when traffic is at its lowest? For example, those days when traffic is 100 or even 200 people less than expected.
Yes, exactly. Let us make the value of the dip adjustable.
Now let’s test the hypothesis. Introduce a variable with the minimum admissible traffic. We will then check the traffic for the current day in the loop, and if it does not reach the minimum value, we will log it in the console. I wonder if there will be many of such poor values?
- script.js
JavaScript
1
2
var expectedUsers = 1000;
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thanks! We’ll fix everything at once!
Console
The code has changed, click “Run” or turn autorun on.
Comments