matlab线性工具,优化工具箱,线性及非线性回归技巧总结

Optimization Tips and Tricks

New users and old of optimization in MATLAB will find useful tips and tricks in this document, as well as examples one can use as templates for their own problems.

Use this tool by editing the file optimtips.m, then execute blocks of code in cell mode from the editor, or best, publish the file to HTML. Copy and paste also works of course.

Some readers may find this tool valuable if only for the function pleas - a partitioned least squares solver based on lsqnonlin.

This is a work in progress, as I fully expect to add new topics as I think of them or as suggestions are made. Suggestions for topics I've missed are welcome, as are corrections of my probable numerous errors. The topics currently covered are listed below.

Contents

1. Linear regression basics in matlab

2. Polynomial regression models

3. Weighted regression models

4. Robust estimation

5. Ridge regression

6. Transforming a nonlinear problem to linearity

7. Sums of exponentials

8. Poor starting values

9. Before you have a problem

10. Tolerances & stopping criteria

11. Common optimization problems & mistakes

12. Partitioned least squares estimation

13. Errors in variables regression

14. Passing extra information/variables into an optimization

15. Minimizing the sum of absolute deviations

16. Minimize the maximum absolute deviation

17. Batching small problems into large problems

18. Global solutions & domains of attraction

19. Bound constrained problems

20. Inclusive versus exclusive bound constraints

21. Mixed integer/discrete problems

22. Understanding how they work

23. Wrapping an optimizer around quad

24. Graphical tools for understanding sets of nonlinear equations

25. Optimizing non-smooth or stochastic functions

26. Linear equality constraints

27. Sums of squares surfaces and the geometry of a regression

28. Confidence limits on a regression model

29. Confidence limits on the parameters in a nonlinear regression

30. Quadprog example, unrounding a curve

31. R^2

32. Estimation of the parameters of an implicit function

33. Robust fitting schemes

34. Homotopies

35. Orthogonal polynomial regression

36. Potential topics to be added or expanded in the (near) future

当前非线性拟合和多元拟合的工具较少,这是针对常用的拟合算法,开发的一款数据拟合为主的软件。包括线性拟合的各种算法,非线性拟合的各种算法,以及多元拟合的各种算法。其中提供了很多非线性方程的模型,以满足不同的需求,也可以制定自己所需要的指定非线性方程模型的,采用最先进的初始值估算算法,无需初始值就可以拟合自己想要的非线性方程模型各个模块的介绍如下。 1.线性拟合算法模块 根据最小二乘拟合算法,对输入的数据进行变量指定次方的拟合。同时可对自变量或因变量进行自然对数和常用对数的转换后再拟合。根据实际情况,开发了单调性拟合以针对各种定量分析的用途。同时开发了,针对一组数据,得到最高相关系数的自动拟合功能,由程序自动选择拟合次数以及自变量和因变量的数据格式。 2.非线性拟合算法模块 根据非线性方程的特点,开发了最先进的智能初始值估算算法,配合LM迭代算法,进行非线性方程的拟合。只需要输入自变量和因变量,就可以拟合出所需要的非线性方程。拟合相关系数高,方便快捷。并借助微粒群算法,开发了基于微粒群的智能非线性拟合算法,拟合出方程的相关系数相当高,甚至会出现过拟合现象。 3.多元拟合算法模块 根据最小二乘算法的原理开发了多元线性拟合算法,同时开发了能够指定变元次数的高次多元线性拟合。由于多元变量的情况下函数关系复杂,采用高次多元线性拟合能有效提高拟合效果而不会出现过拟合现象。同时针对每个变元可能最合适的拟合次数不一定都一样,开发了自适应高次多元拟合算法。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值