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-02-21T22:32:53.732Z",
        "end": "2019-02-21T22:32:53.732Z",
        "data": {
            "user_retention_for_only_1_month": [
                6,
                3,
                3,
                2,
                1,
                2,
                3,
                12,
                6,
                5
            ],
            "user_retention": [
                36,
                31,
                28,
                26,
                24,
                24,
                24,
                22,
                11,
                5
            ],
            "following_user_count": [
                21195,
                21220,
                21238,
                21252,
                21266,
                21279,
                21303,
                21320,
                21344,
                21357,
                21376
            ],
            "avg_votes_per_user": [
                50.802634194831015,
                50.77812531029689,
                50.75647385653339,
                50.73889549871109,
                50.72134152382839,
                50.718090900089116,
                50.687601997922954,
                50.66439371479395,
                50.637202645345965,
                50.630382244143036,
                50.611412240070955
            ],
            "avg_questions_per_user": [
                0.16789264413518887,
                0.16775891172674015,
                0.16772497271554718,
                0.16760856632956572,
                0.16749232141087883,
                0.1677393801366472,
                0.16759804163987935,
                0.16770431860855817,
                0.16750567564899813,
                0.16739827373612823,
                0.16758647876219573
            ],
            "avg_tag_follows_per_user": [
                1.463817097415507,
                1.4633601429848078,
                1.4633396170254986,
                1.463067618481063,
                1.4645298721886455,
                1.4648480047529457,
                1.4643192720439147,
                1.4639786540171953,
                1.4634290790642581,
                1.4636251541307028,
                1.464324430866266
            ],
            "question_count": [
                3378,
                3379,
                3381,
                3381,
                3381,
                3388,
                3389,
                3394,
                3394,
                3394,
                3401
            ],
            "group_count": [
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93
            ],
            "avg_memberships_per_user": [
                1.6446322067594434,
                1.6444245854433521,
                1.6443595594801073,
                1.6441106484235575,
                1.643812543346874,
                1.6434300425784731,
                1.6427476385935413,
                1.6422571400336001,
                1.6416444576053697,
                1.6413316892725032,
                1.6408298019118952
            ],
            "tag_count": [
                718,
                719,
                722,
                722,
                722,
                722,
                722,
                722,
                722,
                722,
                723
            ],
            "vote_count": [
                1022149,
                1022773,
                1023149,
                1023505,
                1023861,
                1024404,
                1024954,
                1025346,
                1026011,
                1026531,
                1027108
            ],
            "group_membership_count": [
                33090,
                33122,
                33147,
                33165,
                33182,
                33194,
                33218,
                33236,
                33263,
                33278,
                33299
            ],
            "following_tag_count": [
                29452,
                29475,
                29498,
                29513,
                29563,
                29587,
                29610,
                29628,
                29652,
                29675,
                29717
            ],
            "user_count": [
                20120,
                20142,
                20158,
                20172,
                20186,
                20198,
                20221,
                20238,
                20262,
                20275,
                20294
            ],
            "avg_user_follows_per_user": [
                1.0534294234592445,
                1.0535200079436005,
                1.0535767437245758,
                1.0535395597858417,
                1.053502427424948,
                1.0535201505099514,
                1.0535087285495277,
                1.0534637810060283,
                1.05340045405192,
                1.0533662145499383,
                1.053316251108702
            ]
        }
    }
}