Publications by Enkhbayasgalan Munkhbaatar
Enkhbayasgalan_112035145
Question 1 library(quadprog) returns_data <- matrix(c( 0.01, 0.02, -0.01, 0.005, # Daily returns for ETF "0050" (complete the sequence) 0.015, 0.018, -0.012, 0.008, # Daily returns for ETF "0056" (complete the sequence) 0.012, 0.025, -0.015, 0.007, # Daily returns for ETF "006205" (complete the sequence) 0.009, 0.021, -0.008, 0.006 # D...
54 sym R (4315 sym/18 pcs)
Enkhbayasgalan_112035145
library(ISLR2) data("Boston") attach(Boston) lm.fit <- lm(medv ~ lstat, data = Boston) lm.fit ## ## Call: ## lm(formula = medv ~ lstat, data = Boston) ## ## Coefficients: ## (Intercept) lstat ## 34.55 -0.95 summary(lm.fit) ## ## Call: ## lm(formula = medv ~ lstat, data = Boston) ## ## Residuals: ## Min 1Q Median ...
56 sym R (10114 sym/44 pcs) 9 img
exam
# Load libraries library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.4.4 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔ ...
19 sym R (8574 sym/15 pcs) 1 img
Enkhbayasgalan_112035145
Question 1 How many flights arrived late each month? The late arrival is the flight arrivingmore than 5 minutes after its scheduled arrival time. library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1....
385 sym R (10960 sym/34 pcs) 1 img
Document
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 responses <- read.csv("multipleChoiceResponses.csv", header = TRUE, stringsAsFactors = FALSE) selected_columns <- r...
27 sym R (8533 sym/19 pcs) 5 img
Oyuntuya_112035144
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 responses <- read.csv("multipleChoiceResponses.csv", header = TRUE, stringsAsFactors = FALSE) selected_columns <- r...
27 sym R (8533 sym/19 pcs) 5 img
Enkhbayasgalan_112035145
library(lubridate) ## ## Attaching package: 'lubridate' ## The following objects are masked from 'package:base': ## ## date, intersect, setdiff, union library(readxl) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1...
16 sym R (4576 sym/13 pcs)
Oyuntuya_112035144
install.packages(c("dplyr", "ggplot2")) ## Installing packages into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3' ## (as 'lib' is unspecified) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect,...
11 sym R (2698 sym/7 pcs) 1 img
Enkhbayasgalan_112035145
install.packages(c("dplyr", "ggplot2")) ## Installing packages into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3' ## (as 'lib' is unspecified) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect,...
11 sym R (2698 sym/7 pcs) 1 img