A view that returns some overall interesting stats

params:

start - point of history to start getting data from. will default to 1 year ago

end - point of history to stop getting data from. will default to now

steps - the number of data points to collect. will default to 10

example

http://localhost:8000/api/advanced_stats/?start=2014-11-20&steps=4

to get 4 data points since the end of 2014

GET /api/advanced_stats/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "results": {
        "start": "2018-08-24T22:52:11.645Z",
        "end": "2019-08-24T22:52:11.645Z",
        "data": {
            "avg_user_follows_per_user": [
                1.0534706406574907,
                1.0534566313915537,
                1.0534143690087954,
                1.053351100582371,
                1.053311633870888,
                1.0532669754607273,
                1.0533569600315023,
                1.0533123493827767,
                1.053376585078148,
                1.0533503635291805,
                1.0533294048320565
            ],
            "vote_count": [
                1024404,
                1025169,
                1025357,
                1026021,
                1026547,
                1027108,
                1027522,
                1027904,
                1028308,
                1028808,
                1028956
            ],
            "tag_count": [
                722,
                722,
                722,
                722,
                722,
                723,
                727,
                727,
                727,
                727,
                727
            ],
            "question_count": [
                3388,
                3389,
                3394,
                3394,
                3394,
                3401,
                3402,
                3402,
                3402,
                3402,
                3402
            ],
            "avg_tag_follows_per_user": [
                1.4634122190315872,
                1.4628622292552664,
                1.4625457060974405,
                1.4619978284473398,
                1.4621492331212704,
                1.4628954370749976,
                1.4627879503839338,
                1.4624502041017067,
                1.4621547232871326,
                1.4631067007270584,
                1.46292476920055
            ],
            "user_retention_for_only_1_month": [
                2,
                4,
                10,
                4,
                4,
                6,
                2,
                4,
                2,
                4
            ],
            "user_count": [
                20198,
                20222,
                20238,
                20262,
                20277,
                20294,
                20316,
                20333,
                20346,
                20356,
                20364
            ],
            "avg_votes_per_user": [
                50.718090900089116,
                50.6957274255761,
                50.664937246763515,
                50.63769618004146,
                50.626177442422446,
                50.611412240070955,
                50.57698365820043,
                50.553484483352186,
                50.541040007863955,
                50.540774218903515,
                50.52818699666077
            ],
            "following_user_count": [
                21278,
                21303,
                21319,
                21343,
                21358,
                21375,
                21400,
                21417,
                21432,
                21442,
                21450
            ],
            "avg_memberships_per_user": [
                1.6433805327260125,
                1.6426664029275047,
                1.6422077280363672,
                1.6415951041358208,
                1.6412684322138384,
                1.6407805262639203,
                1.6401850758023233,
                1.639846554861555,
                1.6394377273174088,
                1.639123599921399,
                1.638872520133569
            ],
            "avg_questions_per_user": [
                0.1677393801366472,
                0.1675897537335575,
                0.16770431860855817,
                0.16750567564899813,
                0.16738176258815407,
                0.16758647876219573,
                0.1674542232722977,
                0.1673142182658732,
                0.1672073134768505,
                0.1671251719394773,
                0.16705951679434297
            ],
            "following_tag_count": [
                29558,
                29582,
                29599,
                29623,
                29648,
                29688,
                29718,
                29736,
                29749,
                29783,
                29791
            ],
            "group_count": [
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93
            ],
            "group_membership_count": [
                33193,
                33218,
                33235,
                33262,
                33280,
                33298,
                33322,
                33343,
                33356,
                33366,
                33374
            ],
            "user_retention": [
                35,
                36,
                33,
                24,
                20,
                17,
                11,
                9,
                5,
                4
            ]
        }
    }
}