Publications by Johnny Rodriguez
Data 605 Homework Week 12
Load Libraries and Read File data <- read.csv("https://raw.githubusercontent.com/johnnydrodriguez/data605/main/who.csv", header = TRUE, sep = ',', na.strings="", fill = TRUE) head(data) ## Country LifeExp InfantSurvival Under5Survival TBFree PropMD ## 1 Afghanistan 42 0.835 0.743 0.99769 0.00022884...
8005 sym 3 img
Discussion Week 12
Student Performance Dataset (from Kaggle) Source: https://www.kaggle.com/datasets/nikhil7280/student-performance-multiple-linear-regression?resource=download Description: The Student Performance Dataset is a dataset designed to examine the factors influencing academic student performance. The dataset consists of 10,000 student records, with each re...
3377 sym Python (3320 sym/5 pcs) 1 img
Discussion Week 11
2018 Central Park NYC Squirrel Census Does the temperature have a relationship to the number of squirrel? The hypothesis is that as the temperature increases so will the numnber of squirrel sightings in NYC Central Park. library(dplyr) library(tidyr) library(readr) library(stringr) squirrels <- read.csv("https://raw.githubusercontent.com/johnnydro...
3316 sym R (3732 sym/8 pcs) 2 img
Data 605 Homework Week 11
Linear model for stopping distance as a function of speed For the exercise, I performed the linear regression analysis on the orginal data as well the data that was tranformed using box-cox and logarithm methods. plot(cars$speed, cars$dist, main="Scatter plot of Stopping Distance vs Speed", xlab="Speed", ylab="Stopping Distance") Simple Linear Reg...
6927 sym 8 img
Data 605 HW Week 10
Problem 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 (ti...
4930 sym
Discussion Week 10
A certain calculating machine uses only the digits 0 and 1. It is supposed to transmit one of these digits through several stages. However, at every stage, there is a probability p that the digit that enters this stage will be changed when it leaves and a probability q = 1 − p that it won’t. Form a Markov chain to represent the process of trans...
2240 sym
Data 605 Discussion Week 9
CLT Page 354 #3 A piece of rope is made up of 100 strands. Assume that the breaking strength of the rope is the sum of the breaking strengths of the individual strands. Assume further that this sum may be considered to be the sum of an independent trials process with 100 experiments each having expected value of 10 pounds and standard deviation 1. ...
1799 sym
Data 605 Homework Week 9
Probabilites The price of one share of stock in the Pilsdorff Beer Company (see Exer- cise 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 Y...
6597 sym
Data 605 Homework Week 8
Distribution of the Minimum of Exponentially Distributed Random Variables 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? Expected Value for Exponential Distribution \[ E[X] = \frac{1}{\lambda} \] Step 1: Calculate Rate parameter lambda for ...
2726 sym
Data 605 Discussion Week 8
Chebyshev’s Inequality. Page 322, #10 A student’s score on a particular calculus final is a random variable with values of [0, 100], mean 70, and variance 25. (a) Find a lower bound for the probability that the student’s score will fall between 65 and 75. Given data: Mean (\(\mu\)) = 70 Variance (\(\sigma^2\)) = 25 Standard Deviation (\(\si...
1217 sym