Publications by Samuel I Kigamba

DATA 605 Final Project - Presentation

20.05.2020

DATA 605 Final Exam Samuel I Kigamba May 20, 2020 Load all the necessary Libraries library(gridExtra) library(RColorBrewer) library(Matrix) library(scales) library(corrplot) library(MASS) library(psych) library(ggplot2) Presentation breakdown: Probability Random number generation Probability calculations Statistics and Calculus Descri...

7412 sym R (34233 sym/98 pcs) 9 img

DATA 605 Final Project

20.05.2020

Load all the necessary Libraries library(gridExtra) library(RColorBrewer) library(Matrix) library(scales) library(corrplot) library(MASS) library(psych) library(ggplot2) Presentation breakdown: Probability Random number generation Probability calculations Statistics and Calculus Descriptive and Inferential Statistics Linear Algebra and Co...

7461 sym R (34233 sym/98 pcs) 9 img

DATA 605 Assignment 15

17.05.2020

WebTest Name: (Test) Find the equation of the regression line for the given points. Round any final values to the nearest hundredth, if necessary. ( 5.6, 8.8 ), ( 6.3, 12.4 ), ( 7, 14.8 ), ( 7.7, 18.2 ), ( 8.4, 20.8 ) x = c(5.6, 6.3, 7, 7.7, 8.4) y = c(8.8, 12.4, 14.8, 18.2, 20.8) lm(y~x) ## ## Call: ## lm(formula = y ~ x) ## ## Coeff...

2498 sym R (620 sym/7 pcs) 1 img

DATA 605 Assignment 13

04.05.2020

Use integration by substitution to solve the integral below: \[∫4e^{−7x}dx\] \[u=−7x\] \[du=−7dx\] \[dx=\frac{du}{−7}\] \[∫4e^u\frac{du}{−7}\] \[\frac{4}{−7}∫e^udu\] \[\frac{4}{−7}e^u+C\] \[\frac{4}{−7}e^{−7x}+C\] Biologists are treating a pond contaminated with bacteria. The level of contamination is changing at a rate ...

2660 sym R (216 sym/3 pcs) 1 img

DATA 605 Assignment 12

26.04.2020

Assignment 12 The attached who.csv dataset contains real-world data from 2008. The variables included follow. Country: name of the country LifeExp: average life expectancy for the country in years InfantSurvival: proportion of those surviving to one year or more Under5Survival: proportion of those surviving to five years or more TBFree: proportio...

5137 sym R (4363 sym/26 pcs) 2 img

DATA 605 Assignment 11

19.04.2020

Using the “cars” dataset in R, build a linear model for stopping distance as a function of speed and replicate the analysis of your textbook chapter 3 (visualization, quality evaluation of the model, and residual analysis.) library(tidyverse) head(cars) ## speed dist ## 1 4 2 ## 2 4 10 ## 3 7 4 ## 4 7 22 ## ...

387 sym R (1163 sym/10 pcs) 4 img

DATA 605 Assignment 10

05.04.2020

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: he bets 1 dollar each time (timid s...

655 sym R (241 sym/4 pcs)

DATA 605 Discussion 9

29.03.2020

Assignment problem 2. Calculate the expected value and variance of the binomial distribution using the moment generating function. The binomial PMF is defined as \[(^n_x)p^xq^{n - x}\] so the moment generating function is: \[M(t) = \sum_{x=0}^n e^{tx}(^n_x)p^xq^{n-x} = \sum_{x=0}^n(^n_x)(pe^t)^xq^{n-x}=(pe^t+q)^n\] \[M'(t)=n(pe^t+q)^n-1pe^t\] \[E...

598 sym

DATA 605 Assignment 9

29.03.2020

#11 page 363 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 sigma^2 = 1/4. If Y1 = 100, estimate the probability t...

1510 sym R (261 sym/6 pcs)

DATA 605 Assignment 8

23.03.2020

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.) Let Xi —, Xn be independently expoentially distributed random variables with rate parametesr λi…, λn. Then min{Xi …, Xn} is also exponentially distributed with pa...

1714 sym R (548 sym/12 pcs)