Publications by Emmanuel Hayble-Gomes

Data 605-Final Project

11.05.2020

Kaggle Competition: House Prices: Advanced Regression Techniques username: Emahayz Score: 0.6294 0.1 Load Libraries library(ggplot2) library(ggcorrplot) library(dplyr) library(caret) library(imputeTS) #Input Missing Values library(MASS) library(psych) library(matrixcalc) #LU Decomposition library(Rmisc) #Confidence Interval library(mode...

30453 sym R (49091 sym/106 pcs) 7 img

Data 605-Homework10

05.04.2020

Problem 2 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 0.4 and loses A dollars with probability 0.6. Find the probability that he wins 8 dollars before losing all of his money if he bets 1 dollar each time...

1716 sym

Data 605-Homework9

24.03.2020

Problem 2 Calculate the expected value and variance of the binomial distribution using the moment generating function. Given: The \(B_{n,p}\)binomial distribution of X, the moment generating function is given as: \(M_{(t)} = (pe^t + (1-p))^n\) The Expected Value of X is given as the first derivative: \(M'_{(t)} = n(pe^t + (1-p))^{n-1}pe\) \(E(X) ...

1184 sym

Data 605-Homework8

22.03.2020

Chapter 7 Problem 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? Given: \(1/\lambda\) = 1000 \(\lambda\) = 1000 The Expected life is 1/100*\(\lambda\) 1/100 * 1/1000 = 10 The expected time for the first of the bulb to burnout is 10 hour...

1771 sym

Data 605-Discussion8

18.03.2020

Problem 4 in Chapter 8 A 1-dollar bet on craps has an expected winning of −.0141. What does the Law of Large Numbers say about your winnings if you make a large number of 1-dollar bets at the craps table? Does it assure you that your losses will be small? Does it assure you that if n is very large you will lose? Law of Large Numbers Let \(X_1,...

1925 sym

Data 605-Discussion7

10.03.2020

Chapter 6 - EXPECTED VALUE AND VARIANCE Problem 4 In Las Vegas the roulette wheel has a 0 and a 00 and then the numbers 1 to 36 marked on equal slots; the wheel is spun and a ball stops randomly in one slot. When a player bets 1 dollar on a number, he receives 36 dollars if the ball stops on this number, for a net gain of 35 dollars; otherwise, h...

666 sym R (160 sym/6 pcs)

Data 605-Homework6

08.03.2020

Problem 1 A box contains 54 red marbles, 9 white marbles, and 75 blue marbles. If a marble is randomly selected from the box, what is the probability that it is red or blue? Express your answer as a fraction or a decimal number rounded to four decimal places. R <- 54 W <- 9 B <- 75 prob_RorB <- round((R + B) / (R + W + B), 4) prob_RorB ## [1...

4022 sym R (2317 sym/36 pcs)

Data 605-Discussion6

05.03.2020

Chapter 4 - DISCRETE CONDITIONAL PROBABILITY Problem 26 Suppose that A and B are events such that \(P(A \mid B)\) = \(P(B \mid A)\) and \(P(A \cup B)\) = 1 and \(P(A \cap B)\) > 0. Prove that P(A) > 1/2. From the first information: \[\frac {P(A,B)}{P(A)} = \frac {P(A,B)}{P(B)} = P(A) = P(B)\] The second part of the information provides that: \[P(...

523 sym

Data 608-Homework 2

24.02.2020

library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(ggplot2) library(RColorBrewer) library(ggthemes) ## Warning: package 'ggthemes' was built under R v...

13023 sym R (6897 sym/61 pcs) 1 img

Data 621-Assignment1

22.02.2020

0.1 Introduction In this assignment, we are tasked to explore, analyze and model a major league baseball dataset which contains around 2000 records where each record presents a baseball team from 1871 to 2006. Each observation provides the perforamce of the team for that particular year with all the statistics for the performance of 162 game seas...

61715 sym R (130115 sym/193 pcs) 20 img 14 tbl