Python Forum
Least-squares fit multiple data sets
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Least-squares fit multiple data sets
#1
Let's say I have 3 sets of data (data_1, data_2, data_3).

I am trying to perform a least squares fit to this data with three corresponding nonlinear functions (func_1, func_2, func_3). However, these functions are coupled in the sense that func_1 is a function of variables a and c, func_2 is a function of variables a and b, and func_3 is a function of variables b and c.

So I am essentially solving for a, b, and c that simultaneously least-squares fit the three data sets. What is the syntax to perform this in python?
Reply
#2
If you're looking for one set of coefficients to fit all three datasets, I would think that you'd have to overlay all three into one combined dataset and fit to that.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  replace sets of values in an array without using loops paul18fr 7 1,716 Jun-20-2022, 08:15 PM
Last Post: paul18fr
  Data sets comparison Fraetos 0 1,415 Sep-14-2021, 06:45 AM
Last Post: Fraetos
  Mann Whitney U-test on several data sets rybina 2 2,094 Jan-05-2021, 03:08 PM
Last Post: rybina
  Filter rows by multiple text conditions in another data frame i.e contains strings an Pan 0 2,157 Jun-09-2020, 06:05 AM
Last Post: Pan
  Help with Maths (inverse squares) michael1789 5 2,973 Dec-11-2019, 07:30 AM
Last Post: Gribouillis
  Clustering for imbalanced data sets dervast 0 1,612 Sep-25-2019, 06:34 AM
Last Post: dervast
  how to fit an exponential function to multiple data python_newbie09 1 2,825 Sep-24-2019, 08:12 AM
Last Post: scidam
  How to extract different data groups from multiple CSV files using python Rafiz 3 3,240 Jun-04-2019, 05:20 PM
Last Post: jefsummers
  Compare 2 Csv data sets, identify record with latest date MJUk 11 6,166 Jan-06-2018, 09:23 PM
Last Post: MJUk
  Panda Data Frame to Existing Multiple Sheets naveedraza 1 5,665 Jul-11-2017, 12:21 PM
Last Post: naveedraza

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020