Syllabus#
CBE 60258, Advanced Data and Computing for Chemical Engineers, University of Notre Dame, Fall 2022
Course Description#
Computing and data science skills are without doubt extremely valuable for modern engineers. Big data, machine learning, predictive modeling, decision science and similar terms are ever-present in job posting, scientific literature, and popular news. Yet, many chemical engineers lack a background in the fundamentals of computer programming, applied statistics, and mathematical modeling for problem solving. Your excitement for data-centric topics may lead you to self-study with tutorials, extracurricular projects, and online classes to assemble a toolbox of skills or cookbook of recipes without understanding the fundamentals that govern and transcend methods.
In this class, you will learn the fundamentals of i) computing in Python, ii) mathematical modeling, iii) numerical methods, and iv) probability and statistics. In a single-semester, graduate-level class, it is impossible to master all of the skills in numerical and statistical techniques you will encounter during your careers. Instead, the overall goal of this class is to provide a solid technical foundation and nurture conceptual understanding. This is to both equip you with basic skills to use in future chemical engineering classes and enable you to learn advanced topics via technical electives, internships, online tutorials, books, and on-the-job training throughout your professional careers.
Instructor and Teaching Assistants#
Prof. Alexander (Alex) Dowling |
Ms. Kyla Jones |
Ms. Maddie Watson |
|
---|---|---|---|
Office Hours |
9-10am on Fridays in 366 or 369 Nieuwland Hall |
3-4pm on Wednesdays in 366 Nieuwland Hall |
3-4pm on Wednesdays in 366 Nieuwland Hall |
Discussuion Board (Canvas) and Email Correspondance#
Post your questions to the discussion board in Canvas
Instructor only: adowling@nd.edu, “CBE 60258” in subject, private official matters (e.g., excused absence, testing accommodations)
We encourage you to post all your questions including your mathematical models, pseudocode, and code screenshots to the public discussion board in Canvas. We are doing this for a few reasons:
As professionals, you’ll need to be comfortable asking questions in front of a team. We would like to cultivate a positive and friendly learning environment where everyone can practice this skill during the semester.
By answering questions in the public discussion board, everyone in the class will have access to the same information.
We would like to cultivate a learning community with peer instruction; as professionals, you’ll need to answer your peers’ questions.
Many scientific software have online discussion boards to ask technical questions and report bugs. Using the discussion board in Canvas will help you develop comfort asking questions in this way.
Textbook and Reference Materials#
About 40% of the class sessions map reference chapters from Computational Nuclear Engineering and Radiological Science Using Python by Prof. Ryan McClarren in Aerospace and Mechanical Engineering (2019). As we will see throughout the class, many mathematical and computational techniques are widely applicable across engineering disciplines. This is only a recommended text. There are two copies on reserve in the library. We strongly recommend looking at the library copies before purchasing.
Another 40% of the class sessions draw from material in Statistics for Engineers and Scientists by Prof. William Navidi (2014). This is one of our favorite introductory textbooks on statistics because every concept is introduced with science and engineering examples. These worked out examples show you how to apply data analysis concepts to problems you will use as practicing engineers. The book is both mathematically rigorous and accessible. We strongly recommend you purchase a copy to keep. We are using the 4th edition this semester so you can purchase used books.
Classroom Meetings#
Classroom meetings are a mix of i) traditional chalk board instruction, ii) computer demonstrations, and iii) in-class activities. Please bring an internet connected laptop computer. You are expected to have completed the assigned reading and at home activities for each topic (posted on Canvas/Vocareum) before each class session.
Assessments and Final Grades#
Homework: 25% (6 planned)
Midterm Exam: 25%
Project 1: 25%
Project 2: 25% (instead of written final exam)
Homework#
Problem set homework assignments are a collection of 2 to 5 problems designed to reinforce specific concepts and skills from class. Most problems include “pencil and paper” analysis (i.e., derive a model, determine degrees of freedom, write pseudocode), computer programming aspects, and interpretation of calculated results. These problems, especially the analysis and interpretation parts, are good practice for the exams. Many students receive near full credit on the problem sets.
Collaboration Policy and Honor Code#
You are permitted (and encouraged) to discuss solution approaches to the weekly homework assignments with classmates, however there is to be no wholesale copying or paraphrasing of code, solutions, or written discussions. You are encouraged to ask questions, including posting pseudocode or code screenshots, on the disccsion board on Canvas. Likewise, you may use any material posted by the instructors or your classmates in the discussion board on Canvas that you understand. Copying of code from classmates or the discussion board that you do not understand is not permitted. This policy is meant to facilitate collaboration while ensuring everyone in the class has the same access. Students MAY NOT use old HW files and solutions for the homework assignments: if you cannot do the problems for homework, you will not be able to do them on the exams either.
As a guiding principle, if you are not comfortable explaining your solution strategy to an instructor or TA, you should not turn in the work as your own.
Your work may be electronically tested for plagiarized content. For example, Vocareum and Gradescope have sophisticated capabilities to detect highly similar code (i.e., plagiarism for computer code) while distinguishing from provided templates. Plagiarism is a serious offense and will result in severe consequences per University, College, and Department procedures.
To remove ambiguity, the following is a non-exhaustive list of collaborative scenarios that are PERMITTED under the above policies:
You work with a group of classmate to write pseudocode together. Each person in the group participates at least once (e.g., asks a question). One person in the group takes a picture and emails it to everyone. Then each person rewrites the pseudocode on their own for the homework submission. You rewrite the comments in your own words (to be more clear). You also decide to replace a
while
loop with afor
loop. This is permitted by the collaboration policy because the work is your own. You made a clear intellectual contribution.You are working on a homework assignment and get stuck on an error message. After consulting the class notes and Google for 5 minutes, you post a screenshot of your code and the error message to Canvas. A classmate posts some alternate code that fixes your error. You reply by thanking the student and asking for clarification on why the alternate code works and your approach was wrong. This leads to a good discussion, with the instructor explaining a concept and clearing up your confusion. The solution you turn in includes the changes suggested by your classmates. This is permitted by the collaboration policy because you are comfortable explaining your solution strategy, including why the proposed modification was necessary to fix the error.
You are working on the homework assignment a little closer to the deadline than you would like to admit. You get stuck on an error message, but quickly find a discussion thread on Canvas. You read through the suggestions from your classmates and the instructor. The post answers your major questions and the proposed fix works! You adopt it into your code and add a comment acknowledging your classmates on Canvas for help. You still have a minor question about if there is an alternate way to solve the problem, so you post on Canvas and continue with the assignment. This is permitted by the collaboration policy because you made a good faith effort to understand the proposed solution. Even though you have an outstanding minor doubt, you sought out help from the TAs, instructor, and classmates. You also acknowledged the source (Canvas discussion) for the code you used, and thus are not presenting it as your own.
The following is a non-exhaustive list of collaborative scenarios that are PROHIBITED under the above policies:
You are working on your homework alone in the library but two tables away there is a group of your classmates. They work through the pseudocode on a white board and do not erase it after leaving. You take a picture “just in case”. You later get stuck and frustrated. You end up copying a majority of their pseudocode, line by line, and turn this in. You have some doubts about the approach, but ran out of time. This is prohibited by the collaboration policy because the work is not your own. Moreover, you would be unable to explain your solution approach with confidence to the TA or instructor.
It is late at night, you are frustrated with syntax errors, and you just cannot get one of the homework problems to work. You find a screenshot on Canvas of code from a classmate and an associated discussion. Desperate to finish the assignment, you start adapting your code to follow the screenshot. To keep it simple, you copy line-by-line, do not change variable names, and copy some comments but skip others. You end up submitted code that looks almost identical to your classmate. You remember the instructor keeps emphasizing the comments should be in our own words to show that you understand the solution. We decide to go to bed and add those comments in the morning. You oversleep and submit code without any comments or acknowledgments of your classmates. This is prohibited by the collaboration policy because you submitted work that is not your own. You did not acknowledge sources, and you can not explain with confidence the solution procedure to the instructor or TA.
You have no prior programming experience and feel like you are falling behind. You feel like the homework takes you three times as long as your classmates. You conclude the only way you can keep up is to do the homework with a partner. They do half the assignment and you do the other half. You then exchange solutions. The person who completed each problem then explains the solution to the partner. Each person changes the comments, adds some extra white spaces, and changes a few variable names to ensure the solutions are not identical. This is prohibited by the collaboration policy because each person did not make an honest effort to solve every problem on their own. Although each person either explained or had the solutions explained to them, they likely cannot defend all of their solutions on their own to the TA or instructor.
Midterm Exam#
The midterm exam will take place during class as indicated on the semester schedule. The exam will be closed book with no access to a computer. Students will be permitted to bring 2 sheets of letter size paper filled with handwritten notes.
Project 1: Numerical Methods for Problem Solving#
See (./project1.md)
Project 2: Data Analysis#
See (./project2.md)
Grading Standards#
All computer code must be commented. No exceptions.
All graphs must have labeled axes with UNITS. Likewise, all final answers need UNITS and should be rounded to the appropriate number of significant digits.
Be sure to answer the questions that are asked. When discussing results, only report the appropriate number of significant figures.
Problem Sets: Not all (sub)questions on problem sets will be graded in detail. You may lose points for missing comments, missing units, unlabeled graphs, and non-sensible significant figures (digits) for final answers, even for problems only graded for completion.
Formatting: The expectation is that your submission includes neatly written code with extensive comments, well-labeled graphs, and answers to any discussion questions. Your project submissions should be professionally formatted, like a laboratory report. Your response to discussion questions and code comments MUST be written in your own words.
Pseudocode: Most assignments require you to write brief pseudocode. We will learn how to do this during the first week of the semester. Your pseudocode needs to reflect all the main steps and logic of your solution. You do not need to rewrite your pseudocode if your final solution has different main steps or logic. Instead, you should update your pseudocode with a few notes showing the change. In our experience, rewriting the pseudocode is very helpful if you find a mistake in your logic but get stuck making modifications. Prof. Dowling has been programming in Python for 20 years. He writes pseudocode and so do other professional software developers.
Please see the “Pseudocode Guidelines” and “Python and Commenting Guidelines” sections in Pseudocode for additional details.
Assignment Submission#
Assignments should be submitted electronically via Gradescope. For Jupyter Notebooks, you will need to upload the .ipynb
file to Gradescope. Likewise, handwritten analysis should be scanned to a PDF and submitted via Gradescope.
Regrade Requests#
Mistakes can be made during grading. Regrades to correct these mistakes will be considered for up to ONE week after assignment grades are posted online.
Regrade requests must be submitted in writing via Gradescope. Please include a 1-3 sentence explanation of the grading mistake. We will not consider adjustments to the grading point distribution.
All regrade requests will result in a reevaluation of the entire assignment. For rubric selection mistakes in Gradescope, this means we will recheck all rubric selections. For more substantial requests, the grader may choose to reexamine the entire problem (including all subparts) and possibly the entire assignment.
Late Policy#
The following policy will apply to all assignments (homework, projects, etc.):
Up to 1 hour late: grace period with no penalty
1 hour to 24 hours late: 10% penalty of total available points
24 to 48 hours late: 20% penalty of total available points
48 to 72 hours: 30% penalty of total available points
Beyond 72 hours: assignment not accepted
If there is an extenuating circumstance, please email the instructor with CBE 60258 in the subject. Please send your requests for extensions at least 24 hours in advance of the deadline (unless your specific circumstance prevents this). When requesting an extension, please briefly explain the extenuating circumstance and propose an alternate deadline.
Software#
We will use Python 3 in this class. You have three options to use Python:
(Recommended for Most People.) Use Google Colab. This allows you to complete all assignments from any internet accessible computer.
(Recommended for Advanced Users.) Install anaconda3 on your own computer. This is a free distribution of Python that includes common packages for data analysis and scientific computing. You will need to install popular packages such as
numpy
,scipy
,pandas
, andmatplotlib
.Use anaconda3 installed on any ESC maintained computer, e.g., B19 in Fitzpatrick Hall.
Inclusiveness, Mental Health, and Disabilities#
The University of Notre Dame is committed to social justice. We share that commitment and strive to maintain a positive learning environment based on open communication, mutual respect, and non-discrimination. In this class we will not discriminate on the basis of race, sex, age, economic class, disability, veteran status, religion, sexual orientation, color, or national origin. Any suggestions as to how to further such a positive and open environment will be appreciated and given serious consideration.
Diminished mental health can interfere with optimal academic performance. The source of symptoms might be related to your course work; if so, please speak with us. However, problems with other parts of your life can also contribute to decreased academic performance. The University Counseling Center (UCC) provides cost-free and confidential mental health services to help you manage personal challenges that threaten your emotional or academic well-being. Remember, getting help is a smart and courageous thing to do — for yourself and for those who care about you. For more resources please see ucc.nd.edu. The UCC is located on the third floor of Saint Liam Hall Phone: 574-631-7336. Hours: Monday-Friday 8:30am – 5:00pm. Urgent Crisis Line 24/7.
Any student who has a documented disability and is registered with Disability Services should speak with the professor as soon as possible regarding accommodations. Students who are not registered should contact the Office of Disability Services.