Publications by Amit Kapoor
Data605 - FinalProject
Data605 - Final Project Amit Kapoor 5/18/2020 # Necessary libraries library(ggplot2) library(knitr) library(tidyverse) library(DataExplorer) library(GGally) library(Matrix) library(matrixcalc) library(Rmisc) library(ggpubr) Problem 1. Using R, generate a random variable X that has 10,000 random uniform numbers from 1 to N, where N can be any nu...
8894 sym R (27687 sym/87 pcs) 27 img 1 tbl
Data605 - Homework15
library(ggplot2) library(dplyr) 1. Find the equation of the regression line for the given points. Round any final values to the nearest hundredth, if necessary. ( 5.6, 8.8 ), ( 6.3, 12.4 ), ( 7, 14.8 ), ( 7.7, 18.2 ), ( 8.4, 20.8 ) x <- c(5.6, 6.3, 7, 7.7, 8.4) y <- c(8.8, 12.4, 14.8, 18.2, 20.8) reg_line <- lm(y~x) reg_line ## ## Call: ## lm(...
3952 sym R (367 sym/5 pcs) 1 img
Data607 - FinalProject
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...
10270 sym R (36594 sym/95 pcs) 15 img
Data605 - Homework14
This week, we’ll work out some Taylor Series expansions of popular functions f(x) = 1 / (1-x) f(x) = e^x f(x) = ln(1 + x) For each function, only consider its valid ranges as indicated in the notes when you are computing the Taylor Series expansion. Please submit your assignment as a R-Markdown document. Taylor series is defined as \[f(x)\qua...
2904 sym
Data605 - Homework13
1. Use integration by substitution to solve the integral below. \[\int 4 e^{-7x} dx\] Let u = -7x then du = -7dx \[4\int { { e }^{ u } } \frac { du }{ -7 }\] \[-\frac { 4 }{ 7 } \int { { e }^{ u } } du\] \[-\frac { 4 }{ 7 } { e }^{ u }+\quad constant\] since u= -7x \[-\frac { 4 }{ 7 } { e }^{ -7x }+\quad constant\] 2. Biologists are treating a p...
3218 sym R (752 sym/9 pcs) 2 img
Data605 - Discussion14
find the total area enclosed by the functions f and g f(x) = \(x^{2}\)-3x+2 g(x) = -3x + 3 # create functions f and g f <- function(x) {x^2-3*x+2} g <- function(x) {-3*x+3} # draw both functions f and g curve(expr=f, from = -3, to = 3) curve(expr=g, from = -3, to = 3, add = T) # find lower intersection rt <- uniroot(function(x) f(x) - g(x) , ...
99 sym R (627 sym/7 pcs) 1 img
Data605 - Homework12
library(RCurl) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(GGally) ## Loading required package: ggplot2 ## Registered S3 method overwritten by 'GGally...
4742 sym R (6107 sym/44 pcs) 11 img
Data605 - Discussion13
Using R, build a multiple regression model for data that interests you. Include in this model at least one quadratic term, one dichotomous term, and one dichotomous vs. quantitative interaction term. Interpret all coefficients. Conduct residual analysis. Was the linear model appropriate? Why or why not? We will use mtcars dataset which was extr...
1885 sym R (5400 sym/20 pcs) 4 img
Data 605 - Discussion 12
Using R, build a regression model for data that interests you. Conduct residual analysis. Was the linear model appropriate? Why or why not? The data is from Researchers at University of Texas, Austin which is for teaching evaluation score (higher score means better) and standardized beauty score (a score of 0 means average, negative score means b...
892 sym R (1095 sym/10 pcs) 4 img
Data 607 - Assginment 10
Introduction to Assignment 10 Part 1. Get the the primary example code from chapter 2 of Text Mining with R and run. Part 2. Extend the code in two ways: * Work with a different corpus of your choosing * Incorporate at least one additional sentiment lexicon (possibly from another R package that you’ve found through research). I have used janeau...
3915 sym R (4841 sym/43 pcs) 4 img