Publications by Laura Burenkov

Discussion 6

29.02.2024

Exercise 7 7 Five people get on an elevator that stops at five floors. Assuming that each has an equal probability of going to any one floor, find the probability that they all get off at different floors. # Define the total number of floors and people num_floors <- 5 num_people <- 5 # Define the factorial function factorial <- function(n) {...

1526 sym

Homework 2

26.02.2024

Overview In this homework assignment, you will work through various classification metrics. You will be asked to create functions in R to carry out the various calculations. You will also investigate some functions in packages that will let you obtain the equivalent results. Finally, you will create graphical output that also can be used to ev...

18149 sym Python (17143 sym/33 pcs) 1 img

Data 605 A5

26.02.2024

(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,...

24825 sym

Discussion 5

23.02.2024

library(gmp) Exercise 18 A baker blends 600 raisins and 400 chocolate chips into a dough mix and, from this, makes 500 cookies. (a) Find the probability that a randomly picked cookie will have no raisins. (b) Find the probability that a randomly picked cookie will have exactly two chocolate chips. (c) Find the probability that a randomly chose...

2168 sym

Story 2

19.02.2024

Overview Has the FED been able to fulfill the mandate given to it by Congress? Story - 2 : Can the FED Control Inflation and Maintain Full Employment The Federal Reserve’s mandate from Congress is to control inflation and to maintain low unemployment. These seem to be contradictory objectives. For this story you will need to source the follow...

13468 sym Python (14297 sym/51 pcs) 4 img

Discussion 4

16.02.2024

Exercise C41 Now let’s run in code. #Given this values T_e1 <- c(2, 2, 1) T_e2 <- c(-1, 0, 2) #Constructing the matrix A A <- cbind(T_e1, T_e2) #Displaying our result A ## T_e1 T_e2 ## [1,] 2 -1 ## [2,] 2 0 ## [3,] 1 2 In this example, cbind is used to create a matrix by combining the vectors T_e1 and T_e2 as ...

1001 sym 2 img

Assignment 3 Data 605

11.02.2024

library(pracma) ## Warning: package 'pracma' was built under R version 4.2.3 ASSIGNMENT 3 1. Problem set 1 What is the rank of the matrix A? #Defining the matrix A A <- matrix(c(1, -1, 0, 5, 2, 0, 1, 4, 3, 1, -2, -2, 4, 3, 1, -3), nrow = 4, byrow = TRUE) #Performing QR decomposition qr_result <- qr(A) #Calculating the rank of matrix A ra...

1125 sym R (1142 sym/14 pcs)

Discussion 3

07.02.2024

C19† Find the eigenvalues, eigenspaces, algebraic multiplicities and geometric multiplicities for the matrix below. It is possible to do all these computations by hand, and it would be instructive to do so. #Defining the matrix C C <- matrix(c(-1, 2, -6, 6), nrow = 2, byrow = TRUE) #Finding eigenvalues and eigenvectors eigen_result <- eigen(C...

1290 sym

Exercise

04.02.2024

Exercise Exercise C23 #Defining the matrix matrix_B <- matrix(c(1, 3, 2, 4, 1, 3, 1, 0, 1), nrow = 3, byrow = TRUE) #Determinant determinant_B <- det(matrix_B) #Display result print(determinant_B) ## [1] -4 LS0tDQp0aXRsZTogIkRpc2N1c3Npb24gMiINCmF1dGhvcjogIkxhdXJhIFB1ZWJsYSINCmRhdGU6ICJgciBTeXMuRGF0ZSgpYCINCm91dHB1dDogb3BlbmludHJvOjpsYWJfcmV...

513 sym

Project 4

27.11.2023

Introduction It can be useful to be able to classify new “test” documents using already classified “training” documents. A common example is using a corpus of labeled spam and ham (non-spam) e-mails to predict whether or not a new document is spam. For this project, you can start with a spam/ham dataset, then predict the class of new d...

9169 sym Python (11056 sym/52 pcs) 2 img