Giter Site home page Giter Site logo

dsc-standard-normal-distribution-lab-seattle-ds-012720's Introduction

The Standard Normal Distribution - Lab

Introduction

In the previous lesson, you learned about the formula of the $z$-score, and looked at a few toy examples to explain an observation's standard score for normally distributed data. In this lab, you'll practice by standardizing and visualize some normal distributions.

Objectives

You will be able to:

  • Calculate and interpret the z-score (standard score) for an observation from normally distributed data
  • Visualize data before and after standardization to visually inspect the results

Let's get started

A $z$-score can help identify how many standard deviations above or below the mean a certain observation is. Every time you obtain a $z$-score, use “above” or “below” in your phrasing.

The yields of apple trees in an orchard have 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.

Load, visualize and give general comments about the dataset

Use pandas for loading and inspecting the data.

# Import libraries

# Read the yield data as a dataframe
<style scoped> .dataframe tbody tr th:only-of-type { vertical-align: middle; }
.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}
</style>
0
0 39.741234
1 39.872055
2 44.331164
3 46.600623
4 40.694984
# Create a plot

png

# Your comments about the data here

Briefly explain what each value represents in this data set

# Your answer here

Define the interval bounds which contain 99% of the observations

Hint: Recall the empirical rule related to $3\sigma$.

# Perform any calculations necessary here
# Write your answer here 

Compute and interpret the z-score for a tree yielding 35 pounds of apples

# Calculate z
# Interpret the result

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 ?

Convert each tree’s yield to a z-score so the new variable is the “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 of the standard normal distribution!

dsc-standard-normal-distribution-lab-seattle-ds-012720's People

Contributors

shakeelraja avatar loredirick avatar mas16 avatar peterbell avatar lmcm18 avatar mathymitchell avatar

Watchers

James Cloos avatar  avatar Mohawk Greene avatar Victoria Thevenot avatar Bernard Mordan avatar Otha avatar raza jafri avatar  avatar Joe Cardarelli avatar The Learn Team avatar  avatar  avatar Ben Oren avatar Matt avatar Antoin avatar  avatar Alex Griffith avatar  avatar Amanda D'Avria avatar  avatar Ahmed avatar Nicole Kroese  avatar Kaeland Chatman 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.