Publications by Peter

DATA605-hw15

16.05.2021

1) Find the equation of the regression line for the given points. Round any final values to the nearest hundredth, if necessary. ( 5.6, 8.8 ), ( 6.3, 12.4 ), ( 7, 14.8 ), ( 7.7, 18.2 ), ( 8.4, 20.8 ) Solution: Firstly, we create two vectors X and Y to organize the given data points. x = c( 5.6, 6.3, 7, 7.7, 8.4) y = c(8.8, 12.4, 14.8, 18.2, 20....

3860 sym R (767 sym/5 pcs)

DATA605-hw11

18.04.2021

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.) Dataset dim(cars) ## [1] 50 2 The cars dataset has 50 observations and 2 variables. summary(cars) ## speed ...

828 sym R (2219 sym/20 pcs) 5 img

DATA605-hw12

24.04.2021

Problem 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: proportion of t...

4218 sym R (5968 sym/23 pcs) 7 img

DATA605-hw13

02.05.2021

1. Use integration by substitution to solve the integral below \(∫4e^{−7x}dx\) Answer Let u = -7x \(\frac{du}{dx} = \frac{d(-7x)}{dx} = -7\) \(du = -7dx\) \(dx = -\frac{1}{7}du\) Replacing dx and u in \(∫4e^{−7x}dx\) gives us, \(-\frac{1}{7}∫4e^{u}du = -\frac{4}{7}e^{-7x} + C\) 2. Biologists are treating a pond contaminated with bacter...

2859 sym R (482 sym/4 pcs) 1 img

DATA605-hw14

09.05.2021

ASSIGNMENT 14 - TAYLOR SERIES IS 605 FUNDAMENTALS OF COMPUTATIONAL MATHEMATICS - 2014 This week, we’ll work out some Taylor Series expansions of popular functions. \(f(x)=\frac{1}{(1−x)}\) \(f(x) = e^x\) \(f(x) = ln(1 + x)\) For each function, only consider its valid ranges as indicated in the notes when you are computing the Taylor Series...

1990 sym

DATA605-Final

25.05.2021

library(tidyverse) library(DT) library(dplyr) library(ggplot2) library(matrixcalc) library(Rmisc) Problem 1. Using R, generate a random variable X that has 10,000 random uniform numbers from 1 to N, where N can be any number of your choosing greater than or equal to 6. Then generate a random variable Y that has 10,000 random normal numbers ...

7024 sym R (10364 sym/70 pcs) 9 img