Archived · Fall 2025

CS 250 Foundations of AI and Data Science

All offerings: Fall 2018 (DS 200)Spring 2019 (DS 200)Spring 2020 (DS 200)Spring 2021 (DS 200)Spring 2022 (DS 200)Spring 2024 (DS 200)Fall 2024Fall 2025 Current course page →
This is the course website as it was published for Fall 2025. Dates, links and policies reflect that semester and may be out of date; see the current course page for the latest version.

Course Info

This project-based course introduces fundamental concepts and techniques in artificial intelligence and data science, covering topics such as machine learning, data analysis, and algorithmic decision-making.

Instructor:

Dr. Peilong Li

Office:

Esbenshade 284B

Appointments:

By email

Number of Credits

4

Pre-requisites

  • CS 121 Computer Science I
  • Any Math course from: MA 121 Calculus I, MA 135 Discrete Math, or MA 251 Probability and Statistics.

Textbooks

  • (Required) CS 250: Foundations of AI and Data Science. ZyBooks.
    Sign-up with: link.
    Enter zyBooks code: ETOWNCS250LiFall2025, then subscribe.

  • (Optional) Gareth James, et al. An Introduction to Statistical Learning with Applications in Python (ISLP).
    2023, Springer.
    ISBN: 978-3-031-39189-7.
    E-copy: link

Course Overview

Course Coverage

This hands-on, project-based course introduces data science, blending computer science and statistics to extract insights from diverse datasets. Students master Python’s data science tools, including Jupyter, NumPy, Pandas, and Scikit-learn, and apply advanced visualization techniques. The curriculum emphasizes statistical understanding and analytical models like regression and clustering. A key focus is on data storytelling, enabling students to effectively communicate complex insights, bridging technical analysis with strategic decision-making.

Student Learning Outcomes

  • (Concept) Understand the background and rationale behind this new data science discipline.
  • (Programming) Proficiently use the Python data science toolset including Jupyter notebook, NumPy, Pandas, Scikit-learn etc., in the lab assignments and projects.
  • (Visualization) Use data visualization python packages Matplotlib and Seaborn to present analytical results.
  • (Statistics) Reinforce the understanding of statistics and its application in the scope of data science.
  • (Analytics) Apply data analytical models including regression, clustering and decision trees to solve data science problems.

Course Schedule

Schedule

Note this tentative schedule is subject to change. Please check the schedule regularly.

Last updated: 08/21/2025

Week Starting Topics Reading Notes
1 8/25/24 M: Lec1: Course introduction & intro to AI Mon: HW1 out.
W: Lec2: Python for data science Week 01-1
F: Lec3: A final project preview Week 01-2
2 9/1/24 M: Labor Day, No Classes
W: Lec4: Numpy arrays and array indexing Week 02-1
F: Lec5: Numpy array operations; PE1: Numpy Week 02-2
3 9/8/24 M: Lec6: Pandas - Series and DataFrame Week 03-1 Mon: HW1 due; HW2 out;
W: Virtual Day: Complete “Lab1: Numpy” online Week 03-2 Mon: Project team formation due
F: Lec7: Pandas - groupby, concat, merge Week 03-3
4 9/15/24 M: Lec8: Pandas - IO and methods Week 04-1 Mon: Creative research team formed
W: PE2: Pandas Week 04-2
F: Lab2: Pandas Week 04-3
5 9/22/24 M: Lec9: Data visualization - Matplotlib, Pandas Week 05-1 Mon: HW2 due; HW3 out.
W: Lec10: Data visualization - Seaborn Week 05-2
F: Lec11: Data visualization - Plotly Week 05-3
6 9/29/24 M: Lab3: Visualization Week 06-1 Mon: Project proposal due.
W: Lec12: Basic statistics Week 06-2
F: Lec13: More on Statistics and probability Week 06-3
7 10/6/24 M: Lec14: Module 1 summary and exam 1 preview Week 07-1 Mon: Creative research topic finalized
W: Exam 1
F: Fall Break, No Classes
8 10/13/24 M: Lec15: Intro to machine learning Week 08-1 Mon: HW3 due.
W: Lec16: Linear regression Week 08-1
F: PE3: Linear regression exercises Week 08-3
9 10/20/24 M: Lec17: Logistic regression Part 1 Week 09-1 Mon: HW4 out.
W: Lec18: Logistic regression Part 2 Week 09-2
F: Lec19: K nearest neighbors Week 09-3
10 10/27/24 M: PE4: Classification Week 10-1 Mon: creative research check-in
W: Lab4: Classification Week 10-2
F: Lec20: K-means clustering Week 10-3 Fri: Project milestone due.
11 11/3/24 M: PE5: K-means exercises Week 11-1 Mon: HW4 due; HW5 out.
W: Lab5: Clustering Week 11-2
F: Lec21: Dimensionality reduction Week 11-3
12 11/10/24 M: PE6: PCA Week 12-1
W: Lec22: Support vector machine Week 12-2
F: PE7: SVM Week 12-3
13 11/17/24 M: Lab6: SVM Week 13-1 Mon: creative research due
W: Lec23: Generative AI Week 13-2
F: PE8: Generative AI; Exam 2 Preview Week 13-3
14 11/24/24 M: Exam 2 Mon: HW5 due.
W: Virtual Day - Project update and discussion
F: Thanksgiving Break, No Classes
15 12/1/24 M: Project presentation group 1 Sunday: Project presentation slides due.
W: Project presentation group 2
F: Project presentation group 3
16 12/8/24 M: No Classes
W: No Classes
F: 11-2 PM, Project presentation buffer day Fri: Project final paper and code due at midnight.

Grading Policies

Grading Weights

The final grade for this course depends upon the grades and scores earned on course components weighted as follows:

  • 5% : A number of in-class pop quizzes.
  • 5% : Creative research: research paper, new technology presentation, Kaggle competition.
  • 15% : Bi-daily reading assignments.
  • 15%: 5 individual homework.
  • 18%: 6 in-class labs.
  • 22%: 2 midterm exams.
  • 20%: Final Project - project proposal (1.7%). Milestone check (3.4%). Project demonstration and presentation (6.8%). Final project report and revised code (5.1%).

Grades will be computed by rounding numerical percentages to the nearest integer and applying the following table:

Letter Range Letter Range Letter Range
A 93-100 B- 80-82 D+ 67-69
A- 90-92 C+ 77-79 D 63-66
B+ 87-89 C 73-76 D- 60-62
B 83-86 C- 70-72 F 0-59

In-class Team Labs

All labs are to be done in class, with the assistance of the instructor. Students are required to form a team of two to solve the lab assignments together. Each assignment will be given near the beginning of a class and must be uploaded to Canvas before the due time. Some of the labs allow for late submission till midnight with late penalty, but no submission is allowed beyond the lab day. To receive full credit, a programming assignment must have no code exceptions, but partial credit will be awarded based on the understanding of the material demonstrated by the student’s code.

Individual Homework

All homework assignments have to be completed individually in this course. Homework assignments are meant to be more comprehensive tasks that may need additional reading and research. Homework assignments are to be completed in a week or two.

Late Policy

Late assignment will lose equation points per day, including weekends and holidays. For example, -1 after 1 day, -2 after 2 days, -4 after 3 days … until 8+ days students will receive 0 score. Under no circumstances should any student disclose their code, or copy the code written by other students or from an outside source. Both students will receive 0 score on the disclosed/copied assignment.

Creative Group Research

To enrich the learning experience and encourage exploration beyond the classroom, students will work in groups of up to four members to complete a creative research assignment in one of the following categories: (1) Research paper (agreed by instructor) reading and analysis; (2) Presentation on a new technology (introduced within the last two years); and (3) Ongoing Kaggle competition.

Final Project

The final project best demonstrates students’ understanding of the lecture contents and their capability of solving real data science problems. Students are encouraged to form teams of no more than 2 people. A single solo project is allowed if class size is odd. Topics of the final project are left open for the teams to find, but the final choice has to be decided upon the instructor’s agreement. A good list of potential projects can be found at Kaggle and Public Datasets. Teams are responsible for finding the project of their interest and discussing the project feasibility face-to-face with the project manager, a.k.a., the instructor 1 week before the project proposal is due. Project formation is on a rolling basis, meaning formerly finalized projects cannot be taken again by another team. The grading of the final project consists of four major aspects:

  • 10%: the project proposal (including the conversation with the instructor a week before due);
  • 20%: mid-term project check (must have shown substantial exploratory data analysis);
  • 40%: the project demonstration; code and slides are due the night before the presentation day;
  • 30%: everything else including report; revised code and the report are due on the last day of the final exam week.

The requirements and grading rubric for each component of the project will be posted on Canvas. Under no circumstances should any student copy the code from an outside source. Source code similarity tools will be used to detect plagiarism.

Note:

There is a potential pitfall of using open datasets to introduce data science that some students want to leverage. I want to be crystal clear that the point of this project is to learn as much as possible. The point of this project is not to achieve the most intriguing results on the Kaggle leaderboard. For instance, if you copied some code you didn't understand and used it to get very compelling analytical results, I would consider this a very poor project. However, if you thoughtfully try various strategies, incorporate lots of interesting learning resources, and do a good job communicating with your peers regarding what worked and what didn't, I would consider that highly successful even if your results were not the best.

Grading Rubrics

Code

Grading rubrics for code submission in terms of percentage:

100%:

  • Functionality: For assignments that have well-specified behavior, the code should be able to pass (or very nearly pass, e.g. there may be minor output formatting issues) automated unit testing of all required features. For open-ended assignments the code must be easy to run without modification and implement all of the required functionality.
  • Documentation: all functions are commented with appropriate doc strings. For open-ended assignments there is a README file discussing how to run the program and what it is supposed to do.
  • Style: the program exhibits effective modular design. The code does not have unnecessary cut and paste code or magic numbers. Variable and function names are sensibly chosen.

80%:

  • Functionality: For assignments that have well-specified behavior, the code should implement all of the required functionality. For this grade, it is possible that 10-20% of the functionality may be broken. For open-ended assignments it will be possible to get the code running with modest effort (i.e. it will not be as well documented as in a 5, but it isn’t too hard to intuit how the code works). For these types of assignments all required features must be present, however, some (10-20%) may not be functioning properly or otherwise poorly implemented.
  • Documentation: some functions are missing doc strings. Comments are fairly minimal.
  • Style: some aspects of the design of the program could be improved to reduce cut and paste code. Variable and function names are for the most part well-chosen.

60%:

  • Functionality: The code should implement almost all of the required features (it is okay if roughly 20% are not implemented). A significant portion, 30-50%, of the code may not work as it is supposed to.
  • Documentation: Docstrings are mostly absent For well-defined assignments the code does not run as it should based on the assignment spec. For open-ended assignments there may not be any indication of how to run the program, and it is not easy for a NINJA to figure out how the code works (a good test is if you have to e-mail someone to ask them how their code runs, they are probably at this level).
  • Style: the program design needs improvement. The code would be a lot cleaner if the author had done a better job thinking through the appropriate functional decomposition. The code has lots of cut and paste and magic numbers. Variable and function names are hard to interpret.

40%:

  • Functionality: the assignment is incomplete (~50% of the functionality is not implemented). The functionality that is implemented is not 100% correct.
  • Documentation: mostly absent.
  • Style: design is poor. Very little attention has been paid to choosing a sensible functional decomposition. Variable and function names are chosen almost arbitrarily.

20%:

  • Functionality: only minimal functionality is present.
  • Documentation: little or none.
  • Style: Code is not “readable”. Poor choice of variable and function names.

0%:

  • nothing turned in.

Notebook Assignments

Jupyter notebooks are the files you need to submit for labs and homework assignments.

100%:

Thorough engagement with each section of the reading. Each exercise has either been completed, or you have articulated a well-thought out set of questions for each of the problems you didn’t answer. Points will be deducted from 100% for the following reasons:

  • Exercises are not filled out (either with a solution or a question)
  • The answer to the exercise does not demonstrate a good faith attempt to complete it.

Writing

Writing will be evaluated for clarity, concision, and comprehensiveness. The particular style that you should use will depend on the assignment and your audience. The bottom line is don’t cut corners with writing in this class. Your ability to communicate what you have done is just as important as what you have done. Don’t make the mistake of spending all of your time writing code, and then rush through the writing parts of the assignment. See below for some stylistic guidance.

  • Since the dawn of time, college students have been writing introductions that are too grandiose (and often false). Just get into it; you don’t have to zoom in from space (and make stuff up). Write the abstract last and summarize the most important result.
  • The passive voice is a hoax. Please write in the first person (singular or plural).
  • Write in the present tense whenever possible. Some actions happen in the past, but all research exists in an eternal present: “Using data from BRFSS, they plot weight versus height and find that tall respondents are heavier, on average, than shorter respondents. Our results are consistent with this conclusion.”
  • When you edit, try to remove words.
  • Avoid using “significant” unless you mean “statistically significant;” a good alternative is “substantial.” Avoid using “correlation” unless you mean a coefficient of correlation. In general, there might be a “relationship” between variables and you might characterize it with a correlation.
  • “Trend” usually means something is changing in time; “pattern” is more general.
  • Provide indicators of logical flow. If I ask you to answer a set of question in your report, don’t just paste the questions as your section headings. You should create your own document structure based on what makes sense for your project.
  • Explain your motivation. Avoid “We were interested” and “We wanted” as pseudo-motivation. And don’t look at the camera; that is, don’t use “because we were told to” as motivation, and avoid “for this project”.
  • When you refer to figures and tables, capitalize “Figure” and “Table.” Formal figures have a number and a caption, and they can float. Informal figures are part of the text flow. If a figure doesn’t contain much information, summarize it in text.
  • Find an authorial voice that is casual enough to be engaging (without overdoing it).

Policy Statements

Course Schedule

The most up-to-date course schedule will be posted on course website schedule page: https://peilong.github.io/courses/cs250/schedule/. Students are responsible for checking the schedule regularly. Schedule page will include: 1) teaching topics for each meeting; 2) reading assignments for each week and 3) special notes on specific days.

Course Announcements & Discussion

All course announcements will be sent to your E-Town email accounts via Canvas Announcements. You are responsible for signing up for this service and checking your emails regularly.

I have created a Microsoft Teams channel (link) to facilitate course related discussion. Discussions are encouraged to be posted on the “QA” channel from Teams. Private instant messages can be sent directly to your recipient by search your recipient’s name on the “search” bar.

Attendance Policies

Attendance is expected of every student at every lecture. Students are responsible for all content covered in class as well as assigned book chapters. Due to their nature, pop quizzes cannot be made up.

Except in the case of documented emergencies, neither exams nor in-class labs can be made up afterwards. For excused absences, students must arrange to take the exam or do the lab before the normally scheduled time. Arrangements must be made with the instructor at least two weeks prior to the scheduled time.

Students are expected to maintain an attitude of respect at all times toward their colleagues, the equipment, and the instructor. Cell phones and similar devices is prohibited from using during lecturing time. Students who use offensive language, misuse computing facilities, or are otherwise disruptive of the classroom will be asked to leave.

Statement on School Closure

In the event that classes do not meet because Elizabethtown College is closed or delayed due to inclement weather or some other emergency, the slides that would have been covered during the missed classes will be posted through Canvas. Students are expected to do the assigned reading, review the slides, and e-mail the instructor with any questions. There will also be an opportunity to ask questions about the material when classes resume.

If a scheduled exam or lab is missed, it will normally be made up on the day that classes resume. If the College is closed on a day when a project is due, the project due date will also normally be extended until the day when classes resume. If circumstances render either of these makeup policies unreasonable, the instructor will send an e-mail explaining an alternative makeup opportunity to each student’s Elizabethtown e-mail account.

Statement on Academic Integrity

Check out the up-to-date statement from: Elizabethtown College Catalog, “Academic Judicial System”

Statement on the Use of ChatGPT and Generative AI Tools

The use of GenAI tools like ChatGPT to generate source code is prohibited for your assignments in this course unless otherwise noted in the syllabus. Therefore, your instructor will consider it a violation of academic integrity to use a GenAI tool for any purpose that is not explicitly outlined in assignment instructions. While this new technology can be very useful in certain contexts, it is important to make sure that its usage in the classroom setting is limited in order to ensure that you are doing original work and developing your critical thinking skills. In circumstances in which AI usage is permitted in class, you must acknowledge that usage and provide the chatbot with credit when it is a cited source. For instance, to cite ChatGPT in APA, the APA provides some direction at https://apastyle.apa.org/blog/how-to-cite-chatgpt. If you have any questions or uncertainty over the use of AI in this course, please reach out to the instructor.

Respect for Diversity

It is my intent that students from all backgrounds and perspectives be well served by this course, that students’ learning needs be addressed both in and out of class, and that the diversity that students bring to this class be viewed as a resource, strength, and benefit. I also intend to present materials and activities that respect diversity: gender, sexuality, disability, age, socioeconomic status, ethnicity, race, and culture. Please let me know if there are ways to further serve the diverse needs you or other students may have.

Religious Observances

The College is eager to facilitate individual religious beliefs and practices whenever possible while retaining course student learning outcomes. It is your responsibility to meet with the class instructor in advance to request arrangements related to your religious observances that may conflict with this class, and to make appropriate plans to make up any missed work. The following is a link from the Chaplain’s Office website where a list of Religious Holidays needing accommodations (if requested) is posted: https://www.etown.edu/offices/chaplain/index.aspx

Mental Health and Counseling Resources

Counseling Services provides a broad range of counseling and mental health support services that facilitate students’ personal, social, and academic development. The licensed mental health professionals provide short-term individual counseling, group counseling, crisis intervention, and consultation to currently enrolled students for no additional charge. Counseling services are provided in a confidential and diversity-affirming environment to help students address a variety of mental health, situational, and developmental concerns. The office is located in the Baugher Student Center, Suite 216. Appointments can be made in person or by calling 717-361-1405. Urgent walk-in services are also available. To access the after-hours crisis services, please call the 24/7 Campus Security number of 717-361-1111. For more information, please visit www.etown.edu/offices/counseling.

ADA Statement

Elizabethtown College is committed to providing access for all students to courses, programs, services, and activities. If you have a documented disability such as a learning disability, chronic illness, or a new circumstance such as a concussion and would like to request accommodations, contact Dr. Michele Moohr, Coordinator of Disability Services by phone (717-361-1227) or e-mail (moohrm@etown.edu). The Office of Disability Services can provide resources to you and facilitate communication with faculty about reasonable accommodations. After meeting with the Office of Disability Services, students must set up an appointment to meet with me, the instructor, to discuss the accommodations as they pertain to my class. Common accommodations may include extra time on exams, an alternate exam location, the ability to record class lectures, and access to content with a screen reader.

Modifications for Non-native English Speakers

Elizabethtown College is committed to providing equitable access to all courses, programs, and services for non-native (international and domestic) English speakers. Students may request tutoring, learning resources, course modifications, and learning opportunities. Students interested in seeking a course modification should contact Ms. Maria Petty (pettym@etown.edu), International Student Programs Advisor, at (717) 361-1594.

Title IX

Elizabethtown College and its faculty are committed to creating a safe and open learning environment for all students. If you or someone you know has experienced sexual harassment, including sexual assault, dating or domestic violence, and stalking, please know that help and support are available. Etown strongly encourages all members of the community to take action, seek support, and report incidents of sexual harassment to the Title IX Office. You may contact the Title IX Coordinator at reedg@etown.edu or learn more by visiting https://www.etown.edu/offices/diversity/titleix/index.aspx. 

Please be aware that faculty members are required to disclose information about suspected or alleged sexual harassment or other potential violations of the College Sexual Misconduct Policies and Procedures to the Title IX Coordinator. If the Title IX Coordinator receives information about an incident, they will reach out to offer information about resources, rights, and procedural options as a member of the campus community. Community members are not required to respond to this outreach. If you, or another student you know, wishes to speak to a confidential resource who does not have this reporting responsibility, please contact Counseling Services at 717-361-1405.

Software

Anaconda Individual Edition

In this course, the only software you’ll need to install is the Anaconda Individual Edition. Anaconda is a widely-used data science platform that includes nearly all the packages you’ll need for Python and R. Please download the Python 3.10+ version from the following link, choosing the installer that matches your operating system: https://www.anaconda.com/products/individual.

Note:

Anaconda is also available on the computers in the Esbenshade 281, Hoover 108 and Nicarry 208 computer laboratories and in the Computer Science commons area (E284).

Archived from Peilong/Peilong.github.io@cfa52c3 (2025-11-11).