设计设计矩阵

发布于 2025-02-07 01:57:38 字数 177 浏览 1 评论 0原文

我最近开始学习数据科学,无法掌握设计矩阵。

如果我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

弱骨蛰伏 2025-02-14 01:57:38

您的方程式仅使用回归系数1。生成的设计矩阵具有形状:

”在此处输入图像说明”

Your equation is using just regression coefficients for polynom 1. and 2. degree and interaction. The resulting design matrix has a shape:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文