Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.29 KB

Probability.md

File metadata and controls

57 lines (38 loc) · 2.29 KB

Probability & Sampling

Table of Contents

  1. Activities
  2. Objectives
  3. Challenges
  4. Stretch Challenges
  5. Resources

Activities

  • Compare code quality for histogram implementations
  • Refactor code to improve readability, modularity, and performance
  • Compare tradeoffs of different histogram implementations
  • Lecture and discussion following probability and sampling slides
  • Watch a previous recording of this lecture to review and reinforce concepts

Objectives

After completing this class session and the associated tutorial challenges, students will be able to ...

  • Sample words according to their observed frequencies
  • Compare tradeoffs with different sampling techniques
  • Validate sampling techniques based on relative probabilities

Challenges

These challenges are the baseline required to complete the project and course. Be sure to complete these before next class session and before starting on the stretch challenges below.

Stretch Challenges

These challenges are more difficult and help you push your skills and understanding to the next level.

  • Page 4: Stochastic Sampling

    • Optimize for speed of sampling (read time)
    • Optimize for memory (use the least amount of space)
    • Solve with only lists and tuples
    • Combine other weighting techniques

Resources