Skip to main content

Fitting Differential Equations to Time Series Data

Project description

Welcome to deFit

Fitting Differential Equations to Time Series Data ( deFit ).

Overview

What is deFit?

Use numerical optimization to fit ordinary differential equations (ODEs) to time series data to examine the dynamic relationships between variables or the characteristics of a dynamical system. It can now be used to estimate the parameters of ODEs up to second order.

Features

  • Fit ordinary differential equation models to time series data
  • Report model parameter estimations, standard errors, R-squared, and root mean standard error
  • Plot raw data points and fitted lines
  • Support ordinary differential equation models up to second order
  • deFit can run in Python and R environments

1.2 First impression in Python

To get a first impression of how deFit works in simulation, consider the following example of a differential equational model. The figure below contains a graphical representation of the model that we want to fit.

import defit
import pandas as pd
df1 = pd.read_csv('defit/data/example1.csv')
model1 = '''
            x =~ myX
            time =~ myTime
            x(2) ~ x + x(1)
        '''
result1 = defit.defit(data=df1,model=model1)

example1

2 Navigation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

defit-0.2.0.tar.gz (352.9 kB view details)

Uploaded Source

Built Distribution

deFit-0.2.0-py3-none-any.whl (361.2 kB view details)

Uploaded Python 3

File details

Details for the file defit-0.2.0.tar.gz.

File metadata

  • Download URL: defit-0.2.0.tar.gz
  • Upload date:
  • Size: 352.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for defit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 762ec24c62c8b301917022e411e19af0e1b5be3dd0b7c7bed01b5aea40c82925
MD5 1ebae08f19e1adb25be7d0e5901a6a15
BLAKE2b-256 b170cae5359e964e3eacc17f2382c51c9754dc5394dc6891ae105a9daa9a015a

See more details on using hashes here.

File details

Details for the file deFit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: deFit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 361.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for deFit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b53767e3f324be8a97d832b2ced4757429509b607247801256474a704ee1d60
MD5 5685904a0059aa3801c627589ace5917
BLAKE2b-256 bcc0ef0b7fbc90ef21fb990a00228137fd446d435972350927545fd50fa6bbf0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page