Publications by karmaGyatso

data605_final_problem1

18.05.2023

set.seed(123) Problem 1 Probability Density 1: X~Gamma. Using R, generate a random variable X that has 10,000 random Gamma pdf values. A Gamma pdf is completely describe by n (a size parameter) and lambda (l , a shape parameter). Choose any n greater 3 and an expected value (l) between 2 and 10 (you choose). # Set the size parameter (n) and shape...

3829 sym Python (4722 sym/32 pcs)

Data605_final_problem2

17.05.2023

Problem 2 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. 5 points. Descriptive and Inferential Statistics. Provide univariate descriptive statistics and appropriate plots for ...

7617 sym R (24337 sym/61 pcs) 3 img

assignment_14

07.05.2023

library(pracma) ASSIGNMENT 14 - TAYLOR SERIES This week, we’ll work out some Taylor Series expansions of popular functions f(x)=1/(1−x) f′(x)=1/(1−x)2 f″(x)=f′(f′(x))=f′(1/(1−x)2)=2/(1−x)3x)3 f‴(x)=f′(f″(x))=6/(1−x)4 f⁗(x)=f′(f‴(x))=6∗4/(1−x)5 The series is bounded by x[−1,1] f(x)=1/(1−x) tylr_ser <- func...

352 sym R (518 sym/9 pcs)

assignment_13

01.05.2023

1. Use integration by substitution to solve the integral below. \[\int 4e^{-7x}dx\] Solution: \[\begin{equation} \int4e^{-7x}dx = 4 \int e^{-7x}dx \\\\ = 4\frac{e^{-7x}}{-7} + C \\\\ = -\frac {4} {7} e^{-7x} + C \\\\ \end{equation}\] 2. Biologists are treating a pond contaminated with bacteria. The level of contamina...

2386 sym 2 img

Discussion_wk13

29.04.2023

7. An F-22 aircraft is flying at 500mph with an elevate on of 10,000ft on a straight–line path that will take it directly over an anti–aircraft gun. How fast must the gun be able to turn to accurately track the aircraft when the plane is: (a) 1mileaway? (b) 1/5mileaway? (c) Directlyoverhead? Here, A represents the F-22 aircraft, and G r...

414 sym

assignment_12

23.04.2023

path = "https://raw.githubusercontent.com/karmaggyatso/CUNY_SPS/main/data_605/week_12/who.csv" csv_data = read.csv(path) head(csv_data) ## Country LifeExp InfantSurvival Under5Survival TBFree PropMD ## 1 Afghanistan 42 0.835 0.743 0.99769 0.000228841 ## 2 Albania 71 0.985...

945 sym Python (4964 sym/23 pcs) 2 img

assignment_11

16.04.2023

# Load cars dataset cars_data <- data(cars) # Create scatterplot plot(cars$speed, cars$dist, xlab = "Speed (mph)", ylab = "Stopping distance (ft)") # Fit linear regression model model <- lm(dist ~ speed, data = cars) model ## ## Call: ## lm(formula = dist ~ speed, data = cars) ## ## Coefficients: ## (Intercept) speed ## -17.579 ...

1526 sym 5 img

Discussion_wk11

12.04.2023

# load required packages library(ggplot2) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union # load airquality data data("airquality") # fit a linear regression model...

777 sym R (2281 sym/12 pcs) 2 img

assignment_10

31.03.2023

Smith is in jail and has $1; he can get out on bail if he has $8. A guard agrees to make a series of bets with him. If Smith bets A dollars, he wins A dollars with probability 0.4 and loses A dollars with probability 0.6. Find the probability that he wins $8 before losing all of his money if: a) he bets $1 each time (timid strategy) b) he...

238 sym

assignment9

26.03.2023

The price of one share of stock in the Pilsdorff Beer Company (see Exer- cise 8.2.12) is given by Yn on the nth day of the year. Finn observes that the differences Xn = Yn+1 − Yn appear to be independent random variables with a common distribution having mean μ = 0 and variance σ2 = 1/4. If Y1 = 100, estimate the probability that Y365 is (a)...

853 sym