Skip to main content

No project description provided

Project description

Welcome to EduStatTests

EduStatTests is free Python package for educational statistical analysis.

Installing

You can install EduStatTests using the Python Package Index (PyPI)

Requirements

  • NumPy
  • Pandas
  • SciPy

PyPI Command

pip install git+https://github.com/hguldal/EduStatTests.git

How to Use EduStatTests

Data

EduStatTests uses Pandas DataFrame as data format. You can use CSV format or Python dictionary object while creating the DataFrame.

Loading data from CSV files

Comma Seperates Values (CSV) is a widely used data exchange format. In EduStatTests, the LoadFromCSV function is used to read and load CSV files into the DataFrame object.

The code below shows how to load data from CSV file into DataFrame object in EduStatTests.

dfObj=LoadFromCSV("drive/MyDrive/Datasets/test/test_data.csv")

Loading data from Python Dictionary

You can also load your data into the DataFrame in Python dictionary form by using the LoadFromDict function. The code below shows how to do this.

dataDict={
"Gender": [1,1,0,0,1,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,0,1,0,0],
"Attitude":[1,2,1,3,4,1,1,3,4,1,3,1,2,1,4,1,4,1,4,3,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,1,4,3,1,4,4,1,2,1,1,1,1,1,2,4,1,4,2,1,4,1,4,1,1,1]
}

dfObj=LoadFromDict(dataDict)

Tests

You can perform the following tests with EduStatTests.

  • Independent Samples T-Test
  • Mann-Whitney U Test
  • Correlation Tests (Pearson's, Spearman's and Kendall's)
  • Normality Tests (Kolmogorov-Smirnov, Shapiro-Wilk and D'Agostino's)

Independent Samples T-Test

You can perform Independent T-Test using IndTTest function in EduStatTests. IndTTest function has three parameters. First paramater is Pandas DataFrame contain your data. Second parameter is independent variable name in your data. Third parameter is dependent variable name in your data. The code below shows how to perform Independent T-Test in EduStatTests.

from EduStatTests import *
dataDict={
"Gender": [1,1,0,0,1,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,0,1,0,0],
"Attitude":[1,2,1,3,4,1,1,3,4,1,3,1,2,1,4,1,4,1,4,3,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,1,4,3,1,4,4,1,2,1,1,1,1,1,2,4,1,4,2,1,4,1,4,1,1,1]
}

dfObj=LoadFromDict(dataDict)
results=IndTTest(dfObj,"Gender","Attitude")
print(results)

You can also see analysis results as html file on web browser using HtmlOutputIndTTest function. The code below shows how to results were saved as html file format.

from EduStatTests import *
dataDict={
"Gender": [1,1,0,0,1,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,0,1,0,0],
"Attitude":[1,2,1,3,4,1,1,3,4,1,3,1,2,1,4,1,4,1,4,3,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,1,4,3,1,4,4,1,2,1,1,1,1,1,2,4,1,4,2,1,4,1,4,1,1,1]
}

dfObj=LoadFromDict(dataDict)
results=IndTTest(dfObj,"Gender","Attitude")

HtmlOutputIndTTest(results)

Mann-Whitney U Test

You can perform Mann-Whitney U Test using MannWhitneyU function in EduStatTests. MannWhitneyU function has three parameters. First paramater is Pandas DataFrame contain your data. Second parameter is independent variable name in your data. Third parameter is dependent variable name in your data. The code below shows how to perform Mann-Whitney U in EduStatTests.

from EduStatTests import *
dataDict={
"Gender": [1,1,0,0,1,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,0,1,0,0],
"Attitude":[1,2,1,3,4,1,1,3,4,1,3,1,2,1,4,1,4,1,4,3,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,1,4,3,1,4,4,1,2,1,1,1,1,1,2,4,1,4,2,1,4,1,4,1,1,1]
}

dfObj=LoadFromDict(dataDict)
results=MannWhitneyU(dfObj,"Gender","Attitude")
print(results)

You can also see analysis results as html file on web browser using HtmlOutputMannWUTest function. The code below shows how to results were saved as html file format.

from EduStatTests import *
dataDict={
"Gender": [1,1,0,0,1,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,1,1,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,0,1,0,0],
"Attitude":[1,2,1,3,4,1,1,3,4,1,3,1,2,1,4,1,4,1,4,3,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,1,4,3,1,4,4,1,2,1,1,1,1,1,2,4,1,4,2,1,4,1,4,1,1,1]
}

dfObj=LoadFromDict(dataDict)
results=IndTTest(dfObj,"Gender","Attitude")

HtmlOutputMannWUTest(results)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EduStatTests-1.0.0a0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

EduStatTests-1.0.0a0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file EduStatTests-1.0.0a0.tar.gz.

File metadata

  • Download URL: EduStatTests-1.0.0a0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for EduStatTests-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 7cfa48b9c1e055a88b4e668103cc1d4659e1997d5e2f3ceed645da70764667cf
MD5 be15ab95f7929bf32b3228a1c9494ddc
BLAKE2b-256 f40197e8ce03ab723e67214bba498e86657ecd3493662bb63d2aca871465c649

See more details on using hashes here.

File details

Details for the file EduStatTests-1.0.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for EduStatTests-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad13b42993ea01689a146dc6b2818dba7689db56321b0204e2051dabcf653a18
MD5 4d98450f3618a7db2619bfdc461f304e
BLAKE2b-256 c68f02f5515abd75aaf5c586bf510096f82475ef677c4c404b25630d40c1e870

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page