Skip to main content

Posts

Showing posts from October, 2022

Module #9 Assignment

 This week the code was quite easy to implement which made understanding the underlying principle a little easier I feel like my understanding of how to navigate R and it's processes is getting better along with my understanding of more complex statistic knowledge.     # 1. Your data.frame is assignment_data <- data.frame( Country = c( "France" , "Spain" , "Germany" , "Spain" , "Germany" , "France" , "Spain" , "France" , "Germany" , "France" ), age = c( 44 , 27 , 30 , 38 , 40 , 35 , 52 , 48 , 45 , 37 ), salary = c( 6000 , 5000 , 7000 , 4000 , 8000 ), Purchased=c( "No" , "Yes" , "No" , "No" , "Yes" , "Yes" , "No" , "Yes" , "No" , "Yes" )) #Generate simple table in R that consists of four rows: Country, a...

Module # 8 assignment

In response to the first question, the ANOVA analysis has essentially stated that with a p-value of .8962 that, we would accept the null hypothesis, which I am assuming is that the means are equivalent and not different. While the low F value, along with the other provided information, shows a low level of deviation from the control or base mean, and an overall low level of variance for all factors included.  

Module # 7 assignment

 Q#1.1      The relationship between the response and predictor variable seems to be where the predictor is used to predict where the target variable would be based on a line of best fit using other coefficients, while the response is the actual variable that was collected. Q#2.1      The waiting time is used to predict the length of the eruption.   Q#3.1      The Multi Regression Model tells us that the variable we included they all seem to have a negative correlation with miles per gallon, with horsepower and weight having a much more intense correlation. So, in general, we can expect the heavier the car, the more gas you will be using, and the more horsepower the car has, the gas you will be using.  

Module # 6 assignment

      A-D: The population mean a is greater than the sample mean, and the population standard deviation is significantly greater than the sample standard deviation. 1-B: This example is not approximately normal due to the fact that .05 of 100 is not greater than or equal to 10. Even though the other half of the requirements are filled 2-B: 200 should be the minimum as that would set nq to be greater than or equal to 10. though the assignment says greater. If that is the case, then 201 or 202 would be more accurate. C:r binom allows you to have more control over the random outcome by allowing control over specific variables where sample allows for setting one or two as head or tail and picking one you have no control over the probability that it has while you can do the same with rbinom you can also define the probability of the outcome.   Note: I was quite confused as to the instructions provided, so I just did what I could understand.