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)
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
Built Distribution
File details
Details for the file defit-0.3.0.tar.gz
.
File metadata
- Download URL: defit-0.3.0.tar.gz
- Upload date:
- Size: 353.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a907ca889e7d9cbbf2dd26b26fbad1cd2d41ac73aa40e8d12a3d1d1634dce60 |
|
MD5 | 79a0024a3cf158870c90468c76f268d0 |
|
BLAKE2b-256 | 19bd7a5548b978d3efdb075b144588069fdb7ca37866b57fda46619ce2d4128d |
File details
Details for the file deFit-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: deFit-0.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6ab5c55c76bab5665e83dca369e669cbc733c7296af25d90693a669ddce9b7 |
|
MD5 | 1a86d9126bf4cff8503c7403d60423a9 |
|
BLAKE2b-256 | 9615100a4fc78c452e75f9068bd43acdeec6e9a58333e1fa025bf4147eed1b95 |