你能在RCloud中使用LaTex吗?

时间:2017-03-04 03:53:23

标签: r latex rcloud

我想在使用LaTex的RCloud笔记本中分析我的分析中的逻辑函数(因为这就是我所知道的),例如:

F(x) = 1/(1 + exp(-Ax))

g(F(x)) = ln(\frac{F(x)}{1-F(x)}) = Ax

\frac{F(x)}{1-F(x)} = e^{Ax}

我可以在RCloud中使用LaTeX表示法吗?

1 个答案:

答案 0 :(得分:2)

是的,在RCloud(rcloud.social/tryit中的展示实例)笔记本中的 RMarkdown单元格中,这将呈现:

### If $x$ is a linear function then the argument to the logistic function can be written as a linear system.

$$
F(x) = 1/(1 + exp(-Ax))
$$

### $F(x)$ can be interpretted as the probability of the independent variable $x$ producing an output of 1 given the design matrix $A$.

### When training a binomial logistic regression model we are interested in the inverse problem.  That is, given a set of examples what is the optimal value of $A$.

$$
g(F(x)) = ln(\frac{F(x)}{1-F(x)}) = Ax
$$
$$
\frac{F(x)}{1-F(x)} = e^{Ax}
$$

### Note that the $g$, called the *logit* function, is equivalent to simple linear regression and

也是F(x)的对数几率。

This是RCloud的展示/公共实例上的示例笔记本。