Publications by Folorunsho Atanda

FA_LF_Final

19.05.2024

Your final is due by the end of day on 19 May This project will show off your ability to understand the elements of the class. You are to register for Kaggle.com (free) and compete in the House Prices: Advanced Regression Techniques competition. https://www.kaggle.com/c/house-prices-advanced-regression-techniques . I want you to do the following...

7316 sym Python (57716 sym/94 pcs) 9 img

FA_LF_HW15

06.05.2024

library(calculus) library(Ryacas) Question 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 # x and y points x <- c(5.6, 6.3, 7, 7.7, 8.4) y <- c(8.8, 12.4, 14.8, 18.2, 20.8) # model...

2713 sym R (3373 sym/19 pcs)

FA_LF_DiscussionWK15

06.05.2024

Question 9 Ex12.4 Pg 711 Find \(f_x, f_y, f_{xx}, f_{yy}, f_{xy}, \:and\: f_{yx}\) Solution Function: \[ \begin{aligned} f(x, y) &= x^2y + 3x^2+4y-5 \end{aligned} \] \(f_x\): \[ \begin{aligned} f_x = 2xy + 6x \end{aligned} \] Using R library(calculus) # define function f <- expression((x**2)*y + 3*x**2 + 4*y - 5) # partial derivativ...

636 sym R (410 sym/12 pcs)

FA_LF_DiscussionWK14

06.05.2024

Question Ex8.8 Q11 find a formula for the \(n^{th}\) term of the Taylor series of \(f(x)\), centered at c, by finding the coefficients of the first few powers of x and looking for a pattern. Solution \[ \begin{aligned} f(x) &= \frac{x}{x+1}; \: \text{centered at } c = 1 \end{aligned} \] Taylor Series Formula: \[ \begin{aligned} f(x) &= \s...

1830 sym R (900 sym/18 pcs)

FA_LF_HW14

02.05.2024

Question For each function, only consider its valid ranges as indicated in the notes when you are computing the Taylor Series expansion. Taylor Series Formula: \[ \begin{aligned} f(x) &= \sum_{n = 0}^{\infty}\frac{f^{(n)}(a)}{n!}(x-a)^n \end{aligned} \] Function 1 \[ \begin{aligned} f(x) &= \frac{1}{1-x} \end{aligned} \] The Taylor Series...

3166 sym

FA_LF_DiscussionWK13

30.04.2024

Question Find the dimensions of a cylindrical can with a volume of \(206in^3\) that minimizes the surface area. The “#10 can”is a standard sized can used by the restaurant industry that holds about \(206in^3\) with a diameter of \(6\frac{2}{16}in\) and height of \(7in\). Does it seem these dimensions were chosen with minimiza􀆟on in mind...

1623 sym

FA_LF_HW13

29.04.2024

Question 1 Use integration by substitution to solve the integral below \(\int 4e^{-7x} dx\) Solution Let \(u = -7x\). Therfore, \[ \begin{aligned} du &= -7dx \\ dx &= \frac{-1}{7}du \end{aligned} \] Substituting \(u\) and \(dx\) into the integral \[ \begin{aligned} \int 4e^{-7x}dx &= \int 4e^{u}\begin{pmatrix}\frac{-1}{7}\end{pmatrix}du \\...

5760 sym

FA_LF_HW12

14.04.2024

library(tidyverse) library(data.table) data <- fread('https://raw.githubusercontent.com/folushoa/Data-Science/Data-605/HW12/who.csv') print(head(data, 5)) ## Country LifeExp InfantSurvival Under5Survival TBFree PropMD ## <char> <int> <num> <num> <num> <num> ## 1: Afghanistan 42 0.83...

4127 sym R (7539 sym/23 pcs) 2 img

FA_LF_HW11

04.04.2024

Question 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. Answer library(tidyverse) Model cars_data <- cars cars_data_lm <- lm(dist ~ speed, data = cars_data) summa...

2123 sym R (1443 sym/7 pcs) 4 img

FA_LF_Discussion10

02.04.2024

Page 492 Q11 Setup: There are 18 red, 18 black, and 2 green. Therefore there are 38 possible outcomes. Betting a dollar on red… \[ \begin{aligned} p &= \frac{18}{38} = 0.4736842 \\ q &= \frac{20}{38} = 0.5263158 \end{aligned} \] Using formula.. \[ \begin{aligned} P &= \frac{1 - (\frac{q}{p})^s}{1 - (\frac{q}{p})^M}\\ where, \\ s &= 40 ...

1535 sym