Time Series

Base Knowledge

  • CB1. A command of univariate and bivariate descriptive statistics (Data Analytics).
  • CB2. Fundamental knowledge of probability and statistical inference (Applied Statistics).
  • CB3. Basic programming skills for para ciência de dados in Python (Programming; Programming for Data Science).
  • CB4. Familiarity with elementary machine learning notions related to predictive tasks (Topics in Data Science; Artificial Intelligence).

Teaching Methodologies

The classes are, in accordance with the curriculum plan, theoretical-practical, designed to actively engage the student throughout the entire session. The methodologies adopted are student-centred and combine the exposition of concepts with their immediate application to real data, prioritising interaction, questioning and guided problem-solving.

  • ME1. Interactive lectures: structured introduction of concepts, fundamental results and methods, interspersed with tasks that elicit participation from all students – posing questions to and by students, orally and/or through a digital platform, and proposing debates/discussions in small groups on an exposed aspect or topic.
  • ME2. Commented demonstration of procedures: step-by-step, critically commented exemplification of the application of time series analysis and forecasting techniques using software, highlighting methodological decisions, the reading of results and their interpretation.
  • ME3. Guided problem-solving: work on concrete, real situations, individually or in small groups, under the guidance and tutoring of the lecturer, encouraging autonomous work. It gives a central role to the visualisation and handling of data and fosters the transfer between theory and practice.
  • ME4. Project-based learning: for students who opt for the project modality, development of a complete forecasting solution from real data, with phased validation over the course of the semester, integrating the skills of the curricular unit and culminating in the well-founded communication of the process and results.
  • ME5. Tutorial guidance and continued support: support for the consolidation of learning and the clarification of doubts, inside and outside the classroom, assuming regular attendance and the continuity of the student’s involvement beyond classes, with the initiation or completion of agreed tasks.

Learning Results

In a context where temporally structured information is increasingly relevant for describing phenomena and supporting decision-making, this curricular unit focuses on the analysis and forecasting of time series, seeking to equip the student with the techniques and critical judgement needed to apply them in a well-founded manner. This purpose is realised in the learning outcomes and skills set out below.

Upon completion of this curricular unit, the student should be able to:

  • OA1. Explain the key concepts of time series analysis and forecasting.
  • OA2. Carry out exploratory analysis and the processing of time series data, taking into account the defined analysis and/or forecasting objectives.
  • OA3. Select, apply and compare forecasting methods suitable for time series, critically assessing the predictive capacity of the models and following best practices.
  • OA4. Design, implement and communicate a complete forecasting solution for time series, justifying the methodological decisions taken.

Skills to be developed:

  • CD1. Temporal data literacy: the ability to work with real time series throughout the entire analysis and forecasting cycle, from data acquisition and structuring to the drawing of well-founded conclusions.
  • CD2. Instrumental competence: the ability to autonomously use computer tools to support and automate the stages of the analysis and forecasting process.
  • CD3. Critical thinking: the ability to assess the suitability of methods, to verify their assumptions and limitations, and to judge the predictive quality of the results in the context of the problem.
  • CD4. Technical communication: the ability to document and communicate, clearly and rigorously, the process followed, the results obtained and the final recommendations.

Program

  • P1. Exploring and preparing time series
    • 1.1. Characterising a time series
    • 1.2. Series decomposition
    • 1.3. Data preparation
  • P2. Modelling and forecasting time series
    • 2.1. Framing the forecasting problem
    • 2.2. Statistical forecasting models
    • 2.3. Predictive performance
    • 2.4. Advanced topics

Curricular Unit Teachers

Joana Jorge de Queiroz Leite

Grading Methods

In accordance with the Academic Regulations of the 1st Cycle of Studies of the Polytechnic University of Coimbra (https://www.iscac.pt/aluno-a/regulamentos-e-legislacao-academica/), students may be assessed under one of two regimes: periodic assessment or assessment by exam.

 

A) PERIODIC ASSESSMENT

MA1. Individual tests: Two tests, each graded out of 5 points (10 points in total), with no minimum grade. The tests are held in class and may cover any subject matter taught and recorded up to the preceding class. In each test, students may consult one sheet of paper (double-sided) with a summary of the subject matter prepared by themselves. Artificial Intelligence (AI) guideline: Level 0 - Prohibited (no use of AI).

MA2. Group practical assessments: Two assessments, each graded out of 4 points (8 points in total), carried out in groups of two or three members, with no minimum grade. The assessments are computational in nature, requiring the solving of problems using programming. The assessments are held in class and may cover any subject matter taught and recorded up to the preceding class. In each assessment, each group may consult one sheet of paper (double-sided) with a summary of the subject matter prepared by the group, which is handed in at the end of each assessment so that it may also be consulted in the oral defence. Groups are proposed by the students up to two classes before the assessment. For students without a group, random groups will be formed and announced in the class before the assessment. Artificial Intelligence (AI) guideline: Level 0 - Prohibited (no use of AI).

MA3. Individual defence: Individual oral defence relating to the practical assessments (MA2), held in class, with no minimum grade. The two sheets used in the practical assessments may be consulted, without any alteration. The grade is expressed as an enhancement factor between 0 and 1.25 applied to the sum of the MA2 grades. Artificial Intelligence (AI) guideline: Level 0 - Prohibited (no use of AI).

Final Classification Formula (CF): CF = T1 + T2 + (P1 + P2) × F, where T1 and T2 are the test grades (MA1), P1 and P2 the practical assessment grades (MA2), and F ∈ [0; 1.25] the factor resulting from the individual defence (MA3). The maximum classification of 20 points is reached with simultaneous maximum grades in T1, T2, P1, P2 and F.

Rules concerning periodic assessment:

  • Attendance: Access to the periodic assessment regime requires attendance at at least 50% of classes. Only students with valid working-student status are exempt from this requirement.
  • Counting of attendance: Attendance is counted from the second class until the oral defence. A class counts as attended only if the student takes part in the entire class, with a tolerance of 15 minutes at entry. No justification of absences is accepted; for this reason, absence from up to 50% of classes is allowed, and it is the student's responsibility to manage absences within this margin.
  • Missing a test or practical assessment: Missing any of the tests or practical assessments, regardless of the reason, results in a grade of 0 (zero) points for that test or assessment.
  • Missing the defence: Not sitting the individual defence corresponds to F = 0 (zero), resulting in CF = T1 + T2.
  • Alternative to the practical assessments: As an alternative to the practical assessments, students may opt to carry out, individually or in a group of up to three students, a project graded out of 8 points, comprising the writing of a full paper and a commitment to participate in a conference in the form of an oral communication. In this case, the individual defence remains, bearing on the project. This option requires three meetings over the course of the semester, with all group members and outside class time, to validate the work in progress. The first meeting, to be scheduled in person during a lesson, must take place by 15 October and serves to present and validate the project proposal. Artificial Intelligence (AI) guideline: Level 2 - Structure (AI as support for structuring and revision).

 

B) ASSESSMENT BY EXAM

MA4. Individual exam: Individual exam, with a theoretical component and a practical component, graded out of 20 points, with no minimum grade, held on a date set in the official examination schedule. The practical component is computational in nature, requiring the solving of problems using programming. Students may consult four sheets of paper (double-sided) with a summary of the subject matter prepared by themselves: two for use only in the theoretical part and two for use only in the practical part. Artificial Intelligence (AI) guideline: Level 0 - Prohibited (no use of AI).

Final Classification Formula (CF): CF = MA4.

 

Final rules applicable to both regimes:

  • The assessment-by-exam regime is available to any student, as an alternative to periodic assessment, in the periods set out in the school calendar.
  • For assessment-by-exam purposes, grades obtained in the periodic-assessment components (tests, practical assessments or defence) are not carried over.
  • Under either regime, a pass is awarded with a final classification, rounded to the nearest whole number, equal to or greater than 10 points.
  • Grade improvement requires sitting an exam in the period for which the student registers for that purpose.
  • In the event of a well-founded suspicion of fraud detected during the marking of an assessment, the student will be summoned to an oral examination to verify the knowledge and skills demonstrated. This verification is carried out by a panel composed of the course lecturer and two further lecturers from the same area. Should the student fail to demonstrate the knowledge and skills shown in the written assessment, the assessment will be annulled.

    Internship(s)

    NAO

    Bibliography

    Main:

    • Hyndman, R. J., Athanasopoulos, G., Garza, A., Challu, C., Mergenthaler, M., & Olivares, K. G. (2024). Forecasting: Principles and practice, the Pythonic way. OTexts. https://otexts.com/fpppy/
    • Hewamalage, H., Ackermann, K., & Bergmeir, C. (2023). Forecast evaluation for data scientists: Common pitfalls and best practices. Data Mining and Knowledge Discovery, 37(2), 788-832. https://doi.org/10.1007/s10618-022-00894-5
    • Support material available on InforEstudante|NONIO.

    Complementary:

    • Kolassa, S., Rostami-Tabar, B., & Siemsen, E. (2023). Demand forecasting for executives and professionals. CRC Press. https://dfep.netlify.app/
    • Lones, M. A. (2024). Avoiding common machine learning pitfalls. Patterns, 5(10), Article 101046. https://doi.org/10.1016/j.patter.2024.101046
    • Nielsen, A. (2019). Practical time series analysis: Prediction with statistics and machine learning. O’Reilly Media. [Being acquired by the ISCAC Library]
    • Peixeiro, M. (2022). Time series forecasting in Python. Manning. [Being acquired by the ISCAC Library]
    • Petropoulos, F., Apiletti, D., Assimakopoulos, V., Babai, M. Z., Barrow, D. K., Ben Taieb, S., Bergmeir, C., Bessa, R. J., Bijak, J., Boylan, J. E., … Ziel, F. (2022). Forecasting: Theory and practice. International Journal of Forecasting, 38(3), 705-871. https://doi.org/10.1016/j.ijforecast.2021.11.001