Skip to content

Instantly share code, notes, and snippets.

View lauracodecreations's full-sized avatar

LauraM.dev lauracodecreations

View GitHub Profile

Creating Histograms with Normal Distribution Line using Python

Problem

You need to know if the data is normally distributed before doing any analysis on it.

Solution

Create histograms for every column and compare it to a normal distribution or bell curve. My code outputs this bell curve on the graph.

Calculating Cronbach's Alpha using Python

Cronbach’s alpha is a measure of internal consistency, that is, how closely related a set of items are as a group. More information about this: https://stats.idre.ucla.edu/spss/faq/what-does-cronbachs-alpha-mean/

The code assumes that you already have uploaded your data in Azure ML, and that you have imported into Python. More information: https://gist.github.com/lauramar17/0fd5ea81be217a7ccd39cacaba7397b9.js

Method: It takes an unlimited number of parameters for the questions that you want to calculate its internal consistency.

To run: