Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume that some disease has a 0.1% prevalence in the population. Assume we have a test kit for that disease that works with 99% sensitivity
Assume that some disease has a 0.1% prevalence in the population. Assume we have a test kit for that disease that works with 99% sensitivity and 99% specificity. What is the probability of a person having the disease given the test result is positive, if we randomly select a subject from the general population? a high risk sub-population with 10% disease prevalence? Write R code to upload the quantmod package and use the Google stock price starting from September 2021 until the latest you can get. A) a. Produce time plot of the Google stock price. b. Produce forecast using exponential smoothing function. c. Report the accuracy of the forecast model. B) The following confusion matrix summarizes the predictions made by the model: Actual Compute Misclassification Rate, Gini Index and Information Gain for the above-mentioned model. C) Consider spam dataset with outcome variable type=Spam Not spam. Write R code for using functions present in the Caret package i. Create a data partition with 75% for training and 25% for testing data. ii. Split data into k number of folds based on the outcome, returning data as list and should also refum training set. John enjoys posting pictures of his cat online. The past 6 pictures recaived the following number af likes in order. A) 10,15,15,16,17,18,21 Compute Median Absolute Division for the above scenario. B) Find the Mean Squared Error for the Following Set of Values: (43,41).(44,45),(45,49).(46,47). (47,44). The equation of the line is given by y=9.2+0.8x. C) Write the form of penalized residual sum of squares (PRSS) used in Ridge and Lasso regression
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started