CSE 357, Fall 2019: Statistical Methods for Data Science

News:
09/02: Course schedule updated.
08/27: Lecture 1 slides have now been posted.
08/19: Piazza sign-up link.
08/19: Our first lecture will be on Aug 27th (Tu) at 4pm in Frey 309.

CSE 357: Statistical Methods for Data Science
Fall 2019


When: Tue Thu, 4:00pm - 5:20pm
Where: Frey Hall 309

Instructor: Anshul Gandhi
Instructor Office Hours: Tue 1:30-2:30pm, Wed 3:30-4:30pm; location: 347, New CS building

Course TAs: Sai Sivalenka, Vamsikrishna K M, Rohit Patil

Course Info

This undergraduate-level course covers probability and statistics topics required for data scientists to analyze and interpret data. The course will involve theoretical topics and some programming assignments. The course is targeted primarily for junior and senior undergraduate students who are comfortable with concepts relating to probability and are comfortable with basic programming. Undergraduates from Computer Science, Applied Mathematics and Statistics, and Electrical and Computer Engineering would be well suited for taking this class. Topics covered include Probability Theory, Random Variables, Stochastic Processes, Statistical Inference, Hypothesis Testing, and Regression. The class is expected to be interactive and students are encouraged to participate in class discussions.

Grading will be on a curve, and will tentatively be based on assignments, exams, and class participation. For more details, refer to the section on grading below.

Syllabus & Schedule

Date Topic Readings Notes
Aug 27 (Tue)
[Lec 01]
Course introduction, class logistics
Aug 29 (Thu)
[Lec 02]
Probability review - 1
  • Basics: sample space, outcomes, probability
  • Events: mutually exclusive, independent
  • Calculating probability: sets, counting, tree diagram
  • AoS 1.1 - 1.5
    MHB 3.1 - 3.4
    Sep 03 (Tue)
    [Lec 03]
    Probability review - 2
  • Conditional probability
  • Law of total probability
  • Bayes' theorem
  • AoS 1.6, 1.7
    MHB 3.3 - 3.6
    assignment 1 out
    Sep 05 (Thu)
    [Lec 04]
    Random variables - 1
  • Mean, Moments, Variance
  • pmf, pdf, cdf
  • Bernoulli(p)
  • Indicator RV
  • Binomial(n, p)
  • Geometric(p)
  • AoS 2.1 - 2.3, 3.1 - 3.4
    MHB 3.7 - 3.9
    Python scripts:
    draw_Bernoulli, draw_Binomial, draw_Geometric
    Sep 10 (Tue)
    [Lec 05]
    Random variables - 2
  • Uniform(a, b)
  • Exponential(λ)
  • Normal(μ, σ2), and its several properties
  • AoS 2.4, 3.1 - 3.4
    MHB 3.7 - 3.9, 3.14.1
    Python scripts:
    draw_Uniform, draw_Exponential, draw_Normal
    Sep 12 (Thu)
    [Lec 06]
    Random variables - 3
  • Joint probability distribution
  • Linearity and product of expectation
  • Central Limit Theorem
  • AoS 2.5 - 2.7, 5.3 - 5.4
    MHB 3.10, 3.13, 3.14.2
    assignment 1 due
    assignment 2 out
    Sep 17 (Tue)
    [Lec 07]
    Non-parametric inference - 1
  • Basics of inference
  • Empirical PMF
  • Sample mean
  • bias, se, MSE
  • AoS 6.1, 6.2, 6.3.1 Python scripts:
    sample_Bernoulli, sample_Binomial, sample_Geometric
    Sep 19 (Thu)
    [Lec 08]
    Non-parametric inference - 2
  • Empirical Distribution Function (or eCDF)
  • Statistical Functionals
  • Plug-in estimator
  • AoS 6.3.1, 7.1 - 7.2 Python scripts:
    sample_Uniform, sample_Exponential, sample_Normal,
    eCDF
    Sep 24 (Tue)
    [Lec 09]
    Confidence intervals
  • Percentiles, quantiles
  • Normal-based confidence intervals
  • DKW inequality
  • AoS 6.3.2, 7.1 assignment 2 due
    assignment 3 out
    Required collisions.csv dataset for A3.
    Sep 26 (Thu)
    [Lec 10]
    Parametric inference - 1
  • Basics of parametric inference
  • Method of Moments Estimator (MME)
  • AoS 6.3.1 - 6.3.2, 9.1 - 9.2
    Oct 01 (Tue)
    [Lec 11]
    Parametric inference - 2
  • Method of Moments Estimator (MME)
  • Properties of MME
  • AoS 9.1 - 9.2
    Oct 03 (Thu)
    [Lec 12]
    Parametric inference - 3
  • Likelihood
  • Maximum Likelihood Estimator (MLE)
  • Properties of MLE

  • Practice mid-term 1 solutions
    AoS 9.3 - 9.4, 9.6 assignment 3 due
    assignment 4 out
    Required datasets: Freedom, Generosity, Trust.
    Oct 08 (Tue) Mid-term 1
    Oct 10 (Thu)
    [Lec 13]
    Python programming tutorial
    Python scripts: basic.py, test_plot.py, matrix.py
    Guest lecture by Muhammad Wajahat
    Oct 15 (Tue) Fall break No class
    Oct 17 (Thu)
    [Lec 14]
    Hypothesis testing - 1
  • Basics of hypothesis testing
  • The Wald test
  • AoS 10 - 10.1
    DSD 5.3 - 5.3.1
    Oct 22 (Tue) Instructor traveling No class
    Oct 24 (Thu) Instructor traveling No class
    Oct 29 (Tue)
    [Lec 15]
    Hypothesis testing - 2
  • The Wald test
  • Type I and Type II errors
  • AoS 10 - 10.1 assignment 4 due
    Oct 31 (Thu)
    [Lec 16]
    Hypothesis testing - 3
  • t-test
  • Kolmogorov-Smirnov test (KS test)
  • AoS 10.10.2, 15.4
    DSD 5.3.2 - 5.3.3
    Nov 05 (Tue)
    [Lec 17]
    Hypothesis testing - 4
  • p-values
  • Permutation test
  • AoS 10.2, 10.5
    DSD 5.5
    assignment 5 out
    Nov 07 (Thu)
    [Lec 18]
    Hypothesis testing - 5
  • Pearson correlation coefficient
  • Chi-square test for independence
  • AoS 3.3, 10.3 - 10.4
    DSD 2.3
    Nov 12 (Tue)
    [Lec 19]
    Bayesian inference - 1
  • Bayesian reasoning
  • Bayesian inference
  • AoS 11.1 - 11.2
    DSD 5.6
    Nov 14 (Thu)
    [Lec 20]
    Statistics in Medicine Guest lecture by Dr. Shrivastava
    Nov 19 (Tue)
    [Lec 21]
    Bayesian inference - 2
  • Bayesian inference
  • Conjugate priors
  • AoS 11.1 - 11.2
    DSD 5.6
    assignment 5 due
    assignment 6 out
    Required datasets: q2_sigma3.dat, q2_sigma100.dat.
    Nov 21 (Thu)
    [Lec 22]
    Regression - 1
  • Basics of Regression
  • Simple Linear Regression
  • AoS 13.1, 13.3 - 13.4
    DSD 9.1
    Nov 26 (Tue)
    [Lec 23]
    Regression - 2
  • Multiple Linear Regression
  • AoS 13.5
    DSD 9.1
    Nov 28 (Thu) Thanksgiving break No class
    Dec 03 (Tue) Mid-term 2 review assignment 6 due
    Dec 05 (Thu) Mid-term 2


    Resources

    Grading (tentative)

    Academic Integrity

    Each student must pursue his or her academic goals honestly and be personally accountable for all submitted work. Representing another person's work as your own is always wrong. Faculty are required to report any suspected instances of academic dishonesty to the Academic Judiciary. For more comprehensive information on academic integrity, including categories of academic dishonesty, please refer to the academic judiciary website at http://www.stonybrook.edu/commcms/academic_integrity. Please note that any incident of academic dishonesty will immediately result in an F grade for the student.

    Critical Incident Management

    Stony Brook University expects students to respect the rights, privileges, and property of other people. Faculty are required to report to the Office of Judicial Affairs any disruptive behavior that interrupts their ability to teach, compromises the safety of the learning environment, or inhibits students' ability to learn.

    Disability Support Services

    If you have a physical, psychological, medical or learning disability that may impact your course work, please contact Disability Support Services, ECC (Educational Communications Center) Building, room 128, (631) 632-6748. They will determine with you what accommodations, if any, are necessary and appropriate. All information and documentation is confidential. http://studentaffairs.stonybrook.edu/dss.
     Please report any errors to the Instructor.