MKT3602 Week+8 Slides
MKT3602 Week+8 Slides
Marketing Research
Week 8
MKT3602 Marketing Research
Module 4.1
Population
Sample
σ𝑁
𝑖=1 𝑋𝑖
σ𝑛𝑖=1 𝑋𝑖
𝜇= 𝑋ሜ =
𝑁 𝑛
where:
𝜇 = Population mean
𝑋ത = Sample mean
𝑋𝑖 = Variable value for individual i
N = Population size
n = Sample size
5
Estimation of the mean: Confidence interval
• Point estimate
• 𝑋ത is a point estimate for 𝜇 (e.g., 4 hours)
• But a single sample mean does not convey the uncertainty associated with the estimation
• Gives information about the precision to estimate the unknown population mean
6
Confidence interval calculation
CI = Point Estimate ± (Critical Value) × (Standard Error)
Margin of Error
𝑠
=
6
= 0.6 hours We are 95% confident that
• standard error: 𝑛 100
the true average hours
𝑋ሜ − 𝑧𝛼/2 ⋅
𝑠 spent on social media per
• Lower bound: = 17 − 1.96 ⋅ 0.6 = 15.8 hours
𝑛 week is between 15.8
• Upper bound: 𝑋ሜ + 𝑧𝛼/2 ⋅
𝑠
= 17 + 1.96 ⋅ 0.6 = 18.2 hours hours and 18.2 hours
𝑛
10
Hypothesis testing
• Again, the key idea is still learning the population
characteristic from a sample
[Link] 11
Steps for hypothesis testing
1. Form the null hypothesis (a claim about a population parameter) and form
the alternative hypothesis (the opposite of null)
4. Use your sample data to perform the test (done by SPSS or other statistical
software): p-value
5. Interpret the test results and decide whether the null hypothesis should or
should not be rejected
17
Steps 1: Hypothesis
• A hypothesis is a claim (assumption, initial statement) about a population
parameter
• Meaning: The researcher is going to reject the hypothesis if the observed result has
less than 𝛼 of probability of happening due to chances
α What it means When to use
0.01 p ≤ 0.01 are considered statistically significant Recommended for a large sample size
0.05 p ≤ 0.05 are considered statistically significant Used most frequently
0.10 p ≤ 0.10 are considered statistically significant Recommended for a small sample size
19
Step 3: Take a sample
σ𝑛𝑖=1 𝑋𝑖 − 𝑋ത 2
𝑣𝑎𝑟𝑖𝑎𝑛𝑐𝑒 =
𝑛−1
20
Step 4: Perform the test
• The choice of the test depends on the null and alternative hypotheses
• We will perform the test in SPSS and obtain the p-value for the test
• P-value: given the null hypothesis is right, how likely it is to draw a sample that deviate from the
population by an equal or greater amount than the observed sample value
• An example:
• Suppose the null hypothesis that average height of CityU male students is 1.7m is right
• We now have a sample with sample mean=1.8m. The test shows that the likelihood of drawing such
• If p-value for the test is > α, do not reject the Null Hypothesis
• Suppose the researcher collected data on a random sample of 100 people and
found the sample mean to be 17 and the standard deviation to be 6.
• Step 1: 𝑯𝟎 : 𝝁 = 𝟏𝟖 ത 0
𝑋−𝜇 17−18
Test statistic = = = −1.67
• Step 2: 𝑯𝑨 : 𝝁 ≠ 𝟏𝟖 𝑠/ 𝑛 6/ 100
24
What Test to Use?
The Test
Categorical Continuous
Variable
The Other
Categorical Continuous Categorical Continuous
Variable
2 3+
Groups Groups
Independent
Sample T-Test
Null Hypothesis:
Different room types have the same price levels.
Alternative Hypothesis:
Different room types have different price levels.
33
Research question 2
Analysis of
Variance
(ANOVA)
Null Hypothesis:
Different boroughs have the same price levels.
Alternative Hypothesis:
At least one borough has different price level from other boroughs.
34
Research question 3
Chi-square
Test
Null Hypothesis:
Different boroughs have the same distribution of room types.
Alternative Hypothesis:
Different boroughs have different distributions of room types.
35
MKT3602 Marketing Research
Module 4.2
nominal nominal
38
Calculate the row percentage
39
Calculate the column percentage
40
Calculate the cell percentage
41
Consider the following questions
• Are these numbers enough to conclude a gender difference?
• 80% of female students prefer iPhones while 40% of male students prefer iPhones
• Mathematic difference? Managerial difference?
• Statistical difference?
• Statistical difference:
• Does this pattern happen by chance? Hypothesis testing can
• Or is it a systematic pattern in the overall population that answer these questions
female students are more likely to go with iPhones?
42
Hypothesis testing
u Null hypothesis: There is no gender difference in the preference for iPhone
vs. Android.
x Use your sample data to perform the test → Typically done by SPSS.
y Interpret the test results and conclude In the appendix, we have a few slides
for the process to understand what
happens behind the scenes (not
required)
43
Example for Chi-square test
Chi-square
Test
Null Hypothesis:
Different boroughs have the same distribution of room types.
Alternative Hypothesis:
Different boroughs have different distributions of room types.
44
Steps 1 through 4: Chi-square test
1. The Null Hypothesis, 𝐻0
Different boroughs have the same distribution of room types.
45
Step 5: Interpret the results
borough * room_type Crosstabulation
Count
• Hypothesis testing
• Chi-square test
49
See you next
week!
Appendix:
Calculating Chi-square statistic and p-value
Chi-square test: Calculate the value of the test statistic
• Step 4.1: Calculate the expected value for each cell in the cross-tab table, if gender
and phone use are NOT related
iPhone Android Row Total
Male Expected? ? 300
Female ? ? 100
54
Chi-square test: Calculate the value of the test statistic
𝑟 𝑘 2
• Step 4.3: Sum over all cells 𝜒2 =
(𝑂𝑖𝑗 − 𝐸𝑖𝑗 )
𝐸𝑖𝑗
𝑖=1 𝑗=1
• Meaning: The number of values in the final calculation of a statistic that are free to vary
Female
Column