Coder Social home page Coder Social logo

hypothesis-testing---student-s-t-test-anova-test's Introduction

Hypothesis-Testing---Student-s-t-test-ANOVA-test

Hypothesis Testing is done on a payroll database using various testing methods.

Dataset link: https://drive.google.com/file/d/1ZyB6LInrRhh27Knp6CnPcolE5muIDWo2/view?usp=sharing

  1. Importing Relevant Librari es: Pandas, Numpy, Seaborn, Matplotlib, Sklearn, Scipy, Warning, Researchpy

  2. Exploratory Data Analysis:

  • Checking variables df.info()
  • Checking Null Values df.isnull().sum()
  • Correlation Matrix
  • Visualization
  1. Preparing the dataset:
  • Dropping Correlated Rows
  • Removing Dollar Sign & Converting to float
  • Renaming the fields
  • Scaling the fields
  • Grouping the dataset
  1. Normality Test:
  • Visually: Q-Q Plot
  • Shapiro-Wilk Test
  1. Sampling: Divided into 4 samples according to year 2013,2014,2015,2016

  2. Levene’s test: Checking variance

Stats, Pvalue = stats.levene(sample_1['Annual_sal'], sample_2['Annual_sal'])

  1. Student’s test:

std_err = np.std(sample_3['Base_Pay'])/np.sqrt(48063) z_stat = (np.mean(sample_4['Base_Pay'])-np.mean(sample_3['Base_Pay']))/std_err

  1. Student’s Independent test:

t_stat, df, cv, p = independent_ttest(data1, data2, alpha)

  1. ANOVA test:

_,p=st.f_oneway(groups[comb[0]],groups[comb[1]])

hypothesis-testing---student-s-t-test-anova-test's People

Contributors

daksh-intwala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.