Publications by Ryan OHara

Document

28.11.2023

Part 1 Correlation: Simply put, correlation is the relationship between two or more things. In statistics, it describes or is a measure of the association between two variables. It usually ranges on the scale from -1 (negative/inverse) to 1 (positive/direct) relationships. It is important to note that correlation can indicate a relationship, b...

3120 sym R (3879 sym/30 pcs) 1 img

Homework4

21.11.2023

Setting up the Environment # Clear the workspace rm(list = ls()) # Clear environment gc() # Clear unused memory ## used (Mb) gc trigger (Mb) max used (Mb) ## Ncells 525004 28.1 1169818 62.5 660385 35.3 ## Vcells 964354 7.4 8388608 64.0 1769489 13.6 cat("\f") # Clear the console I. Function to Reject or...

20605 sym Python (17619 sym/168 pcs) 12 img

Discussion11

21.11.2023

Import the Data library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔...

2337 sym R (4662 sym/19 pcs) 1 img

Document

14.11.2023

Clear R rm(list = ls()) #clear environment gc() #clear unused memory ## used (Mb) gc trigger (Mb) max used (Mb) ## Ncells 523150 28.0 1164521 62.2 660385 35.3 ## Vcells 952553 7.3 8388608 64.0 1769489 13.6 cat("\f") #clear console #Import Packages library(ggplot2) library(dplyr) ## ## Attaching package: 'dplyr' ## The fo...

1676 sym R (4057 sym/26 pcs) 5 img

Discussion9

06.11.2023

Part 1: Law of Large Numbers The Law of Large Numbers is a probability Theorem that describes the long term behavior of a probability experiment. The law states that if an independent experiment is repeated over a long period of time, the mean of the results should converge/approach the expected value of that experiment. There are two version...

5977 sym R (3090 sym/28 pcs) 3 img

Discussion8

01.11.2023

PART 1 1a. Probability Sampling: Probability sampling is a method that uses random sampling. This means that each member of the population being studied must have an equal chance of being selected. There is simple random sampling (random number generator), stratified (random sample within strata), systematic (randomly selecting at intervals), ...

11122 sym R (14042 sym/25 pcs) 4 img

Midterm1

25.10.2023

rm(list = ls()) #remove all objects from the environment cat("\f") # clear the console graphics.off() # clear all graphs Import the Packages Needed library(psych) library(moments) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are ma...

7471 sym R (7600 sym/80 pcs) 9 img

Data Analysis Homework 3

17.10.2023

Question 1. 1. A researcher wishes to conduct a study of the color preferences of new car buyers. Suppose that 50% of this population prefers the color red. If 20 buyers are randomly selected, what is the probability that between 9 and 12 (both inclusive) buyers would prefer red? Round your answer to four decimal places. Use the round() func...

15640 sym Python (6725 sym/58 pcs) 10 img

Document

15.10.2023

I. Foundation Distributions Normal Distribution (continuous): The normal distribution is one of the most, if not the most, common distribution of random variables (shows up a lot in nature). The normal distribution is a continuous distribution type (ex. weight, height), symmetric about the mean, asymptotic to the horizontal axis, unimodal, a f...

7601 sym 5 img

Document

01.10.2023

Part I. Bayes Theorem is an extension of the Law of Conditional Probability. It is used to calculate a conditional P of a condition with evidence present. The prior probability (before the evidence) (usually P(A)), is multiplied by a fraction representing the “strength of the evidence” (P(B|A)/P(B). In other words, it is the probability of ...

1991 sym R (6385 sym/26 pcs) 1 img