Fitting Definition and 224 Threads

  1. D

    Mathematica Fitting Curve to Data Points using Mathematica

    I am trying to use Mathematica to fit a curve to these data points ListPlot[{{2*Pi/(1 - 0^2/16), 5 (3 - Log[2])}, {2*Pi/(1 - .05^2/16), 10 (3 - Log[2])}, {2*Pi/(1 - .1^2/16), 15 (3 - Log[2])}, {2*Pi/(1 - .15^2/16), 20 (3 - Log[2])}, {2*Pi/(1 - .2^2/16), 25 (3 - Log[2])}...
  2. T

    Can RANSAC be used for fitting splines to noisy 3D point clouds?

    I am wondering if there is any way to create a model that can be used in a RANSAC method where a spline could be determined from a noisy 3d point cloud. What i have is a volume containing a set of points in each xy-plane, having say 400 of these in the z direction and a spline shape emerges...
  3. M

    Determine dispersion from fitting equation

    1. Homework Statement Determine the dispersion (dn/d lambda) at a wavelength of 800 nm from fitting equation. 2. Homework Equations Fitting equation from graph of n vs 1/lambda^2 y = 7e-15 x + 1.60 3. The Attempt at a Solution Since it is a plot of n vs 1/lambda^2 I...
  4. M

    Determine dispersion from fitting equation

    Homework Statement Determine the dispersion (dn/d lambda) at a wavelength of 800 nm from fitting equation. Homework Equations Fitting equation from graph of n vs 1/lambda^2 y = 7e-15 x + 1.60 The Attempt at a Solution Since it is a plot of n vs 1/lambda^2 I thought that...
  5. V

    Looking for help Retro Fitting a computer keyboard

    Long story short I want to Mount a Computer inside an Antique typewriter maintaining the look and feel of the antique. My initial plan is to dissasemble a Toshiba Satellite and disgard any thing I don't need (plastic housing, Maybe the speakers, and any chassis' I can do without) I have so far...
  6. O

    Confidence interval from least squares fitting?

    Hello, Let me get right to my problem. I have an experimental distribution and a single-parameter theoretical distribution. I want to find the value for the best fit theoretical distribution that agrees with my experimental data for the bulk of the distributions (the tails of my...
  7. G

    How did you fit a line to a curve?

    never mind i figured it out.
  8. S

    Fitting points to skewed sinusoids

    Fitting points to "skewed" sinusoids Hello, I have a problem related to least square fit of data. Let me start from a step back. I have a set of points, given as x-y coordinates. x represents an angle and y the corresponding value of a function. I am fitting sinusoids to those data points...
  9. M

    Fitting a geometric distribution to data

    Let's say I have a series of 100 coin tosses, heads or tails. In fact (for my actual data) I don't know if subsequent trials are correlated or what the actual probabilities of getting heads or tails are. Nevertheless, I want to fit a geometric distribution, which gives me the distribution of the...
  10. E

    How Can I Fit Functions to Both Time and Pixel Number in a Matrix Animation?

    If I have a set of n numbers, (n=0,1,2, ... n-1), what is the maximum number coefficients in a series I would need in order to find y=f(n) true on the integers up to n-1? Or is that something I just have to check after fitting it? ( does it need an nth degree polynomial?) Another question...
  11. E

    Curve fitting of summed normal distributions

    Hi, I have a dataset of a random variable whose probability density function can be fitted/modelled as a sum of N probability density functions of normal distributions: F_X(x) = p(\mu_1,\sigma_1^2)+p(\mu_2,\sigma_2^2)+\ldots+p({\mu}_x,\sigma_x^2) I am interested in a fitting method can...
  12. A

    GARCH fitting to binary data / latent data

    Dear all I am trying to fit a simple ARCH(1)/GARCH(1,1) model to a set of binary data, i.e. I assume a latent GARCH process that is only observed at the values a and b, say (whenever it crosses or hits those thresholds). I found some ideas on fitting a censored GARCH (by SX Wei, for example...
  13. R

    Convergence of Circle Areas in a Boundary Defined by y=1/x and x=0, y=0

    I thought of a problem a few days ago and I have no idea as to its solution. I posted this on Reddit and xkcd forums earlier but not much has been solved apart from the area of one circle. Suppose you have a boundary formed by the curve y=e^(-x), and the lines x=0 and y=0. In this boundary you...
  14. E

    Fitting a function in mathematica

    Say I have a function: f(x,y) I have values for f and y such that I can make a plot of f vs y... however, from the values of f and y, I am interested in finding what x is. The x value should be a constant that is optimized to fit the f vs y graph. Is there a way I can do this in...
  15. V

    Mathematica Mathematica: Listplot & Non linear fitting

    Good day, I am relatively new to mathematica, and I am using it to fit a formula to a dataset that I have. To begin with, I am having issues with a very simple part, namely with a ListPlot. I have an xls file with 2 columns and 26 rows, corresponding to an x and a y value. Using import, I...
  16. M

    Fitting 4 parameter distributions in S-Plus (or R)

    Hi, I am trying to fit sample data to a Johnson SU distribution in S-Plus. It seems not many people use S-Plus, so if you are familiar with R then you could help as well. The code that I have is: [FONT="Courier New"]f.Jsu.fun.takeslist(x,g,l,r,e) which is a function I have made that...
  17. sunrah

    Fitting a Gauss curve to lab data

    I have 100 data points that I want to fit in Excel I can do this with NORMDIST no problem but I'm also trying to do it without it to no avail! I'v tried plotting the data using the Gauss function: y(x) = \frac{1}{\sqrt{\pi \sigma^{2}}}e^{\frac{-(x - x_{0})^2}{2\sigma^{2}}} where x is a data...
  18. J

    Curve Fitting Data: Motion Analysis, Bouncing Ball, Excel Graph

    Homework Statement This is not homework, just a personal project. I do not know if this is the correct section to post, sorry if it's not. I'm using a motion analysis software to track the position of a bouncing ball (y vs t). I imported the data into Excel and the graph is attached. What type...
  19. J

    Matlab - Normal equation for linear least squares model fitting

    Homework Statement Im trying to construct a function in MATLAB that models linear least squares model fitting through the use of normal equations. Homework Equations Normal equation (A'*A*c)=(A'*y) A= [column vector of all x ; column vector of all 1] y= [column vector of all y] c = [b;a]...
  20. S

    Optimizing Bi-Linear Objective Function for Vector Fitting in Flat Space

    I have two matrices, A and D, with same numbers of rows and different numbers of columns (A has many more columns than D), I want to find x and y such that ||Ax-Dy||_2 is minimized. I.e., I want to find the closest vectors in span{A} and span{D}. Seems like a simple problem, but couldn't figure...
  21. R

    How to Calculate Error in Slope and Intercept for Least Squares Fit?

    I have some data to calculate the photoelectric effect, and with my measurements I have made a graph using the least square fitting for voltage vs. frequencies. If I have an error of x for all voltages (V) and y for all frequencies f. How do I calculate the error of the values m and a if my...
  22. C

    Least squares fitting by a constant

    say we have data set {y(t sub i), t sub i} Where i=1 2 3...m. I know how to fit these into a line of the form ax+b, but how about fitting into a constant??
  23. H

    What Alternatives Exist for Fitting Models to Erratic Data in Excel?

    Homework Statement I need to fit a model to some data, where y = systolic blood pressure and x = time in weeks. The problem is, all of the 'usua' trendline options on Excel produce awful R squared values. Is there some other method I can do to fit a different sort of model that would be...
  24. D

    Is there a Quick connect to VCR fitting rated for UHV as well as cryo temps?

    Cannot seem to find such a connection. The UHV vacuum sits around 1x10-8. The fitting needs to be rated for cryo temps. Thanks
  25. L

    Curve fitting of a damped harmonic oscillator

    Homework Statement I was wondering if there was a general method for finding a function that fits a set of data for a damped harmonic oscillator I'm currently writing up a presentation on the experiment for the gravitational constant and the way i did the experiment was to use a torsion...
  26. C

    Inverse Laplacetransform, can't find fitting formula

    Homework Statement Inverse Laplacetransform (3s+7)/(s^2+2s-2) Homework Equations (3s+7)/(s^2+2s-2) The Attempt at a Solution Split into 3s/(s^2+2s-2) and 7/(s^2+2s-2). I can't find a fitting transformpair(I use tables/formulas).
  27. M

    Distribution Fitting for Bus Arrival Times

    Hi I am stucked on a problem of distribution fitting. I have collected data about bus arrivals on field in a week time and now I want to fit a statistical distribution to these data. I know that theoretically should be Poisson or smthg but to make a correct step by step observation I need to...
  28. K

    Interpolation help fitting curve to three points

    Hello, I have the following points that need to be fitted with a curve: (1,20);(2,4);(5,3) I'm wondering how to use the http://en.wikipedia.org/wiki/Lagrange_polynomial to do this. If possible, can these points be fitted with a cubic function? I tried to fit a cubic to this, but...
  29. B

    Fitting distributions that have a singular component

    For example, suppose you have some data where each point takes its value from U(0,1) with probability p and the Cantor distribution with probability (1-p) where p is fixed but unknown. Here the standard MLE approach falls over, so how would you go about estimating p?
  30. M

    Fitting a curve in log-linear plot.

    Hi all, I want to fit a curve through 6 points (please see figure attached, the curve in the picture is a drawn one not a fitted one. That is just to give a feel how the fitted curve would look like.) in a log-linear plot. Is there any way I can do it? Thanks.
  31. M

    Air line gauge in a T fitting, error vs flow

    Professor forgive me it has been many years since my last physics problem, but I was looking at the pressure gauge mounted in a T fitting on our shop compressed air line, and how the reading dropped when various high cfm tools were in use. As I understand it the indicated pressure reflects two...
  32. L

    Flow rate through a tee fitting

    i have a piping system and i know the initial flow rate into the system. the the piping system steps down several times through tee fittings on its way to a final nozzle in which i have required minimum flow rate. i know the flow rate going into the tee but i can't find any information about the...
  33. P

    An ellipse fitting into a notch problem.

    Homework Statement I did this one before a few weeks ago but now I can't seem to get the right answer: An elliptical disk is to fit snuggly and squarely into a notch cut into a rectangular plate. The notch is 180 mm wide. If the disk's major axis is 280 mm long and is parallel to the long...
  34. D

    Curve fitting piecewise function

    I have a piecewise function described by g_1(x) as shown in the figure below. I wish to make a smooth curve, g_2(x), to fit (but not necessarily exactly) g_1(x). The only conditions are: Both curves must start at (0,0) and end at (a,0). The area of both curves must be the same. How do...
  35. G

    Negative duct fitting coeffecient

    In the ASHRAE fitting database, there are negative duct fitting coefficients. I assume this means that that particular fitting will produce a pressure regain. However, I am unsure that it would be a static regain because: the formula is P(total)=C*P(velocity), and P(total) only can only drop...
  36. S

    Fitting a Second Order Polynomial to Data Points

    Homework Statement Suppose that you are given a set of observations (tk,yk), k = 1,...,M. You plot these points on a sheet & it seems that the relationship between (t,y) could be approximated with a second order polynomial. a) Write down the model in the form y = Ax + c. Specify the vectors...
  37. M

    What are some recommended textbooks for learning non-analytic curve fitting?

    Hi, what are some good textbooks dedicated to this subject? I have a short time to learn everything about this subject (upto a certain level). I'm trying to fit a non-analytic curve (whose form I know) to some data. edit- sorry, I don't only mean non-linear, I mean non-analytic. The curve is...
  38. B

    Question about Least Squares Fitting

    Hey, I have a graph for which I am supposed to fit two linear least squares line and minimize the combined residuals (the lines intersect)... I would really appreciate some info about how to do this or what this type of data analysis is called so i can google the step-by-step method. Thanks!
  39. B

    Question about Least Squares Fitting

    Hey, Not sure if this is the right section to post this but ... I have a graph for which I am supposed to fit two linear least squares line and minimize the combined residuals (the lines intersect)... I would really appreciate some info about how to do this or what this type of data analysis...
  40. L

    How Do You Fit 3D Coordinate Data to a Parabola?

    Homework Statement I'm trying to go about fitting some (x,y,z) coordinate data that I got out of a simulation to a parabola, but I'm not entirely sure how. Is there a general equation for a parabola that instead of having usual (x,y) coordinates has (x,y,z) coordinates? Homework Equations...
  41. L

    Weighted least squares fitting

    Hello y'all, If I have n data points (xi, yi) each with error bars in both x and y (xi_err, yi_err), should I use 1/(xi_err^2+yi_err^2) as the weight in a weighted least squares linear fit, or should the weight be a different value that has nothing to do with error bars? I've never used WLS...
  42. S

    MATLAB Matlab Function Fitting: Tips & Tricks

    Hello all, How do people generally fit data in Matlab? I am trying to fit an exponential decay and it doesn't look straightforward. I am looking this up at the moment, but maybe people can give me good answers or starting points here. Thank you!
  43. nukeman

    Phase shift and sinusoidal curve fitting - Finding .

    Phase shift and sinusoidal curve fitting - Finding... Homework Statement "Find the period, amplitude, and phase shift of each function. Graph each function. Be sure to label key points" y = 4sin(2x - pi) Homework Equations The Attempt at a Solution So, I got...
  44. P

    Calculating error in coefficients determined from fitting a curve to data?

    I have a set of data points (x0, y0), (x1, y1), ... (xi, yi) With each yi there is an associated error ei. The data is modeled by the function: y = a\exp(-bln^2(c/x)) I have determined values for the coefficients a, b, c and I know the residuals produced from the values of the...
  45. G

    Mathematica Curve fitting in Mathematica with FindMinimum function

    Hello, I attempt to fit experimental data using FindMinimum function with Levenberg-Marquardt (LM) method. I know that the problem can be solved with FindFit function (or other methods of finding minimum), but I really have to use FindMinimum function and LM method. Therefore, I would...
  46. fluidistic

    Least Squares Fitting for ax²+bx+c with Given Points: Homework Solution

    Homework Statement I must find the best fitting function of the form ax²+bx+c using least squares. The points are (-1,6.1), (0,2.8), (1,2.2), (3,6) and (6,26.9). 2. Homework Equations + attempt at a solution A\vec x= \vec b, I'm looking for \vec x =\begin {pmatrix} a \\ b \\ c \end {pmatrix}...
  47. S

    How to Extract Parameters from Non-Invertible Functions Using Experimental Data?

    Homework Statement This is for a project in String Theory, but it's actually a curve fitting question. I've derived the two equations given below, for the energy E and angular momentum J of a meson as a function of some quantities \omega, T, x. Now, I have experimental data for E as a...
  48. S

    HELP calculus optimization problem: fitting thin rod through corridor

    I am having trouble conceptualizing a calculus optimization problem. I can find the answer to the problem by using the procedure but i am quite uncertain of how the equations match up with what's actually going on in the situation! Problem: What is the max length of widthless rigid pole that...
  49. R

    Global fitting with shared parameters

    Homework Statement Hi I'm looking for an algorithm that can perform a fitting procedure on many curves simultaneously. Let's say, for example, that I have 3 exponential decay curves with 3 different decay times but they all share the same initial amplitude. So I have to find a fit for 4...
  50. G

    Fitting least square approximations

    Homework Statement Attached Homework Equations The Attempt at a Solution Thanks in advance for the help. The problem I'm having is not so much as to how to solve the problem, but how to proceed using MATLAB. I'm having trouble figuring out how to enter in the respective...
Back
Top