- #1
birdhen
- 35
- 0
Hi there,
I am still trying to work out how to get a value of chi-squared from some data (see post below).
I have a model curve with 85 points ( a result of solving an ode, so I do not have the equation of the curve), and 307 data points plotted. In order to work out chi-squared by hand I need to subtract the points on the model from the data points, but can't do this as the arrays are all at different x values. and different lengths. I have tried to interpolate the curve to get some corresponding y values using yi=interpolate(x,y,xi) but the values I get back are much higher than the values they should be...? I am doing the wrong thing?
Any suggestions would be much appreciated.
Many thanks
I am still trying to work out how to get a value of chi-squared from some data (see post below).
I have a model curve with 85 points ( a result of solving an ode, so I do not have the equation of the curve), and 307 data points plotted. In order to work out chi-squared by hand I need to subtract the points on the model from the data points, but can't do this as the arrays are all at different x values. and different lengths. I have tried to interpolate the curve to get some corresponding y values using yi=interpolate(x,y,xi) but the values I get back are much higher than the values they should be...? I am doing the wrong thing?
Any suggestions would be much appreciated.
Many thanks