【问题标题】:Does dolphindb support weighted least squares regression “wls”?dolphindb 是否支持加权最小二乘回归“wls”? 【发布时间】:2021-11-11 22:29:32 【问题描述】: 我有一个关于加权最小二乘的请求。 dolphindb 是否支持加权最小二乘回归“wls”?怎么用? 【问题讨论】: 标签: dolphindb 【解决方案1】: wls的用法如下: Y = [1, 3, 4, 5, 2, 3, 4] X = table([1, 1, 1, 1, 1, 1, 1] as col1, [1, 2, 3, 4, 5, 6, 7] as col2) w = wls(Y, X, 1..7, intercept=false, mode=0) w 结果: 【讨论】: