I have the following matrix equation. However, the equation doesnt perfecty fit inside one line. The matrix goes right over the edge but also doesnt start at 0cm at the left. Does someone has one idea how to achieve the matrix to fit inside the equation ?
Here is a short MWE:
\documentclass[a4paper]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage[paper=a4paper,left=40mm,right=30mm,top=30mm,bottom=35mm]{geometry}
\begin{document}
\noindent Dem ..... zu Folge, kann jede der $k$ Dimensionen aus Gleichung () einzeln regressiert werden. Bei Annahme zentrierter Daten ergibt sich
\begin{flalign*}
&\begin{bmatrix}
y_{p+1,i} \\
y_{p+2,i} \\
\vdots \\
\vdots \\
y_{T,i}
\end{bmatrix} =
\begin{bmatrix}
y_{p,1} & \cdots & y_{p,k} & \cdots & \cdots & y_{1,1} & \cdots & y_{1,k} \\
y_{p+1,1} & \cdots & y_{p+1,k} & \cdots & \cdots & y_{2,1} & \cdots & y_{2,k} \\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\
y_{T-1,1} & \cdots & y_{T-1,k} & \cdots & \cdots & y_{T-p,1} & \cdots & y_{T-p,k}
\end{bmatrix}
\begin{bmatrix}
\Phi_{1,1,i} \\
\Phi_{1,2,i} \\
\vdots \\
\vdots \\
\Phi_{p,k,i}
\end{bmatrix} +
\begin{bmatrix}
\varepsilon_{p+1,i} \\
\varepsilon_{p+2,i} \\
\vdots \\
\vdots \\
\varepsilon_{T,i}
\end{bmatrix}, &
\end{flalign*}
für $i=1,\dots,k$. Mit $\mathbb{Z}$ als Lagmatrix gilt für die $i$-te Dimension äquivalent
\end{document}