Publications by Alec McCabe

606 Lab 9 - Multiple Regression

21.11.2021

Multiple linear regression Alec McCabe Grading the professor Many college courses conclude by giving students the opportunity to evaluate the course and the instructor anonymously. However, the use of these student evaluations as an indicator of course quality and teaching effectiveness is often criticized because these measures may reflect the ...

9261 sym R (16047 sym/47 pcs) 14 img

606 Homework 9 - Multiple Regression

22.11.2021

Chapter 9 - Multiple and Logistic Regression Alec McCabe Baby weights, Part I. (9.1, p. 350) The Child Health and Development Studies investigate a range of topics. One study considered all pregnancies between 1960 and 1967 among women in the Kaiser Foundation Health Plan in the San Francisco East Bay area. Here, we study the relationship betwe...

5852 sym R (2098 sym/22 pcs) 2 img

Analyzing Web Article Spin

07.12.2021

Analyzing Bias in Online News Alec 11/14/2021 Project Libraries library(stringr) library(tidyverse) library(dplyr) library(tm) library(stringr) library(stringi) library(SnowballC) library(textstem) library(sentimentr) library(text2vec) library(caret) library(rvest) library(tidytext) library(randomForest) library(topicmodels) library(wordcloud) l...

7392 sym R (17292 sym/110 pcs) 19 img

605 Homework 2 - Matrices

07.02.2022

605_homework_2 Alec 2/7/2022 Problem 1 Consider matrixes A, and A-transpose (AT) Show that (AT matrix-multipled by A) does not equal (A matrix-multipled by AT) Proof Proof: If we take a 2x2 non-zero matrix, At = [[a, b], [c, d]] At = [[a, c], [b, d]] AAt = [[(aa + ba), (ac + bd)], [(ca + db), (cc + dd)]] AtA = [[(aa + cc), (ac + cd)], [(ba + dc...

1507 sym R (772 sym/8 pcs)

Image Manipulation Homework

31.01.2022

605 Homework 1a Alec 1/31/2022 One of the most useful applications for linear algebra in data science is image manipulation. We often need to compress, expand, warp, skew, etc. images. To do so, we left multiply a transformation matrix by each of the point vectors. For this assignment, build the first letters for both your first and last name us...

1748 sym R (4402 sym/27 pcs) 6 img

605_Homework_10

03.04.2022

Main Prompt 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 loses A dollars with probability .6 Find the probability that he wins 8 dollars before losing all of his money if: Part 1 “he bets 1 dolla...

1228 sym R (1460 sym/11 pcs)

605 homework 9

27.03.2022

Question 1 The price of one share of stock in the Pilsdorff Beer Company (see Exercise 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 σ = 1/4. If Y1 = 100, estimate the probability that Y365...

1375 sym R (442 sym/6 pcs)

605 Homework 7

13.03.2022

Question 1 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: P(Y<= y) = 1- P(Y>y) = 1 - P(min{X1, X2, X3… Xn} > y) = 1 - P(X1 > y, X1 > y, … , Xm > y) = 1 - ((k-y)/k)^n so with s...

1418 sym R (574 sym/24 pcs)

605 Homework 5

27.02.2022

605_homework_5 Alec 2/27/2022 Question 1 A new test for multinucleoside-resistant (MNR) human immunodeficiency virus type 1 (HIV-1) variants was recently developed. The test maintains 96% sensitivity, meaning that, for those with the disease, it will correctly report “positive” for 96% of them. The test is also 98% specific, meaning that, fo...

4401 sym R (1612 sym/52 pcs)

605 Homework 3

08.02.2022

Problem Set 1 Question 1 Given Matrix A: A = matrix(c(1,2,3,4,-1,0,1,3,0,1,-2,1,5,4,-2,-3), nrow=4, byrow=TRUE) A ## [,1] [,2] [,3] [,4] ## [1,] 1 2 3 4 ## [2,] -1 0 1 3 ## [3,] 0 1 -2 1 ## [4,] 5 4 -2 -3 What is the rank of matrix A? According to Theorum NME8: Nonsingular Matrix Equivalences, th...

2413 sym R (1935 sym/27 pcs)