Publications by Devin Teran
Document
Data 607 - Final Project Research Objective Data Sources: Necessary R Packages: Gather Data Daily Presidential White House Briefings Stock Market Data Trump Approval Ratings Cleaning Data Clean WH Briefing Data Clean Approval Ratings Data Analysis White House Briefing & Sentiment Analysis Trump approval ratings analysis Stock Market Performan...
10275 sym R (35868 sym/93 pcs) 15 img
Data605Assign1
Problem Set 1 Calculate the dot product u.v where u = [0.5;0.5] and v= [3;-4] u = c(0.5,0.5) v = c(3,-4) dot_prod = u %*% v dot_prod ## [,1] ## [1,] -0.5 What are the lengths of u and v? len_u = sqrt(0.5**2 + 0.5**2) len_v = sqrt(3**2 + (-4)**2) len_u ## [1] 0.7071068 len_v ## [1] 5 What is the linear combination: 3u − 2v? 3*u - 2*v...
1102 sym R (1318 sym/12 pcs)
Data 605 - Week 2 Assignment
Problem Set 1 (1) Show that \(A^{T}A\) \(\neq\) \(AA^{T}\) in general. (Proof and demonstration). Proof Let’s start with taking the transpose of \(A^{T}\)A: \((A^{T}A)^{T}\) Using the theorem of matrix multiplication, we see this equals: \(A^{T}A\) Which is not equal to \(AA^{T}\) Thinking in terms of non-square matrices.. Suppose A is an mxn...
2343 sym R (4129 sym/34 pcs)
Data 604 - Assignment1
Problem Set 1 Calculate the dot product u.v where u = [0.5;0.5] and v= [3;-4] u = c(0.5,0.5) v = c(3,-4) dot_prod = u %*% v dot_prod ## [,1] ## [1,] -0.5 What are the lengths of u and v? len_u = sqrt(0.5**2 + 0.5**2) len_v = sqrt(3**2 + (-4)**2) len_u ## [1] 0.7071068 len_v ## [1] 5 What is the linear combination: 3u − 2v? 3*u - 2*v...
1102 sym R (1318 sym/12 pcs)
DTeran_Assignment6
Problem 1 A box contains 54 red marbles, 9 white marbles, and 75 blue marbles. If a marble is randomly selected from the box, what is the probability that it is red or blue? Express your answer as a fraction or a decimal number rounded to four decimal places. r = 54 w = 9 b = 75 total_marbles = r+w+b prob_r_or_b = (r+b)/total_marbles round(pro...
4172 sym R (5279 sym/44 pcs)
Data605-Assignment3
Assignment 3 Problem Set 1 Problem 1 What is the rank of the matrix A? \[\begin{equation*} A = \mathbf{}\left[\begin{matrix} 1 & 2 & 3 & 4\\ -1 & 0 & 1 & 3\\ 0 & 1 & -2 & 1\\ 5 & 4 & -2 & -3 \end{matrix}\right] \end{equation*}\] The rank is 4 because there are 4 non-zero rows in the row reduced echelon form. A <- matrix(c(1,2,3,4,-1,0,1,3,0,1...
5900 sym R (1364 sym/22 pcs)
Week4WeeklyProblem
Exercise VR.C10 In the vector space C3, compute the vector representation pb(v) for the basis B and vector v below. \[\begin{equation*}B = { \mathbf{} \left[ \begin{matrix} 2 \\ -2\\ 2\\ \end{matrix} \right] , \left[ \begin{matrix} 1\\ 3\\ 1\\ \end{matrix} \right] ,\left[ \begin{matrix} 3\\ 5\\ 2\\ \end{matrix} \right] } v = \left[ \begin{matr...
1208 sym R (178 sym/2 pcs)
Data605-Assignment4
Assignment 4 Problem Set 1 Problem 1 In this problem, we’ll verify using R that SVD and Eigenvalues are related as worked out in the weekly module. Given a 3 × 2 matrix A \[\begin{equation*} A = \mathbf{}\left[\begin{matrix} 1 & 2 & 3\\ -1 & 0 & 4\\ \end{matrix}\right] \end{equation*}\] Write code in R to compute X = AAT and Y = ATA: A = m...
2468 sym R (2048 sym/20 pcs)
Week5Discussion
R Markdown Example 1.2 (Coin Tossing) As we have noted, our intuition suggests that the probability of obtaining a head on a single toss of a coin is 1/2. To have the computer toss a coin, we can ask it to pick a random real number in the interval [0, 1] and test to see if this number is less than 1/2. If so, we shall call the outcome heads; if n...
1113 sym R (26141 sym/2 pcs)
Assignment5
R Markdown Problem1 Choose independently two numbers B and C at random from the interval [0, 1] with uniform density. Prove that B and C are proper probability distributions. Note that the point (B,C) is then chosen at random in the unit square. Find the probability that: (a) B + C < 1/2 If we think about this function using X & Y and rearrange t...
1934 sym R (366 sym/9 pcs) 3 img