ppoffice / hexo-theme-minos

A simple and retro styled Hexo theme, concentrated more on your ideas.
http://ppoffice.github.io/hexo-theme-minos
MIT License
764 stars 203 forks source link

LaTeX render issue #96

Closed ladychili closed 5 years ago

ladychili commented 5 years ago

image

Failed to render inline LaTeX code.

ppoffice commented 5 years ago

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

ladychili commented 5 years ago

@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 commented 5 years ago

The same code works fine with NexT theme.

image