# Python using RStudio IDE

Today is 7/26

This is test post to check if Python code works

library(reticulate)
import numpy as np
x = [1, 2, 3]
print(x)
## [1, 2, 3]
y = np.mean(x)

$$\bar{x}$$ is the average, which is defined as $\bar{x} = \frac{\sum x}{n}$

So what is the aveage of y? It is 2.

x = c(1:5)

The value of x is R session is 1, 2, 3, 4, 5.

More text is to be added.

# R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

You can embed an R code chunk like this:

summary(cars)
##      speed           dist
##  Min.   : 4.0   Min.   :  2.00
##  1st Qu.:12.0   1st Qu.: 26.00
##  Median :15.0   Median : 36.00
##  Mean   :15.4   Mean   : 42.98
##  3rd Qu.:19.0   3rd Qu.: 56.00
##  Max.   :25.0   Max.   :120.00
fit <- lm(dist ~ speed, data = cars)
fit
##
## Call:
## lm(formula = dist ~ speed, data = cars)
##
## Coefficients:
## (Intercept)        speed
##     -17.579        3.932



# Testing LaTeX

This is an inline test for math content in markdown $$\bar{x}$$. And this is a mathe block, defining the average– $\bar{x} = \frac{\sum x}{n}$

And some more complicated formula

$y = x_1 \beta_1 + x_2 \beta_2 + \epsilon$ is the multiple linear regression model with two covariates $$x_1$$ and $$x_2$$.

When \$$a \ne 0 \$$, there are two solutions to

$$ax^2 + bx + c = 0$$

and they are:

\$x = {-b \pm \sqrt{b^2-4ac} \over 2a} \$`