Week 3

Homework for week 3

Notebooks are here:

notebooks

Slides

slides - pdf

slides -pptx

Introduction

This assignment has three notebooks that you will turn in:

  1. Computing probability moments using iteration.

  2. Computing probability moments with functional programming in Python

  3. Computing probability moments with Spark Rdds

The meaning of the four probability moments is described here.

Exercise

Open a terminal on your native machine and start Vagrant

Download the exercise from GitHub

Stop remove all containers - you will see errors if you have no containers running

Start your Spark Notebook

Open your browser and go to:

Pull up the exercises in the "week3" folder

Download the notebooks and submit to Canvas

Note:

  • The notebook Downloads to you native machine.

  • The name of the file to be submitted to the autograder must be exactly the name when downloaded from GitHub.

  • The cells are graded per the "assert" section. Use care when modifying graded cells

Stop all docker containers on the VM

Shut down the VM - from the native machine

Last updated

Was this helpful?