由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - a least square fitting problem
相关主题
问response只能取正值时的least square regression.谢谢问一个误差分析的问题
请教专家AICc和Adjusted R2不一致是什么原因【OPENING】Cost-Effectiveness Analyst/Programmer
这里谁用 proc iml 用得比较多?包子请教一个gauss问题
线性回归里如果因变量有constraints(比如必须为正的)如何处理呢?any one did EM to find MLE of mixed effects model in R
能不能给我扫扫盲:什莫叫做 develop algorithmsHow to account for variation within a data point?
GAUSS 6 is out请教一个data analysis question
[求助]Gauss, R, Matlab, or SAS?请教一个统计的题目
求几个统计学巨擘的名字,像C.R.Rao这种级别的,最好是在美国的Regression model 不用 test normality?
相关话题的讨论汇总
话题: fitting话题: square话题: least话题: data话题: want
进入Statistics版参与讨论
1 (共1页)
F********E
发帖数: 1025
1
Hi all:
I want to do a least square fitting, but I need to apply a constraint--which
is that the fitting line has to exactly cut through one specific data point
in my data set. For example, I want the parabolic line pass the origin, or
I need the following equation to fit in my data:
*************
a*x^2+b*x
**************
instead of the regular one:
*************
a*x^2+b*x+c
**************
Does anybody know any function in PYLAB OR PYTHON or other suite which can
do this? Thanks a lot!
e****d
发帖数: 333
2
What you are doing is called "non-linear least square fit". The well known
algorithm is "Gauss–Newton algorithm".
You can write a short script in matlab.
If you don't want to use Gauss–Newton algorithm, an alternative is to use
fminsearch(RSS), where RSS is in a function form.
there may be other better solutions out there.
h********8
发帖数: 1
3

which
point
or

【在 F********E 的大作中提到】
: Hi all:
: I want to do a least square fitting, but I need to apply a constraint--which
: is that the fitting line has to exactly cut through one specific data point
: in my data set. For example, I want the parabolic line pass the origin, or
: I need the following equation to fit in my data:
: *************
: a*x^2+b*x
: **************
: instead of the regular one:
: *************

1 (共1页)
进入Statistics版参与讨论
相关主题
Regression model 不用 test normality?能不能给我扫扫盲:什莫叫做 develop algorithms
Stata的红旗还能打多久?GAUSS 6 is out
R 问题请教[求助]Gauss, R, Matlab, or SAS?
问学统计的同学关于error variance的chi-square的问题求几个统计学巨擘的名字,像C.R.Rao这种级别的,最好是在美国的
问response只能取正值时的least square regression.谢谢问一个误差分析的问题
请教专家AICc和Adjusted R2不一致是什么原因【OPENING】Cost-Effectiveness Analyst/Programmer
这里谁用 proc iml 用得比较多?包子请教一个gauss问题
线性回归里如果因变量有constraints(比如必须为正的)如何处理呢?any one did EM to find MLE of mixed effects model in R
相关话题的讨论汇总
话题: fitting话题: square话题: least话题: data话题: want