Publications by Warner Alexis
Data 605 Multiple Regression
Data Analysis 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: propo...
2077 sym R (7559 sym/34 pcs) 5 img
DATA 605 Disc week 13
Data ANALysis We are going to use the cars dataset from R studio. The dataset information is located below: Description of dataset from R documentation > Name Description > mpg Miles/(US) gallon > cyl Number of cylinders > disp Displacement (cu.in.) > hp Gross horsepower > drat Rear axle ratio > wt Weight (1000 lbs) > qsec 1/4 mile time > vs En...
963 sym R (6845 sym/13 pcs) 2 img
Data 605 Disc Week 12
dna analysis We are importing two data sets from Kaggle using DNA data set test and training sets. x and y variables seems to be well correlated so we expect the \(R2\) to be close to 1. library(ggplot2) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The fo...
574 sym R (1991 sym/17 pcs) 3 img
DATA 605 - ASSIGNMENT 12
Cars Regression Analysis We are going to a regression analysis on the car data set. # import car dataset require(carData) ## Loading required package: carData library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ...
1254 sym R (1955 sym/23 pcs) 7 img
Data 605 Disc week 11
p422 ex2 In Example 11.4, let a = 0 and b = 1=2. Find$ P; P^2; and P^3: $What would Pn be? What happens to Pn as n tends to infinity? Interpret this result. Solution Lets find $ P; P^2; and P^3:$ a = 0 ; b = 1/2 \(P = \begin{bmatrix} 1 & 0 \\0 & \frac {1}{2}\end{bmatrix}\) From state 1 (the first row), the system transitions to itself with pro...
1189 sym
Data 605 Assignment 10
Excercise 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 (a) he bets 1 dollar each...
1414 sym R (2396 sym/8 pcs)
DATA 605 - Week 10 Disc
page 338 ex 1 Let S100 be the number of heads that turn up in 100 tosses of a fair coin. Use the Central Limit Theorem to estimate n <- 100 # trails number p <- 0.5 # prob of success # P(S100 <= 45) cat("The centraol Limit Theorem P(S100 <= 45)", pbinom(45, size = n, prob = p)) ## The centraol Limit Theorem P(S100 <= 45) 0.1841008 cat("The...
145 sym
DATA 605 Assignment 9
Excercise 11 page 363 A tourist in Las Vegas was attracted by a certain gambling game in which the customer stakes 1 dollar on each play; a win then pays the customer 2 dollars plus the return of her stake, although a loss costs her only her stake. Las Vegas insiders, and alert students of probability theory, know that the probability of winnin...
1963 sym
DATA 605 - ASSIGNMENT 8
Week Assignment 8 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 . Solution The probabiblity that any single \(X_i\) is greater that y \(\frac {k-y}{k}\), so \(k-y\) is greater than y out of ...
1542 sym
Data 605 Discussion Week 8
page 303 number 11 A company buys 100 lightbulbs, each of which has an exponential lifetime of 1000 hours. What is the expected time for the rst of these bulbs to burn out? (See Exercise 10.) ** Solution ** Lets \((X_i - X_n)\) be independent variables with parameters $_i …_n $ \(Pr(k|X_k = minX_i...X_n) = \frac {\lambda_k}{\lambda_i ...\lamb...
404 sym