Publications by James Naval
DATA607_Week7_HW6
Introduction For this assignment we have been asked to store information about three books, at least one of which has more than one author, into an XML file, an HTML table and a JSON file. For this assignment I have chosen the following three books “Operating System Concepts by Abraham Silberschatz, Peter B. Galvin and Greg Gagne”, “Rich ...
1869 sym Python (811 sym/5 pcs)
JNaval_DATA605_HW7
Problem Problem 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 . Ans. \[ 1 ≤ j ≤ k, m(j) = \tfrac{(k-j+1)^n - (k-j)^n}{k^n} \] Problem 2 Your organization owns a copier (future lawy...
1742 sym
JNaval_DATA605_Discussion_Post_Week7
Exercise 7 Page 197 A die is rolled until the first time T that a six turns up. (a) What is the probability distribution for T? Find P(T > 3). Find P(T > 6|T > 3). First time T with six turn up: \[ T = \tfrac{1}{6} \] Distribution Formula: \[ P(T = n) = q^{n-1}p \\ where \ q = 1 - p \] Ans. # A) What is the probability distribution for T? \[...
1151 sym
DATA607_Week6_Project2
Introduction In this project we have been asked to find three untidy data sets which consist of Two classmates data set and one of your choosing, I will then need to tidy these data sets and perform some analysis on them. These data sets should be available as CSV files, preferably in a wide data format. DataSet 1 - Voters Registers by County ...
6481 sym Python (11073 sym/57 pcs) 8 img
JNaval_HW6_DATA605
Problem Problem 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? \[ {7 \choose 4}{5 \choose 1} + {7 \choose 5}\] choose(7,4)*choose(5,1) + choose(7,5) ## [1] 196 or choose(5,0) * choose(7,5) + choose(5,1) * choose(7,4) ## [1]...
4934 sym
JNaval_DATA605_Discussion_Post_Week6
library(tidyverse) library(ggthemes) library(reactable) library(pracma) Chapter 3 Page 8 Page 88 Exercise 1 Four people are to be arranged in a row to have their picture taken. In how many ways can this be done? There are 24 different ways It can be done. \[ {4 \choose 3}{3 \choose 2} {2 \choose 1}\] (choose(4,3)*choose(3,2)*choose(2,1)) ...
471 sym R (146 sym/5 pcs)
DATA607_Week5_HW4
Introduction We were provided with an image, and we were asked to import it to R and convert it. Then create a csv file from it and post it to my Github account. An URL for my Github data is below along with the original image. github. Import Data into R from the CSV For this step I will be importing my csv data from my Github account into my ...
1318 sym Python (1625 sym/7 pcs) 2 img
JNaval_HW5_DATA605
Problem 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 t...
8523 sym
JNaval_DATA605_Discussion_Post_Week5
Page 197 Exercise 7 A die is roll until the first time T that a six turn up. What is the probability distribution for T? Find P(T>3) Find P(T>6|T>3) A <- rbinom(n = 6, size = 1, prob = 0.5) P <- (T) hist(A) print(A) ## [1] 1 1 1 0 0 1 B <- rbinom(n = 6, size = 1, prob = 0.5) P <- (T > 3) hist(B) print(B) ## [1] 1 0 0 1 1 0 C <- rbinom(n...
172 sym 3 img
DATA607_Week4_Project1
Introduction For this project we were provided with a chess cross table file and were asking to imported the .txt chess cross table file to R and clean it then convert to a .csv file. I will upload the chess cross table file to my github account so that he can be easily view. There are different way for import .txt file to R such as read.delim,...
1514 sym