Skip to main content

Bivariate Analysis


1. the association between boarding screeners and security violations has sample size of n=20 with a Mean of boarding screeners  = 261.2 and Mean security violations  =  252.5. 



boarding <-c(287, 243,237,227,247,264,247,247,251,254,277,303,285,254,280,264,261,292,248,253)
secruity<- c(271,261,230,225,236,252,243,247,238,274,256,305,273,234,261,265,241,292,228,252)

cor.test(boarding, secruity)

Pearson's product-moment correlation

data:  boarding and secruity
t = 6.5033, df = 18, p-value = 4.088e-06
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
 0.6276251 0.9339189
sample estimates:
      cor 
0.8375321 

plot(boarding, secruity)



Comments

Popular posts from this blog

Project: Building a Predictive Model

You are a data scientist working for University of South Florida. Your boss wants to develop a predictive model to automatically make a prediction on students' graduation rates based on several factors (variables). You have College dataset ( College.csv ) , which is also available in the ISLR package.  R code Studio

Confidence Interval Estimation And introduction to Fundamental of hypothesis testing

1. x̄ = 85 and σ = 8, and n = 64, set up a 95% confidence interval estimate of the population mean μ.  Z= 1-(0.05/2) = 1.96 Sample mean= x-bar = 85 Z*s/sqrt(n) = (1.96*8)/sqrt(64) = 1.96 CI= 85 – 1.96= 83.04 CI= 85- 1.96= 86.96 (83.04, 86.96) 2. If  x̄ = 125, σ = 24 and n = 36, set up a 99% confidence interval estimate of the population mean μ.  Z= 1- (0.01/2) = 0.995= 2.57 Z*s/sqrt(n) = 125 - (2.57*8/sqrt(36) = 3.42-125= 121.58 Z*s/sqrt(n) = 125 + (2.57*8/sqrt(36) = 3.42+125= 128.42 3. The manager of a supply store wants to estimate the actual amount of paint contained in 1-gallon cans purchased from a nationally known manufacturer. It is known from the manufacturer's specification sheet that standard deviation of the amount of paint is equal to 0.02 gallon. A Random sample of 50 cans is selected and the sample mean amount of paint per 1 gallon is 0.99 gallon.  3a. Set up a 99% confidence inter...

C++ Retail Project

  Using Microsoft Visual Studio i wrote this code to  calculates sales tax for a series of products for a retail store.  To see my code on Github click on the link below. https://github.com/ilouidor/C-/blob/master/RetailSales.cpp  Below is screenshot of my code and results.