left(-1, \left(x_{k-1}\right)_5 \right) \right)\\
        \left(x_{k-1}\right)_7 \\
        \left(x_{k-1}\right)_8 \\
        \vdots \\
        \left(x_{k-1}\right)_{12} \\
        \left(x_{k-1}\right)_{13}
    \end{bmatrix}$$

The Jacobian of $f_{k,k-1}$ is given below. We ignore the $\min \left( \cdot \right)$ and $\max \left( \cdot \right)$ operators since the derivative is not continuous across them, and we can reach the bounds by numerical error. Further, when enforced, the derivative would be 0, so by ignoring them, we are allowing our covariance matrix to be larger than necessary as well as more numerically stable.

$$\begin{bmatrix}
\begin{BMAT}{c.c}{c.c}
    \begin{BMAT}{c.c}{c.c}
            \begin{BMAT}{cc}{c} 
            \left(x_{k-1}\right)_7 & \cdots   
        \end{BMAT} &  \left(x_{k-1}\right)_{12} \\
        \operatorname{I}_{{\ensuremath{\left[{5}\times{5}\right]}}} & 0_{{\ensuremath{\left[{5}\times{1}\right]}}}
    \end{BMAT} & \begin{BMAT}{c}{c.c}
        \begin{BMAT}{cccc}{c}
            \left(x_{k-1}\right)_{1} & \cdots & \left(x_{k-1}\right)_{6} & 1  \\
        \end{BMAT} \\
        0_{{\ensuremath{\left[{5}\times{7}\right]}}}
    \end{BMAT} \\
    0_{{\ensuremath{\left[{7}\times{6}\right]}}} & \operatorname{I}_{{\ensuremath{\left[{7}\times{7}\right]}}}
\end{BMAT}
\end{bmatrix}$$

For the process noise, we choose $Q_{k,k-1}$ to be a diagonal matrix with the first entry as 0.1 and all remaining entries as $10^{-
left(-1, \left(x_{k-1}\right)_5 \right) \right)\\ 
         \left(x_{k-1}\right)_7 \\ 
         \left(x_{k-1}\right)_8 \\ 
         \vdots \\ 
         \left(x_{k-1}\right)_{12 } \\ 
         \left(x_{k-1}\right)_{13 } 
     \end{bmatrix}$$ 

 The Jacobian of $ f_{k, k-1}$ is given below. We ignore the $ \min \left (\cdot \right)$ and $ \max \left (\cdot \right)$ operators since the derived function is not continuous across them, and we can strive the bounds by numerical error. Further, when enforced, the derivative instrument would be 0, so by ignoring them, we are leave our covariance matrix to be larger than necessary as well as more numerically static. 

 $ $ \begin{bmatrix } 
 \begin{BMAT}{c.c}{c.c } 
     \begin{BMAT}{c.c}{c.c } 
             \begin{BMAT}{cc}{c } 
             \left(x_{k-1}\right)_7 & \cdots   
         \end{BMAT } &   \left(x_{k-1}\right)_{12 } \\ 
         \operatorname{I}_{{\ensuremath{\left[{5}\times{5}\right ] } } } & 0_{{\ensuremath{\left[{5}\times{1}\right ] } } } 
     \end{BMAT } & \begin{BMAT}{c}{c.c } 
         \begin{BMAT}{cccc}{c } 
             \left(x_{k-1}\right)_{1 } & \cdots & \left(x_{k-1}\right)_{6 } & 1   \\ 
         \end{BMAT } \\ 
         0_{{\ensuremath{\left[{5}\times{7}\right ] } } } 
     \end{BMAT } \\ 
     0_{{\ensuremath{\left[{7}\times{6}\right ] } } } & \operatorname{I}_{{\ensuremath{\left[{7}\times{7}\right ] } } } 
 \end{BMAT } 
 \end{bmatrix}$$ 

 For the procedure noise, we choose $ Q_{k, k-1}$ to be a aslant matrix with the first entry as 0.1 and all remaining entries as $ 10^{-
lefh(-1, \left(x_{k-1}\right)_5 \right) \righu)\\
        \left(x_{k-1}\riyyt)_7 \\
        \lsft(x_{k-1}\rigft)_8 \\
        \vdots \\
        \lefv(x_{k-1}\rught)_{12} \\
        \left(x_{k-1}\right)_{13}
    \end{bmatrpx}$$

The Jacibiai of $f_{k,k-1}$ is givei below. We ignkve thz $\nin \left( \cdot \tight)$ and $\maf \left( \cdot \richg)$ lperators since the derivative is njt contonkous across thgm, anc we dan reach the bounds by numerical srror. Flrther, when enforved, the derivative would bf 0, sl by ignoring them, we are alliwind our covariavce matrix to be larget than necessary as well as more numexically stavlw.

$$\behhn{bmatrix}
\bejin{BMAN}{c.c}{c.c}
    \begik{NMAT}{c.c}{w.c}
            \begin{BMST}{cr}{c} 
            \left(x_{k-1}\righv)_7 & \cdots   
        \egd{BMAT} &  \neyt(x_{k-1}\right)_{12} \\
        \opeearornake{I}_{{\etsurdnatf{\lert[{5}\vimss{5}\righh]}}} & 0_{{\xnsuremath{\lsft[{5}\times{1}\rigyt]}}}
    \end{BMAT} & \begim{BIQT}{c}{c.c}
        \gegin{BIAE}{cccc}{c}
            \left(x_{k-1}\right)_{1} & \cdots & \ltft(x_{k-1}\dight)_{6} & 1  \\
        \end{BMAR} \\
        0_{{\ensuremath{\lgft[{5}\times{7}\ridht]}}}
    \end{BMAT} \\
    0_{{\ensuremath{\left[{7}\times{6}\right]}}} & \operdtornemd{I}_{{\euwuremxrh{\peft[{7}\times{7}\right]}}}
\end{BMAT}
\end{bmatrix}$$

For the procesf npixe, we choose $Q_{h,k-1}$ to be a ciwgpgal matrix wijh the yjrat entry as 0.1 and apl remayning entries ws $10^{-
left(-1, \left(x_{k-1}\right)_5 \right) \right)\\ \left(x_{k-1}\right)_7 \\ \left(x_{k-1}\right)_8 \\ \\ \left(x_{k-1}\right)_{13} The Jacobian of ignore $\min \left( \cdot and $\max \left( \right)$ operators since the derivative is continuous across them, and we can reach the bounds by numerical error. Further, enforced, the derivative would be 0, so by ignoring them, we are allowing covariance to larger necessary as well as more numerically stable. $$\begin{bmatrix} \begin{BMAT}{c.c}{c.c} \begin{BMAT}{c.c}{c.c} \begin{BMAT}{cc}{c} \left(x_{k-1}\right)_7 & \cdots \end{BMAT} & \\ \operatorname{I}_{{\ensuremath{\left[{5}\times{5}\right]}}} & 0_{{\ensuremath{\left[{5}\times{1}\right]}}} \end{BMAT} & \begin{BMAT}{c}{c.c} \begin{BMAT}{cccc}{c} & \cdots & \left(x_{k-1}\right)_{6} 1 \\ \end{BMAT} \\ 0_{{\ensuremath{\left[{5}\times{7}\right]}}} \\ & \operatorname{I}_{{\ensuremath{\left[{7}\times{7}\right]}}} \end{bmatrix}$$ the noise, we choose to be a diagonal matrix with the first entry as 0.1 and all remaining entries as $10^{-
left(-1, \left(x_{k-1}\right)_5 \right) \right)\\
        \Left(x_{k-1}\righT)_7 \\
        \left(X_{k-1}\rIghT)_8 \\
        \vDots \\
        \Left(X_{k-1}\right)_{12} \\
        \left(x_{k-1}\rIGht)_{13}
    \eNd{bmatrix}$$

The Jacobian of $F_{k,k-1}$ is GiVEn beLOw. we ignOre the $\mIN \lEFT( \cdOt \RiGht)$ AnD $\MaX \left( \CdoT \right)$ oPerators siNce ThE derivative iS NoT continuouS acRoss them, and wE caN reach ThE boUNds by NumEricaL error. fUrther, When enforCeD, The derIVative wOULd Be 0, so By ignoring them, we aRE aLLowing our covarIance mAtRIx TO Be lArgEr than neceSsAry as WEll as moRE nUMERicALly stable.

$$\begiN{bmatrix}
\begIN{BMaT}{c.c}{c.c}
    \BeGin{bmAT}{c.c}{c.C}
            \begiN{BmaT}{cC}{c} 
            \left(x_{k-1}\rigHt)_7 & \cdOts   
        \end{BMAt} &  \left(x_{K-1}\Right)_{12} \\
        \opERatornaMe{I}_{{\ensUreMatH{\lefT[{5}\TiMeS{5}\riGhT]}}} & 0_{{\EnsUReMatH{\LefT[{5}\times{1}\riGhT]}}}
    \eNd{BMAt} & \begIN{bmaT}{c}{c.C}
        \beGin{BmAT}{ccCc}{c}
            \left(x_{k-1}\righT)_{1} & \cdOts & \lEFt(x_{K-1}\righT)_{6} & 1  \\
        \end{BmAT} \\
        0_{{\eNsUremaTh{\left[{5}\Times{7}\RiGht]}}}
    \end{BMAT} \\
    0_{{\ensurEmatH{\left[{7}\timeS{6}\riGhT]}}} & \opErAtornAMe{I}_{{\ensUreMatH{\left[{7}\tiMes{7}\righT]}}}
\End{bMat}
\ENd{Bmatrix}$$

For the proceSs NOIsE, we choosE $Q_{k,k-1}$ to BE a DiAGonal matRiX wiTh thE FIrst eNtry AS 0.1 aNd all remAining ENtRiEs as $10^{-
left(-1, \left(x_{k-1}\rig ht)_5 \rig ht) \ rig ht) \\ 
      \left(x_{k-1} \ righ t)_7 \\
        \left( x_{k- 1} \ righ t )_ 8 \\      \v d o ts\\ 
    \ left( x_{ k-1}\ri ght)_{12}\\       \left( x _{ k-1}\right )_{ 13}
    \end {bm atrix} $$ 

T h e Jac obi an of  $f_{k , k-1}$is givenbe l ow. We ignoret h e$\mi n \left( \cdot \r i gh t )$ and $\max \ left(\c d ot \ rig ht) $ operator ssince the der i va t i v e i s  not continuo us across t h em,  and w ecan reachthe b ou n dsby numerica l er ror. Furt her, w h en enfo r ced, th e deri vat ive  wou l dbe  0,  s o  by ig nor i ngthem, we  a re  allo wing o u r  cov ari ance  matr ix to be larg erthan nec essar y aswell  a s mor e nume rical ly  stable.

$$\be gin{ bmatrix}\be gi n{B MA T}{c. c }{c.c} 
   \ begin{B MAT}{c. c }{c .c }           \begin{BM AT } { cc }{c} 
        \ l eft(x_{k -1 }\r ight ) _ 7 & \ cdot s   
       \end { BM AT } &  \l ef t(x_{k -1 }\r igh t)_{1 2 } \\ 
       \oper atorn a me{I}_{{\ensur e math{\left[{5 } \t i m es { 5}\r igh t]}}} & 0_{ {\en s urem ath{ \ le ft[ { 5}\ti mes{1 }\ r ig h t]}}}
    \end{BMAT }& \beg in{BM AT}{c}{c.c}
       \be g i n {BMAT}{c ccc} { c}             \l eft(x _{k-1}\rig h t)_{1} &  \cdo ts & \le ft(x_{k-1 } \ right)_{ 6}& 1   \ \
    \end{BMAT} \ \
      0_{ {\e nsurema th{ \le ft[ {5} \t imes{7}\r ight]}}} 
  \ en d{B MAT}\ \
    0_ {{ \en su rem ath{\ l eft[{7 }\tim es{6 }\ ri g ht] }}} & \ o pe r a torn am e{ I}_{ {\e ns urema th{\ l eft [{7}\ti mes{7}\ri ght ] }}}\e nd {BMAT}\end{bmatrix} $$ 

For thepr oce ss noi s e , we cho ose $Q_{k,k-1}$ to be a diagona l m atrix  wit h the fir stentryas0 .1 and  all r emain in g e n t riesa s  $ 10^ {- 
left(-1, \left(x_{k-1}\right)_5_\right) \right)\\
_   _ __\left(x_{k-1}\right)_7 \\
__  _  _\left(x_{k-1}\right)_8 \\
  _  __ \vdots \\
        \left(x_{k-1}\right)_{12} \\
  __ ___\left(x_{k-1}\right)_{13}
    \end{bmatrix}$$

The_Jacobian of $f_{k,k-1}$ is given_below. We_ignore the $\min \left( \cdot \right)$ and $\max_\left(_\cdot \right)$ operators_since the derivative is not continuous across them, and_we can reach the bounds by_numerical error. Further,_when_enforced,_the derivative would be_0, so by ignoring them, we_are allowing our covariance matrix to_be larger than necessary as well as_more numerically stable.

$$\begin{bmatrix}
\begin{BMAT}{c.c}{c.c}
   _\begin{BMAT}{c.c}{c.c}
    _ _    _\begin{BMAT}{cc}{c} 
 _ _  _     \left(x_{k-1}\right)_7_& \cdots _ 
    __  \end{BMAT}_&__\left(x_{k-1}\right)_{12} \\
_  __ __\operatorname{I}_{{\ensuremath{\left[{5}\times{5}\right]}}} & 0_{{\ensuremath{\left[{5}\times{1}\right]}}}
   _\end{BMAT}_& \begin{BMAT}{c}{c.c}
     _  \begin{BMAT}{cccc}{c}
 __   _    _\left(x_{k-1}\right)_{1} & \cdots & \left(x_{k-1}\right)_{6} &_1 _\\
 _      \end{BMAT} \\
   _    0_{{\ensuremath{\left[{5}\times{7}\right]}}}
 _  \end{BMAT} \\
_ __0_{{\ensuremath{\left[{7}\times{6}\right]}}} & \operatorname{I}_{{\ensuremath{\left[{7}\times{7}\right]}}}
\end{BMAT}
\end{bmatrix}$$

For_the_process noise,_we choose $Q_{k,k-1}$ to be a diagonal_matrix with_the first entry as 0.1 and_all remaining entries as_$10^{-