Publications by Mengyao Xin

Assignment #1 - Small Worlds and Large Worlds

15.05.2020

2E1. Which of the expressions below correspond to the statement: the probability of rain on Monday? (1) Pr(rain) (2) Pr(rain|Monday) (3) Pr(Monday|rain) (4) Pr(rain, Monday)/ Pr(Monday) #(2)and(4) 2E2. Which of the following statements corresponds to the expression: Pr(Monday|rain)? (1) The probability of rain on Monday. (2) The probability of ra...

5053 sym R (3050 sym/18 pcs) 6 img

Executive 1: Software Installation

11.05.2020

For this semester, you have two options: Use your own computer. If you have an older machine, you are likely to have problems with some of the installation of packages. If you have a MacBook Air or other “mini” type machine, you will potentially find you do not have the space for the installed packages. I will help you troubleshoot during ...

5777 sym R (3228 sym/17 pcs)

Correspondence Analysis

31.05.2020

Load the libraries + functions Load all the libraries or functions that you will use to for the rest of the assignment. It is helpful to define your libraries and functions at the top of a report, so that others can know what they need for the report to compile correctly. ##r chunk library(ca) ## Warning: package 'ca' was built under R version 3...

3981 sym R (3317085 sym/25 pcs) 6 img

Assignment #3 - Geocentric Models

07.06.2020

4E1. In the model definition below, which line is the likelihood? \[\begin{align} \ y_i ∼ Normal(μ, σ) \\ \ μ ∼ Normal(0, 10) \\ \ σ ∼ Exponential(1) \\ \end{align}\] #y_i ∼ Normal(μ, σ) 4E2. In the model definition just above, how many parameters are in the posterior distribution? #Two:μ and σ. 4E3. Using the model defini...

3283 sym R (2039 sym/22 pcs) 1 img

Assignment #4 - The Many Variables & The Spurious Waffles

15.06.2020

5E1. Which of the linear models below are multiple linear regressions? \[\begin{align} {μ_i = α + βx_i} \tag{1}\\ μ_i = β_xx_i + β_zz_i \tag{2} \\ μ_i = β_xx_i + β_zz_i \tag{3} \\ μ_i = α + β(x_i − z_i) \tag{4} \\ μ_i = α + β_xx_i + β_zz_i \tag{5} \\ \end{align}\] #Models 2, 3, and 4 are multiple regressions. 5E2...

3920 sym R (1801 sym/9 pcs) 2 img

Cluster Analysis

15.06.2020

Load the libraries + functions Load all the libraries or functions that you will use to for the rest of the assignment. It is helpful to define your libraries and functions at the top of a report, so that others can know what they need for the report to compile correctly. ##r chunk library(Rling) library(pvclust) ## Warning: package 'pvclust' w...

3798 sym R (6430 sym/20 pcs) 5 img