Skip to content

Commit

Permalink
cv >> paper; me-gen >> {skewllm}
Browse files Browse the repository at this point in the history
  • Loading branch information
ercbk committed Dec 15, 2024
1 parent b150b57 commit c069090
Show file tree
Hide file tree
Showing 16 changed files with 783 additions and 525 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
432 changes: 261 additions & 171 deletions _book/qmd/cross-validation.html

Large diffs are not rendered by default.

307 changes: 174 additions & 133 deletions _book/qmd/db-lakes.html

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions _book/qmd/eda-general.html
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../qmd/loss-functions.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">5</span>&nbsp; <span class="chapter-title">Loss Functions</span></span></a>
<span class="menu-text">Loss Functions</span></a>
</div>
</li>
<li class="sidebar-item sidebar-item-section">
Expand Down Expand Up @@ -1324,7 +1324,7 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../qmd/mathematics-probability.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">6</span>&nbsp; <span class="chapter-title">Probability</span></span></a>
<span class="menu-text">Probability</span></a>
</div>
</li>
<li class="sidebar-item">
Expand Down Expand Up @@ -1606,7 +1606,7 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../qmd/production-ml-monitoring.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">7</span>&nbsp; <span class="chapter-title">ML Monitoring</span></span></a>
<span class="menu-text"><span class="chapter-number">5</span>&nbsp; <span class="chapter-title">ML Monitoring</span></span></a>
</div>
</li>
<li class="sidebar-item">
Expand Down Expand Up @@ -2601,6 +2601,7 @@ <h2 class="unnumbered anchored" data-anchor-id="sec-eda-gen-cont">Continuous Var
<li>Normality among predictors isn’t necessary, but I think it improves fit or prediction somewhat</li>
</ul></li>
<li>log transformation may help some if the skew isn’t too extreme</li>
<li>See <a href="../qmd/mixed-effects-general.html#sec-me-gen-misc" style="color: green">Mixed Effects, General &gt;&gt; Misc</a> &gt;&gt; <span style="color: #990000">{skewlmm}</span></li>
</ul></li>
</ul></li>
<li><p>Density</p>
Expand Down Expand Up @@ -4568,7 +4569,7 @@ <h3 class="unnumbered anchored" data-anchor-id="sec-eda-gen-inter-cat">Categoric
</div>
</div>
</footer>
<script>var lightboxQuarto = GLightbox({"closeEffect":"zoom","loop":false,"descPosition":"bottom","selector":".lightbox","openEffect":"zoom"});
<script>var lightboxQuarto = GLightbox({"openEffect":"zoom","selector":".lightbox","descPosition":"bottom","closeEffect":"zoom","loop":false});
(function() {
let previousOnload = window.onload;
window.onload = () => {
Expand Down
20 changes: 14 additions & 6 deletions _book/qmd/forecasting-statistical.html
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../qmd/loss-functions.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">5</span>&nbsp; <span class="chapter-title">Loss Functions</span></span></a>
<span class="menu-text">Loss Functions</span></a>
</div>
</li>
<li class="sidebar-item sidebar-item-section">
Expand Down Expand Up @@ -1324,7 +1324,7 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../qmd/mathematics-probability.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">6</span>&nbsp; <span class="chapter-title">Probability</span></span></a>
<span class="menu-text">Probability</span></a>
</div>
</li>
<li class="sidebar-item">
Expand Down Expand Up @@ -1606,7 +1606,7 @@
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../qmd/production-ml-monitoring.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">7</span>&nbsp; <span class="chapter-title">ML Monitoring</span></span></a>
<span class="menu-text"><span class="chapter-number">5</span>&nbsp; <span class="chapter-title">ML Monitoring</span></span></a>
</div>
</li>
<li class="sidebar-item">
Expand Down Expand Up @@ -2684,15 +2684,15 @@ <h4 class="unnumbered anchored" data-anchor-id="sec-fcast-stat-alg-kalf-misc">Mi
</ul></li>
<li>If a dynamic system is linear and with Gaussian noise (inaccurate measurements, etc.), the optimal estimator of the hidden states is the Kalman Filter
<ul>
<li>For nonlinear systems, we use the extended Kalman filter, which works by simply linearizing the predictions and measurements about their mean. (I may do a second write-up on the EKF in the future)</li>
<li>For nonlinear systems, we use the extended Kalman filter, which works by simply linearizing the predictions and measurements about their mean.</li>
<li>Good for predictions where the measurements of the outcome variable over time can be noisy</li>
</ul></li>
<li>Assumptions
<ul>
<li>Gaussian noise</li>
<li>Markov property
<ul>
<li>If you know <span class="math inline">\(x_{t−1}\)</span>, then knowledge of <span class="math inline">\(x_{t−2},\ldots , x_0\)</span> doesn’t give any more information about xt (i.e.&nbsp;not much autocorrelation if at all)</li>
<li>If you know <span class="math inline">\(x_{t−1}\)</span>, then knowledge of <span class="math inline">\(x_{t−2},\ldots , x_0\)</span> doesn’t give any more information about <span class="math inline">\(x_t\)</span> (i.e.&nbsp;not much autocorrelation if at all)</li>
</ul></li>
</ul></li>
<li><strong>tl;dr</strong>
Expand All @@ -2704,6 +2704,14 @@ <h4 class="unnumbered anchored" data-anchor-id="sec-fcast-stat-alg-kalf-misc">Mi
<li>Light on memory (they don’t need to keep any history other than the previous state)</li>
<li>Very fast, making them well suited for real time problems and embedded systems</li>
</ul></li>
<li>Limitations
<ul>
<li>If model states have extremely high dimensions, we have to store a large covariance matrix and conduct intense matrix multiplications.</li>
<li>If some operator (that I didn’t understand) is nonlinear, then the covariance matrices can’t be calculated
<ul>
<li>An ensemble kalman filter gets around this by using Monte-Carlo simulation</li>
</ul></li>
</ul></li>
<li>Use cases
<ul>
<li>Engineering: common for reducing noise from sensor signals (i.e.&nbsp;smoothing out measurements)</li>
Expand Down Expand Up @@ -3416,7 +3424,7 @@ <h2 class="unnumbered anchored" data-anchor-id="sec-fcast-stat-count">Count Fore
</div>
</div>
</footer>
<script>var lightboxQuarto = GLightbox({"openEffect":"zoom","selector":".lightbox","loop":false,"closeEffect":"zoom","descPosition":"bottom"});
<script>var lightboxQuarto = GLightbox({"loop":false,"descPosition":"bottom","selector":".lightbox","openEffect":"zoom","closeEffect":"zoom"});
(function() {
let previousOnload = window.onload;
window.onload = () => {
Expand Down
Loading

0 comments on commit c069090

Please sign in to comment.