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
  Copying Data from Multiple XLS Files to a Cumulative Master File Martijn 3 3,003 Apr-05-2025, 05:07 AM
Last Post: Pedroski55
  how to retrieve sets of data paul18fr 7 2,908 Jul-28-2024, 08:17 PM
Last Post: Vito
  replace sets of values in an array without using loops paul18fr 7 4,809 Jun-20-2022, 08:15 PM
Last Post: paul18fr
  Data sets comparison Fraetos 0 2,264 Sep-14-2021, 06:45 AM
Last Post: Fraetos
  Mann Whitney U-test on several data sets rybina 2 3,680 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 3,106 Jun-09-2020, 06:05 AM
Last Post: Pan
  Help with Maths (inverse squares) michael1789 5 4,748 Dec-11-2019, 07:30 AM
Last Post: Gribouillis
  Clustering for imbalanced data sets dervast 0 2,518 Sep-25-2019, 06:34 AM
Last Post: dervast
  how to fit an exponential function to multiple data python_newbie09 1 4,657 Sep-24-2019, 08:12 AM
Last Post: scidam
  How to extract different data groups from multiple CSV files using python Rafiz 3 5,271 Jun-04-2019, 05:20 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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