Skip to content

marinov98/Statistical_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

228 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to my Statistics Calculator! :octocat:

Statistical Calculator

To Do's

  • make a website for the calculator
  • use cmake to launch
  • Extensively test the calculator using the doctest testing framework

Third-Party

Requirements

  • CMake 3.12 or newer
  • C++14 or newer

Table of Contents

  1. Goals
  2. Functionality
  3. How To Use

Goals

  • Create a simple calculator that can calculate almost anything you throw at it from your intro to statistics class
  • Provide an easy to follow interface
  • Allow users to have all in one program that does everything instead of having them search online for different types of statistic calculators

Functionality

Contains Its own Formula Sheet!

Basics:

  • mean, median, mode, range
  • Sample/Population standard deviation & variance
  • Min and Max
  • Percentiles
  • Interquartile range
  • Outliers

Showcase:

basics

Hypothesis Testing (Advanced)

  • calculate z-score and t-score
  • one/two sample t and z tests
    • proportions, pair, difference
  • Chi-square test

Confidence intervals (Advanced)

  • Sampling Distribution
  • z/t confidence intervals
    • proportion, sample
    • multple z-critical values

CC

  • correlation coefficient
  • slope, y-intercept
  • least squares regression line

Showcase:

cc

How-To-Use

  • clone this repository: type git clone https://github.com/marinov98/Statistical_Calculator.git into terminal
  • cd into Statistical_Calculator
  • type make

3-ways to use the calculator

defeault option:
  • This option is if you want to use the calculator's default interface where the calculator asks you for what you want and you answer
  • type make run to execute this option
About data.txt
  • You will notice the project comes with the txt file data.txt
  • You can type any dataset in. However, you must make sure the numbers are separated by a comma and when you are finished you end with a ; (data.txt already has an example provided if you are still confused about the format);
  • Keep in mind if the format is wrong the program will not do anything.
Special option #1
  • type make parse
  • if the file contains an invalid input, the command will not do anything
  • this command will parse through the data file and every time it finds a ; it will print out every function described in basics.
  • You can have multiple datasets typed as long as they each end in ; the command will then print each dataset that it finds
Special option #2
  • There are multiple commands here but they all work the same
  • Here instead of printing all the fucntions described in basics, you pick the specific one
  • Again the command will do this for every dataset it finds in the data.txt file
  • Commands include make:
    • mean
    • median
    • percentile
    • mode
    • range
    • min
    • max
    • outliers
    • sd
    • lsrl
    • cc
Example wth outliers and range

Screenshot from 2019-05-22 00-24-17

Regarding CMake

  • right now it is best to compile with the Makefile I made for the project
  • The Cmake works just as well

About

A statistics calculator made using C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages