Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

LaTeX render issue #96

Closed
ladychili opened this issue May 1, 2019 · 3 comments
Closed

LaTeX render issue #96

ladychili opened this issue May 1, 2019 · 3 comments
Labels
bug:extension Issues about widgets, comment, share, search, and plugins.

Comments

@ladychili
Copy link

image

Failed to render inline LaTeX code.

@ppoffice
Copy link
Owner

ppoffice commented May 1, 2019

@ladychili Could you please provide the source code of the post? Also, did you enabled the mathjax plugin?

@ladychili
Copy link
Author

ladychili commented May 1, 2019

@ppoffice Sure, mathjax is enabled in both _config.yml and the post, as you can see other formulas are showing properly in the picture except inline code.

The source code is a bit long, here is the yaml head and the corresponding part of the picture.

---
title: MT5761 Statistics Modeling - Revision Note
date: 2018-12-11 15:50:38
category: Note
mathjax: true
tags:
    - statistics
    - modeling
    - university 
    - exam
---

#### (e) Explain Deviance [4]

[1] Deviance provides a measure of discrepancy between fitted model and Saturated model. The smaller the D, the better the model.
$$
D = 2[l(\hat\beta_{sat},\phi) - l(\hat\beta,\phi)]
$$
[1] 	If model correct, $D \sim \chi^2_{n-p-1}$, n observations, p predictors 

​	A $\chi^2$ test ($H_0$ model is correct) will give a large p-value for a good fitting.

[1] $\chi^2$ approximation of D often poor for Binomial GLMs

[1] Computing $D$ involves $\phi$, so if it's unknown we can't use the result.

#### (f) adjustment to raw residuals and why [2]

[1] Adjustment. 
$$
    \text{Pearson residuals} = \frac{\text{raw residual}}{\hat{\text{SD}}}=\frac{y-\hat{y}}{\sqrt{\text{Var}(y)}}
$$

[1] Why. We'd like to see no patterns in Pearson residuals if Mean-Var relationship is appropriate.

@ladychili
Copy link
Author

The same code works fine with NexT theme.

image

@ppoffice ppoffice added the bug:general Issues with this theme in general. label May 1, 2019
@ppoffice ppoffice closed this as completed May 2, 2019
@ppoffice ppoffice added bug:extension Issues about widgets, comment, share, search, and plugins. and removed bug:general Issues with this theme in general. labels Jun 20, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug:extension Issues about widgets, comment, share, search, and plugins.
Projects
None yet
Development

No branches or pull requests

2 participants