numStats

Historics Preview numStats type returns minimum, maximum, count, and sum values for the given target computed at hourly intervals. This type of preview provides a quick overview of numerical data related to the chosen target. For example, you might use numStats when you are interested in, for example, the number of retweets of a link or YouTube video length statistics.

Sample targets

Sample output data

The following example shows output for the top ten results of a freqDist preview on twitter.user.friends_count (twitter.user.friends_count,numStats):

{
    "id": "a937c9c3911aa794c004",
    "name": "preview",
    "progress": 100,
    "status": "succeeded",
    "feeds": "twitter",
    "sample": 1,
    "end": 1359936000,
    "created_at": 1364299209,
    "start": 1359849600,
    "user": "12635",
    "parameters": "twitter.user.friends_count,numStats,hour",
    "hash": "b2307b18ea6284667952d2a9c0bcee6b",
    "data": [
        {
            "target": "twitter.user.friends_count",
            "analysis": "numStats",
            "output": {
                "2013/02/03 21:00:00": {
                    "min": 1,
                    "max": 30296,
                    "count": 2747,
                    "sum": 1354188
                },
                "2013/02/03 04:00:00": {
                    "min": 1,
                    "max": 90661,
                    "count": 2819,
                    "sum": 1390117
                },
                "2013/02/03 01:00:00": {
                    "min": 1,
                    "max": 70256,
                    "count": 2781,
                    "sum": 1287670
                },
                "2013/02/03 20:00:00": {
                    "min": 1,
                    "max": 109852,
                    "count": 2851,
                    "sum": 1699503
                },
                "2013/02/03 16:00:00": {
                    "min": 1,
                    "max": 407733,
                    "count": 3209,
                    "sum": 2238932
                },
                "2013/02/03 00:00:00": {
                    "min": 1,
                    "max": 106575,
                    "count": 2673,
                    "sum": 1370545
                },
                "2013/02/03 07:00:00": {
                    "min": 1,
                    "max": 66493,
                    "count": 2050,
                    "sum": 1018908
                },
                "2013/02/03 23:00:00": {
                    "min": 1,
                    "max": 55604,
                    "count": 3398,
                    "sum": 1720383
                },
                "2013/02/03 14:00:00": {
                    "min": 1,
                    "max": 68560,
                    "count": 3426,
                    "sum": 1457230
                },
                "2013/02/03 19:00:00": {
                    "min": 1,
                    "max": 50192,
                    "count": 2728,
                    "sum": 1369078
                },
                "2013/02/03 05:00:00": {
                    "min": 1,
                    "max": 214085,
                    "count": 2532,
                    "sum": 1428308
                },
                "2013/02/03 13:00:00": {
                    "min": 1,
                    "max": 346629,
                    "count": 3145,
                    "sum": 1814372
                },
                "2013/02/03 15:00:00": {
                    "min": 1,
                    "max": 47051,
                    "count": 3327,
                    "sum": 1526304
                },
                "2013/02/03 08:00:00": {
                    "min": 1,
                    "max": 38453,
                    "count": 1957,
                    "sum": 811089
                },
                "2013/02/03 11:00:00": {
                    "min": 1,
                    "max": 18920,
                    "count": 2451,
                    "sum": 1000497
                },
                "2013/02/03 10:00:00": {
                    "min": 1,
                    "max": 11704,
                    "count": 2136,
                    "sum": 841132
                },
                "2013/02/03 12:00:00": {
                    "min": 1,
                    "max": 81204,
                    "count": 2772,
                    "sum": 1157584
                },
                "2013/02/03 02:00:00": {
                    "min": 1,
                    "max": 176279,
                    "count": 2876,
                    "sum": 1511785
                },
                "2013/02/03 09:00:00": {
                    "min": 1,
                    "max": 101836,
                    "count": 1977,
                    "sum": 1021006
                },
                "2013/02/03 22:00:00": {
                    "min": 1,
                    "max": 197956,
                    "count": 3040,
                    "sum": 1559149
                },
                "2013/02/03 03:00:00": {
                    "min": 1,
                    "max": 111272,
                    "count": 2887,
                    "sum": 1381179
                },
                "2013/02/03 18:00:00": {
                    "min": 1,
                    "max": 84345,
                    "count": 2792,
                    "sum": 1597587
                },
                "2013/02/03 06:00:00": {
                    "min": 1,
                    "max": 102458,
                    "count": 2303,
                    "sum": 1055098
                },
                "2013/02/03 17:00:00": {
                    "min": 1,
                    "max": 175638,
                    "count": 3041,
                    "sum": 1615209
                }
            },
            "interval": "hour"
        }
    ]
}

The following example shows output for a numStats preview on twitter.user.friends_count (twitter.user.friends_count,numStats) and the results of a targetVol preview on twitter.user.friends_count computed at hourly intervals:

{
    "id": "40d05fd209d46563bd52",
    "name": "preview",
    "progress": 100,
    "status": "succeeded",
    "feeds": "twitter",
    "sample": 1,
    "end": 1359936000,
    "created_at": 1364303060,
    "start": 1359849600,
    "user": "12635",
    "parameters": "twitter.user.friends_count,numStats,hour;twitter.user.friends_count,targetVol,hour",
    "hash": "92307b18e06284647952d7a9c0bcee69",
    "data": [
        {
            "target": "twitter.user.friends_count",
            "analysis": "numStats",
            "output": {
                "2013/02/03 21:00:00": {
                    "min": 1,
                    "max": 30296,
                    "count": 2747,
                    "sum": 1354188
                },
                "2013/02/03 04:00:00": {
                    "min": 1,
                    "max": 90661,
                    "count": 2819,
                    "sum": 1390117
                },
                "2013/02/03 01:00:00": {
                    "min": 1,
                    "max": 70256,
                    "count": 2781,
                    "sum": 1287670
                },
                "2013/02/03 20:00:00": {
                    "min": 1,
                    "max": 109852,
                    "count": 2851,
                    "sum": 1699503
                },
                "2013/02/03 16:00:00": {
                    "min": 1,
                    "max": 407733,
                    "count": 3209,
                    "sum": 2238932
                },
                "2013/02/03 00:00:00": {
                    "min": 1,
                    "max": 106575,
                    "count": 2673,
                    "sum": 1370545
                },
                "2013/02/03 07:00:00": {
                    "min": 1,
                    "max": 66493,
                    "count": 2050,
                    "sum": 1018908
                },
                "2013/02/03 23:00:00": {
                    "min": 1,
                    "max": 55604,
                    "count": 3398,
                    "sum": 1720383
                },
                "2013/02/03 14:00:00": {
                    "min": 1,
                    "max": 68560,
                    "count": 3426,
                    "sum": 1457230
                },
                "2013/02/03 19:00:00": {
                    "min": 1,
                    "max": 50192,
                    "count": 2728,
                    "sum": 1369078
                },
                "2013/02/03 05:00:00": {
                    "min": 1,
                    "max": 214085,
                    "count": 2532,
                    "sum": 1428308
                },
                "2013/02/03 13:00:00": {
                    "min": 1,
                    "max": 346629,
                    "count": 3145,
                    "sum": 1814372
                },
                "2013/02/03 15:00:00": {
                    "min": 1,
                    "max": 47051,
                    "count": 3327,
                    "sum": 1526304
                },
                "2013/02/03 08:00:00": {
                    "min": 1,
                    "max": 38453,
                    "count": 1957,
                    "sum": 811089
                },
                "2013/02/03 11:00:00": {
                    "min": 1,
                    "max": 18920,
                    "count": 2451,
                    "sum": 1000497
                },
                "2013/02/03 10:00:00": {
                    "min": 1,
                    "max": 11704,
                    "count": 2136,
                    "sum": 841132
                },
                "2013/02/03 12:00:00": {
                    "min": 1,
                    "max": 81204,
                    "count": 2772,
                    "sum": 1157584
                },
                "2013/02/03 02:00:00": {
                    "min": 1,
                    "max": 176279,
                    "count": 2876,
                    "sum": 1511785
                },
                "2013/02/03 09:00:00": {
                    "min": 1,
                    "max": 101836,
                    "count": 1977,
                    "sum": 1021006
                },
                "2013/02/03 22:00:00": {
                    "min": 1,
                    "max": 197956,
                    "count": 3040,
                    "sum": 1559149
                },
                "2013/02/03 03:00:00": {
                    "min": 1,
                    "max": 111272,
                    "count": 2887,
                    "sum": 1381179
                },
                "2013/02/03 18:00:00": {
                    "min": 1,
                    "max": 84345,
                    "count": 2792,
                    "sum": 1597587
                },
                "2013/02/03 06:00:00": {
                    "min": 1,
                    "max": 102458,
                    "count": 2303,
                    "sum": 1055098
                },
                "2013/02/03 17:00:00": {
                    "min": 1,
                    "max": 175638,
                    "count": 3041,
                    "sum": 1615209
                }
            },
            "interval": "hour"
        },
        {
            "target": "twitter.user.friends_count",
            "analysis": "targetVol",
            "output": {
                "2013/02/03 21:00:00": 2747,
                "2013/02/03 04:00:00": 2819,
                "2013/02/03 01:00:00": 2781,
                "2013/02/03 20:00:00": 2851,
                "2013/02/03 16:00:00": 3209,
                "2013/02/03 00:00:00": 2673,
                "2013/02/03 07:00:00": 2050,
                "2013/02/03 23:00:00": 3398,
                "2013/02/03 14:00:00": 3426,
                "2013/02/03 19:00:00": 2728,
                "2013/02/03 05:00:00": 2532,
                "2013/02/03 13:00:00": 3145,
                "2013/02/03 15:00:00": 3327,
                "2013/02/03 08:00:00": 1957,
                "2013/02/03 11:00:00": 2451,
                "2013/02/03 10:00:00": 2136,
                "2013/02/03 12:00:00": 2772,
                "2013/02/03 02:00:00": 2876,
                "2013/02/03 09:00:00": 1977,
                "2013/02/03 22:00:00": 3040,
                "2013/02/03 03:00:00": 2887,
                "2013/02/03 18:00:00": 2792,
                "2013/02/03 06:00:00": 2303,
                "2013/02/03 17:00:00": 3041
            },
            "interval": "hour"
        }
    ]
}