Publications by Peter

FinalProject_607

06.12.2020

Introduction COVID19 pandemic has definitely impacted in every aspect of our life in one way or the other with fewer and as well as larger implications. In this project I would like to study the impact of the COVID19 pandemic across businesses in USA. With the data from NASDAQ trading I will try to draw conclusions as to how the business sectors ...

3367 sym R (10882 sym/17 pcs) 4 img

DATA605-hw3

16.02.2021

library(Matrix) Problem set 1 1) Rank of matrix A A <- matrix(c(1 ,2, 3 ,4,-1, 0 ,1, 3,0 ,1, -2, 1,5 ,4 ,-2 ,-3), nrow = 4, byrow = TRUE) A ## [,1] [,2] [,3] [,4] ## [1,] 1 2 3 4 ## [2,] -1 0 1 3 ## [3,] 0 1 -2 1 ## [4,] 5 4 -2 -3 paste("Rank of matrix A is ",rankMatrix(A)) ## [1] "Rank of ...

649 sym R (806 sym/11 pcs)

DATA605-hw4

22.02.2021

With the attached data file, build and visualize eigenimagery that accounts for 80% of the variability. Provide full R code and discussion. Required libraries library(doParallel) library(foreach) library(jpeg) library(EBImage) library(OpenImageR) Use of Graphics We have 17 files in the zip so we will process the files by setting the num=17...

844 sym R (2817 sym/14 pcs) 3 img

DATA605-hw2

07.02.2021

library(matrixcalc) Problem set 1 1) Show \(A^TA \neq AA^T\) Answer : \(A = \left[\begin{array}{ccc} -2 & 3 & -2\\ -4 & -2 & 1\\ 2 & 4 & 2 \end{array}\right]\) \(A^T = \left[\begin{array}{ccc} -2 & -4 & 2\\ 3 & -2 & 4\\ -2 & 1 & 2 \end{array}\right]\) \(AA^T = \left[\begin{array}{ccc} -2 & 3 & -2\\ -4 & -2 & 1\\ 2 & 4 & 2 \end{array}\right] \l...

1598 sym R (2063 sym/14 pcs)

DATA605-hw5

01.03.2021

1. (Bayesian). A new test for multinucleoside-resistant (MNR) human immunodeficiency virus type 1 (HIV-1) variants was recently developed. The test maintains 96% sensitivity, meaning that, for those with the disease, it will correctly report “positive” for 96% of them. The test is also 98% specific, meaning that, for those without the disease...

7107 sym R (1302 sym/50 pcs)

DATA605-hw10

11.04.2021

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

869 sym R (136 sym/4 pcs)

DATA605-hw9

26.03.2021

Problem 1 : The price of one share of stock in the Pilsdorff Beer Company (see Exercise 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 Y3...

1294 sym R (268 sym/6 pcs)

DATA605-hw8

21.03.2021

Ch 7 Ex 11. A company buys 100 lightbulbs, each of which has an exponential lifetime of 1000 hours. What is the expected time for the first of these bulbs to burn out? (See Exercise 10.) Answer From problem 10, minimum value has the mean \(μ/n\) Given, μ = 1000, n=100 Expected time for the first burn out is \(1000/100=10\) Ch 7 Ex 14. Assume t...

1743 sym R (235 sym/9 pcs)

DATA605-hw7

13.03.2021

1. Let X1, X2, . . . , Xn, be n mutually independent random variables, each of which is uniformly distributed on the integers from 1 to k. Let Y denote the minimum of the Xi’s. Find the distribution of Y. Solution: Given, \(X1, X2, . . . , Xn\), n mutually independent random variables uniformly distributed on the integers from 1 to k. Total num...

2076 sym R (689 sym/24 pcs)

DATA605-hw6

08.03.2021

A bag contains 6 green and 9 red jellybeans. How many ways can 5 jellybeans be withdrawn from the bag so that the number of green ones withdrawn will be less than 4? Answer #Green drawn is 3, 2 1 0 choose(6,3)*choose(9,2)+ choose(6,2)*choose(9,3)+ choose(6,1)*choose(9,4)+ cho...

1579 sym R (774 sym/14 pcs)