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-04-20T10:51:57.185Z",
        "end": "2019-04-20T10:51:57.185Z",
        "data": {
            "avg_user_follows_per_user": [
                1.053590036222895,
                1.0535528338374571,
                1.0535183349851338,
                1.053538705363776,
                1.053485725594973,
                1.0534796362198497,
                1.0534241840714955,
                1.0533793783917118,
                1.0533477960753377,
                1.0533779791215285,
                1.0533799075076258
            ],
            "vote_count": [
                1023072,
                1023371,
                1023721,
                1023953,
                1024676,
                1025304,
                1025888,
                1026430,
                1026725,
                1027344,
                1027791
            ],
            "tag_count": [
                722,
                722,
                722,
                722,
                722,
                722,
                722,
                722,
                723,
                726,
                727
            ],
            "question_count": [
                3381,
                3381,
                3381,
                3381,
                3388,
                3394,
                3394,
                3394,
                3395,
                3401,
                3402
            ],
            "avg_tag_follows_per_user": [
                1.4634545725202204,
                1.4631824267367481,
                1.4629335976214073,
                1.4650091624981427,
                1.464549007965959,
                1.4641162514827994,
                1.4636350170345134,
                1.463739516526887,
                1.4634651415047826,
                1.464398266692929,
                1.463987011709141
            ],
            "user_retention_for_only_1_month": [
                4,
                1,
                2,
                2,
                3,
                9,
                7,
                3,
                4,
                8
            ],
            "user_count": [
                20153,
                20167,
                20180,
                20191,
                20211,
                20232,
                20253,
                20270,
                20282,
                20308,
                20326
            ],
            "avg_votes_per_user": [
                50.76524586910138,
                50.744830663955966,
                50.7294846382557,
                50.713337625674804,
                50.69892632724754,
                50.6773428232503,
                50.65363156075643,
                50.63788850518007,
                50.62247312888275,
                50.58814260389994,
                50.56533503886648
            ],
            "following_user_count": [
                21233,
                21247,
                21260,
                21272,
                21292,
                21314,
                21335,
                21352,
                21364,
                21392,
                21411
            ],
            "avg_memberships_per_user": [
                1.6445194263881309,
                1.6442207566817078,
                1.643954410307235,
                1.6436531127730176,
                1.6430161793082974,
                1.642447607750099,
                1.6419295906779243,
                1.6414405525407005,
                1.6411596489498077,
                1.6404372661020288,
                1.6400669093771525
            ],
            "avg_questions_per_user": [
                0.16776658562000696,
                0.16765012148559527,
                0.16754212091179385,
                0.16745084443563965,
                0.16763148780367126,
                0.16775405298536972,
                0.16758011158840666,
                0.16743956586087813,
                0.1673898037668869,
                0.16747094740988772,
                0.16737183902391026
            ],
            "following_tag_count": [
                29493,
                29508,
                29522,
                29580,
                29600,
                29622,
                29643,
                29670,
                29682,
                29739,
                29757
            ],
            "group_count": [
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93,
                93
            ],
            "group_membership_count": [
                33142,
                33159,
                33175,
                33187,
                33207,
                33230,
                33254,
                33272,
                33286,
                33314,
                33336
            ],
            "user_retention": [
                34,
                31,
                31,
                30,
                31,
                29,
                20,
                13,
                10,
                8
            ]
        }
    }
}