Publications by Dennis Pong
Data 605 - Discussion 9
library(visualize) Exercise 9.1.8 A club serves dinner to members only. They are seated at 12-seat tables. The manager observes over a long period of time that 95 percent of the time there are between six and nine full tables of members, and the remainder of the time the numbers are equally likely to fall above or below this range. Assume that e...
1541 sym R (188 sym/3 pcs) 2 img
Data 624 Project 1 (Part C)
Code Show All Code Hide All Code Data 624 Project 1 Data 624 Project 1 Part C [Bonus]: Forecasting Water Pipe Flow Dennis Pong 2020-10-22 library(knitr) library(rmdformats) ## Global options options(max.print="85") opts_chunk$set(cache=TRUE, prompt=FALSE, tidy=TRUE, comment=NA, ...
2890 sym R (12485 sym/79 pcs) 10 img
Data605 HW 9
Code Show All Code Hide All Code Data 605 HW 9 Data 605 HW 9 #11 page 363 (a) ≥ 100. (b) ≥ 110. (c) ≥ 120. 2. 3. 2020-10-22 library(knitr) library(rmdformats) ## Global options options(max.print="85") opts_chunk$set(cache=TRUE, prompt=FALSE, tidy=TRUE, comment=NA, messag...
2961 sym R (706 sym/10 pcs) 3 img
Data 605 Discussion 10
Ans: Let’s start by defining matrix Q. library(matlib) Q <- matrix(c(0, 2/3, 0, 1/3, 0, 2/3, 0, 1/3, 0),nrow = 3, byrow = T) Q ## [,1] [,2] [,3] ## [1,] 0.0000000 0.6666667 0.0000000 ## [2,] 0.3333333 0.0000000 0.6666667 ## [3,] 0.0000000 0.3333333 0.0000000 I <- diag(1,3,3) I ## [,1] [,2] [,3] ## [1,] 1 0 0 ##...
344 sym R (931 sym/13 pcs)
Data 605 Final Exam
Code Show All Code Hide All Code Data 605 Final Exam Data 605 Final Exam Problem 1 a. P(X>x| X>y) b. P(X>x, Y>y) c. P(X<x| X>y) Investigate whether P(X>x and Y>y)=P(X>x)P(Y>y) by building a table and Check to see if independence holds by using Fisher’s Exact Test and the Chi Square Test. What is the difference between the two? Which is m...
25464 sym R (26491 sym/134 pcs) 10 img
Data 605 HW 15
Code Show All Code Hide All Code Data 605 HW 15 Data 605 HW 15 1. 2. 3. Step 1. Find the revenue function R ( x, y ). Step 2. What is the revenue if she sells the “house” brand for $2.30 and the “name” brand for $4.10? 4. 5. 2020-12-12 1. Find the equation of the regression line for the given points. Round any final values to th...
3991 sym R (513 sym/1 pcs) 2 img
Data 605 Discussion 16
Problem 9 Find the critical points of the given function. Use the Second Derivative Test to determine if each critical point corresponds to a relative maximum, minimum, or saddle point. \(f(x, y) = x^2 + y^3 − 3y + 1\) The partial derivative of f: $$ \[\begin{multline*} \begin{split} f_x(x,y) = 2x \\ f_y(x,y) = 3y^2 - 3 \\ \end{split} \end{mul...
1145 sym
Data 624 Homework 10
Code Show All Code Hide All Code Data 624 HW 10 Data 624 HW 10 Description of problem Loading of data Market Basket Analysis Cluster Analysis Dennis Pong 2020-11-29 library(knitr) library(rmdformats) ## Global options options(max.print="85") opts_chunk$set(cache=TRUE, prompt=FALSE, tidy=TRUE, ...
5567 sym R (4501 sym/36 pcs) 1 img
Data 624 Homework 9
Code Show All Code Hide All Code Data 624 HW 9 Data 624 HW 9 8.1 (a) Fit a random forest model to all of the predictors, then estimate the variable importance scores: (b) Now add an additional predictor that is highly correlated with one of the informative predictors. For example: (c) Use the cforest function in the party package to fit a r...
10109 sym R (12543 sym/70 pcs) 11 img
Data 605 HW 12
Data 605 HW 12 Data 605 HW 12 Data Dictionary Data Prep Question 1 Scatter plot of LifeExp~TotExp Question 2 Question 3 Question 4 Question 5 Dennis Pong 2020-11-22 library(knitr) library(rmdformats) ## Global options options(max.print="85") opts_chunk$set(cache=TRUE, prompt=FALSE, tidy=TRUE, ...
8341 sym R (6112 sym/33 pcs) 3 img