Skip to main content

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

Metadata

Release files for deFit 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deFit 0.3.0
File Size Uploaded
defit-0.3.0.tar.gz 353.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deFit 0.3.0
File Interpreter ABI Platform
deFit-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 714.2 kB

Release files / defit-0.3.0.tar.gz

Download URL defit-0.3.0.tar.gz
Size 353.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9a907ca889e7d9cbbf2dd26b26fbad1cd2d41ac73aa40e8d12a3d1d1634dce60
BLAKE2b-256 checksum
How to use checksums
19bd7a5548b978d3efdb075b144588069fdb7ca37866b57fda46619ce2d4128d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.0

Release files / deFit-0.3.0-py3-none-any.whl

Download URL deFit-0.3.0-py3-none-any.whl
Size 361.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e6ab5c55c76bab5665e83dca369e669cbc733c7296af25d90693a669ddce9b7
BLAKE2b-256 checksum
How to use checksums
9615100a4fc78c452e75f9068bd43acdeec6e9a58333e1fa025bf4147eed1b95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.2

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page