Publications by Deepa Sharma
HW 9
Question 11: 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...
1514 sym
Assignment 8 605
Question 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.) Given, μ = 1000 hours n = 100 expected_time = μ/n = 1000/100 = 10 hours R Code: mu <- 1000 n <- 100 expected_time <- mu/n expected_time ## [1] ...
2283 sym
Assignment#7 605
Question 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 . Y is the minimum of the Xi’s So, P(Y > y) = P(X1 > y and X2 > y ……..Xn > y) Using multiplication rule we can write below for i...
5444 sym
Assignment 6
Question 1: A bag contains 5 green and 7 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 2? Binomial Coefficient formula: \[\binom{n}{k} = \frac{n!}{k!(n-k)!}\] Green Jellybeans = 5 Red Jellybeans = 7 Total jellybeans = 12 Case 1: Zero green jellybeans are w...
5311 sym Python (2225 sym/34 pcs)
Assignment#5
library(MASS) 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 wi...
9179 sym R (3480 sym/68 pcs)
Assignment #4
Load libraries library (jpeg) library(OpenImageR) library(EBImage) Use of Graphics num=17 files=list.files("C:/Users/dkbs0/OneDrive/Desktop/Data 605/Week 4/jpg", pattern="\\.jpg")[1:num] View Shoes Function height=1200; width=2500;scale=20 plot_jpeg = function(path, add=FALSE) { jpg = readJPEG(path, native=T) # read the file res = dim(j...
506 sym R (2925 sym/17 pcs) 4 img
Dsharma
#HW 1: for loop 1. Write a loop that calculates 13-factorial. fResult<-1 fInput <- 13 for (i in 2:fInput) { fResult<-i*fResult i=i+1 } returnValue(fResult) ## [1] 6227020800 #HW 1: While loop 1. Write a loop that calculates 13-factorial fResult<-1 #answer count<-1 #how many times loop has run fInput <- 13 #change the facto...
608 sym R (934 sym/8 pcs)
R_Final_Project_DS
R Bridge Course Final Project Introduction: This is the final project for the Bridge course to demonstrate the skills learned through the 3 weeks course. The dataset “Credit Card” will be used for the analysis. The main functions will be applied to analyze the dataset such as mean(), median(), mode(), summary() as well as graphic tools (ggp...
1185 sym R (8919 sym/29 pcs) 6 img
DSharm_607_Assignment – Loading Data into a Data Frame
title: “NewDeepa” author: “Deepa” date: “2/4/2022” output: html_document DATA 607 Week 1 Assignment - Assignment – Loading Data into a Data Frame Deepa Sharma February 6, 2022 Introduction: The data for this task is taken from fivethirtyeight dataset located @ https://data.fivethirtyeight.com/ The dataset chosen is the Coronav...
1722 sym R (641052 sym/10 pcs)
Lab 1: Intro to R
library(tidyverse) library(openintro) data('arbuthnot', package='openintro') arbuthnot ## # A tibble: 82 x 3 ## year boys girls ## <int> <int> <int> ## 1 1629 5218 4683 ## 2 1630 4858 4457 ## 3 1631 4422 4102 ## 4 1632 4994 4590 ## 5 1633 5158 4839 ## 6 1634 5035 4820 ## 7 1635 5106 4928 ## 8 1636...
11598 sym R (7933 sym/44 pcs) 5 img