Publications by William Jasmine
Data 605 - HW12 - Multiple Regression
library(tidyverse) library(lmtest) The data used to complete this assignment is imported from a .csv file and summarized in the R cell below: df <- read.csv('who.csv') summary(df) ## Country LifeExp InfantSurvival Under5Survival ## Length:190 Min. :40.00 Min. :0.8350 Min. :0.7310 ## Class :character 1...
6564 sym R (4431 sym/16 pcs) 2 img 1 tbl
Data 605 - Week 11 Discussion
library(tidyverse) library(lmtest) Assignment Description Using R, build a regression model for data that interests you. Conduct residual analysis. Was the linear model appropriate? Why or why not? Import, Clean Data The data I will be using come from R’s CO2 dataset, which records the carbon dioxide (\(CO_2\)) “uptake of six plants from Queb...
3437 sym R (2061 sym/15 pcs) 3 img
Data 605 - HW11 - Simple Linear Regression
seed <- 1234 library(tidyverse) library(lmtest) Assignment Description 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.) Solution Import Data, Create Linear Model The ce...
4611 sym R (1950 sym/18 pcs) 3 img
Data 605 - Week 10 Discussion
Question comes from “Introduction to Probability” by Charles M. Grinstead. Question 11, Section 11.1 Problem Description: Assume that a man’s profession can be classified as professional, skilled laborer, or unskilled laborer. Assume that, of the sons of professional men, 80 percent are professional, 10 percent are skilled laborers, and 10 ...
2638 sym Python (1054 sym/6 pcs)
Data 605 HW10 - Random Walks
seed <- 1234 library(plyr) library(tidyverse) Description Smith is in jail and has $1; he can get out on bail if he has $8. 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 before losing all of his money if ...
3639 sym R (1645 sym/14 pcs) 4 img
Data 605 - HW9 - CLT and Moment Generating Functions
Question 1 Description This question comes from page 363, question #11 of “Introduction to Probability” by Charles M. Grinstead. Solution The price of one share of stock in the Pilsdorff Beer Company (see Exercise 8.2.12) is given by \(Y_n\) on the \(n\)th day of the year. Finn observes that the differences \(X_n = Y_{n+1} − Y_n\) appear to...
6204 sym
Data 605 - Week 9 Discussion
Question comes from “Introduction to Probability” by Charles M. Grinstead. Question 9, Section 9.3 Problem Description: How large must n be before \(S_n = X_1+X_2+...+X_n\) is approximately normal? This number is often surprisingly small. Let us explore this question with a computer simulation. Choose \(n\) numbers from \([0, 1]\) with probab...
2091 sym Python (2919 sym/13 pcs) 3 img
Data 605 - HW8 - Density Functions of Continuous Variables
Questions come from “Introduction to Probability” by Charles M. Grinstead. Question 11, Section 7.2 Problem Description 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.) Solution It’s first helpful to actually solve ...
8368 sym R (1014 sym/10 pcs) 2 img
Data 605 - Week 8 Discussion Response
Question comes from “Introduction to Probability” by Charles M. Grinstead. Question 3a, Section 7.2 Problem Description: Let \(X\) and \(Y\) be independent random variables with: \[ \begin{equation} f_X(x) = f_Y(x) = \begin{cases} \frac{x}{2} & \text{if } 0 < x < 2\\ 0 & \text{otherwise } \end{cases} \end{equation} \]...
1204 sym 1 img
Data 605 - Week 8 Discussion
Question comes from “Introduction to Probability” by Charles M. Grinstead. Question 4, Section 7.2 Problem Description: Let \(X\), \(Y\), and \(Z\) be independent random variables with: \[ \begin{equation} f_X(x) = f_Y(x) = f_Z(x) = \begin{cases} 1 & \text{if } 0 < x < 1\\ 0 & \text{otherwise } \end{cases} \end{equati...
3782 sym R (684 sym/4 pcs) 1 img