Publications by yina qiao

DATA 605 YINA QIAO FINAL

21.04.2024

Problem 1. Using R, set a random seed equal to 1234 (i.e., set.seed(1234)). Generate a random variable X that has 10,000 continuous random uniform values between 5 and 15.Then generate a random variable Y that has 10,000 random normal values with a mean of 10 and a standard deviation of 2.89. set.seed(1234) X <- runif(10000,5,15) Y <- rnorm(10000,1...

5186 sym Python (20462 sym/60 pcs) 10 img

DATA 605 W13D

16.04.2024

4.1 problem 5 The roots of f(x) are known or are easily found. Use 5 iterations of Newton’s Method with the given initial approximation to approximate the root. Compare it to the known value of the root. \(f(x) = x^2 + x - 2\) initial \(x_0 = 0\) We use Newton’s Method to approximate the roots of the function \(f(x) = x^2 + x - 2\) with an init...

900 sym

DATA 608 Story - 6-Yina Qiao

12.04.2024

Intro The United Nations Food and Agriculture Organization publication, The State of Food Security and Nutrition in the World 2022 (https://www.fao.org/documents/card/en/c/cc0639en) might lead one to the conclusion that it’s an elsewhere problem. That the people who are suffering malnutrition and starvation are “elsewhere”, not in our backyar...

1539 sym Python (1393 sym/1 pcs) 2 img

DATA605-W12D-YINA QIAO

11.04.2024

Load Data library(MASS) Summary Statistics head(Boston) ## crim zn indus chas nox rm age dis rad tax ptratio black lstat ## 1 0.00632 18 2.31 0 0.538 6.575 65.2 4.0900 1 296 15.3 396.90 4.98 ## 2 0.02731 0 7.07 0 0.469 6.421 78.9 4.9671 2 242 17.8 396.90 9.14 ## 3 0.02729 0 7.07 0 0.469 7.185 61.1 4.9671 ...

1138 sym R (3732 sym/9 pcs) 1 img

DATA 605 W11 discussion-YINA QIAO

03.04.2024

Use mtcars dataset to build a regression model in R and conducting residual analysis Predit miles per gallons based on weight of the cars library(ggplot2) data(mtcars) model <- lm(mpg ~ wt, data=mtcars) summary(model) ## ## Call: ## lm(formula = mpg ~ wt, data = mtcars) ## ## Residuals: ## Min 1Q Median 3Q Max ## -4.5432 -2....

830 sym R (926 sym/5 pcs) 3 img

DATA 605 HW 13 YINA QIAO

01.04.2024

Problem 1: Use integration by substitution to solve the integral below. \[\int 4e^{-7x} \, dx\] \[ \begin{split} \int{4e^{-7x}dx} \\ u = -7x \\ du = -7dx \Rightarrow dx = \frac{du}{-7} \end{split} \] by substitution \[ \begin{split} \int{4e^u \frac{du}{-7}} \\ -\frac{4}{7}\int{e^udu}\\ -\frac{4}{7}e^u + C\\ -\frac{4}{7}e^{-7x} + C\\ \end{split} \] ...

2244 sym 1 img

DATA 605 HW14-YINA QIAO

01.04.2024

This week, we’ll work out some Taylor Series expansions of popular functions. For each function, only consider its valid ranges as indicated in the notes when you are computing the Taylor Series expansion. 1.\(f (x) = \frac{1}{(1-x)}\) The Taylor Series expansion for \(f (x) = \frac{1}{(1-x)}\) is: \[ f (x) = \frac{1}{(1-x)} = \sum_{n=0}^{\infty...

1020 sym 4 img

DATA 605 HW15-YINA QIAO

01.04.2024

library(pracma) 1 Find the equation of the regression line for the given points. The points given are (5.6, 8.8), (6.3, 12.4), (7, 14.8), (7.7, 18.2), (8.4, 20.8). x <- c(5.6, 6.3, 7, 7.7, 8.4) y <- c(8.8, 12.4, 14.8, 18.2, 20.8) regression <- lm(y ~ x) summary(regression) ## ## Call: ## lm(formula = y ~ x) ## ## Residuals: ## 1 2 3...

2487 sym R (2233 sym/16 pcs)

Data 605 HW11

31.03.2024

Problem Statement Using the “cars” dataset in R, build a linear model for stopping distance as a function of speed and replicate the analysis of your textbook chapter 3 (visualization, quality evaluation of the model, and residual analysis.) library(ggplot2) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked fr...

802 sym R (1801 sym/18 pcs) 4 img

Data 605 HW12

31.03.2024

Problem Statement The attached who.csv dataset contains real-world data from 2008. The variables included follow. Country: name of the country LifeExp: average life expectancy for the country in years InfantSurvival: proportion of those surviving to one year or more Under5Survival: proportion of those surviving to five years or more TBFree: proport...

3235 sym R (6530 sym/26 pcs) 5 img