Publications by haidingluo
ds9
Week 9 Discussion - Central Limit Theorem Haiding Luo 2023 11 6 1. Please Google and describe Law of large numbers in your own words. The Law of Large Numbers refers to the phenomenon in random experiments where, as the number of trials increases, the frequency of an event approaches a stable value. In other words, when the number of trials...
2445 sym R (2475 sym/30 pcs) 3 img
hw
Homework 3 Martin luo 2023 10 17 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? plot(x = 0:20, y = dbinom(x =...
2736 sym 5 img
Document
Discussion6 Martin Luo 2023 10 16 1. Normal Distribution (Gaussian Distribution): normal distribution is a fundamental probability distribution featuring a symmetric bell-shaped curve centered around the mean. It is defined by two crucial parameters: the mean, which establishes the distribution’s midpoint, and the standard deviation, which ...
3555 sym R (741 sym/10 pcs) 2 img
Publish Document
Week 5 Discussion 2023 10 2 Haiding Luo Part I I. Please explain Bayes Theorem in your own words, and give an example. Less than 10 sentences. Also, write out the formula. Pick up on how to to type equations in R Markdown using Latex terminology Bayes’ Theorem is a mathematical formula based on conditional probability, used to estimate th...
2465 sym R (4220 sym/19 pcs) 1 img
Homework 2
Homework2 haidingluo 2023.9.26 1.What is the probability of rolling a sum of 12 on three rolls of six-sided dice? Express your answer as a decimal number only. Show your R code. sides <- 6 sum1 <- 12 all_prob <- expand.grid(rep(list(1:sides), 3)) sums <- rowSums(all_prob) num_successful <- sum(sums == sum1) total_combinations <- length(s...
2469 sym
discussion 4
Discussion Week4 haidingluo I. Independence means that two variables or events do not affect each other, and the occurrence of one event does not influence the probability of the other event occurring. Mutually exclusive means that two categories or events cannot occur simultaneously; they are distinct and independent of each other. Example: 10 ...
1611 sym
Discussion 3
Discussion 3 Haiding Luo 2023.9.19 Part I Write one paragraph each (in your own words) describing what are classes and one paragraph on what are data structures (with examples). Classes refer to the data types or structures used to represent and manipulate data. Numeric: The numeric data class is used to represent numerical values, including ...
1944 sym R (2323 sym/26 pcs) 2 img
homework1
R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within...
598 sym 1 img
homework1
mydata <- read.csv('c:/train.csv') library(psych) options(repos = c(CRAN = "https://cran.rstudio.com/")) Homework 1: Titanic haiding Luo 9/11/2023 Question1a What are the types of variable (quantitative / qualitative) and levels of measurement (nominal / ordinal /interval / ratio) for PassengerId, and Age? I think PassengerId is qualitative...
2157 sym R (6888 sym/24 pcs) 4 img
Document
R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within...
598 sym 1 img