All Projects → stig → Statistics

stig / Statistics

A stab at a very simple statistics class for Objective-C

Projects that are alternatives of or similar to Statistics

Socrat
A Dynamic Web Toolbox for Interactive Data Processing, Analysis, and Visualization
Stars: ✭ 26 (-23.53%)
Mutual labels:  statistics
Pandas Profiling
Create HTML profiling reports from pandas DataFrame objects
Stars: ✭ 8,329 (+24397.06%)
Mutual labels:  statistics
Scikit Extremes
scikit-extremes is a basic statistical package to perform univariate extreme value calculations using Python
Stars: ✭ 31 (-8.82%)
Mutual labels:  statistics
Dominhhai.github.io
My Blog
Stars: ✭ 8 (-76.47%)
Mutual labels:  statistics
Hotcold
Smart touch typing learning with instant key glow indications, live statistics, live graphs and dynamic course creation.
Stars: ✭ 12 (-64.71%)
Mutual labels:  statistics
Pystan2
PyStan, the Python interface to Stan
Stars: ✭ 915 (+2591.18%)
Mutual labels:  statistics
Blogr
Scripts + data to recreate analyses published on http://benjaminlmoore.wordpress.com and http://blm.io
Stars: ✭ 23 (-32.35%)
Mutual labels:  statistics
Clistats
A command line interface tool to compute statistics from a file or the command line.
Stars: ✭ 33 (-2.94%)
Mutual labels:  statistics
Analytics
Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Stars: ✭ 9,469 (+27750%)
Mutual labels:  statistics
Regexanalyzer
Regular Expression Analyzer and Composer for Node.js / XPCOM / Browser Javascript, PHP, Python
Stars: ✭ 29 (-14.71%)
Mutual labels:  statistics
Homer
HOMER - 100% Open-Source SIP / VoIP Packet Capture & Monitoring
Stars: ✭ 855 (+2414.71%)
Mutual labels:  statistics
Github Repo Size
🚀 Chrome extension to display repository size on GitHub
Stars: ✭ 859 (+2426.47%)
Mutual labels:  statistics
Census Data Aggregator
Combine U.S. census data responsibly
Stars: ✭ 28 (-17.65%)
Mutual labels:  statistics
Probtopdf
Turn online textbook into Exam-friendly, offline, searchable PDF
Stars: ✭ 27 (-20.59%)
Mutual labels:  statistics
Unrealnetworkprofiler
A modern WPF based Network Profiler for Unreal Engine.
Stars: ✭ 29 (-14.71%)
Mutual labels:  statistics
R actuarial
El objetivo de este repositorio es brindar un apoyo a la comunidad interesada en mejorar sus técnicas en el lenguaje de programación R o emprenderlo desde un punto de vista muy aplicado. Un repositorio con códigos de R para aplicaciones actuariales: probabilidad, estadística, riesgo y finanzas.
Stars: ✭ 25 (-26.47%)
Mutual labels:  statistics
Facsimile
Facsimile Simulation Library
Stars: ✭ 20 (-41.18%)
Mutual labels:  statistics
Benchee
Easy and extensible benchmarking in Elixir providing you with lots of statistics!
Stars: ✭ 971 (+2755.88%)
Mutual labels:  statistics
Uc Davis Cs Exams Analysis
📈 Regression and Classification with UC Davis student quiz data and exam data
Stars: ✭ 33 (-2.94%)
Mutual labels:  statistics
Asterisk Cdr Viewer
Simple and fast viewer for asterisk CDRs / recordings
Stars: ✭ 29 (-14.71%)
Mutual labels:  statistics

Statistics

Statistics is a Foundation framework for calculating—no points for guessing it—statistics. It is inspired by Perl's Statistics::Descriptive and like it consists of two main classes.

SBStatistics calculates a range of statistical measurements on the fly as each data point is added. The data is then immediately discarded, giving it a very low memory footprint.

SBFullStatistics in turn subclasses SBStatistics and records each data point. It is therefore able to provide more advanced statistical functions. The trade-off is that it can consume a lot of memory if you are collecting a lot of data.

Build Status

codecov.io

Examples

The following example assumes you have included the @p Statistics/Statistics.h header and somehow linked to the Statistics framework:

// Create statistics object
SBStatistics *stat = [SBStatistics new];

// Add some random data points
for (int i = 0; i < 1000; i++)
    [stat addData:[NSNumber numberWithInt:random()/1000.0]];

// Format report
id fmt = [NSMutableArray array];
[fmt addObject:@"Data set consists of %u data points."];
[fmt addObject:@" * Min:      %f"];
[fmt addObject:@" * Max:      %f"];
[fmt addObject:@" * Mean:     %f"];
[fmt addObject:@" * Variance: %f"];
[fmt addObject:@" * StdDev:   %f"];

// Print it
NSLog([fmt componentsJoinedByString:@"\n"],
    stat.count,
    stat.min,
    stat.max,
    stat.mean,
    [stat variance],
    [stat standardDeviation]
);

The SBFullStatistics class can do other interesting stuff:

// Create statistics object
SBFullStatistics *stat = [SBFullStatistics new];

// Add some random data.
for (int i = 0; i < 1e4; i++)
    [stat addData:[NSNumber numberWithDouble:random()]];

// Produce 10 equally-sized buckets covering the entire range
id buckets = [stat bucketsWithCount:10];

// Calculate frequency distributions.
id freq = [stat frequencyDistributionWithBuckets:buckets
                                      cumulative:NO];
id cfreq = [stat frequencyDistributionWithBuckets:buckets
                                       cumulative:YES];

// Iterate over the buckets and output the values
for (id bucket in buckets)
    NSLog(@"%@ => %@ => %@",
        bucket,
        [freq objectForKey:bucket],
        [cfreq objectForKey:bucket]);

Download

License

Copyright (c) 2008-2013, Stig Brautaset. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Author

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].