设计设计矩阵
我最近开始学习数据科学,无法掌握设计矩阵。
如果我有 x1 = 1,2,3,4,.... = 5,6,7,8 .... n 和目标 t = 9,8,7,6,.... n 和方程 y =
I have recently started learning Data Science and I am unable to get grasp of design matrices.
How would I create a design matrix (X) if I have x1 =1,2,3,4,....n , x2 =5,6,7,8....n and target T =9,8,7,6,....n and equation y= ????1 + ????2????1 + ????3????2 + ????4????12 + ????5x2x2* . I randomly selected x1,x2 and T values . Now how do I create a design matrix (X) from the equation and observations given above ?
I know X is created from x1 and x2 following the equation y but I could not figure out how to do that .
Any help is appreciated . Thank you .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的方程式仅使用回归系数1。生成的设计矩阵具有形状:
Your equation is using just regression coefficients for polynom 1. and 2. degree and interaction. The resulting design matrix has a shape: