一覧 Case Studies From unit-root and cointegration tests to multiple regression: analyzing the influence of factors on medical time-series data

From unit-root and cointegration tests to multiple regression: analyzing the influence of factors on medical time-series data

In this case study, I describe how Dr.DataScience used time-series analysis and data-science expertise to help a client who wished to clarify how various time-varying factors influence a particular medical indicator measured as time-series data that they held.

In the medical setting there are many kinds of time-series data, such as patients’ recovery periods, fluctuations in vital signs, and the trajectory of a particular treatment effect. Accurately understanding the factors behind the “changes” these data show is essential to optimizing treatment strategies and deepening clinical research. By thoroughly evaluating the characteristics of the time-series data and deriving a statistically robust and practical model of influencing factors, Dr.DataScience helped the client make data-driven decisions with greater confidence.

In accordance with our confidentiality agreement, no specific medical-indicator names, patient information, or figures are disclosed; however, the time-series regression methods used, the process, and the type of findings obtained are the same as in the actual analysis.

Background and objective

The client held time-series data tracking how a particular medical indicator in a certain disease (e.g., patients’ vital signs, laboratory values, treatment-response figures, etc.) varied over time. They held the hypothesis that the variation in this medical indicator might be influenced by various factors, such as the timing of treatment intervention, the patient’s underlying disease, concomitant medications, or external environmental factors.

The client had a strong wish to identify, from within this complex time-series data, the most influential factors and to quantitatively grasp the degree of their influence. The aim was to use this to formulate more effective treatment strategies and improve future patient management.

Data and variables

This analysis used anonymized medical time-series data. The subjects were data from a patient cohort collected for a particular purpose. Specifically, the following main types of variables were included.

  1. Response (outcome) variable
    • Time-series data of a particular medical indicator: numerical data measured continuously over time (e.g., a particular biomarker value, a physiological indicator, etc.).
  2. Explanatory variables (covariates)
    • Candidate principal influencing factors: multiple time-series or non-time-series data thought to potentially influence the variation in the medical indicator, such as the type of treatment intervention, the dosage of a particular drug, patient characteristics (age, sex, presence of underlying disease), and environmental factors.

Analytical methods

  1. Evaluating the characteristics of the time-series data (unit-root test)
    • First, I verified whether the time-series data of the medical indicator had a “unit root”—a characteristic whereby the mean and variance are not constant over time. This is a property peculiar to time-series data and is important for avoiding spurious correlations.
    • I statistically determined the presence of a unit root using the ADF (Augmented Dickey–Fuller) test.
  2. Evaluating the impact of a unit root on the regression model, and the cointegration test
    • Because the ADF test indicated that the data likely had a unit root, as the next step I performed a cointegration test.
    • The cointegration test is a method for verifying whether a stable long-run equilibrium relationship exists even among multiple non-stationary time series. This allowed me to evaluate whether a meaningful long-run relationship—rather than a merely temporary correlation—could be captured by the regression model.
  3. Choosing the appropriate time-series regression model
    • Based on the characteristics of the time-series data (presence of a unit root) and the results of the cointegration test, I considered the regression-model framework best suited to the analytical objective.
    • I took into account both the case where, in the presence of a unit root, an ordinary regression model directly analyzing the original relationships becomes valid by virtue of a cointegrating relationship, and the case where a regression model using data transformed into a differenced series (a differenced-series regression model) is appropriate in order to remove the non-stationarity of the data.
  4. Evaluating linearity/non-linearity and deciding the final analytical method
    • I evaluated whether the relationship between the response variable (the medical indicator) and the candidate explanatory variables was linear (straight-line) or non-linear (curvilinear, etc.).
    • This was done through visual evaluation, such as checking scatter plots among variables, combined as needed with statistical tests.
    • Through these evaluations, I judged that the relationship of the explanatory variables to the response variable could be appropriately expressed by a linear model, and I adopted multiple regression analysis as the final method. This established the basis for quantitatively evaluating the degree to which each factor influences the variation in the medical indicator.

Overview of the main results and clinical considerations

This time-series regression analysis yielded objective and quantitative insights into how multiple factors influence the variation in the particular medical indicator. The analysis made clear that several principal factors had a statistically significant influence on the variation in the medical indicator.

This finding provides strong grounds for the client to make more data-driven decisions in improving patient-management protocols in the clinical setting, building predictive models of treatment effects, or evaluating the effectiveness of new interventions. For example, where a particular factor is suggested to be strongly associated with worsening of the medical indicator, early intervention or strengthened management of that factor may lead to improved patient outcomes.

Dr.DataScience’s contribution

This case shows how deeply and practically Dr.DataScience can contribute to identifying the influencing factors behind a client’s complex medical time-series data and deriving practical insights.

In this time-series analysis, I began by rigorously verifying the presence of a “unit root,” a property peculiar to time-series data. Based on this data characteristic, I performed a cointegration test to show whether a stable long-run relationship existed among multiple non-stationary data, thereby eliminating the risk of spurious correlation and ensuring the statistical validity of the results.

Furthermore, I selected the optimal regression model according to the presence of a unit root and, after carefully evaluating the linearity of the relationships among variables, applied multiple regression analysis. This series of analytical processes deeply accounted for the complex temporal dependencies inherent in medical data, providing reliable scientific evidence for the challenge the client faced. I am proud that, through advanced analysis of time-series data in the medical field, Dr.DataScience powerfully advanced the client’s clinical problem-solving and data-driven decision-making.

© Dr.データサイエンス. All Rights Reserved.