# Anova and T test

**sba123**

Given the yearly sales in **yearly_sales .csv** file, complete the following:

Show all the descriptive statistics of **sales_total**, including its standard deviation and variance. Correlation of **number_of_order** to **sales_total**.

Plot the scatter graph of **number_of_order** to **sales_total**.

Perform linear regression of **number_of_order** to **sales_total**.

Draw the line of best fit (abline) over your graph.

Perform **T test** as shown below and show your conclusion.

Perform **ANOVA test** as shown below and show your conclusion.

**T test**

This is to test for the mean of one group; here we have **sale_total. t.test(sales_total, mu = 249)** # R command for t test

H0: mu = 249 # null hypothesis

H1: mu ≠ 249 # alternative hypothesis

Rejection level = **0.05** (implies 95% confidence level) Do not Reject H0 if p-value is <= 0.05

Reject H0 if p-value is > 0.05

**ANOVA test**

ANOVA is used to test the equality of mean for two groups; here we have **Male** and **Female**.**anova(lm(data = myData, sales_total ~ factor(gender)))** # R command for ANOVA test. H0: There is significant difference between **Male** and **Female** sales_total.

H1: There is no significant difference between **Male** and **Female** sales_total.

Rejection level = **0.05** (implies 95% confidence level)

https://s3.us-east-1.amazonaws.com/blackboard.learn.xythos.prod/5a31b16bb2c48/5485690?response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27yearly_sales.csv&response-content-type=text%2Fcsv&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20190811T053629Z&X-Amz-SignedHeaders=host&X-Amz-Expires=21600&X-Amz-Credential=AKIAIL7WQYDOOHAZJGWQ%2F20190811%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=e9eef9bf2307141fa4e80803b9b6bdc2f2c682662637fcb8d4673f7ebfe4791b

- 2 years ago
- 5

**Answer(0)**

**other Questions(10)**

- Employee benefits
- HW 1 PS
- accounting homework question 4, 2
- 3 page metacognitive reflection
- Discussion Question 1, the Process of Theory Building
- argument essay
- Discussion: Values of a Therapist
- Need help with English IDV project
- Assignment 2: Harley-Davidson: External and Internal Analysis
- Crime Assignment

### ANOVA Test

NOT RATEDGiven the yearly sales in yearly_sales .csv file, complete the following: Show all the descriptive statistics of sales_total, including its standard deviation and variance. Correlation of …

2 years ago### Week 7 Assignment - 100 points

NOT RATEDGiven the yearly sales in yearly_sales .csv file, complete the following: Show all the descriptive statistics of sales_total, including its standard deviation and variance. Correlation of …

2 years ago