Skip to content

Instantly share code, notes, and snippets.

@kthakore
Last active December 20, 2018 02:33
Show Gist options
  • Save kthakore/c6abd31d291213babf96019a830cf88c to your computer and use it in GitHub Desktop.
Save kthakore/c6abd31d291213babf96019a830cf88c to your computer and use it in GitHub Desktop.
Creating exercise for Python Proficiency

Question 1: Python 3

In Python 3, write a simple program below that calculates the probability of 5% percent of a population having diabetes. You can use this report to collect probabilites.

Question 2: Pandas

Using Pandas prepare his dataset to test the probabilities for the reports above: https://archive.ics.uci.edu/ml/datasets/Diabetes+130-US+hospitals+for+years+1999-2008

Question 3: SciKit Learn

Using the above dataset train a simple SciKit model to predict the length of stay.

Question 4: Verification and Validation

Please share how you would verify and validate your results. Please upload an Markdown file with your results.

Please fork this gist and commit your .py files.

# QUESTION 1
# In Python 3, write a simple program below that calculates the probability of 5% percent of a population having diabetes.
# You can use this [report to collect probabilites](https://www.clinicaladvisor.com/diabetes-resource-center/cdc-report-diabetes-by-type-us-adults/article/760827/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment