Practice Problems for Final BA 5938

30
Practice Problems for Final BA 5938 • Assume Alpha = 0.05 if not specified. • Give p-value 4 decimal places unless otherwise specified. • These practice problems have some output from SPSS – old problems from other courses. Added to help • On final no output in SPSS but you should know how to calculate p-value. http://www.learnviaweb.com/course-material/st atistics-practice-problems / – Has PDF file javascript embedded with some stuff that may help.

description

Practice Problems for Final BA 5938. Assume Alpha = 0.05 if not specified. Give p-value 4 decimal places unless otherwise specified. These practice problems have some output from SPSS – old problems from other courses. Added to help - PowerPoint PPT Presentation

Transcript of Practice Problems for Final BA 5938

Page 1: Practice Problems for Final BA 5938

Practice Problems for Final BA 5938

• Assume Alpha = 0.05 if not specified. • Give p-value 4 decimal places unless otherwise specified.• These practice problems have some output from SPSS –

old problems from other courses. Added to help• On final no output in SPSS but you should know how to

calculate p-value.• http://www.learnviaweb.com/course-material/statistics-p

ractice-problems/– Has PDF file javascript embedded with some stuff that may

help.

Page 2: Practice Problems for Final BA 5938

What to do when – Select the most appropriate test.A. One sample t-testB. Paired t-testC. Two-sample t-test (independent samples)D. Binomial test of one proportion (z-approximation)E. Test of two proportionsF. Chi-square testG. ANOVAH. GLM and correlationI. Time SeriesJ. Hotelling T-TestK. MANOVAL. Logistic RegressionM. Discriminant AnalysisN. Principal Component Analysis or Factor AnalysisO. Cluster Analysis

Page 3: Practice Problems for Final BA 5938

Which Test Is Best?

1. Are managers on average taller than 180cm? You randomly sample 100 managers

2. Are less than 50% of the managers women? You sample 100 managers.

3. Is there a relationship between gender and level in the company (staff, manager, sales)?

4. Do male and female managers have the same height on average?

Page 4: Practice Problems for Final BA 5938

Which Test Is Best?

1. Are managers on average taller than 180cm? You randomly sample 100 managers. (A) –one sample t-test.

2. Are less than 50% of the managers women? You sample 100 managers. (D) binomial test of one proportion.

3. Is there a relationship between gender and level in the company (staff, manager, sales)? (F) chi-square test.

4. Do male and female managers have the same height on average? (C) two-sample t-test.

Page 5: Practice Problems for Final BA 5938

Which Test Is Best?

1. Predict next years sales using the previous 5 years sales data.

2. You know minutes used and you want create an equation to predict minutes used using, gender income and location.

3. Is there a difference in average height for different levels in the company (staff, manager, sales)?

4. Are there more women than men in Bangkok – you take a random sample of 500 people in Bangkok.

5. Are husbands on average older than their wives? You sample 100 married people.

Page 6: Practice Problems for Final BA 5938

Which Test Is Best?

1. Predict next years sales using the previous 5 years sales data. (I) Times Series2. You know minutes used and you want create an equation to predict minutes used

using, gender income and location. (H) GLM3. Is there a difference in average height for different levels in the company (staff,

manager, sales)? (G)- ANOVA4. Are there more women than men in Bangkok – you take a random sample of 500

people in Bangkok. (D) Binomial test5. Are husbands on average older than their wives? You sample 100 married

people. (B) paired t-test

Page 7: Practice Problems for Final BA 5938

Which Test Is Best?

1. Is the percent of women working higher than the percent of men working?

2. I want to create a function relating cholesterol to gender, height, and weight.

3. Do older brothers have higher grades than younger brothers on average? You sample 100 families with 2 boys (no twins).

Page 8: Practice Problems for Final BA 5938

Which Test Is Best?

1. Is the percent of women working higher than the percent of men working? (E) test of two proportions.

2. I want to create a function relating cholesterol to gender, height, and weight. (H) GLM

3. Do older brothers have higher grades than younger brothers on average? You sample 100 families with 2 boys (no twins). (B) paired t-test

Page 9: Practice Problems for Final BA 5938

Select Best Test1. There is multicolinearity in the independent variables and you

wish to eliminated multicolinearity but keep all the information. You don’t care about the meaning of the independent variables.

2. Assume you have measured 5 different conflict management styles using many questions and a likert scale. You take the average of the questions to get 5 different continuous measures of the conflict management styles. You wish to know if there is a difference in styles used when considering gender and nationality.

3. You are a phone company with 5 phone plan types. You wish to predict phone plan type chosen using age, gender, and income.

4. Do men living in BKK have an average height equal to 175 CM and average weight equal 65KG?

Page 10: Practice Problems for Final BA 5938

Select Best Test1. There is multicolinearity in the independent variables and you

wish to eliminated multicolinearity but keep all the information. You don’t care about the meaning of the independent variables. Answer: PCA

2. Assume you have measured 5 different conflict management styles using many questions and a likert scale. You take the average of the questions to get 5 different continuous measures of the conflict management styles. You wish to know if there is a difference in styles used when considering gender and nationality. Answer: MANOVA.

3. You are a phone company with 5 phone plan types. You wish to predict phone plan type chosen using age, gender, and income. Answer: Discriminant Analysis

4. Do men living in BKK have an average height equal to 175 CM and average weight equal 65KG? Answer: Hotelling T-test

Page 11: Practice Problems for Final BA 5938

Select Best Test1. I wish to predict if a customer applying for a credit card is

committing fraud by pretending he/she is someone else, application fraud. I have data of past application fraud and various other information such as zip code match/mismatch, birthdate match/mismatch etc.

2. Do women spend more than men on average in Bangkok when they go shopping?

3. There are many variables for understanding corporate culture. Is there are way to summarize these variables into a fewer set of variables?

4. How to group the various bicycle types that exist using many different attributes of bicycles – size weight material etc.

Page 12: Practice Problems for Final BA 5938

Select Best Test1. I wish to predict if a customer applying for a credit card is

committing fraud by pretending he/she is someone else, application fraud. I have data of past application fraud and various other information such as zip code match/mismatch, birthdate match/mismatch etc. Answer - logistic

2. Do women spend more than men on average in Bangkok when they go shopping? Answer – two-sample t-test

3. There are many variables for understanding corporate culture. Is there are way to summarize these variables into a fewer set of variables? Answer - Factor analysis

4. How to group the various bicycle types that exist using many different attributes of bicycles – size weight material etc. Answer –cluster analysis

Page 13: Practice Problems for Final BA 5938

Theory population mean x is less than y?Would you reject or fail to reject the null hypothesis? Give P-value.

Page 14: Practice Problems for Final BA 5938

Theory population mean x is less than y? Would you reject or fail to reject the null hypothesis? Give P-value.

Reject and p-value=0.000/2=0.000

Page 15: Practice Problems for Final BA 5938

Theory population mean x is greater than y?Would you reject or fail to reject the null hypothesis? Give P-value.

Page 16: Practice Problems for Final BA 5938

Theory population mean x is greater than y?Would you reject or fail to reject the null hypothesis? Give P-value.

Fail to reject. P-value = 1-.1245/2=.93775

Page 17: Practice Problems for Final BA 5938

Theory population mean x is less than 6?Would you reject or fail to reject the null hypothesis? Give P-value.

Page 18: Practice Problems for Final BA 5938

Theory population mean x is less than 6?Would you reject or fail to reject the null hypothesis? Give P-value.Fail to reject. P-value=0.307

Page 19: Practice Problems for Final BA 5938

What percent of variation is accounted for in Comp. 2?What percent of variation is captured using the 1st 3 components?

Page 20: Practice Problems for Final BA 5938

What percent of variation is accounted for in Comp. 2? 5.3%What percent of variation is captured using the 1st 3 components? 99.5%

Page 21: Practice Problems for Final BA 5938

What variables should u keep in the model, alpha=0.05?What type of regression was performed on the data?Logistic – regression.

Page 22: Practice Problems for Final BA 5938

What variables should u keep in the model, alpha=0.05?

Page 23: Practice Problems for Final BA 5938

Give R-command

• What is the command to do logistic regression in R?– glm(y~x1+x2 …,family=binomial(logit))

• Give command for two-sided two sample t-test in R• Give for paired t-test …

– t.test(a,b, paired=TRUE)• Code to make alternative a two-sided test for the t-

test.alternative = c("two.sided")

• Etc ….

Page 24: Practice Problems for Final BA 5938

You have been asked to investigate the average height of female managers.

Assume that female's height has a normal distribution. It is believed that the female's height has a mean greater than 157.79 cm.

Give me the p-value and decide reject or fail to reject the null hypothesis..281, fail to reject.

Page 25: Practice Problems for Final BA 5938

• Assume that widgets are produced with a normal distribution. You have two machines that produce widgets for your company. The machines that produce widgets assume they different standard deviation.It is believed that widgets from machine 1 have a mean less than that of widgets from machine 2

Don't assume the variances are equal. Assume they are unequal.

Give me the p-value and decide reject or fail to reject the null hypothesis.P-value=.143 fail to reject.

Page 26: Practice Problems for Final BA 5938

• Employees at your firm are randomly selected to take a training course. The course is on risk management. To determine the effectiveness of this course the employees attending the course were given an exam before and after on risk management.

It is believed that the before training exam will be greater than after training exam.

Give me the p-value and decide reject or fail to reject the null hypothesis. P-value=.304, fail to reject

Page 27: Practice Problems for Final BA 5938

You have been told there exists a linear relationship between two variables.Test if there exists a correlation.

What is correlation, p-value and reject or fail to reject?Correlation = .016, p-value .965 and fail to reject.

Page 28: Practice Problems for Final BA 5938

You have been told there exists a linear relationship between two variables. Test if the slope is not zero.

P-value, rejector fail reject.

.003, reject.

Page 29: Practice Problems for Final BA 5938

Reading Computer Output

• Estimate sale price landval=1000, improval=500, neighborhood=F

Page 30: Practice Problems for Final BA 5938

Reading Computer Output

• Which variables are significant? List them: landval, improval, nbrhood – all.