Git Product home page Git Product logo

dsc-1-09-15-standard-normal-distribution-lab-online-ds-pt-021119's Introduction

Standard Normal Distribution - Lab

Introduction

In the previous lesson, we looked at the formula and a few toy examples to explain an observation's standard score and data standardization for normally distributed data. This lab, will shall standardize and visualize some normal distributions before we see standardization's real impact in machine learning in upcoming lessons.

Objectives

You will be able to:

  • Calculate and interpret z-scores for observations
  • Visualize the data before-after standardization to visually inspect the results.

Let's get started

A Z-score tells us “how many standard deviations above or below the mean.” Every time you obtain a Z-score, use “above” or “below” in your phrasing.

The yields of apples trees in an orchard has been recorded in the file yield.csv. Each observation is recorded by weighing apples from trees (in pounds) and adding their weights. There are 5000 observations in total for this data.

1. Load, visualize and give general comments on the dataset. Use pandas for loading and inspecting the data.

# Import libraries

# Read the yield data as a dataframe
<matplotlib.axes._subplots.AxesSubplot at 0x1a1951e0f0>

png

# Your comments about the data here. 

2. Write a simple sentence to explain what does each value represent in this data?

# Your answer here

3. What does the 3-sigma rule say about yields of trees ?

# Perform any calculations necessary here
# Write your answer here 

4. Compute the Z-score for a tree yielding 35 pounds of apples. Interpret this Z-score.

# Calculate z
# Interpret the result

5. Suppose a tree has a Z-score of 1.85. Interpret this Z-score. What is the yield of this tree?

# Interpret the z score
# Calculate yield
# What is the yield ?

6. Convert each tree’s yield is converted to a Z-score so that “new” derived variable is “Z-score for weight”. The units are still the apple trees. For the data set of all Z-scores:

  • What is the shape?
  • The mean?
  • The standard deviation?
# Give your solution here 
Mean: 0.0
SD: 1.0

png

# Your observations

Summary

In this lab, you practiced your knowledge on the standard normal distribution!

dsc-1-09-15-standard-normal-distribution-lab-online-ds-pt-021119's People

Contributors

shakeelraja avatar loredirick avatar peterbell avatar

Watchers

Kevin Ernest Long avatar James Cloos avatar Kevin McAlear avatar  avatar Victoria Thevenot avatar Belinda Black avatar Soundarya avatar  avatar Joe Cardarelli avatar Sam Birk avatar Sara Tibbetts avatar The Learn Team avatar Sophie DeBenedetto avatar  avatar Jaichitra (JC) Balakrishnan avatar Antoin avatar Alex Griffith avatar  avatar Amanda D'Avria avatar  avatar Nicole Kroese  avatar  avatar  avatar Lisa Jiang avatar Vicki Aubin avatar Maxwell Benton avatar  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.