Scatter plots provide a an important role in hypothesis testing to provide data visualizations of correlation between two variables and to make assumptions on hypothesis testing
2024-06-03
Scatter plots provide a an important role in hypothesis testing to provide data visualizations of correlation between two variables and to make assumptions on hypothesis testing
Normal distribution is used hypothesis testing for many operations. One being to see if the mean stated differs from mean in the null hypothesis.
In hypothesis testing there is a type two error called beta. This is called the power function test.
Types of Hypothesis test
Simple : \(H_0: \theta = \theta_0\) and \(H_1: \theta > \theta_0\)
Composite One-Sided:
\(H_0: \theta \leq \theta_0\) and \(H_1: \theta > \theta_0\)
or \(H_0: \theta \geq \theta_0\) and \(H_1: \theta > \theta_0\)
Two-Sides Hypotheses:
\(H_0: \theta = \theta_0\) and \(H_1: \theta \neq \theta_0\)
In hypothesis testing there going to be errors and mistakes made.
There are test that can be run to calculate the probability of error.
Type I error:
-\(H_0\) is true (\(\theta \in \Theta_0\)) and \(a = a_1\).
Type II error:
-\(H_1\) is true (\(\theta \in \Theta_1\)) and \(a = a_0\).
This code was used to see beta distribution. Beta distribution is used to test the success of the hypothesis to test it.
# library(ggplot2)
# x_b = seq(0, 1, length = 50)
# y_b = dbeta(x_b, shape1 = 2, shape2 = 5)
# beta_df = data.frame(x_b, y_b)
#
# ggplot(beta_df, aes(x = x_b, y = y_b)) +
# geom_line(color = "orange") +
# ggtitle("Beta Distribution") +
# xlab("X")+
# ylab("Frequency")