Publications by Mary Anna Kivenson
Baseball Data Cleanup
library(corrplot) library(psych) library(ggplot2) require(gridExtra) library(car) library(mice) library(VIM) library(caret) library(dplyr) library(MASS) Data Exploration Read Data Here, we read the dataset and shorten the feature names for better readibility in visualizations. df <- read.csv("https://raw.githubusercontent.com/mkivenson...
3612 sym R (9433 sym/22 pcs) 9 img
Time Series
Time Series library(fpp2) library(zoo) library(plotly) Question 2.1 Use the help function to explore what the series gold, woolyrnq and gas represent. gold: Daily morning gold prices in US dollars. 1 January 1985 – 31 March 1989. woolrnq: Quarterly production of woollen yarn in Australia: tonnes. Mar 1965 – Sep 1994. gas: Australian month...
12984 sym R (3461 sym/49 pcs) 21 img
Data Visualization
Linear Models with R Chapter 1 library(faraway) library(GGally) library(ggplot2) Question 1.1 The dataset teengamb concerns a study of teenage gambling in Britain. Make a numerical and graphical summary of the data, commenting on any features that you find interesting. Limit the output you present to a quantity that a busy reader would find su...
2796 sym R (5117 sym/34 pcs) 21 img
Probability Examples
Probability Questions Concepts Combinations vs Permutations An important idea in probability are combinations vs permunations. Combinations Combinations - You don’t care about the order in which events occur. For example, if a store sells 10 shirts but you can only buy 3, the order in which you buy the shirts does not matter. The number of ...
5744 sym
Computational Math - Assignment 15
Calculus Assignment 15 library(ggplot2) Question 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) First, we create lists containing the x and y values of the given points. x <- c(5.6, 6.3, 7, 7.7, 8.4) y <-...
3324 sym R (646 sym/12 pcs) 1 img
Computational Math - Assignment 13
Calculus Assignment 13 Question 1 Use integration by substition to solve the integral below. \[\int 4e^{-7x}dx\] Set the value to substitute: u = -7x Find the value of dx: dx = -du/7 \[\frac{-4}{7}\int e^{u}du\] \[\frac{-4}{7}e^{u} + c\] Question 2 Biologists are treating a pond contaminated with bacteria. The level of contamination is changing...
2607 sym R (749 sym/10 pcs) 2 img
Computational Math - Assignment 14
Calculus Assignment 14 Taylor Series For each function, only consider its valid ranges as indicated in the notes when you are computing the Taylor Series expansion. The following is the formula for a Taylor Series expansion. \[f(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 +...+ \frac{f^n(a)}{n!}(x-a)^n\] Question 1 \[ f(x) = \frac{1}{1-x}...
1879 sym
Computational Math - Discussion 15
Calculus Discussion 15 Question 7 \[ f(x,y) = x^2 + y^2 + 2 \] Domain: All real numbers Range: [2, inf) Question 8 \[ f(x,y) = x + 2y \] Domain: All real numbers Range: All real numbers Question 9 \[ f(x,y) = x - 2y \] Domain: All real numbers Range: All real numbers Question 10 \[ f(x,y) = \frac{1}{x+2y} \] Domain of x: x is in (-inf, -x...
962 sym
Computational Math - Discussion 14
Calculus Discussion 14 Question 4 Key Idea 8.8.1 gives the nth term of the Taylor series of common functions. Verify the formula given in the Key Idea by finding the first few terms of the Taylor series of the given functions and identifying a pattern. Taylor Series The following is the formula for a Taylor series for function f(x). \[f(x) = f(...
1566 sym 1 img
Computational Math - Final Project
Problem 1 Random Variables Using R, generate a random variable X that has 10,000 random uniform numbers from 1 to N, where N can be any number of your choosing greater than or equal to 6. ##generate a random variable X that has 10,000 random uniform numbers from 1 to N, where N can be any number of your choosing greater than or equal to 6 rand_...
6726 sym R (10369 sym/79 pcs) 4 img