<?xml version="1.0" encoding="UTF-8"?>
<Item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="X-b126_4" TextType="CompleteItem" SchemaVersion="2.0" PageStartNumber="0" Template="Generic_A4_Unnumbered" DiscussionAlias="Discussion" SecondColour="None" ThirdColour="None" FourthColour="None" Logo="colour" Rendering="OpenLearn" x_oucontentversion="2025021001">
    <meta name="aaaf:olink_server" content="http://www.open.edu/openlearn/ocw"/>
    <meta name="vle:osep" content="false"/>
    <meta name="equations" content="mathjax"/>
    <!--ADD CORRECT OPENLEARN COURSE URL HERE:<meta name="dc:source" content="http://www.open.edu/openlearn/education/educational-technology-and-practice/educational-practice/english-grammar-context/content-section-0"/>-->
    <CourseCode>B126_4<!--ENTER COURSE CODE e.g. X123_1--></CourseCode>
    <CourseTitle><!--can be blank--></CourseTitle>
    <ItemID><!--leave blank--></ItemID>
    <ItemTitle>Data analysis: hypothesis testing<!--INSERT course title TO MATCH EXACTLY COURSE TITLE IN COURSE CREATION REQUEST FORM--> </ItemTitle>
    <FrontMatter>
        <Imprint>
            <Standard>
                <GeneralInfo>
                    <Paragraph><b>About this free course</b></Paragraph>
                    <Paragraph>This free course is an adapted extract from the Open University course B126 <i>Business data analytics and decision making</i> - <a href="https://www.open.ac.uk/courses/modules/b126https://www.open.ac.uk/courses/modules/b126https://www.open.ac.uk/courses/modules/b126?LKCAMPAIGN=ebook_&amp;amp;MEDIA=ou">www.open.ac.uk/courses/modules/b126</a><!--[MODULE code] [Module title- Italics] THEN LINK to Study @ OU page for module. Text to be page URL without http;// but make sure href includes http:// (e.g. <a href="http://www3.open.ac.uk/study/undergraduate/course/b190.htm">www3.open.ac.uk/study/undergraduate/course/b190?LKCAMPAIGN=ebook_&amp;amp;MEDIA=ou</a>)] -->.</Paragraph>
                    <Paragraph>This version of the content may include video, images and interactive content that may not be optimised for your device. </Paragraph>
                    <Paragraph>You can experience this free course as it was originally designed on OpenLearn, the home of free learning from The Open University –</Paragraph>
                    <!--[course name] hyperlink to page URL make sure href includes http:// with trackingcode added <Paragraph><a href="http://www.open.edu/openlearn/money-management/introduction-bookkeeping-and-accounting/content-section-0?LKCAMPAIGN=ebook_&amp;amp;MEDIA=ol">www.open.edu/openlearn/money-management/introduction-bookkeeping-and-accounting/content-section-0</a>. </Paragraph>-->
                    <Paragraph>There you’ll also be able to track your progress via your activity record, which you can use to demonstrate your learning.</Paragraph>
                </GeneralInfo>
                <Address>
                    <AddressLine/>
                    <AddressLine/>
                </Address>
                <FirstPublished>
                    <Paragraph><?oxy_custom_start type="oxy_content_highlight" color="140,255,140"?>First published 2025.<?oxy_custom_end?></Paragraph>
                </FirstPublished>
                <Copyright>
                    <Paragraph>Unless otherwise stated, copyright © 2025 The Open University, all rights reserved.</Paragraph>
                </Copyright>
                <Rights>
                    <Paragraph/>
                    <Paragraph><b>Intellectual property</b></Paragraph>
                    <Paragraph>Unless otherwise stated, this resource is released under the terms of the Creative Commons Licence v4.0 <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en">http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en</a>. Within that The Open University interprets this licence in the following way: <a href="http://www.open.edu/openlearn/about-openlearn/frequently-asked-questions-on-openlearn">www.open.edu/openlearn/about-openlearn/frequently-asked-questions-on-openlearn</a>. Copyright and rights falling outside the terms of the Creative Commons Licence are retained or controlled by The Open University. Please read the full text before using any of the content. </Paragraph>
                    <Paragraph>We believe the primary barrier to accessing high-quality educational experiences is cost, which is why we aim to publish as much free content as possible under an open licence. If it proves difficult to release content under our preferred Creative Commons licence (e.g. because we can’t afford or gain the clearances or find suitable alternatives), we will still release the materials for free under a personal end-user licence. </Paragraph>
                    <Paragraph>This is because the learning experience will always be the same high quality offering and that should always be seen as positive – even if at times the licensing is different to Creative Commons. </Paragraph>
                    <Paragraph>When using the content you must attribute us (The Open University) (the OU) and any identified author in accordance with the terms of the Creative Commons Licence.</Paragraph>
                    <Paragraph>The Acknowledgements section is used to list, amongst other things, third party (Proprietary), licensed content which is not subject to Creative Commons licensing. Proprietary content must be used (retained) intact and in context to the content at all times.</Paragraph>
                    <Paragraph>The Acknowledgements section is also used to bring to your attention any other Special Restrictions which may apply to the content. For example there may be times when the Creative Commons Non-Commercial Sharealike licence does not apply to any of the content even if owned by us (The Open University). In these instances, unless stated otherwise, the content may be used for personal and non-commercial use.</Paragraph>
                    <Paragraph>We have also identified as Proprietary other material included in the content which is not subject to Creative Commons Licence. These are OU logos, trading names and may extend to certain photographic and video images and sound recordings and any other material as may be brought to your attention.</Paragraph>
                    <Paragraph>Unauthorised use of any of the content may constitute a breach of the terms and conditions and/or intellectual property laws.</Paragraph>
                    <Paragraph>We reserve the right to alter, amend or bring to an end any terms and conditions provided here without notice.</Paragraph>
                    <Paragraph>All rights falling outside the terms of the Creative Commons licence are retained or controlled by The Open University.</Paragraph>
                    <Paragraph>Head of Intellectual Property, The Open University</Paragraph>
                </Rights>
                <Edited>
                    <Paragraph/>
                </Edited>
                <Printed>
                    <Paragraph/>
                </Printed>
                <ISBN><!--INSERT EPUB ISBN WHEN AVAILABLE (.kdl)-->
        <!--INSERT KDL ISBN WHEN AVAILABLE (.epub)--></ISBN>
                <Edition/>
            </Standard>
        </Imprint>
        <Covers>
            <Cover template="false" type="ebook" src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/B126_2_epub_1400x1200.jpg"/>
            <Cover template="false" type="A4" src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_2_pdfimage_19x12-6_300d.jpg"/>
        </Covers>
    </FrontMatter>
    <Unit>
        <UnitID><!--leave blank--></UnitID>
        <UnitTitle><!--leave blank--></UnitTitle>
        <Session>
            <Title>Introduction</Title>
            <Paragraph>This course covers the fundamental principles of developing hypotheses. You will learn to distinguish between hypotheses that are directional and non-directional. This knowledge is crucial for the statistical testing that you will learn to implement.</Paragraph>
            <Paragraph>You will also explore z-tests and t-tests, two fundamental statistical tools essential for data analysis in business contexts. By understanding the differences between these tests and learning how to apply them effectively, you will develop the skills to assess data-driven claims with confidence.</Paragraph>
            <Figure>
                <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_u03_s03_f01.tif" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_u03_s03_f01.tif" x_printonly="y" x_folderhash="9cb7b1d8" x_contenthash="ee3f4a75" x_imagesrc="b126_u03_s03_f01.tif.jpg" x_imagewidth="580" x_imageheight="551"><!--Asset 401703--></Image>
                <Caption><b>Figure 1</b> Data sheds light on hypotheses </Caption>
                <Alternative>Cartoon of a lecture with a tag line</Alternative>
                <Description>The picture portrays a professor conducting an open lecture on the moon, with a tag line displayed at the bottom which states, ‘Surprisingly, the soil samples provide new evidence for the “giant ball of cheese” hypothesis.’</Description>
            </Figure>
            <Paragraph>The course will focus on the characteristics and applications of z-tests and t-tests. You will learn when to use each test based on sample size, population parameters, and the nature of the data. This knowledge will enable you to choose the appropriate test for various business scenarios, ensuring accurate analysis and interpretation of results.</Paragraph>
            <Paragraph>To reinforce your learning, you will encounter practical examples and exercises throughout the materials. These hands-on activities will allow you to practice applying z-tests and t-tests to real-world business problems, helping you to solidify your understanding and gain confidence in using these statistical methods</Paragraph>
            <Paragraph>Please note: this course will require the use Microsoft Excel or a similar program. </Paragraph>
            <Paragraph>This OpenLearn course is an adapted extract from the Open University course <a href="https://www.open.ac.uk/courses/modules/b126">B126 <i>Business data analytics and decision making</i><!--LINK TO URL 

e.g.:  http://www3.open.ac.uk/study/undergraduate/course/X123.htm</Paragraph>--></a>.</Paragraph>
        </Session>
        <Session>
            <Title>Learning outcomes</Title>
            <Paragraph>After studying this course, you should be able to:</Paragraph>
            <BulletedList>
                <ListItem>understand the principle of hypothesis testing</ListItem>
                <ListItem>understand the idea of alpha in hypothesis testing</ListItem>
                <ListItem>differentiate between one-tailed and two-tailed tests</ListItem>
                <ListItem>understand hypothesis testing of means and proportions</ListItem>
                <ListItem>report the exact p-value of a test.</ListItem>
            </BulletedList>
        </Session>
        <Session>
            <Title>1 Hypothesis testing</Title>
            <Paragraph>In the realm of business decision-making, data-driven approaches have become increasingly crucial. At the heart of this process lies hypothesis testing, a powerful statistical method that allows us to evaluate assumptions about population parameters based on sample data. This method provides a structured approach to making decisions about whether to reject these assumptions or not, offering a solid foundation for informed business choices.</Paragraph>
            <Paragraph>Hypothesis testing serves a vital purpose in the business world. Its primary aim is to determine whether the observed data provides sufficient evidence to support or refute a specific claim about the population. This process is invaluable in various business applications, from evaluating the effectiveness of marketing strategies to assessing product quality. By employing hypothesis testing, business leaders can move beyond gut feelings and intuition, basing their decisions on rigorous statistical analysis.</Paragraph>
            <Section>
                <Title>1.1 Two types of hypothesis</Title>
                <Paragraph>At the core of hypothesis testing are two fundamental concepts: the null hypothesis and the alternative hypothesis. These form the backbone of the testing process and guide our interpretation of the results.</Paragraph>
                <Paragraph>The null hypothesis is denoted as H<sub>0</sub>. It serves as the default assumption, positing that there is no relationship between variables or that a population parameter equals a specified value. For instance, if we are testing whether a new training program improves employee productivity, the null hypothesis might state that the program has no effect on productivity.</Paragraph>
                <Paragraph>On the other hand, the alternative hypothesis, represented as H<sub>1</sub> or H<sub>a</sub>, is the statement that the decision-maker aims to demonstrate. It suggests that there is indeed an effect or a difference. In our training program example, the alternative hypothesis would state that the program does improve productivity.</Paragraph>
                <Paragraph>To illustrate these concepts further, let us explore some examples that showcase the interplay between null and alternative hypotheses:</Paragraph>
                <NumberedList class="decimal">
                    <ListItem>For centuries, the prevailing belief in astronomy was the geocentric model, which posited that the Earth was the centre of the universe. This theory, championed by ancient Greek philosophers like Aristotle and later refined by Ptolemy, served as the null hypothesis of its time. This belief persisted until the 16th century when Nicolaus Copernicus proposed a heliocentric model, suggesting that the Sun, not the Earth, was at the centre of the solar system. This revolutionary idea formed the alternative hypothesis.</ListItem>
                </NumberedList>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: All planets orbit around the Earth.</ListItem>
                    <ListItem>H<sub>1</sub>: Not all planets orbit around the Earth.</ListItem>
                </BulletedList>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_u03_s03_f03.tif" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_u03_s03_f03.tif" x_printonly="y" x_folderhash="9cb7b1d8" x_contenthash="f1ae1747" x_imagesrc="b126_u03_s03_f03.tif.jpg" x_imagewidth="580" x_imageheight="364"><!--Asset 401705--></Image>
                    <Caption><b>Figure 2</b> Solar system </Caption>
                    <Alternative>Planets revolving around the Sun</Alternative>
                    <Description>Description: The image depicts a representation of our solar system. The central and most prominent feature is the Sun, depicted as a large, glowing, fiery ball in the middle of the image. Surrounding the Sun are the planets of the solar system, shown in their respective orbits as ellipses around the Sun.</Description>
                </Figure>
                <NumberedList class="decimal" start="2">
                    <ListItem>The gold standard, a monetary system where the value of a country’s currency is directly linked to gold, was widely adopted in the late 19th and early 20th centuries. This system represented a null hypothesis in economic theory. However, the Great Depression of the 1930s severely tested this hypothesis. As economic conditions worsened, many countries found the gold standard limited their ability to implement expansionary monetary policies to combat the depression. This led to the formulation of an alternative hypothesis.</ListItem>
                </NumberedList>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: The value of paper money is equal to a fixed amount of gold.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>H<sub>1</sub>:The value of paper money is not equal to a fixed amount of gold.</ListItem>
                </BulletedList>
                <Paragraph>The United Kingdom abandoned the gold standard in 1931, followed by the United States in 1933. The economic recovery that followed in these countries provided evidence supporting the alternative hypothesis, leading to a fundamental shift in monetary policy.</Paragraph>
                <NumberedList class="decimal" start="3">
                    <ListItem>For much of modern history, the value of money has been based on trust in central banks and governmental authorities. This forms our current null hypothesis in monetary theory. However, the advent of cryptocurrencies, particularly Bitcoin in 2009, has challenged this notion. Bitcoin operates on a decentralised network, independent of any central authority. This new form of currency presents an alternative hypothesis. </ListItem>
                </NumberedList>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: The value of paper money is equal to people’s trust in central banks or monetary authorities.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>H<sub>1</sub>:The value of paper money is not equal to people’s trust in central banks or monetary authorities.</ListItem>
                </BulletedList>
                <Paragraph>While cryptocurrencies have gained significant traction, their role in the global financial system is still evolving. This ongoing "experiment" continues to test our hypotheses about the nature of money and value.</Paragraph>
            </Section>
            <Section>
                <Title>1.2 Business context</Title>
                <Paragraph>Let us delve deeper into these practical business scenarios to illustrate how hypothesis testing can be applied in real-world situations.</Paragraph>
                <Paragraph>Consider a market research scenario where Apple is evaluating the pricing strategy for its latest iPhone model. A respondent in a focus group states that ‘Apple iPhones are too expensive’. While this statement provides some insight, it lacks the specificity required for rigorous testing. However, if the respondent specifies that an Apple iPhone costing over £500 is too expensive, we can formulate a testable hypothesis:</Paragraph>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: The price of an Apple iPhone at £500 is not considered expensive by consumers.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>H<sub>1</sub>: The price of an Apple iPhone at £500 is considered expensive by consumers.</ListItem>
                </BulletedList>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_u03_s03_f02.tif" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_u03_s03_f02.tif" x_printonly="y" x_folderhash="9cb7b1d8" x_contenthash="3df98c30" x_imagesrc="b126_u03_s03_f02.tif.jpg" x_imagewidth="580" x_imageheight="387"><!--Asset 401704--></Image>
                    <Caption><b>Figure 3</b> iPhone </Caption>
                    <Alternative>A hand holding an Apple iPhone.</Alternative>
                    <Description>The image shows a close-up of a person holding a smartphone in their hand. The smartphone appears to be an iPhone, identifiable by its design, which includes a home button at the bottom of the screen and a front-facing camera at the top. The phone is held in the person’s left hand, with their thumb positioned near the bottom of the screen, possibly about to interact with it.</Description>
                </Figure>
                <Paragraph>To test such a hypothesis, Apple’s market research team might design a comprehensive survey to gather data from a representative sample of consumers. They could pose questions about price point perceptions, purchase intentions at specific price levels, and how the £500 price tag compares to consumer expectations. The subsequent analysis of survey responses using statistical methods would provide evidence either supporting or refuting the alternative hypothesis. The outcomes of this hypothesis test could significantly influence Apple’s pricing strategy, potentially leading to price adjustments, enhanced value propositions, or product line segmentation to offer more affordable options.</Paragraph>
                <Paragraph>As another example, if we believe that the average annual salary in the UK is approximately £26,000, that can be considered as the null hypothesis, given that we are in agreement with the belief. Thus, we have: </Paragraph>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: The average annual salary in the UK is equal to £26,000.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>H<sub>1</sub>: The average annual salary in the UK is not equal to £26,000.</ListItem>
                </BulletedList>
                <Paragraph>Testing these hypotheses would involve collecting salary data from a representative sample of UK workers through large-scale surveys, analysis of government data, or information from job postings and recruitment agencies. Once the data is collected, decision-makers would use statistical tests (we will introduce them later) to determine whether we would reject the null hypothesis.</Paragraph>
                <Paragraph>By formulating clear and testable hypotheses, businesses can design appropriate tests, gather relevant data, and draw meaningful conclusions. This process enables leaders to make informed decisions based on statistical evidence rather than assumptions or intuitions. For instance, in the iPhone pricing scenario, Apple could use the results to fine-tune their pricing strategy for different markets, develop marketing messages that address price perceptions, and inform product development decisions to align with consumer value expectations. In the salary investigation case, businesses could adjust their compensation packages to attract and retain talent, benchmark their salaries against industry standards, and forecast labour costs more accurately for financial planning.</Paragraph>
                <Paragraph>As you progress in your studies and career, remember that mastering the art of hypothesis formulation and testing is crucial for effective business decision-making. It allows you to ask the right questions, design robust analyses, and interpret results accurately. In today’s data-driven business landscape, the ability to formulate and test hypotheses can provide a significant competitive advantage, enabling you to uncover insights that drive innovation and success. Whether you are launching a new product, entering a new market, or optimising internal processes, embracing this scientific approach to decision-making will equip you to navigate the complexities of modern business and drive your organisation towards data-informed success.</Paragraph>
                <Activity>
                    <Heading>Activity 1: Null hypothesis versus alternative hypothesis</Heading>
                    <Timing>Allow around 10 minutes for this activity.</Timing>
                    <Question>
                        <Paragraph>Read the following statements. Can you develop a null hypothesis and an alternative hypothesis?</Paragraph>
                        <Paragraph>‘It is believed that a high-end coffee machine produces a cup of caffè latte with an average of 1 cm of foam. The hotel employee claims that after the machine has been repaired, it is no longer able to produce a cup of caffè latte with 1cm foam.’</Paragraph>
                    </Question>
                    <Interaction>
                        <FreeResponse size="paragraph" id="fr_1"/>
                    </Interaction>
                    <Answer>
                        <Paragraph>H<sub>0</sub>: The coffee machine makes a cup of caffè latte with 1cm foam on average.</Paragraph>
                        <Paragraph>H<sub>1</sub>: The coffee machine does not make a cup of caffè latte with 1cm foam on average.</Paragraph>
                        <Paragraph>If you have developed the hypotheses H<sub>0</sub> and H<sub>1</sub> as mentioned above, you have shown that you are familiar with the structure of different types of hypotheses.</Paragraph>
                    </Answer>
                </Activity>
            </Section>
            <Section>
                <Title>1.3 Hypothesis formulation</Title>
                <Paragraph>While these hypotheses demonstrate a basic understanding of hypothesis structure, we can refine them further to align more closely with statistical conventions. In hypothesis formulation, we typically express the null hypothesis (H<sub>0</sub>) in terms of the population mean (µ), which represents the average value in the population. The symbol µ is commonly used to denote this population mean.</Paragraph>
                <Paragraph>To illustrate this concept, let us revisit our earlier example of the average UK salary. The widely accepted belief that the average UK salary is £26,000 per year can be expressed statistically as:</Paragraph>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: µ = £26,000</ListItem>
                </BulletedList>
                <Paragraph>Here, µ represents the population mean salary. The alternative hypothesis (H<sub>1</sub>), which challenges this belief, can be expressed as:</Paragraph>
                <BulletedList>
                    <ListItem>H<sub>1</sub>: µ ≠ £26,000</ListItem>
                </BulletedList>
                <Paragraph>This formulation clearly shows that H<sub>1</sub> is the opposite of H<sub>0</sub>, reflecting its purpose of challenging the widely held belief represented by the null hypothesis.</Paragraph>
                <Paragraph>Applying this more precise formulation to our caffè latte foam example, we can express the hypotheses as:</Paragraph>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: µ = 1cm foam</ListItem>
                    <ListItem>H<sub>1</sub>: µ ≠ 1cm foam</ListItem>
                </BulletedList>
                <Paragraph>In this case, µ represents the population mean for the height of foam in a caffè latte. The null hypothesis states that this mean is exactly 1cm, while the alternative hypothesis suggests a departure from this widely accepted belief. Note that H<sub>0</sub> and H<sub>1</sub>, when taken together, cover all possible outcomes regarding the foam height. </Paragraph>
                <Paragraph>This approach to hypothesis formulation offers several advantages in business decision making. Firstly, it provides a clear, quantifiable statement that can be tested statistically. Secondly, it allows for precise measurement and analysis, enabling businesses to make data-driven decisions with confidence. Finally, it sets the stage for more advanced statistical analyses, such as determining the significance of any observed differences from the hypothesised mean.</Paragraph>
            </Section>
        </Session>
        <Session>
            <Title>2 Alpha (α) levels</Title>
            <Paragraph>The process of hypothesis testing is a fundamental aspect of scientific research and statistical analysis. It provides a structured approach to evaluate claims and make decisions based on empirical evidence. Let us explore the two possible outcomes of hypothesis testing in more detail:</Paragraph>
            <NumberedList class="decimal">
                <ListItem>Rejecting the Null Hypothesis (H<sub>0</sub>)</ListItem>
            </NumberedList>
            <Paragraph>When decision-makers reject the null hypothesis, it implies that there is sufficient evidence to support the alternative hypothesis (H<sub>1</sub>). This outcome occurs when the observed data is statistically significant and unlikely to have occurred by chance alone.</Paragraph>
            <NumberedList class="decimal" start="2">
                <ListItem>Failing to Reject the Null Hypothesis (H<sub>0</sub>)</ListItem>
            </NumberedList>
            <Paragraph>When decision-makers fail to reject the null hypothesis, it means that there is insufficient evidence to support the alternative hypothesis (H<sub>1</sub>). This outcome occurs when the observed data is not statistically significant and could have occurred by chance.</Paragraph>
            <Paragraph>To illustrate these concepts, let us return to our coffee example. Suppose we want to test the null hypothesis that the average foam height in a caffè latte is 1 cm (H<sub>0</sub>: µ = 1 cm foam). We might randomly sample 60 cups of caffè latte throughout the day, measure the foam height, and calculate the average and test statistic.</Paragraph>
            <Figure>
                <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_u03_s03_f04.tif" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_u03_s03_f04.tif" x_printonly="y" x_folderhash="9cb7b1d8" x_contenthash="ae488d47" x_imagesrc="b126_u03_s03_f04.tif.jpg" x_imagewidth="580" x_imageheight="387"><!--Asset 401706--></Image>
                <Caption><b>Figure 4</b> Caffè latte  </Caption>
                <Alternative>A cup of caffè latte with milk foam.</Alternative>
                <Description>The image shows a glass cup filled with a layered coffee drink, likely a latte or cappuccino. The drink has three distinct layers: a creamy base at the bottom, a darker coffee layer in the middle, and a thick layer of foam on top. The foam appears light and fluffy, creating a soft peak above the rim of the cup.</Description>
            </Figure>
            <Paragraph>Consider a study where three decision-makers each sample 60 cups of caffè latte:</Paragraph>
            <BulletedList>
                <ListItem>Decision-maker 1 finds an average foam height of 1.1 cm.</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>Decision-maker 2 finds an average foam height of 1.5 cm.</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>Decision-maker 3 finds an average foam height of 2.6 cm.</ListItem>
            </BulletedList>
            <Paragraph>Decision-maker 1’s result (1.1 cm) is close to the null hypothesis value. In this case, we might fail to reject H<sub>0</sub>, as the observed difference could be due to random variation. However, this does not prove that the true average foam height is exactly 1 cm. It only indicates that we do not have enough evidence to conclude otherwise.</Paragraph>
            <Paragraph>Decision-maker 3’s result (2.6 cm) is far from 1 cm. Here, we would likely reject H<sub>0</sub>. This suggests that the observed difference is statistically significant and unlikely to have occurred by chance.</Paragraph>
            <Paragraph>Decision-maker 2’s result (1.5 cm) is less clear-cut. Although the average foam height of 1.5 cm is not far away from 1 cm, does it go far enough to be considered sufficient?</Paragraph>
            <Paragraph>In order to answer this question, you would need to introduce the concept of ‘statistical significance’, which you will look at in more detail in the next section. </Paragraph>
            <Section>
                <Title>2.1 Statistical significance</Title>
                <Paragraph>We need to introduce the concept of ‘statistical significance’ in order to answer this question. The level of statistical significance is the threshold at which we decide whether to reject the null hypothesis (to make a decision). A result is statistically significant when the situation described in the null hypothesis is highly unlikely to have occurred.</Paragraph>
                <Paragraph>By utilising the concept of statistical significance, we can have a concrete way of examining the claim concerning the null hypothesis, using the data we have collected, to make a clear decision on when to reject the null hypothesis and when not to. In this way, we do not have to guess whether the test statistic is too high or too low.</Paragraph>
                <Paragraph>How can we determine the appropriate level of statistical significance to use? Determining the appropriate level of statistical significance is a crucial step in hypothesis testing. To understand this process, we need to introduce the concept of “level of confidence” or “confidence level”. These terms are used interchangeably in statistics and research methodology. The level of confidence represents how certain we are in our decision to reject the null hypothesis.</Paragraph>
                <Paragraph>The level of confidence is closely related to confidence intervals. Typically, decision-makers set confidence level at 95% when establishing a confidence interval. Once we have determined confidence level, we can calculate the level of statistical significance as 1 – level of confidence.</Paragraph>
                <Paragraph>For example, if we choose a 95% level of confidence, the level of statistical significance would be:</Paragraph>
                <Paragraph>1 – 95% = 5% or 0.05</Paragraph>
                <Paragraph>We refer to this level of statistical significance as “alpha” or “α”.</Paragraph>
                <Paragraph>Let us apply this concept to our coffee example. Decision-maker 2 found that the average foam height was 1.5 cm, which differs slightly from the expected value of 1 cm. The question is whether this difference is significant enough to reject or fail to reject the null hypothesis (H<sub>0</sub>).</Paragraph>
                <Paragraph>To make this decision, decision-makers must consider the alpha level. The alpha level serves as a threshold for statistical significance. It helps determine whether the observed results are likely due to chance or represent a genuine difference between the expected and observed values. Once decision-makers determine the alpha level, they can use it to decide whether to reject or fail to reject the null hypothesis based on Decision-maker 2’s findings. The choice of alpha level is critical, as it directly influences the conclusion drawn from the study.</Paragraph>
                <Paragraph>For instance, if the decision-makers choose an alpha level of 0.05 (corresponding to a 95% confidence level), they would reject the null hypothesis if the probability of obtaining their results by chance is less than 5%. If the probability is greater than 5%, they would fail to reject the null hypothesis.</Paragraph>
                <Paragraph>Choosing the appropriate alpha level requires careful consideration. A lower alpha level (e.g., 0.01) makes it harder to reject the null hypothesis, reducing the risk of false positives but potentially missing real effects. A higher alpha level (e.g., 0.10) makes it easier to reject the null hypothesis, potentially detecting more real effects but also increasing the risk of false positives. The significance level helps us decide whether to reject or fail to reject the null hypothesis when the results are not clearly for or against it. By setting a specific threshold for statistical significance, we can make more objective decisions about our hypotheses based on the collected data.</Paragraph>
                <Paragraph>This approach provides a systematic method for evaluating hypotheses, allowing decision-makers to draw meaningful conclusions from their data. It also helps to standardise the decision-making process across different studies and fields of research, ensuring consistency and comparability in scientific findings. However, it is crucial to remember that statistical significance does not always imply practical significance, and decision-makers should consider the context and real-world implications of their findings alongside the statistical results.</Paragraph>
                <Activity>
                    <Heading>Activity 2: Level of alpha</Heading>
                    <Timing>Allow around 10 minutes for this activity</Timing>
                    <Question>
                        <Paragraph>Imagine you are working as a marketing analyst for a new product launch, and you want to make sure that your market research is accurate and reliable. You need to determine the appropriate alpha level for your survey results, based on the desired confidence level.</Paragraph>
                        <Paragraph>Can you determine α?</Paragraph>
                        <Table class="normal">
                            <TableHead>Table 1 Level of alpha</TableHead>
                            <tbody>
                                <tr>
                                    <th class="ColumnHeadCentered">Level of Confidence (C)</th>
                                    <th class="ColumnHeadCentered">α</th>
                                </tr>
                                <tr>
                                    <td class="TableCentered">90%</td>
                                    <td class="TableCentered"><FreeResponse size="single line" id="fr_02"/></td>
                                </tr>
                                <tr>
                                    <td class="TableCentered">95%</td>
                                    <td class="TableCentered"><FreeResponse size="single line" id="fr_03"/></td>
                                </tr>
                                <tr>
                                    <td class="TableCentered">99%</td>
                                    <td class="TableCentered"><FreeResponse size="single line" id="fr_04"/></td>
                                </tr>
                            </tbody>
                        </Table>
                    </Question>
                    <Discussion>
                        <Table>
                            <TableHead>Table 1 Level of alpha (completed)</TableHead>
                            <tbody>
                                <tr>
                                    <th class="ColumnHeadCentered">Level of Confidence (C)</th>
                                    <th class="ColumnHeadCentered">α</th>
                                </tr>
                                <tr>
                                    <td class="TableCentered">90%</td>
                                    <td class="TableCentered">10%</td>
                                </tr>
                                <tr>
                                    <td class="TableCentered">95%</td>
                                    <td class="TableCentered">5%</td>
                                </tr>
                                <tr>
                                    <td class="TableCentered">99%</td>
                                    <td class="TableCentered">1%</td>
                                </tr>
                            </tbody>
                        </Table>
                        <Paragraph>α is calculated as 1 − C. </Paragraph>
                        <Paragraph>1 − 90% = 10%</Paragraph>
                        <Paragraph>1 − 95% = 5%</Paragraph>
                        <Paragraph>1 − 99% = 1%</Paragraph>
                        <Paragraph>There is an inverse relationship between confidence levels and alpha levels, as increasing the confidence level leads to a decrease in the alpha level, and vice versa.</Paragraph>
                    </Discussion>
                </Activity>
            </Section>
        </Session>
        <Session>
            <Title>3 One-tailed vs Two-tailed test</Title>
            <Paragraph>Understanding how to conduct hypothesis tests is crucial in statistical analysis. This section explores the concepts of one-tailed and two-tailed tests, which are essential tools in statistical hypothesis testing. The choice between these tests depends on the specific research question and hypothesis under investigation. Decision-makers must carefully consider which type of test to use to ensure a thorough examination of the hypothesis and draw accurate conclusions from the data.</Paragraph>
            <Paragraph>To deepen your understanding of these concepts, we will now engage in an activity focused on formulating null and alternative hypotheses. This exercise may present some challenges, but it serves as an excellent foundation for our subsequent discussions. Do not worry if you find it difficult initially – this is a common experience when learning these concepts.</Paragraph>
            <Activity id="b126_u03_s3_a3">
                <Heading>Activity 3: Hypotheses setting</Heading>
                <Timing>Allow around 10 minutes for this activity.</Timing>
                <Question>
                    <Paragraph>Read the following statements and then develop a null hypothesis and an alternative hypothesis.</Paragraph>
                    <Paragraph>“It is believed that OU students need to set aside no longer than, on average, 15 hours to study an entire session of OU module. However, a decision-maker believes that OU students spend longer studying an entire session of the OU module”.</Paragraph>
                    <Paragraph>You may find this statement different from others you have experienced, so please take a longer time to think about it.</Paragraph>
                </Question>
                <Interaction>
                    <FreeResponse size="paragraph" id="b126_2_fr_05"/>
                </Interaction>
                <Discussion>
                    <Paragraph>H<sub>0</sub>: OU students spend, on average, no more than 15 hours studying an entire session of OU course.</Paragraph>
                    <Paragraph>H<sub>a</sub>: OU students spend, on average, more than 15 hours studying an entire session of OU course.</Paragraph>
                    <Paragraph>They can also be written as:</Paragraph>
                    <Paragraph>H<sub>0</sub>: µ ≤ 15 hours studies</Paragraph>
                    <Paragraph>H<sub>a</sub>: µ &gt; 15 hours studies</Paragraph>
                    <Paragraph>µ is a symbol for a population mean. <b><u>Remember, H<sub>0</sub> and H<sub>a</sub> are always opposites.</u></b></Paragraph>
                </Discussion>
            </Activity>
            <Section>
                <Title>3.1 Non-directional hypotheses</Title>
                <Paragraph><b><i>Non-directional hypotheses</i></b>also known as two-tailed hypotheses, form the basis for open-ended investigations. Decision-makers use these hypotheses, which employ equal (=) or not equal (≠) signs, when they do not predict a specific direction for the relationship or difference under study. This approach proves particularly useful in exploratory research or when examining complex phenomena, allowing decision-makers to study relationships between variables without preconceived notions.</Paragraph>
                <Paragraph>Non-directional hypotheses aim to determine whether a statistically significant difference or relationship exists between two or more variables. The term "<b><i>two-tailed</i></b>" refers to the statistical test used to evaluate the hypothesis, which considers the possibility that the difference or relationship could occur in either direction.</Paragraph>
                <Paragraph>A non-directional hypothesis typically comprises two components:</Paragraph>
                <BulletedList>
                    <ListItem>The null hypothesis (H<sub>0</sub>): This usually states that there is no difference or relationship between the variables being studied.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>The alternative hypothesis (H<sub>1</sub>): This suggests that there is a significant difference or relationship, but does not specify the direction of this difference or relationship.</ListItem>
                </BulletedList>
            </Section>
            <Section>
                <Title>3.2 Directional hypotheses</Title>
                <Paragraph><b><i>Directional hypotheses</i></b><language xml:lang="en-US">, also known as one-tailed hypotheses, predict the direction of a relationship or difference between variables. These hypotheses use signs like less than or equal to (≤) and greater than (&gt;) in their statements. </language></Paragraph>
                <Paragraph>For example, a directional hypothesis might propose: “A marketing campaign will increase product sales”. This hypothesis specifies the expected outcome (an increase in sales) before data collection begins.</Paragraph>
                <Paragraph>Directional hypotheses offer several advantages in research:</Paragraph>
                <NumberedList class="decimal">
                    <ListItem>They provide more precise and focused predictions than non-directional hypotheses.</ListItem>
                    <ListItem>They are often preferred in scientific research due to their specificity.</ListItem>
                    <ListItem>In business management, they can help design studies to examine the effectiveness of strategies, such as marketing campaigns.</ListItem>
                </NumberedList>
                <Paragraph>To test a directional hypothesis, decision-makers use a one-tailed test. This statistical test aims to determine if the data supports the anticipated direction of the relationship or difference. </Paragraph>
                <Paragraph>Let us reconsider the study time example:</Paragraph>
                <Paragraph/>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: µ ≤ 15 hours of studies</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>H<sub>1</sub>: µ &gt; 15 hours of studies</ListItem>
                </BulletedList>
                <Paragraph>Here, the null hypothesis (H<sub>0</sub>) states that the population mean (µ) is less than or equal to 15 hours of studies. The alternative hypothesis (H<sub>1</sub>) predicts that the population mean is greater than 15 hours of studies.</Paragraph>
            </Section>
        </Session>
        <Session>
            <Title>4 Z-test vs t-test</Title>
            <Paragraph>Now you will explore two fundamental statistical tests for comparing means: the z-test and the t-test. Understanding these tests is crucial for making accurate comparisons and drawing valid conclusions in various business scenarios.</Paragraph>
            <Paragraph>The key factor in choosing between a z-test and a t-test is whether you know the population standard deviation:</Paragraph>
            <BulletedList>
                <ListItem>Z-test: Use when the population standard deviation is known.</ListItem>
                <ListItem>T-test: Use when the population standard deviation is unknown.</ListItem>
            </BulletedList>
            <Section>
                <Title>4.1 Z-test: known population standard deviation</Title>
                <Paragraph>The z-test is appropriate when you have access to the population standard deviation. This often occurs when you have comprehensive industry reports or extensive historical data. Key characteristics of the z-test include:</Paragraph>
                <BulletedList>
                    <ListItem>It uses the known population standard deviation in calculations.</ListItem>
                    <ListItem>The test statistic follows a standard normal distribution (bell-shaped curve).</ListItem>
                    <ListItem>It generally provides more precise results when population parameters are available.</ListItem>
                </BulletedList>
                <Paragraph>Using the z-statistic formula, this can be explained:</Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML">
                            <mrow>
                                <mi>Z</mi>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mover accent="true">
                                            <mrow>
                                                <mi>x</mi>
                                            </mrow>
                                            <mrow>
                                                <mo>¯</mo>
                                            </mrow>
                                        </mover>
                                        <mo>−</mo>
                                        <mi>μ</mi>
                                    </mrow>
                                    <mrow>
                                        <mo>(</mo>
                                        <mrow>
                                            <mfrac>
                                                <mrow>
                                                  <mi>σ</mi>
                                                </mrow>
                                                <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </msqrt>
                                                </mrow>
                                            </mfrac>
                                        </mrow>
                                        <mo>)</mo>
                                    </mrow>
                                </mfrac>
                            </mrow>
                        </math>
                    </MathML>
                    <Alternative>cap z equals x bar minus mu divided by left parenthesis sigma divided by square root of n right parenthesis</Alternative>
                </Equation>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                <mover accent="true">
                                    <mi>x</mi>
                                    <mo>¯</mo>
                                </mover>
                            </math></MathML></InlineEquation> = sample mean</Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mi>μ</mi>
                                </mrow>
                            </math>
</MathML></InlineEquation> = population mean under the null hypothesis</Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mi>σ</mi>
                                </mrow>
                            </math>
</MathML></InlineEquation> = population standard deviation</Paragraph>
                <Paragraph><i>n</i> = sample size</Paragraph>
                <Paragraph>This formula reflects the z-test’s characteristics by directly incorporating the known population standard deviation (σ) and transforming the difference between the sample mean and population mean into a standardised score that follows the standard normal distribution.</Paragraph>
                <Paragraph>It may seem odd to you that in Unit 1, you learned how to calculate the z-score, which is shown in this formula. </Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML" display="block" scriptlevel="0" displaystyle="true">
                            <mrow>
                                <mi>Z</mi>
                                <mo>⁢</mo>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mi>x</mi>
                                        <mo>−</mo>
                                        <mi>μ</mi>
                                    </mrow>
                                    <mrow>
                                        <mi>σ</mi>
                                    </mrow>
                                </mfrac>
                            </mrow>
                        </math>
                    </MathML>
                </Equation>
                <Paragraph>Where:</Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                <mover accent="true">
                                    <mi>x</mi>
                                    <mo>¯</mo>
                                </mover>
                            </math></MathML></InlineEquation> = raw score</Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mi>μ</mi>
                                </mrow>
                            </math>
</MathML></InlineEquation> = population mean</Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mi>σ</mi>
                                </mrow>
                            </math>
</MathML></InlineEquation> = population standard deviation</Paragraph>
                <Paragraph>You may question how this relates to the z-statistic we have been discussing. While these concepts are related, they serve different purposes in statistical analysis.</Paragraph>
                <Paragraph>The key difference lies in their focus:</Paragraph>
                <BulletedList>
                    <ListItem>The <b><i>z-score</i></b> focuses on a particular data point within a population. It tells us how many standard deviations an individual value is from the population mean. Imagine you are analysing the performance of a new marketing campaign. A z-score to determine how <i>a specific customer’s spending</i> compares to the average customer spending across all campaigns.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>The <b><i>z-statistic</i></b>, on the other hand, focuses on the sample mean in relation to the population parameters. It tells us how many standard errors the sample mean is from the hypothesised population mean. This is crucial for hypothesis testing and making inferences about populations based on <i>sample data</i>. Using the same marketing campaign example, a z-statistic to test whether the average spending in your new campaign (based on <i>a sample</i>) is significantly different from the average spending (population mean).</ListItem>
                </BulletedList>
            </Section>
            <Section>
                <Title>4.2 T-test: unknown population standard deviation</Title>
                <Paragraph>You will use the t-test when you lack information about the population standard deviation, which is common in many real-world business scenarios. Key characteristics of the t-test include:</Paragraph>
                <BulletedList>
                    <ListItem>It estimates the population standard deviation using sample data.</ListItem>
                    <ListItem>The test statistic follows a t-distribution (similar to normal distribution but with heavier tails).</ListItem>
                    <ListItem>It is more versatile for real-world scenarios where population parameters are unknown.</ListItem>
                </BulletedList>
                <Paragraph>The t-statistic formula is typically expressed as:</Paragraph>
                <Paragraph>Where:</Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML">
                            <mrow>
                                <mi>t</mi>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mover accent="true">
                                            <mrow>
                                                <mi>x</mi>
                                            </mrow>
                                            <mrow>
                                                <mo>¯</mo>
                                            </mrow>
                                        </mover>
                                        <mo>−</mo>
                                        <mi>μ</mi>
                                    </mrow>
                                    <mrow>
                                        <mo>(</mo>
                                        <mrow>
                                            <mfrac>
                                                <mrow>
                                                  <mi>S</mi>
                                                </mrow>
                                                <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </msqrt>
                                                </mrow>
                                            </mfrac>
                                        </mrow>
                                        <mo>)</mo>
                                    </mrow>
                                </mfrac>
                            </mrow>
                        </math>
                    </MathML>
                </Equation>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                <mover accent="true">
                                    <mi>x</mi>
                                    <mo>¯</mo>
                                </mover>
                            </math></MathML></InlineEquation> = sample mean</Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mi>μ</mi>
                                </mrow>
                            </math>
</MathML></InlineEquation> = hypothesised population mean</Paragraph>
                <Paragraph>s = sample standard deviation</Paragraph>
                <Paragraph>n = sample size</Paragraph>
                <Paragraph>In the real world, we often cannot measure every single thing in a population. Instead, we take a smaller group (a sample) and use it to make educated guesses about the whole population. The formula uses “s”, which is calculated from our sample, to estimate how spread out the entire population might be.</Paragraph>
                <Paragraph>The t-distribution follows a unique pattern that differs from the normal distribution. When you calculate the t-statistic multiple times using various samples, the results conform to this t-distribution. While similar to the bell-shaped curve of the normal distribution, the t-distribution features heavier “tails” or edges. This characteristic accounts for the additional uncertainty inherent in estimating population parameters from sample data.</Paragraph>
                <Paragraph>Importantly, the degree of “fatness” in these tails is not constant. It depends on the sample size, a concept we will explore in more detail in the next section. Generally, as the sample size increases, the t-distribution more closely resembles the normal distribution. This relationship between sample size and the shape of the t-distribution plays a crucial role in statistical inference and will influence how you interpret your results in various business scenarios.</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f001.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f001.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="1b3b16da" x_imagesrc="b126_unit3_s04_f001.eps.svg" x_imagewidth="560" x_imageheight="277"/>
                    <Caption><b>Figure 5</b> Z-distribution vs T-distribution</Caption>
                    <Description>The graph compares the z-distribution and t-distribution, showing their distinct shapes. The z-distribution, represented by the blue curve, has a sharper peak and thinner tails, indicating it is more concentrated around the mean. In contrast, the t-distribution, shown by the orange curve, has thicker tails, reflecting greater variability.</Description>
                    <!--From Ana: Image created by the author-->
                </Figure>
                <Paragraph>T-test works well in real-life situations because this formula does not need us to know exact information about the whole population. It is very useful in real research and studies. Most of the time, we do not know everything about an entire population, so this test helps us make good guesses.</Paragraph>
                <Paragraph>We do not need to know how spread out the whole population is. Notice that the formula does not include σ (population standard deviation, you can go back to check the z-statistic formula), which represents the spread between numbers in the population. We often do not know this value in real life. That is why we use ‘s’ from our sample instead. This is a key reason why we choose to use a t-test in many situations.</Paragraph>
            </Section>
            <Section>
                <Title>4.3 Additional consideration</Title>
                <Paragraph>Traditionally, decision-makers would choose between z-tests and t-tests based on two main factors: a) Whether the population standard deviation was known (z-test) or unknown (t-test), and b) The size of the sample (when n &lt; 30, they would choose to use t-test). This approach was rooted in the different properties of the normal distribution and t-distribution, particularly for smaller sample sizes.</Paragraph>
                <Paragraph>However, modern statistical practice often favors using t-tests regardless of sample size when the population standard deviation is unknown. This shift occurred because as sample sizes increase, the t-distribution closely resembles the normal distribution (z-distribution), as shown in Figure 2. For small samples, the t-test accounts for the extra uncertainty from estimating the population standard deviation. For large samples, it gives nearly identical results to a z-test. This consistent use of t-tests simplifies statistical analysis, eliminating the need to decide when to switch from a t-test to a z-test based on sample size. It also provides a slightly more conservative estimate for smaller samples, reducing the risk of false positive results. With today’s statistical software easily handling t-tests for any sample size, this approach combines mathematical accuracy with practical simplicity across various research scenarios, moving beyond the traditional "sample size of 30" rule.</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f002.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f002.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="8ce2accf" x_imagesrc="b126_unit3_s04_f002.eps.svg" x_imagewidth="555" x_imageheight="277"/>
                    <Caption><b>Figure 6</b> Z-distribution vs T-distribution with different sample size</Caption>
                    <Description>The graph illustrates the comparison between the z-distribution and two t-distributions with different sample sizes. The blue curve represents the z-distribution (normal distribution), while the orange curve shows the t-distribution with a smaller sample size, and the green curve depicts the t-distribution with a larger sample size. As the graph indicates, the t-distribution with a smaller sample size has the thickest tails, reflecting greater variability. As the sample size increases, the t-distribution (green curve) becomes more similar to the z-distribution, which has the narrowest peak and the thinnest tails, demonstrating how t-distributions converge to the normal distribution as sample size grows.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
            </Section>
            <Section>
                <Title>4.4 Non-directional hypotheses</Title>
                <Paragraph><b><i>Non-directional hypothesis </i></b>testing involves testing the null hypothesis that the population mean is equal to a certain value. The alternative hypothesis asserts that the population mean is not equal to that value. As mentioned previously, the test of such hypothesis is two-tailed, in the sense that the null hypothesis gets rejected whenever there is a sizable difference between the sample mean and the hypothesised mean in either direction. </Paragraph>
                <Paragraph>But how sizable this difference needs to be in order for us to reject the hypothesis? This is where the concept of <b>critical values </b>comes in. Critical values play a vital role in statistical hypothesis testing and confidence interval construction. A critical value is a threshold that defines the boundary between the fail to reject and rejection regions in a statistical hypothesis test. It marks the point where a test statistic becomes statistically significant, allowing decision-makers to make decisions about rejecting or failing to reject the null hypothesis.</Paragraph>
                <Paragraph>There are several types of critical values, depending on the statistical test being performed. For example:</Paragraph>
                <BulletedList>
                    <ListItem>Z critical value: Used for z-tests and based on the standard normal distribution.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>T critical value: Used for t-tests and based on the t-distribution.</ListItem>
                </BulletedList>
                <Paragraph>The two-tailed nature of a hypothesis becomes evident when we consider the rejection region, which includes outcomes from both the upper and lower tails of the sample distribution.</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f003.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f003.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="9eae3dca" x_imagesrc="b126_unit3_s04_f003.eps.svg" x_imagewidth="565" x_imageheight="269"/>
                    <Caption><b>Figure 7</b> Two-tailed test</Caption>
                    <Description>A symmetrical graph reminiscent of a bell. The graph points out z-score axis and foam height axis, as well as circle the rejection regions of Null Hypothesis on both sides of the bell curve.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>Hypothesis testing is fundamentally rooted in probability theory. When we conduct a hypothesis test, we essentially ask: "What is the probability of observing our sample results if the null hypothesis were true?" </Paragraph>
                <Paragraph>In our coffee foam example, we are examining the probability distribution of sample means. Under the null hypothesis (H₀: μ = 1 cm), we assume that if we were to repeatedly draw samples and calculate their means, these sample means would follow a normal distribution centred around 1 cm.</Paragraph>
                <Paragraph><language xml:lang="en-US"> </language></Paragraph>
                <Paragraph><language xml:lang="en-US">We establish two competing hypotheses:</language></Paragraph>
                <Paragraph><language xml:lang="en-US"> </language></Paragraph>
                <BulletedList>
                    <ListItem>H₀: μ = 1 cm</ListItem>
                    <ListItem>H₁: μ ≠ 1 cm</ListItem>
                </BulletedList>
                <Paragraph><language xml:lang="en-US">Here, μ represents the true population mean foam height. The null hypothesis assumes no difference from our target value (1 cm), while the alternative hypothesis suggests a significant deviation.</language></Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f004.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f004.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="e489a6c5" x_imagesrc="b126_unit3_s04_f004.eps.svg" x_imagewidth="565" x_imageheight="223"/>
                    <Caption><b>Figure 8</b> Two-tailed test – Coffee foam</Caption>
                    <Description>a symmetrical graph reminiscent of a bell. The graph points out z-score axis and foam height axis, as well as circle the rejection regions of Null Hypothesis on both sides of the bell curve.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>Our chosen significance level, α = 0.05, has a direct probabilistic interpretation. It means we are willing to accept a 5% chance of rejecting the null hypothesis when it is actually true. In a two-tailed test, we divide this 5% probability equally between the two tails of the distribution. This results in:</Paragraph>
                <BulletedList>
                    <ListItem>2.5% probability in the left tail (area below z = -1.96)</ListItem>
                    <ListItem>2.5% probability in the right tail (area above z = +1.96)</ListItem>
                </BulletedList>
                <Paragraph>It is worth noting that the orange area in the figure is equivalent to 5%. The ‘fail to reject region’ needs to amount to the remaining 95%, because probabilites of all possible outcomes sum to 100%. </Paragraph>
                <Paragraph>The central 95% of the distribution (between z = -1.96 and z = +1.96) represents the range of sample means that we would consider "not unusual" if the null hypothesis were true. The rejection region in our two-tailed test corresponds to the areas of low probability under the null hypothesis. Specifically:</Paragraph>
                <BulletedList>
                    <ListItem>If our test statistic falls in either tail (z &lt; -1.96 or z &gt; 1.96), it means we have observed a result that had less than a 2.5% chance of occurring if H₀ were true.</ListItem>
                    <ListItem>The total probability of falling in the rejection region is 5% (2.5% + 2.5%).</ListItem>
                </BulletedList>
                <Paragraph>Interpreting Results Probabilistically:</Paragraph>
                <BulletedList>
                    <ListItem>If we reject H₀: We conclude that we have observed a result that had a less than 5% chance of occurring if the true population mean were 1 cm. This low probability leads us to doubt the null hypothesis.</ListItem>
                    <ListItem>If we fail to reject H₀: We have observed a result that had a greater than 5% chance of occurring under H₀. This does not prove H₀ is true, but suggests we lack strong evidence against it.</ListItem>
                </BulletedList>
                <Paragraph>It is crucial to understand that these probabilities relate to the long-run frequency of results if we were to repeat our sampling process many times. They do not tell us the probability that H₀ is true or false in any single test.</Paragraph>
                <Paragraph>We will explore how to calculate the actual probability of our observed results using the z-test later. This will involve determining where our sample mean falls in this probability distribution and calculating the associated p-value.</Paragraph>
            </Section>
            <Section>
                <Title>4.5 Directional hypotheses</Title>
                <Paragraph>As you may recall from an earlier discussion,<b> d<i>irectional hypotheses </i></b>are refered to as one-tailed hypotheses. These hypotheses use iequality signs in their statements. To test a directional hypothesis, you would be expected to perform a one-tailed test, which aims to verify whether the data from the sample supports the anticipated direction of the relationship or difference. </Paragraph>
                <Paragraph>To conduct a one-tailed test, decision-makers establish a critical value to determine whether to reject or retain the null hypothesis. This process typically involves setting a significance level (α). For instance, when α = 0.05, the z critical value for a one-tailed test in a normal distribution is 1.65.</Paragraph>
                <Paragraph>You may notice that the z critical value of 1.65 for a one-tailed test with α = 0.05 differs from the 1.96 used in two-tailed tests. This difference arises from the nature of these tests and how they distribute the significance level. In a one-tailed test, we focus on only one direction of the distribution (either upper or lower tail). Consequently, we allocate the entire α (0.05) to one tail of the distribution. To understand this better, consider that if one tail is associated with 0.05, then both tails would be associated with 2 x 0.05 = 0.10, which is equivalent to a 90% confidence level. At a 90% confidence level, the z-score equals 1.65. This relationship explains why we use 1.65 as the z critical value in one-tailed tests with α = 0.05, rather than the 1.96 used in two-tailed tests at the same significance level.</Paragraph>
                <Paragraph>In this case:</Paragraph>
                <BulletedList>
                    <ListItem>The null hypothesis would be rejected if the z-statistic exceeds 1.65.</ListItem>
                    <ListItem>Only the upper tail region of the distribution is considered for rejection in a one-tailed test.</ListItem>
                    <ListItem>The area in the tail above z = +1.65 represents 0.05 of the distribution.</ListItem>
                </BulletedList>
                <Paragraph>Unlike in a two-tailed test, the alpha level does not need to be divided by two for a one-tailed test. This approach allows decision-makers to focus on detecting effects in a specific direction, making it particularly useful when there’s a strong theoretical or practical reason to expect a particular outcome.</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f005.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f005.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="18091d8d" x_imagesrc="b126_unit3_s04_f005.eps.svg" x_imagewidth="555" x_imageheight="223"/>
                    <Caption><b>Figure 9</b> One-tailed test – right (upper) tail.</Caption>
                    <Description>a symmetrical graph reminiscent of a bell. The graph points out z-score axis and hours of study axis, as well as circle the rejection regions of Null Hypothesis on right hand side of the bell curve.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>In summary, decision-makers use one-tailed tests to evaluate directional hypotheses, which predict the direction of a difference or association between two variables. The critical value for these tests depends on the chosen significance level (α), and the test aims to determine if the data supports the predicted direction.</Paragraph>
                <Paragraph>One-tailed tests are versatile and can be used for both "greater than" and "less than" scenarios. Let us consider an example to illustrate this flexibility:</Paragraph>
                <Paragraph>Imagine a department store where management believes the average customer spend per visit is £65. However, the service manager suspects customers are spending less. We can formulate the following hypotheses:</Paragraph>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: µ ≥ £6</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>H<sub>1</sub>: µ &lt; £65</ListItem>
                </BulletedList>
                <Paragraph>In this case, the null hypothesis (H<sub>0</sub>) states that the average spend is greater than or equal to £65, while the alternative hypothesis (H<sub>1</sub>) suggests it is less than £65.</Paragraph>
                <Paragraph>To test this directional hypothesis, we conduct a one-tailed test. The alternative hypothesis predicts that the true value of µ will be lower than £65, so we focus on the lower tail of the normal distribution for our rejection region.</Paragraph>
                <Paragraph>At an alpha level of 0.05, the z critical value for the lower tail is -1.65. This means we would reject the null hypothesis if our calculated z-statstic falls below -1.65. Graphically, this rejection region appears in the lower tail of the normal distribution curve.</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f005.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f005.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="18091d8d" x_imagesrc="b126_unit3_s04_f005.eps.svg" x_imagewidth="555" x_imageheight="223"/>
                    <Caption><b>Figure 10</b> One-tailed test – left (lower) tail.</Caption>
                    <Description>a symmetrical graph reminiscent of a bell. The graph points out z-score axis and customer spending axis, as well as circle the rejection regions of Null Hypothesis on left hand side of the bell curve.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>In general, the one-tailed test is not restricted to a specific direction and can be used in either direction, depending on the research question and the hypothesis being tested. The test is utilised to determine if the data supports a directional hypothesis, and a critical value is established based on the significance level chosen for the<?oxy_custom_start type="oxy_content_highlight" color="255,255,0"?> test<?oxy_custom_end?>.</Paragraph>
            </Section>
        </Session>
        <Session>
            <Title>5 Z Critical value and z-test</Title>
            <Paragraph>We have learned earlier that critical values play a vital role in statistical hypothesis testing and confidence interval construction. A critical value is a threshold that defines the boundary between the “fail to reject” and “rejection” regions in a statistical hypothesis test. It marks the point where a test statistic becomes statistically significant, allowing decision-makers to make decisions about rejecting or failing to reject the null hypothesis. In this section, we need to first learn how to calculate z critical values. For the purpose of this course, we will use Excel to do so.</Paragraph>
            <Paragraph>Before we delve into the main question, it is crucial to understand how to use Excel to determine z critical values. This knowledge forms the foundation for conducting statistical tests effectively. Let us explore this concept, focusing on both one-tailed and two-tailed tests.</Paragraph>
            <Section>
                <Title>5.1 One-tailed test</Title>
                <Paragraph>In a one-tailed test, we focus on either the upper (right) or lower (left) tail of the distribution. For our example, we will consider an upper-tailed test with a significance level (α) of 5% or 0.05. Excel provides a useful function to find z critical values quickly and accurately for this purpose: the <b><i>NORM.S.INV()</i></b> function.</Paragraph>
                <Paragraph>Let us consider an upper-tailed test. In this scenario, the z critical value corresponds to the boundary equal to 1 – 5%, or 95% of the z-distribution.</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f007.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f007.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="f488cee4" x_imagesrc="b126_unit3_s04_f007.eps.svg" x_imagewidth="554" x_imageheight="223"/>
                    <Caption><b>Figure 11</b> Upper tailed test</Caption>
                    <Description>The image depicts the concept of an upper-tailed test in statistics, commonly used in hypothesis testing. In this test, the area under the curve represents the probability distribution, with the majority (95%) of the distribution being under the main portion of the curve. </Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>To use NORM.S.INV(), we input this cooresponding propability that we are interested in. </Paragraph>
                <BulletedList>
                    <ListItem>=NORM.S.INV(0.95)</ListItem>
                </BulletedList>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f008.eps.jpg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f008.eps.jpg" x_folderhash="9cb7b1d8" x_contenthash="c3657ad5" x_imagesrc="b126_unit3_s04_f008.eps.jpg" x_imagewidth="578" x_imageheight="247"/>
                    <Caption><b>Figure 12</b> NORM.S.INV() function</Caption>
                    <Description>The image shows a screenshot from Microsoft Excel, where the formula =NORM.S.INV(probability) is being entered. This is a function used to calculate the inverse of the standard normal cumulative distribution, which returns a z-score corresponding to a given probability in a standard normal distribution (mean of 0 and standard deviation of 1). The formula expects a probability value as input and will return the z-score associated with that probability.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>This formula returns a z critical value of approximately 1.645, which we can round to 1.65 (This value has been used in earlier sections).</Paragraph>
                <Paragraph>For upper tail (e.g., H1: μ &gt; certain value): The critical value would be positive: +1.65</Paragraph>
                <BulletedList>
                    <ListItem>We would reject the null hypothesis if the calculated z-statistic is greater than 1.65.</ListItem>
                </BulletedList>
                <Paragraph>For a lower-tailed test, we focus on the left side of the distribution. Here, the z critical value corresponds to the boundary equal to 5% of the z-distribution (Figure 5).</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f009.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f009.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="5feb3e2a" x_imagesrc="b126_unit3_s04_f009.eps.svg" x_imagewidth="554" x_imageheight="223"/>
                    <Caption><b>Figure 13</b> Lower Tailed Test This graph is created by the author.</Caption>
                    <Description>The image depicts the concept of an upper-tailed test in statistics, commonly used in hypothesis testing. In this test, the area under the curve represents the probability distribution, with the 5% of the distribution being under the main portion of the curve.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>To find this z critical value using NORM.S.INV(), we input the probability of 5%. </Paragraph>
                <BulletedList>
                    <ListItem>=NORM.S.INV(0.05)</ListItem>
                </BulletedList>
                <Paragraph>This returns approximately -1.645, which we can round to -1.65.</Paragraph>
                <Paragraph>Thus, for a lower-tailed test (H1: μ &lt; certain value): The critical value would be negative: -1.65</Paragraph>
                <Paragraph/>
                <BulletedList>
                    <ListItem>We would reject the null hypothesis if the calculated z-statistic is less than -1.65.</ListItem>
                </BulletedList>
                <Paragraph>This explanation clearly illustrates how the direction of the alternative hypothesis determines the sign of the critical value in one-tailed tests. It also emphasises that the rejection criterion depends on whether we are testing for values significantly greater than (upper tail) or less than (lower tail) a certain value.</Paragraph>
            </Section>
            <Section>
                <Title>5.2 Two-tailed test</Title>
                <Paragraph>For a two-tailed test, we need to adjust our approach slightly. We still use NORM.S.INV(), but we must account for the probability being split between two tails.</Paragraph>
                <Paragraph>Let us use the same example (α = 5%). In a two-tailed test, we split our α evenly between the two tails..</Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML" displaystyle="true" scriptlevel="0" display="block">
                            <mrow>
                                <mi>S</mi>
                                <mi>p</mi>
                                <mi>l</mi>
                                <mi>i</mi>
                                <mi>t</mi>
                                <mi>t</mi>
                                <mi>e</mi>
                                <mi>d</mi>
                                <mo>⁢</mo>
                                <mtext> </mtext>
                                <mi>a</mi>
                                <mo>⁢</mo>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mn>0.05</mn>
                                    </mrow>
                                    <mrow>
                                        <mn>2</mn>
                                    </mrow>
                                </mfrac>
                                <mo>=</mo>
                                <mn>0.025</mn>
                                <mo>⁢</mo>
                            </mrow>
                        </math>
                    </MathML>
                </Equation>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f010.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f010.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="b9a5d51f" x_imagesrc="b126_unit3_s04_f010.eps.svg" x_imagewidth="565" x_imageheight="231"/>
                    <Caption><b>Figure 14</b> Two tailed test</Caption>
                    <Description>The image illustrates a two-tailed test used in hypothesis testing. In this test, both extremes (tails) of the probability distribution are considered. The curve represents the distribution, and the two shaded regions on the left and right represent the lower and upper tails, each accounting for 2.5% of the total area under the curve.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>The lower tail z-value would correspond to the 2.5% of the distribution, so you would use:</Paragraph>
                <BulletedList>
                    <ListItem>=NORM.S.INV(0.025)</ListItem>
                </BulletedList>
                <Paragraph>This gives approximately -1.96.</Paragraph>
                <Paragraph>The upper tail z-value would correspond to the 97.5% of the distribution, so you would use:</Paragraph>
                <BulletedList>
                    <ListItem>=NORM.S.INV(0.975)</ListItem>
                </BulletedList>
                <Paragraph>This gives us a z critical value of approximately 1.96. </Paragraph>
                <Paragraph>Together, the z critical values are: ±1.96</Paragraph>
                <Paragraph>In practice, this means we reject the null hypothesis if our calculated test statistic is either smaller than -1.96 or larger than 1.96. These values create our "rejection region" - the areas in the tails of the distribution where the evidence against the null hypothesis is strong enough to warrant rejection.</Paragraph>
                <Paragraph>To interpret your results:</Paragraph>
                <BulletedList>
                    <ListItem>If your test statistic falls between -1.96 and 1.96, you fail to reject the null hypothesis.</ListItem>
                    <ListItem>If your test statistic is less than -1.96 or greater than 1.96, you reject the null hypothesis.</ListItem>
                </BulletedList>
            </Section>
            <Section>
                <Title>5.3 Practical example</Title>
                <Paragraph>Now, you know how to calculate Z critical value. Let us do a z-test together.</Paragraph>
                <Paragraph>Consider the following question:</Paragraph>
                <Paragraph>A digital marketing agency has recently implemented a new advertising campaign aimed at increasing purchases on their e-commerce platform. </Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_u03_s03_f21.tif" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_u03_s03_f21.tif" x_printonly="y" x_folderhash="9cb7b1d8" x_contenthash="ed9ecdde" x_imagesrc="b126_u03_s03_f21.tif.jpg" x_imagewidth="580" x_imageheight="420"><!--Asset 401892--></Image>
                    <Caption><b>Figure 15</b> Advertisement influence</Caption>
                    <Alternative>Cartoon showing a TV advert for a can of corn</Alternative>
                    <Description>This figure shows a TV ad for a can of corn, inviting viewers to ‘Join in the conversation’; the tag line reads ‘#Nothing Better TO DO Than Tweet About A Brand Of Creamed Corn’.</Description>
                </Figure>
                <Paragraph>The marketing team has gathered data from a sample of 80 customers to assess the campaign’s effectiveness. The marketing executive asserts that the campaign has been successful, claiming that the average number of purchases per day has increased compared to the previous average. They want to test this claim with a 95% confidence level. Download the Excel file to review the data. <olink targetdoc="b126_4_digital_marketing">Excel file: Digital marketing</olink></Paragraph>
                <Paragraph>Your task is to conduct a z-test to evaluate the marketing executive’s claim using the provided digital marketing dataset. </Paragraph>
                <Paragraph>Let us solve this problem step by step using Excel:</Paragraph>
                <Paragraph>Step 1: Find the Population Mean</Paragraph>
                <Paragraph>First, we need to calculate the average of monthly purchases. In Excel:</Paragraph>
                <BulletedList>
                    <ListItem>Go to the ‘Population’ sheet.</ListItem>
                    <ListItem>Use the formula: =AVERAGE(A2:A1001) where A2:A1001 contains the population data.</ListItem>
                </BulletedList>
                <Paragraph>The result shows the average number of purchases was 50.20. This is our population mean.</Paragraph>
                <Paragraph>Step 2: Formulate Hypotheses</Paragraph>
                <Paragraph>Based on the marketing executive’s claim, we can formulate our hypotheses:</Paragraph>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: The digital marketing campaign will produce equal or less than average monthly purchase results (µ ≤ 50.20).</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>H<sub>1</sub>: The digital marketing campaign will produce greater than average monthly purchase results (µ &gt; 50.20).</ListItem>
                </BulletedList>
                <Paragraph>Note that we specify the claim we want to prove as an alternative hypothesis. </Paragraph>
                <Paragraph>Step 3: Calculate the Z-statistic</Paragraph>
                <Paragraph>We use the formula:</Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML">
                            <mrow>
                                <mi>Z</mi>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mover accent="true">
                                            <mrow>
                                                <mi>x</mi>
                                            </mrow>
                                            <mrow>
                                                <mo>¯</mo>
                                            </mrow>
                                        </mover>
                                        <mo>−</mo>
                                        <mi>μ</mi>
                                    </mrow>
                                    <mrow>
                                        <mo>(</mo>
                                        <mrow>
                                            <mfrac>
                                                <mrow>
                                                  <mi>σ</mi>
                                                </mrow>
                                                <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </msqrt>
                                                </mrow>
                                            </mfrac>
                                        </mrow>
                                        <mo>)</mo>
                                    </mrow>
                                </mfrac>
                            </mrow>
                        </math>
                    </MathML>
                </Equation>
                <Paragraph>Where:</Paragraph>
                <BulletedList>
                    <ListItem>= sample mean</ListItem>
                    <ListItem>μ = population mean under the null hypothesis</ListItem>
                    <ListItem>σ = population standard deviation</ListItem>
                    <ListItem>n = sample size</ListItem>
                </BulletedList>
                <Paragraph>To find these values:</Paragraph>
                <Paragraph>1. Calculate the sample mean:</Paragraph>
                <BulletedList>
                    <ListItem>Go to the ‘Sample’ sheet.</ListItem>
                    <ListItem>Use the formula: =AVERAGE(A2:A81)</ListItem>
                </BulletedList>
                <Paragraph>This gives us = 53.03</Paragraph>
                <Paragraph>2. We already know µ = 50.20 from Step 1.</Paragraph>
                <Paragraph>3. Calculate the population standard deviation:</Paragraph>
                <BulletedList>
                    <ListItem>Go back to the ‘Population’ sheet.</ListItem>
                    <ListItem>Use the formula: =STDEV.P(A2:A1001)</ListItem>
                </BulletedList>
                <Paragraph>This gives us σ = 9.81</Paragraph>
                <Paragraph>Important note on standard deviation functions:</Paragraph>
                <Paragraph>Excel provides two functions for calculating standard deviation: <b><i>STDEV.P()</i></b> and <b><i>STDEV.S()</i></b>.</Paragraph>
                <BulletedList>
                    <ListItem>Use STDEV.P() when your data represents the entire population.</ListItem>
                    <ListItem>Use STDEV.S() when your data is just a sample of the population.</ListItem>
                </BulletedList>
                <Paragraph>In this case, we use STDEV.P() because we have data for the entire population of purchases.</Paragraph>
                <Paragraph>4. We know n = 80 from the question and from our data set.</Paragraph>
                <Paragraph>Now, let us calculate the z-statistic:</Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML" display="block" scriptlevel="0" displaystyle="true">
                            <mrow>
                                <mi>Z</mi>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mo>(</mo>
                                        <mn>53.03</mn>
                                        <mo>−</mo>
                                        <mn>50.20</mn>
                                        <mo>)</mo>
                                    </mrow>
                                    <mrow>
                                        <mo>(</mo>
                                        <mfrac>
                                            <mrow>
                                                <mn>9.81</mn>
                                            </mrow>
                                            <mrow>
                                                <msqrt>
                                                  <mrow>
                                                  <mn>80</mn>
                                                  </mrow>
                                                </msqrt>
                                            </mrow>
                                        </mfrac>
                                        <mo>)</mo>
                                    </mrow>
                                </mfrac>
                                <mo>≈</mo>
                                <mn>2.58</mn>
                            </mrow>
                        </math>
                    </MathML>
                </Equation>
                <Paragraph>Step 4: Determine the Z Critical Value</Paragraph>
                <Paragraph>For an upper tailed test, α = 5%, z critical value corresponds to the boundary = 95% of the z-distribution:</Paragraph>
                <BulletedList>
                    <ListItem>In Excel, use the formula: =NORM.S.INV(0.95)</ListItem>
                </BulletedList>
                <Paragraph>This gives us a z-critical value of 1.65.</Paragraph>
                <Paragraph>Step 5: Make a Decision</Paragraph>
                <Paragraph>Compare the calculated z-statistic (2.58) to the critical value (1.65). Since 2.58 &gt; 1.65, we reject the null hypothesis. Figure 7 illustrates these results. You can see that z-statistic is outside of the fail to reject region and within the rejection region (orange area).</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f011.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f011.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="edc94131" x_imagesrc="b126_unit3_s04_f011.eps.svg" x_imagewidth="555" x_imageheight="278"/>
                    <Caption><b>Figure 16</b> Z critical value and z-statistic.</Caption>
                    <Description>The image depicts a bell-shaped curve, representing a standard normal distribution, with areas marked for the ‘fail to reject’ region and the ‘rejection’ region. The curve shows the z critical value at 1.65, which marks the boundary between these regions. A z-statistic of 2.58 is located in the shaded rejection region, indicating that any test statistic beyond this point would lead to rejecting the null hypothesis.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>Step 6: Interpret the Results</Paragraph>
                <Paragraph>There is sufficient statistical evidence to support the marketing executive’s claim that the new advertising campaign has increased the average number of monthly purchases. The sample data suggests that the true population mean of monthly purchases after the campaign is significantly higher than the population average of 50.20, at a 95% confidence level.</Paragraph>
                <Activity>
                    <Heading>Activity 4: Z-test</Heading>
                    <Timing>Allow around 60 minutes for this activity.</Timing>
                    <Question>
                        <Paragraph>Now, let us apply our knowledge of z-tests to a new scenario in the same marketing context.</Paragraph>
                        <Paragraph>Consider the following question:</Paragraph>
                        <Paragraph>Following their successful advertising campaign, the marketing team at the digital marketing agency has decided to explore a new strategy. They have chosen to sponsor a major football event, believing this sponsorship will further boost the number of purchases on their e-commerce platform.</Paragraph>
                        <Paragraph>After the sponsored event concluded, the marketing team collected data from a sample of 98 customers to assess the impact of this new initiative. The marketing executive is now claiming that the sponsorship has decreased the average number of purchases. Download the Excel file to review the data. <olink targetdoc="b126_4_sport_sponsorship">Excel file: Sport sponsorship</olink></Paragraph>
                        <Paragraph>Your task is to conduct a z-test to evaluate the marketing executive’s claim about the ineffectiveness of the football event sponsorship. You should use the same data from the previous advertising campaign example for the population mean and standard deviation.</Paragraph>
                        <Paragraph>Show your calculation in the box below.</Paragraph>
                    </Question>
                    <Interaction>
                        <FreeResponse size="paragraph" id="fr_6"/>
                    </Interaction>
                    <Answer>
                        <Paragraph>Let us solve this problem step by step using Excel:</Paragraph>
                        <Paragraph>Step 1: Find the Population Mean and Standard Deviation</Paragraph>
                        <Paragraph>We all use the same population data from the previous example:</Paragraph>
                        <BulletedList>
                            <ListItem>Population mean (µ) = 50.20</ListItem>
                            <ListItem>Population standard deviation (σ) = 9.81</ListItem>
                        </BulletedList>
                        <Paragraph>Step 2: Formulate Hypotheses</Paragraph>
                        <Paragraph>Based on the marketing executive’s claim, we can formulate our hypotheses:</Paragraph>
                        <BulletedList>
                            <ListItem>H₀: The sponsorship did not decrease the average number of purchases (µ ≥ 50.20).</ListItem>
                            <ListItem>H₁: The sponsorship decreased the average number of purchases (µ &lt; 50.20).</ListItem>
                        </BulletedList>
                        <Paragraph>Step 3: Calculate the Z-statistic</Paragraph>
                        <Paragraph>Where:</Paragraph>
                        <Paragraph>µ = population mean under the null hypothesis (50.20)</Paragraph>
                        <Paragraph>σ = population standard deviation (9.81)</Paragraph>
                        <Paragraph>To calculate the Z-statistic, we need the sample mean (<InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                        <mrow>
                                            <mover>
                                                <mrow>
                                                  <mi>X</mi>
                                                </mrow>
                                                <mrow>
                                                  <mo>¯</mo>
                                                </mrow>
                                            </mover>
                                        </mrow>
                                    </math>
</MathML></InlineEquation>) and sample size (n). </Paragraph>
                        <Paragraph>Sample Size (n):</Paragraph>
                        <Paragraph>The question states: "After the event, they gather data from a sample of 98 customers" and you can also find it from the dataset.</Paragraph>
                        <Paragraph>Therefore, n = 98</Paragraph>
                        <Paragraph>Sample Mean (<InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                        <mrow>
                                            <mover>
                                                <mrow>
                                                  <mi>X</mi>
                                                </mrow>
                                                <mrow>
                                                  <mo>¯</mo>
                                                </mrow>
                                            </mover>
                                        </mrow>
                                    </math>
</MathML></InlineEquation>):</Paragraph>
                        <Paragraph>To calculate the sample mean: use this Excel formula =<i>AVERAGE()</i>, in the dataset.</Paragraph>
                        <Paragraph>The result of this calculation gives us.<InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                        <mrow>
                                            <mover>
                                                <mrow>
                                                  <mi>X</mi>
                                                </mrow>
                                                <mrow>
                                                  <mo>¯</mo>
                                                </mrow>
                                            </mover>
                                        </mrow>
                                    </math>
</MathML></InlineEquation></Paragraph>
                        <Paragraph>We use the formula:</Paragraph>
                        <Equation>
                            <MathML>
                                <math xmlns="http://www.w3.org/1998/Math/MathML" display="block" scriptlevel="0" displaystyle="true">
                                    <mrow>
                                        <mi>Z</mi>
                                        <mo>=</mo>
                                        <mfrac>
                                            <mrow>
                                                <mo>(</mo>
                                                <mn>48.73</mn>
                                                <mo>−</mo>
                                                <mn>50.20</mn>
                                                <mo>)</mo>
                                            </mrow>
                                            <mrow>
                                                <mo>(</mo>
                                                <mfrac>
                                                  <mrow>
                                                  <mn>9.81</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mn>98</mn>
                                                  </mrow>
                                                  </msqrt>
                                                  </mrow>
                                                </mfrac>
                                                <mo>)</mo>
                                            </mrow>
                                        </mfrac>
                                        <mo>≈</mo>
                                        <mo>−</mo>
                                        <mn>1.48</mn>
                                    </mrow>
                                </math>
                            </MathML>
                        </Equation>
                        <Paragraph>Step 4: Determine the Z Critical Value</Paragraph>
                        <Paragraph>For a lower tailed test, α = 5%, z critical value corresponds to the boundary = 5% of the z-distribution:</Paragraph>
                        <BulletedList>
                            <ListItem>In Excel, use the formula: =NORM.S.INV(0.05)</ListItem>
                        </BulletedList>
                        <Paragraph>This gives us a z-critical value of -1.645.</Paragraph>
                        <Paragraph>Step 5: Decision </Paragraph>
                        <Paragraph>We fail to reject the null hypothesis because -1.48 &gt; -1.645. The calculated z-statistic (-1.48) does not fall in the rejection region (z &lt; -1.645).</Paragraph>
                        <Figure>
                            <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f012.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f012.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="073ddf0c" x_imagesrc="b126_unit3_s04_f012.eps.svg" x_imagewidth="548" x_imageheight="278"/>
                            <Caption><b>Figure 17</b> 3 z critical value and z-statistic</Caption>
                            <Description>The image depicts a bell-shaped curve, representing a standard normal distribution, with areas marked for the ‘fail to reject region’ and the ‘rejection region’. The curve shows the z critical value at 1.65, which marks the boundary between these regions. A z-statistic of −1.48 is located in the shaded rejection region, indicating that any test statistic beyond this point would lead to rejecting the null hypothesis.</Description>
                        </Figure>
                        <Paragraph>Step 6: Interpretation </Paragraph>
                        <Paragraph>There is insufficient statistical evidence to support the marketing executive’s claim that the sponsorship decreased the number of purchases. However, it is important to note that the sample mean is lower than the population average, which aligns with the executive’s concern about the sponsorship’s effectiveness.</Paragraph>
                        <Paragraph>While we cannot conclude a statistically significant decrease in purchases, the data suggests that the sponsorship may not have had the desired positive impact.</Paragraph>
                        <Paragraph>The focus on the lower tail of the distribution is appropriate in this scenario, as we are testing for a potential decrease in purchases. This approach aligns with the marketing executive’s skepticism about the sponsorship’s success and allows us to directly evaluate the claim of ineffectiveness.</Paragraph>
                    </Answer>
                </Activity>
            </Section>
            <Section>
                <Title>5.4 Finding <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                <mover accent="true">
                                    <mi>x</mi>
                                    <mo>¯</mo>
                                </mover>
                            </math></MathML><Alternative>Finding x-bar</Alternative></InlineEquation></Title>
                <Paragraph>Building upon our previous knowledge of z-tests, we will now apply this statistical method to answer a new question in the field of marketing. </Paragraph>
                <Paragraph>Consider the following scenario:</Paragraph>
                <Paragraph>Historical records show that customers need an average of 10 seconds of exposure to television advertising commercials before being influenced, with a standard deviation of 1.6 seconds. A marketing manager believes it now takes longer to influence customer behaviour. To support this claim, he plans to sample 100 customers. We need to determine how long customers’ exposure needs to be to influence behaviour in order to justify the marketing manager’s claim with 90% confidence.</Paragraph>
                <Paragraph>This question is vital because marketing managers are not particularly concerned with abstract statistical concepts like z critical value, rejection region or fail to reject region. Instead, they need practical, actionable insights to guide their advertising strategies.</Paragraph>
                <Paragraph>Define the Hypotheses</Paragraph>
                <BulletedList>
                    <ListItem>H<sub>0</sub>: μ ≤ 10 seconds (The average time to influence customers has not increased)</ListItem>
                    <ListItem><language xml:lang="en-US">H<sub>1</sub>: μ &gt; 10 seconds (The average time to influence customers has increased)</language></ListItem>
                </BulletedList>
                <Paragraph>Set the Confidence Level and Critical Value</Paragraph>
                <BulletedList>
                    <ListItem>Confidence Level: 90% (α = 0.10 for a one-tailed test)</ListItem>
                    <ListItem>Z critical value: using excel function =NORM.S.INV(0.90) = 1.28</ListItem>
                </BulletedList>
                <Paragraph>Calculate the Sample Mean</Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML">
                            <mrow>
                                <mi>Z</mi>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mover accent="true">
                                            <mi>x</mi>
                                            <mo>¯</mo>
                                        </mover>
                                        <mo>−</mo>
                                        <mi>μ</mi>
                                    </mrow>
                                    <mrow>
                                        <mrow>
                                            <mo>(</mo>
                                            <mrow>
                                                <mfrac>
                                                  <mi>σ</mi>
                                                  <mrow>
                                                  <msqrt>
                                                  <mi>n</mi>
                                                  </msqrt>
                                                  </mrow>
                                                </mfrac>
                                            </mrow>
                                            <mo>)</mo>
                                        </mrow>
                                    </mrow>
                                </mfrac>
                            </mrow>
                        </math>
                    </MathML>
                    <Alternative>cap z equals x bar minus mu divided by left parenthesis sigma divided by square root of n right parenthesis</Alternative>
                </Equation>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                <mover accent="true">
                                    <mi>x</mi>
                                    <mo>¯</mo>
                                </mover>
                            </math></MathML></InlineEquation> = sample mean </Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mi>μ</mi>
                                </mrow>
                            </math>
</MathML></InlineEquation> = population mean </Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mi>σ</mi>
                                </mrow>
                            </math>
</MathML></InlineEquation> = population standard deviation</Paragraph>
                <Paragraph><i>n</i> = sample size</Paragraph>
                <Paragraph>We can input these values into this formula to solve the value of x.</Paragraph>
                <Paragraph><b>Step 1:</b></Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML">
                            <mrow>
                                <mn>1.28</mn>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mover accent="true">
                                            <mi>x</mi>
                                            <mo>¯</mo>
                                        </mover>
                                        <mo>−</mo>
                                        <mn>10</mn>
                                    </mrow>
                                    <mrow>
                                        <mrow>
                                            <mo>(</mo>
                                            <mrow>
                                                <mfrac>
                                                  <mrow>
                                                  <mn>1.6</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mn>100</mn>
                                                  </mrow>
                                                  </msqrt>
                                                  </mrow>
                                                </mfrac>
                                            </mrow>
                                            <mo>)</mo>
                                        </mrow>
                                    </mrow>
                                </mfrac>
                            </mrow>
                        </math>
                    </MathML>
                    <Alternative>1.28 equals x bar minus 10 divided by left parenthesis 1.6 divided by square root of 100 right parenthesis</Alternative>
                </Equation>
                <Paragraph><b>Step 2:</b></Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML">
                            <mrow>
                                <mn>1.28</mn>
                                <mo>×</mo>
                                <mfrac>
                                    <mrow>
                                        <mn>1.6</mn>
                                    </mrow>
                                    <mrow>
                                        <msqrt>
                                            <mrow>
                                                <mn>100</mn>
                                            </mrow>
                                        </msqrt>
                                    </mrow>
                                </mfrac>
                                <mo>=</mo>
                                <mover accent="true">
                                    <mrow>
                                        <mi>x</mi>
                                    </mrow>
                                    <mrow>
                                        <mo>¯</mo>
                                    </mrow>
                                </mover>
                                <mo>−</mo>
                                <mn>10</mn>
                            </mrow>
                        </math>
                    </MathML>
                    <Alternative> 1.28 times 1.6 divided by square root of 100 equals x bar minus 10</Alternative>
                </Equation>
                <Paragraph><b>Step 3:</b></Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML">
                            <mrow>
                                <mrow>
                                    <mo>(</mo>
                                    <mrow>
                                        <mn>1.28</mn>
                                        <mo>×</mo>
                                        <mfrac>
                                            <mrow>
                                                <mn>1.6</mn>
                                            </mrow>
                                            <mrow>
                                                <msqrt>
                                                  <mrow>
                                                  <mn>100</mn>
                                                  </mrow>
                                                </msqrt>
                                            </mrow>
                                        </mfrac>
                                    </mrow>
                                    <mo>)</mo>
                                </mrow>
                                <mo>+</mo>
                                <mn>10</mn>
                                <mo>=</mo>
                                <mover accent="true">
                                    <mrow>
                                        <mi>x</mi>
                                    </mrow>
                                    <mrow>
                                        <mo>¯</mo>
                                    </mrow>
                                </mover>
                            </mrow>
                        </math>
                    </MathML>
                    <Alternative>left parenthesis 1.28 times 1.6 divided by square root of 100 right parenthesis plus 10 equals x bar</Alternative>
                </Equation>
                <Paragraph><b>Step 4: </b></Paragraph>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                <mrow>
                                    <mover accent="true">
                                        <mrow>
                                            <mi>x</mi>
                                        </mrow>
                                        <mrow>
                                            <mo>¯</mo>
                                        </mrow>
                                    </mover>
                                    <mo>=</mo>
                                    <mn>10.2</mn>
                                </mrow>
                            </math></MathML><Alternative>x bar equals 10.2</Alternative></InlineEquation></Paragraph>
                <Paragraph>To justify the marketing manager’s claim with 90% confidence, the sample of 100 customers</Paragraph>
                <Paragraph>must show an average time to influence customer behaviour of more than 10.2 seconds.</Paragraph>
                <Paragraph>In practical terms:</Paragraph>
                <BulletedList>
                    <ListItem>If the sample average is 10.2 seconds or less, we do not have sufficient evidence to reject the null hypothesis. This means we cannot conclude that the average time to influence customers has increased.</ListItem>
                    <ListItem>If the sample average exceeds 10.20 seconds, we have statistical evidence at a 90% confidence level to reject the null hypothesis and support the marketing manager’s claim that it now takes longer to influence customer behaviour.</ListItem>
                    <ListItem>The marketing team should conduct their survey of 100 customers and calculate the average time it takes to influence their behaviour. If this average is greater than 10.20 seconds, it provides support for the marketing manager’s assertion.</ListItem>
                    <ListItem>This result suggests that an increase of more than 0.20 seconds in the average time could be statistically significant given the sample size and variance in the data.</ListItem>
                    <ListItem>The marketing team should consider practical significance alongside statistical significance. While an increase to just over 10.20 seconds is statistically significant, they should evaluate whether this small increase has meaningful implications for their advertising strategies.</ListItem>
                </BulletedList>
                <Activity>
                    <Heading>Activity 5: Determine the sample mean to reject H<sub>0</sub></Heading>
                    <Timing>Allow around 40 minutes for this activity.</Timing>
                    <Question>
                        <Paragraph>According to store records, customers are persuaded to purchase products with an average price discount of 50% in marketing promotions, with a standard deviation of 5.3%. The market research team believe that the company should offer more than 50% price discounts to motivate customers’ purchase intentions. To test this claim, the team plan to survey 1,000 customers. We need to determine the decision rule at a 99% confidence level to accept the market research team’s claim.</Paragraph>
                        <Paragraph>Use the textbox below to show your calculations.</Paragraph>
                    </Question>
                    <Interaction>
                        <FreeResponse size="paragraph" id="fr_222"/>
                    </Interaction>
                    <Answer>
                        <Paragraph><b>Step 1</b>:Define the Hypotheses</Paragraph>
                        <BulletedList>
                            <ListItem>H<sub>0</sub>: μ ≤ 50% (Customers are persuaded by price discounts of 50% or less)</ListItem>
                            <ListItem>H<sub>1</sub>: μ &gt; 50% (Customers require price discounts greater than 50% to be persuaded)</ListItem>
                        </BulletedList>
                        <Paragraph><b>Step 2</b>: Identify the z-score and rejection region. </Paragraph>
                        <Paragraph>For a one-tailed test at 99% confidence level (α = 0.01), using the Excel function =NORM.S.INV(0.99), we get a z critical value of 2.326 ≈ 2.33</Paragraph>
                        <Paragraph><b>Step 3</b>: Identify all the values. </Paragraph>
                        <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                        <mrow>
                                            <mi>μ</mi>
                                            <mo>=</mo>
                                            <mn>0.50</mn>
                                        </mrow>
                                    </math></MathML></InlineEquation>(expressed as a decimal)</Paragraph>
                        <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                        <mrow>
                                            <mi>σ</mi>
                                            <mo>=</mo>
                                            <mn>0.053</mn>
                                        </mrow>
                                    </math></MathML></InlineEquation>(5.3% expressed as a decimal)</Paragraph>
                        <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                        <mrow>
                                            <mi>n</mi>
                                            <mo>=</mo>
                                            <mn>1,000</mn>
                                        </mrow>
                                    </math>
</MathML></InlineEquation></Paragraph>
                        <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                        <mrow>
                                            <mi>z</mi>
                                            <mo>=</mo>
                                            <mn>2.33</mn>
                                        </mrow>
                                    </math></MathML></InlineEquation>(approximate z critcail value for 99% confidence level)</Paragraph>
                        <Paragraph><b>Step 4</b>: Calculate the Sample Mean</Paragraph>
                        <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                        <mrow>
                                            <mn>2.33</mn>
                                            <mo>=</mo>
                                            <mfrac>
                                                <mrow>
                                                  <mover accent="true">
                                                  <mi>x</mi>
                                                  <mo>¯</mo>
                                                  </mover>
                                                  <mo>−</mo>
                                                  <mn>0.5</mn>
                                                </mrow>
                                                <mrow>
                                                  <mrow>
                                                  <mo>(</mo>
                                                  <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>0.053</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mn>1000</mn>
                                                  </mrow>
                                                  </msqrt>
                                                  </mrow>
                                                  </mfrac>
                                                  </mrow>
                                                  <mo>)</mo>
                                                  </mrow>
                                                </mrow>
                                            </mfrac>
                                        </mrow>
                                    </math></MathML><Alternative>2.33 equals x bar minus 0.5 divided by left parenthesis 0.053 divided by square root of 1000 right parenthesis</Alternative></InlineEquation></Paragraph>
                        <Paragraph>Then <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                        <mrow>
                                            <mover accent="true">
                                                <mrow>
                                                  <mi>x</mi>
                                                </mrow>
                                                <mrow>
                                                  <mo>¯</mo>
                                                </mrow>
                                            </mover>
                                            <mo>≈</mo>
                                            <mn>0.504</mn>
                                            <mo>=</mo>
                                            <mn>50.4</mn>
                                            <mo>%</mo>
                                        </mrow>
                                    </math></MathML></InlineEquation></Paragraph>
                        <Paragraph><b>Step 5</b>: State the Decision Rule</Paragraph>
                        <Paragraph>The market research team should reject the null hypothesis (and accept their claim that customers require more than 50% discount) if the survey of 1,000 customers shows that, on average, customers are persuaded to purchase products when the price discount is greater than 50.4%.</Paragraph>
                    </Answer>
                </Activity>
            </Section>
        </Session>
        <Session>
            <Title>6 P-value</Title>
            <Paragraph>In our previous discussion, we examined a case study involving a digital marketing agency’s new advertising campaign. We used a z-test to evaluate the claim that the campaign has not increased the average number of purchases per day. Let us recap our findings and delve deeper into their interpretation, focusing on the crucial concept of p-values and their role in statistical analysis.</Paragraph>
            <Paragraph>We calculated a z-statistic of 2.58, which exceeded our z-critical value of 1.65 (at a 95% confidence level). This led us to reject the null hypothesis, concluding that there was sufficient evidence to support the marketing executive’s claim of increased purchases. This is illustrated in the figure below.</Paragraph>
            <Figure>
                <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f011.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f011.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="edc94131" x_imagesrc="b126_unit3_s04_f011.eps.svg" x_imagewidth="555" x_imageheight="278"/>
                <Caption><b>Figure 18</b> Z critical value and z-statistic</Caption>
                <Description>The image depicts a bell-shaped curve, representing a standard normal distribution, with areas marked for the ‘fail to reject’ region and the ‘rejection’ region. The curve shows the z critical value at 1.65, which marks the boundary between these regions. A z-statistic of 2.58 is located in the shaded rejection region, indicating that any test statistic beyond this point would lead to rejecting the null hypothesis.</Description>
                <!--This graph is created by the author.-->
            </Figure>
            <Paragraph>Nevertheless, the z-statistic of 2.58 provides more information than simply allowing us to make a binary decision about rejecting or failing to reject the null hypothesis. It tells us how many standard deviations away from the mean our sample result lies, assuming the null hypothesis is true.</Paragraph>
            <Paragraph>While the z-critical value approach is useful, it does not tell us the exact probability of obtaining our result if the null hypothesis were true. This is where the concept of <b><i>p-values</i></b> becomes invaluable.</Paragraph>
            <Paragraph>The p-value is a fundamental concept in statistical analysis used to quantify the statistical significance of observed results. It represents the probability of obtaining an effect equal to or more extreme than the one observed, assuming that the null hypothesis is true.</Paragraph>
            <Paragraph>In our context, the p-value represents the probability of obtaining a test statistic as extreme as, or more extreme than, our observed z-statistic of 2.58, assuming the null hypothesis (the advertising campaign had no or negative effect) is true.</Paragraph>
            <Paragraph>Key Aspects of P-Values:</Paragraph>
            <Paragraph>1. Null Hypothesis: The p-value is based on two hypotheses:</Paragraph>
            <BulletedList>
                <ListItem>H₀: Typically assumes no difference or effect. In our case, H₀ stated that the digital marketing campaign would produce equal or less than average monthly purchase results (µ ≤ 50.20).</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>H₁: Assumes the null hypothesis is untrue. Our H₁ stated that the campaign would produce greater than average monthly purchase results (µ &gt; 50.20).</ListItem>
            </BulletedList>
            <Paragraph>2. Significance Level: Often denoted as alpha (α), the significance level is the threshold below which a p-value is considered statistically significant. In our original analysis, we used a 95% confidence level, which corresponds to a significance level (α) of 5% or 0.05.</Paragraph>
            <Paragraph>3. Interpretation: A smaller p-value suggests stronger evidence against the null hypothesis. However, it is crucial to note that the p-value does not indicate the size or importance of an observed effect.</Paragraph>
            <Section>
                <Title>6. 1 Calculating the p-value</Title>
                <Paragraph>To find the p-value corresponding to the z-statistic, we use Excel’s <b><i>NORM.S.DIST(z, cumulative)</i></b> function. The calculation method depends on the specific null hypothesis you are testing. Let us explore this in detail:</Paragraph>
                <Paragraph><b><i>NORM.S.DIST(z, cumulative)</i></b><language xml:lang="en-US"> function:</language></Paragraph>
                <Paragraph>Where:</Paragraph>
                <BulletedList>
                    <ListItem>"z" is the calculated z-statistic</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>cumulative" is a logical value:</ListItem>
                </BulletedList>
                <NumberedList class="lower-alpha">
                    <ListItem>TRUE returns the cumulative distribution function</ListItem>
                    <ListItem>FALSE returns the probability density function</ListItem>
                </NumberedList>
                <Paragraph>For hypothesis testing, we typically use the cumulative distribution function (TRUE).</Paragraph>
                <Paragraph>Calculating p-values based on the null hypothesis:</Paragraph>
                <Paragraph>1. For a two-tailed test:</Paragraph>
                <Paragraph>First, take the absolute value of your z-statistic, which is denoted as |z|.</Paragraph>
                <BulletedList>
                    <ListItem>p-value = 2 * (1 - NORM.S.DIST(|z|, TRUE))</ListItem>
                </BulletedList>
                <Paragraph>We use the absolute value in two-tailed tests because we are interested in the magnitude of the deviation from the null hypothesis, regardless of its direction. This approach leverages the symmetry of the normal distribution and simplifies our calculations.</Paragraph>
                <Paragraph>2. For a one-tailed test (upper tail): sample mean greater than or equal to hypothesised value</Paragraph>
                <BulletedList>
                    <ListItem>p-value = 1 - NORM.S.DIST(z, TRUE)</ListItem>
                </BulletedList>
                <Paragraph>3. For a one-tailed test (lower tail): sample mean less than or equal to hypothesised value </Paragraph>
                <BulletedList>
                    <ListItem>p-value = NORM.S.DIST(z, TRUE)</ListItem>
                </BulletedList>
                <Paragraph>This distinction is crucial because the direction of your hypothesis determines how you interpret the area under the normal distribution curve. By correctly aligning your p-value calculation with your null hypothesis, you ensure accurate interpretation of your statistical results.</Paragraph>
                <Paragraph>Explanation in terms of probability:</Paragraph>
                <BulletedList>
                    <ListItem>Two-tailed test: The p-value represents the probability of observing a test statistic as extreme as, or more extreme than, the calculated z-statistic in either direction, assuming the null hypothesis is true. We multiply by 2 to account for both tails of the distribution.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>Upper-tail test: The p-value represents the probability of observing a test statistic as extreme as, or more extreme than, the calculated z-statistic in the upper tail, assuming the null hypothesis is true.</ListItem>
                </BulletedList>
                <BulletedList>
                    <ListItem>Lower-tail test: The p-value represents the probability of observing a test statistic as extreme as, or more extreme than, the calculated z-statistic in the lower tail, assuming the null hypothesis is true.</ListItem>
                </BulletedList>
                <Paragraph>Remember, the z-statistic represents how many standard deviations your sample mean is from the population mean under the null hypothesis. The NORM.S.DIST() function then translates this z-statistic into a probability, allowing you to make informed decisions about rejecting or failing to reject your null hypothesis in various business scenarios.</Paragraph>
                <Paragraph>In our marketing campaign (upper-tail test) example, we calculated a z-statistic of 2.58. To find the probability represented by this z-statistic, we use: =NORM.S.DIST(2.58, TRUE)</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f013.eps.jpg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f013.eps.jpg" x_folderhash="9cb7b1d8" x_contenthash="432be460" x_imagesrc="b126_unit3_s04_f013.eps.jpg" x_imagewidth="578" x_imageheight="230"/>
                    <Caption><b>Figure 19</b> NORM.S.DIST(z, TRUE)</Caption>
                    <Description>The image displays an Excel formula, =NORM.S.DIST(2.58,TRUE), which calculates the cumulative distribution function (CDF) for a standard normal distribution at a z-value of 2.58.</Description>
                </Figure>
                <Paragraph>This returns approximately 0.9951, or 99.51%.</Paragraph>
                <Paragraph>Under the null hypothesis (assuming the marketing campaign had no effect), there is a 99.51% chance that we would observe a z-statistic less than or equal to 2.58.</Paragraph>
                <Paragraph>The p-value represents the probability of obtaining a result as extreme as, or more extreme than, the observed result, assuming the null hypothesis is true.</Paragraph>
                <Paragraph>In our one-tailed test looking for an increase, “more extreme” means values greater than our observed z-statistic. To calculate the p-value, we find the area in the tail beyond our z-statistic: </Paragraph>
                <Paragraph>p-value = 1 - 0.9951 = 0.0049 or 0.49%</Paragraph>
                <Paragraph>To visualise this (Figure 15):</Paragraph>
                <NumberedList class="lower-alpha">
                    <ListItem>The area to the left of z = 2.58 under the standard normal curve (approximately 99.51% of the total area).</ListItem>
                </NumberedList>
                <NumberedList class="lower-alpha">
                    <ListItem>The p-value gives us the remaining area to the right of z = 2.58 (approximately 0.49% of the total area).</ListItem>
                </NumberedList>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f014.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f014.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="4f6c5ece" x_imagesrc="b126_unit3_s04_f014.eps.svg" x_imagewidth="573" x_imageheight="263"/>
                    <Caption><b>Figure 20</b> P-value</Caption>
                    <Description>The image shows a bell curve representing a standard normal distribution, with a z-statistic of 2.58 marked on the far right side of the curve. The shaded area under the curve, covering 99.51% of the total area, represents the cumulative probability up to the z-value of 2.58. The remaining 0.49% of the area, located beyond the z-statistic, corresponds to the p-value.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>For our marketing campaign example, this means:</Paragraph>
                <NumberedList class="lower-alpha">
                    <ListItem>Under the null hypothesis (assuming the campaign had no effect), there is a 99.51% chance that we would observe a z-statistic less than or equal to 2.58.</ListItem>
                </NumberedList>
                <NumberedList class="lower-alpha">
                    <ListItem>There is only a 0.49% chance (our p-value) of observing a z-statistic of 2.58 or greater if the null hypothesis were true.</ListItem>
                </NumberedList>
                <Paragraph>The p-value is smaller than the conventional significance level of 5%. This provides strong evidence against the null hypothesis, supporting our decision to reject it and conclude that the marketing campaign likely had a significant positive effect on purchases.</Paragraph>
            </Section>
        </Session>
        <Session>
            <Title>7 Hypothesis testing for population proportions</Title>
            <Paragraph>In previous sessions, we focused on problems involving population and sample means. However, the z-test has broader applications, including its use in solving problems related to population proportions.</Paragraph>
            <Paragraph>Proportions, also known as relative frequencies, represent the fraction of items in a specific group or category within a larger sample. We calculate proportions by dividing the number of items in a particular group by the total number of items in the sample. This calculation provides a representation of the quantity of items belonging to a specific category, typically expressed as a fraction or percentage.</Paragraph>
            <Figure>
                <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_u03_s03_f33.tif" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_u03_s03_f33.tif" x_printonly="y" x_folderhash="9cb7b1d8" x_contenthash="1ad173fb" x_imagesrc="b126_u03_s03_f33.tif.jpg" x_imagewidth="580" x_imageheight="415">.<!-- Asset 401901--></Image>
                <Caption><b>Figure 21</b> Data made up</Caption>
                <Alternative>Cartoon showing a pie chart in a meeeting room with a tag line</Alternative>
                <Description>A pie chart in front of the meeting room. The tag line says ‘86.4% of people will believe any data you put in a PowerPoint side, even it you just totally made it up to prove your point’.</Description>
            </Figure>
            <Paragraph>In the realm of statistical and data analysis, proportions serve several important functions:</Paragraph>
            <BulletedList>
                <ListItem>Characterising variable distributions: Proportions help us understand how different categories or values are distributed within a dataset.</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>Contrasting distinct groups: By comparing proportions, we can identify differences or similarities between various categories or subsets within a sample.</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>Summarising categorical data: Proportions offer a concise way to present information about categorical variables, making it easier to grasp the composition of a dataset.</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>Hypothesis testing: We can use proportions to test hypotheses about population parameters, similar to how we use means in other statistical tests.</ListItem>
            </BulletedList>
            <Paragraph>The application of proportions in statistical analysis allows decision-makers to draw meaningful conclusions about population characteristics based on sample data. This approach proves particularly useful when dealing with categorical variables or when we need to understand the relative occurrence of specific attributes within a population.</Paragraph>
            <Paragraph>The z-test for proportions, specifically, allows us to make inferences about population proportions based on sample data. This test helps determine whether an observed sample proportion differs significantly from a hypothesised population proportion. </Paragraph>
        </Session>
        <Session>
            <Title>7.1 Practical example</Title>
            <Paragraph>To illustrate the concept of proportions, let us revisit our <u>digital marketing dataset</u> containing 80 customers in a sample. In addition to the monthly purchases data, we also have a column labelled "big customer". This column identifies customers who have made over 55 purchases per month. In this sample, we find that 32 customers are identified as big customers.</Paragraph>
            <Paragraph>Using this dataset, we can demonstrate how to calculate and interpret proportions:</Paragraph>
            <BulletedList>
                <ListItem>Identify the specific group: Our group of interest is “big customers”.</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>Count the number of items in the group: We have 32 customers classified as “big customers”.</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>Calculate the proportion: We divide the number of big customers by the total sample size.</ListItem>
            </BulletedList>
            <BulletedList>
                <ListItem>Proportion = <InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mfrac>
                                        <mrow>
                                            <mn>32</mn>
                                        </mrow>
                                        <mrow>
                                            <mn>80</mn>
                                        </mrow>
                                    </mfrac>
                                </mrow>
                            </math>
</MathML></InlineEquation> = 0.4 or 40%</ListItem>
            </BulletedList>
            <Paragraph>This proportion tells us that 40% of the customers in our sample are considered "big customers" based on our definition.</Paragraph>
            <Paragraph>We can use this proportion for various analytical purposes:</Paragraph>
            <NumberedList class="decimal">
                <ListItem>Describing the customer base: We can state that two-fifths of our sampled customers are high-volume purchasers, making over 55 purchases per month.</ListItem>
            </NumberedList>
            <NumberedList class="decimal">
                <ListItem>Segmentation analysis: This proportion could inform marketing strategies, helping to tailor approaches for different customer segments. With 40% being big customers, we might consider developing specific retention strategies for this significant group.</ListItem>
            </NumberedList>
            <NumberedList class="decimal">
                <ListItem>Trend analysis: By calculating this proportion over time, we can track changes in the composition of our customer base. An increase in this proportion might indicate successful upselling strategies, while a decrease could signal a need for customer retention efforts.</ListItem>
            </NumberedList>
            <NumberedList class="decimal">
                <ListItem>Hypothesis testing: We might want to test whether the true population proportion of big customers differs from a hypothesised value. In this case, we would use a z-test for proportions.</ListItem>
            </NumberedList>
            <Paragraph>Here, we are particularly interested in hypothesis testing. For example, a marketing executive reviews this data and formulates a claim that the percentage of big customers in the <i>entire population</i> is more than 30%. We want to test this claim using a hypothesis test. </Paragraph>
            <Paragraph>Question: At a 95% confidence level, is there enough evidence to support the marketing executive’s claim that the population proportion of big customers is more than 30%?</Paragraph>
            <Paragraph>We will use the following formula to test proportions:</Paragraph>
            <Equation>
                <MathML>
                    <math xmlns="http://www.w3.org/1998/Math/MathML" display="block" scriptlevel="0" displaystyle="true">
                        <mrow>
                            <mi>Z</mi>
                            <mo>=</mo>
                            <mfrac>
                                <mrow>
                                    <mover>
                                        <mrow>
                                            <mi>p</mi>
                                        </mrow>
                                        <mrow>
                                            <mo>^</mo>
                                        </mrow>
                                    </mover>
                                    <mo>⁢</mo>
                                    <msub>
                                        <mrow>
                                            <mo>−</mo>
                                            <mi>p</mi>
                                        </mrow>
                                        <mrow>
                                            <mi>o</mi>
                                        </mrow>
                                    </msub>
                                </mrow>
                                <mrow>
                                    <msqrt>
                                        <mrow>
                                            <mfrac>
                                                <mrow>
                                                  <msub>
                                                  <mrow>
                                                  <mi>p</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mi>o</mi>
                                                  </mrow>
                                                  </msub>
                                                  <mo>(</mo>
                                                  <mn>1</mn>
                                                  <mo>⁢</mo>
                                                  <mo>−</mo>
                                                  <msub>
                                                  <mrow>
                                                  <mi>p</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mi>o</mi>
                                                  </mrow>
                                                  </msub>
                                                  <mo>)</mo>
                                                </mrow>
                                                <mrow>
                                                  <mi>n</mi>
                                                </mrow>
                                            </mfrac>
                                        </mrow>
                                    </msqrt>
                                </mrow>
                            </mfrac>
                        </mrow>
                    </math>
                </MathML>
            </Equation>
            <Paragraph> p̂ = sample proportion </Paragraph>
            <Paragraph>p₀ = population proportion under the null hypothesis</Paragraph>
            <Paragraph>n = sample size </Paragraph>
            <Paragraph><language xml:lang="en-US">Step 1: Formulate the hypotheses</language></Paragraph>
            <BulletedList>
                <ListItem>H₀: p ≤ 0.30 (population proportion is 30% or less)</ListItem>
                <ListItem>H₁: p &gt; 0.30 (population proportion is more than 30%)</ListItem>
            </BulletedList>
            <Paragraph>Step 2: Determine the z-statistic</Paragraph>
            <Paragraph>Given information:</Paragraph>
            <BulletedList>
                <ListItem>n = 80 customers</ListItem>
                <ListItem>p̂ = 0.4 </ListItem>
                <ListItem>p₀ = 0.3 </ListItem>
            </BulletedList>
            <Paragraph>We use the z-test for proportions. The formula is:<InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                            <mrow>
                                <mi>Z</mi>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mn>0.4</mn>
                                        <mo>−</mo>
                                        <mn>0.3</mn>
                                    </mrow>
                                    <mrow>
                                        <msqrt>
                                            <mrow>
                                                <mfrac>
                                                  <mrow>
                                                  <mn>0.3</mn>
                                                  <mo>(</mo>
                                                  <mn>1</mn>
                                                  <mo>−</mo>
                                                  <mn>0.3</mn>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>80</mn>
                                                  </mrow>
                                                </mfrac>
                                            </mrow>
                                        </msqrt>
                                    </mrow>
                                </mfrac>
                                <mo>=</mo>
                                <mn>1.952</mn>
                            </mrow>
                        </math>
</MathML></InlineEquation></Paragraph>
            <Paragraph>Step 3: Determine the critical value</Paragraph>
            <Paragraph>For an upper tailed test, at α = 5%, we use the Excel function: =NORM.S.INV(0.95)</Paragraph>
            <BulletedList>
                <ListItem>The z critical value is 1.645.</ListItem>
            </BulletedList>
            <Paragraph>Step 4: Compare the z-statistic to the critical value and make a decision.</Paragraph>
            <Paragraph>Our calculated z-statistic (1.952) is greater than the critical value (1.645).</Paragraph>
            <Paragraph>Since the calculated z-statistic exceeds the critical value, we reject the null hypothesis.</Paragraph>
            <Paragraph>Conclusion:</Paragraph>
            <Paragraph>At a 95% confidence level, there is enough evidence to support the marketing executive’s claim that the population proportion of big customers is more than 30%. The sample data provides sufficient evidence to conclude that the true population proportion is significantly higher than 30%.</Paragraph>
            <Activity>
                <Heading>Activity 6: Testing Proportion Hypothesis</Heading>
                <Timing>Allow around 40 minutes for this activity.</Timing>
                <Question>
                    <Paragraph>A cinema chain has records indicating that 70% of customers are willing to spend £15 on a 3D movie ticket. A ticket agent believes that this percentage has changed. To test this belief, the agent surveys 200 individuals and finds that 128 of them are willing to spend £15 on a 3D movie ticket. At the 95% confidence level, is there enough evidence to support the agent’s belief that the proportion has changed?</Paragraph>
                </Question>
                <Interaction>
                    <FreeResponse size="paragraph" id="fr_1222"/>
                </Interaction>
                <Answer>
                    <Paragraph><language xml:lang="en-US">Given information:</language></Paragraph>
                    <BulletedList>
                        <ListItem>Sample size (n) = 200 individuals</ListItem>
                        <ListItem>Number willing to spend £15 = 128</ListItem>
                        <ListItem>Sample proportion (p̂) = 128/200 = 0.64 or 64%</ListItem>
                        <ListItem>Claimed population proportion (p₀) = 0.70 or 70%</ListItem>
                        <ListItem>Confidence level = 95% (significance level α = 0.05)</ListItem>
                    </BulletedList>
                    <Paragraph>Step 1: Formulate the hypotheses</Paragraph>
                    <BulletedList>
                        <ListItem>H₀: p = 0.70 (population proportion is 70%)</ListItem>
                        <ListItem>H₁: p ≠ 0.70 (population proportion is not 70%)</ListItem>
                    </BulletedList>
                    <Paragraph>Step 2: Determine the z-statistic</Paragraph>
                    <Paragraph>We use the z-test for proportions. The formula is:</Paragraph>
                    <Equation>
                        <MathML>
                            <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline" scriptlevel="0" displaystyle="false">
                                <mrow>
                                    <mi>Z</mi>
                                    <mo>=</mo>
                                    <mfrac>
                                        <mrow>
                                            <mn>0.64</mn>
                                            <mo>−</mo>
                                            <mn>0.70</mn>
                                        </mrow>
                                        <mrow>
                                            <msqrt>
                                                <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mn>0.70</mn>
                                                  <mo>(</mo>
                                                  <mn>1</mn>
                                                  <mo>−</mo>
                                                  <mn>0.70</mn>
                                                  <mo>)</mo>
                                                  </mrow>
                                                  <mrow>
                                                  <mn>200</mn>
                                                  </mrow>
                                                  </mfrac>
                                                </mrow>
                                            </msqrt>
                                        </mrow>
                                    </mfrac>
                                    <mo>=</mo>
                                    <mn>1.852</mn>
                                </mrow>
                            </math>
                        </MathML>
                    </Equation>
                    <Paragraph>Step 3: Determine the critical value</Paragraph>
                    <Paragraph>For a two-tailed test, at α = 5%, use the Excel function: </Paragraph>
                    <BulletedList>
                        <ListItem>Upper tail = NORM.S.INV(0.975)</ListItem>
                        <ListItem>Lower tail = NORM.S.INV(0.025)</ListItem>
                    </BulletedList>
                    <Paragraph>The z critical value is ±1.96.</Paragraph>
                    <Paragraph>Step 4: Compare the z-statistic to the critical value and make a decision</Paragraph>
                    <Paragraph>Our calculated z-statistic (-1.852) is greater than -1.96 and less than 1.96.</Paragraph>
                    <Paragraph>Since the calculated z-statistic does not exceed the critical values (±1.96), we fail to reject the null hypothesis. At a 95% confidence level, there is not enough evidence to support the ticket agent’s belief that the proportion of customers willing to spend £15 on a 3D movie ticket has changed from 70%. The sample data does not provide sufficient evidence to conclude that the true population proportion is significantly different from 70%.</Paragraph>
                </Answer>
            </Activity>
        </Session>
        <Session>
            <Title>8 T-test</Title>
            <Paragraph>In previous discussions, we examined hypothesis testing using z-tests, which we apply when we know the population’s standard deviation. However, real-world scenarios often present a different challenge: the population’s standard deviation is frequently unknown. This common occurrence requires us to adjust our approach.</Paragraph>
            <Paragraph>When decision-makers encounter an unknown population standard deviation, they estimate this crucial parameter using the sample’s standard deviation. This estimation process introduces additional uncertainty into our calculations, necessitating the use of a different statistical tool: the t-test.</Paragraph>
            <Figure>
                <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_u03_s04_f05.tif.jpg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_u03_s04_f05.tif.jpg" x_folderhash="9cb7b1d8" x_contenthash="20c4902d" x_imagesrc="b126_u03_s04_f05.tif.jpg" x_imagewidth="580" x_imageheight="336"/>
                <Caption><b>Figure 22</b> Sample vs population</Caption>
                <Description>An image showing several figurines grouped in a circle which represents a population; a slice detached from the circle represents a sample.</Description>
            </Figure>
            <Section>
                <Title>8.1 One sample t-tests: comparing a sample mean against the population mean</Title>
                <Paragraph>The one-sample t-test operates similarly to the z-test, with the primary difference lying in how we determine the critical value. As you may recall from the earlier section, the shape of the t-distribution depends on the sample size, which slightly alters our calculated results of t critical value).</Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f015.eps.svg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f015.eps.svg" x_folderhash="9cb7b1d8" x_contenthash="c1d0b6f7" x_imagesrc="b126_unit3_s04_f015.eps.svg" x_imagewidth="560" x_imageheight="277"/>
                    <Caption><b>Figure 23</b> Z-distribution vs t-distribution with different sample size</Caption>
                    <Description>The graph illustrates the comparison between the z-distribution and two t-distributions with different sample sizes. The blue curve represents the z-distribution (normal distribution), while the orange curve shows the t-distribution with a smaller sample size, and the green curve depicts the t-distribution with a larger sample size. As the graph indicates, the t-distribution with a smaller sample size has the thickest tails, reflecting greater variability. As the sample size increases, the t-distribution (green curve) becomes more similar to the z-distribution, which has the narrowest peak and the thinnest tails, demonstrating how t-distributions converge to the normal distribution as sample size grows.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>To fully comprehend this difference, we need to understand the concept of degrees of freedom (DF). DF represent the amount of independent information available for estimating statistical parameters. More degrees of freedom generally lead to more reliable estimates.</Paragraph>
                <Paragraph>For a one-sample t-test, we calculate degrees of freedom as the sample size minus one.The formula is:</Paragraph>
                <Paragraph>DF = n - 1</Paragraph>
                <Paragraph>Where:</Paragraph>
                <BulletedList>
                    <ListItem>n represents the sample size</ListItem>
                </BulletedList>
                <Paragraph>We subtract 1 because we estimate one parameter (the population mean) in a one-sample t-test. This reduction reflects the "cost" of estimating the unknown parameter. Larger sample sizes result in more degrees of freedom. This increase in DF improves the precision of our estimates and enhances the power of our statistical tests.</Paragraph>
                <Paragraph>The t-statistic formula is typically expressed as:</Paragraph>
                <Equation>
                    <MathML>
                        <math xmlns="http://www.w3.org/1998/Math/MathML">
                            <mrow>
                                <mi>Z</mi>
                                <mo>=</mo>
                                <mfrac>
                                    <mrow>
                                        <mover accent="true">
                                            <mi>x</mi>
                                            <mo>¯</mo>
                                        </mover>
                                        <mo>−</mo>
                                        <mi>μ</mi>
                                    </mrow>
                                    <mrow>
                                        <mrow>
                                            <mo>(</mo>
                                            <mrow>
                                                <mfrac>
                                                  <mi>σ</mi>
                                                  <mrow>
                                                  <msqrt>
                                                  <mi>n</mi>
                                                  </msqrt>
                                                  </mrow>
                                                </mfrac>
                                            </mrow>
                                            <mo>)</mo>
                                        </mrow>
                                    </mrow>
                                </mfrac>
                            </mrow>
                        </math>
                    </MathML>
                    <Alternative>cap z equals x bar minus mu divided by left parenthesis sigma divided by square root of n right parenthesis</Alternative>
                </Equation>
                <Paragraph><InlineEquation><MathML><math xmlns="http://www.w3.org/1998/Math/MathML">
                                <mover accent="true">
                                    <mi>x</mi>
                                    <mo>¯</mo>
                                </mover>
                            </math></MathML></InlineEquation>= sample mean</Paragraph>
                <Paragraph><language xml:lang="en-US">μ = hypothesised population mean</language></Paragraph>
                <Paragraph><language xml:lang="en-US">s = sample standard deviation</language></Paragraph>
                <Paragraph><language xml:lang="en-US">n = sample size</language></Paragraph>
                <Paragraph><language xml:lang="en-US">To perform a one-sample t-test, we must calcuate t-statistic and then determine the t critical value. Unlike z critical values, which use a single function, Excel provides specific functions for calculating t critical values for both one-tailed and two-tailed tests. However, we can modify these functions to calculate values for either type of test.</language></Paragraph>
                <SubSection>
                    <Title>8.1.1 Performing a One-Tailed One-Sample T-Test</Title>
                    <Paragraph>For a one-tailed one-sample t-test, we use the T.INV function in Excel.</Paragraph>
                    <Paragraph>The syntax is: <b><i>=T.INV(probability, degrees_freedom)</i></b></Paragraph>
                    <Figure>
                        <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f016.eps.jpg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f016.eps.jpg" x_folderhash="9cb7b1d8" x_contenthash="d75b9650" x_imagesrc="b126_unit3_s04_f016.eps.jpg" x_imagewidth="578" x_imageheight="253"/>
                        <Caption><b>Figure 24</b> T.INV Function</Caption>
                        <Description>The image shows an Excel function, T.INV, which calculates the inverse of the Student’s t-distribution. It requires two inputs: the probability associated with the t-distribution and the degrees of freedom (deg_freedom), which defines the specific t-distribution.</Description>
                        <!--This graph is created by the author.-->
                    </Figure>
                    <Paragraph>Where:</Paragraph>
                    <BulletedList>
                        <ListItem>probability: This value represents the cumulative probability for which you want to find the corresponding t-value. It determines the boundary of the t-distribution.</ListItem>
                        <ListItem>degrees_freedom: This equals N-1, where N is the sample size. It defines the specific shape of the t-distribution.</ListItem>
                    </BulletedList>
                    <Paragraph>Let us explain the "probability" parameter further, as it relates to the boundary of the t-distribution:</Paragraph>
                    <BulletedList>
                        <ListItem>The probability input determines where on the t-distribution you want to find the t-value.</ListItem>
                    </BulletedList>
                    <BulletedList>
                        <ListItem>For a one-tailed test with a 95% confidence level:<BulletedSubsidiaryList><SubListItem>Use 0.05 for an upper-tailed test</SubListItem><SubListItem>Use 0.95 for a lower-tailed test</SubListItem></BulletedSubsidiaryList></ListItem>
                    </BulletedList>
                    <BulletedList>
                        <ListItem>The resulting t-value represents the boundary between the “rejection” and the “fail to reject” region of the hypothesis test.</ListItem>
                    </BulletedList>
                    <Paragraph>For example, if we want to conduct a one-tailed one-sample t-test with a significance level of 0.05 and a sample size of 11 (giving 10 degrees of freedom):</Paragraph>
                    <Paragraph>The lower tail refers to the left side of the t-distribution.</Paragraph>
                    <BulletedList>
                        <ListItem>Formula: To find the critical value for the lower tail, use: =T.INV(0.05, 10)  , which return -1.812</ListItem>
                    </BulletedList>
                    <Paragraph>The upper tail refers to the right side of the t-distribution.</Paragraph>
                    <BulletedList>
                        <ListItem>Formula: To find the critical value for the upper tail, use: =T.INV(0.95, 10), which return 1.812</ListItem>
                    </BulletedList>
                    <BulletedList>
                        <ListItem>This boundary is crucial because:<BulletedSubsidiaryList><SubListItem>In an upper-tailed test, if your calculated t-statistic is greater than this boundary, you reject the null hypothesis.</SubListItem><SubListItem>In a lower-tailed test, if your calculated t-statistic is less than this boundary, you reject the null hypothesis.</SubListItem></BulletedSubsidiaryList></ListItem>
                    </BulletedList>
                    <BulletedList>
                        <ListItem>The shape of the t-distribution, and thus these boundaries, changes with the degrees of freedom. As degrees of freedom increase, the t-distribution approaches the normal distribution.</ListItem>
                    </BulletedList>
                </SubSection>
                <SubSection>
                    <Title>8.1.2 Performing a two-tailed one-sample T-test</Title>
                    <Paragraph>For a two-tailed one-sample t-test, Excel also provides a specific function: <b><i>T.INV.2T</i></b>. </Paragraph>
                    <Paragraph>The syntax is: <b><i>=T.INV.2T(probability, degrees_freedom)</i></b></Paragraph>
                    <Figure>
                        <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f017.eps.jpg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f017.eps.jpg" x_folderhash="9cb7b1d8" x_contenthash="02dfcba2" x_imagesrc="b126_unit3_s04_f017.eps.jpg" x_imagewidth="578" x_imageheight="231"/>
                        <Caption><b>Figure 25</b> T.INV.2T Function</Caption>
                        <Description>The image shows the Excel function T.INV.2T, which calculates the two-tailed inverse of the Student’s t-distribution. It requires two inputs: the probability for the two-tailed distribution and the degrees of freedom (deg_freedom) that define the specific t-distribution. This function is typically used in two-tailed hypothesis testing, where both extremes of the distribution are considered in the analysis.</Description>
                        <!--This graph is created by the author.-->
                    </Figure>
                    <Paragraph>Where:</Paragraph>
                    <BulletedList>
                        <ListItem>probability: This value represents the cumulative probability for which you want to find the corresponding t-value. It determines the boundary of the t-distribution.</ListItem>
                        <ListItem>degrees_freedom: This equals N-1, where N is the sample size. It defines the specific shape of the t-distribution.</ListItem>
                    </BulletedList>
                    <Paragraph>Using our previous example of a two-tailed one-sample t-test with α = 5% and 10 degrees of freedom, we would enter: =T.INV.2T(0.05, 10) which returns 2.228</Paragraph>
                    <Paragraph>Remember that the T.INV.2T function returns the two-tailed t critical value, which is the absolute value for the positive side of the t-distribution. For a two-tailed test, the t-distribution has both positive and negative critical values. Therefore, when reporting the t critical value, it is necessary to use the ± sign to show both the upper and lower bounds of the critical region.</Paragraph>
                    <Paragraph>Thus, the t critical value for two tailed test = ± 2.228</Paragraph>
                    <Paragraph>This boundary is crucial because:</Paragraph>
                    <BulletedList>
                        <ListItem>If your calculated t-statistic falls beyond this boundary, you reject the null hypothesis.</ListItem>
                        <ListItem>If your t-statistic falls within these boundaries, you fail to reject the null hypothesis.</ListItem>
                    </BulletedList>
                    <Paragraph>We can still use T.INV(probability, degrees_freedom) to find t critical value for two-tailed one-sample t-test. You need to modify the probability by dividing the desired significance level by 2 to account for both tails.</Paragraph>
                    <Paragraph>For instance, for a two-tailed test with α = 5%:</Paragraph>
                    <BulletedList>
                        <ListItem>=T.INV(0.025, 10) for lower tail</ListItem>
                        <ListItem>=T.INV(0.975, 10) for upper tail</ListItem>
                    </BulletedList>
                </SubSection>
                <SubSection>
                    <Title>8.1.3 Practical Example</Title>
                    <Paragraph>Let us explore the application of a one-sample t-test in a practical business scenario. Consider our previous digital marketing example, where a company’s marketing team has implemented an advertising campaign aimed at increasing customer purchases beyond 50 purchases per customer. To assess the campaign’s effectiveness, they have collected data from a sample of 80 customers. Download the Excel file to review the data. <olink targetdoc="b126_4_digital_marketing">Excel file: Digital marketing</olink> (You may have already downloaded this file when working through Section 5.3.)</Paragraph>
                    <Paragraph>The marketing executive believes the campaign has been successful, hypothesising that the average number of purchases per day has increased compared to the pre-campaign average. They want to test this claim rigorously, using a 95% confidence level.</Paragraph>
                    <Paragraph>This scenario presents an ideal opportunity to apply the one-sample t-test, a statistical tool that allows us to determine whether a sample mean significantly differs from a known or hypothesised population mean.</Paragraph>
                    <Paragraph>Step 1: Formulate the Hypotheses</Paragraph>
                    <BulletedList>
                        <ListItem>H₀: μ ≤ 50</ListItem>
                        <ListItem>H₁: μ &gt; 50</ListItem>
                    </BulletedList>
                    <Paragraph>This formulation represents a one-tailed test, as we are specifically testing for an increase in purchases. The value 50 serves as our benchmark, possibly representing the pre-campaign average or a target set by the marketing team.</Paragraph>
                    <Paragraph>Step 2: Collect and Analyse Sample Data</Paragraph>
                    <Paragraph>In our digital marketing campaign example, we have gathered the following data:</Paragraph>
                    <Paragraph>n = 80 </Paragraph>
                    <Paragraph>x̄ = 53.02</Paragraph>
                    <Paragraph>s = 10.22 (we are dealing with sample now, so you should use STDEV.S() function for finding standard deviation)</Paragraph>
                    <Paragraph>Step 3: Calculate the T-Statistic</Paragraph>
                    <Paragraph>To quantify the difference between our sample mean and the hypothesised population mean, we calculate the t-statistic using the formula:</Paragraph>
                    <Equation>
                        <MathML>
                            <math xmlns="http://www.w3.org/1998/Math/MathML">
                                <mrow>
                                    <mi>t</mi>
                                    <mo>=</mo>
                                    <mfrac>
                                        <mrow>
                                            <mover accent="true">
                                                <mrow>
                                                  <mi>x</mi>
                                                </mrow>
                                                <mrow>
                                                  <mo>¯</mo>
                                                </mrow>
                                            </mover>
                                            <mo>−</mo>
                                            <mi>μ</mi>
                                        </mrow>
                                        <mrow>
                                            <mo>(</mo>
                                            <mrow>
                                                <mfrac>
                                                  <mrow>
                                                  <mi>S</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </msqrt>
                                                  </mrow>
                                                </mfrac>
                                            </mrow>
                                            <mo>)</mo>
                                        </mrow>
                                    </mfrac>
                                    <mo>=</mo>
                                    <mfrac>
                                        <mrow>
                                            <mn>53.025</mn>
                                            <mo>−</mo>
                                            <mn>50</mn>
                                        </mrow>
                                        <mrow>
                                            <mo>(</mo>
                                            <mfrac>
                                                <mrow>
                                                  <mn>10.22</mn>
                                                </mrow>
                                                <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mn>80</mn>
                                                  </mrow>
                                                  </msqrt>
                                                </mrow>
                                            </mfrac>
                                            <mo>)</mo>
                                        </mrow>
                                    </mfrac>
                                    <mo>=</mo>
                                    <mn>2.647</mn>
                                </mrow>
                            </math>
                        </MathML>
                    </Equation>
                    <Paragraph>Step 4: Determine t critical value:</Paragraph>
                    <Paragraph>For an upper tailed test with α = 0.05 and 79 degrees of freedom (n - 1), we input:</Paragraph>
                    <BulletedList>
                        <ListItem>=T.INV(0.95,79)</ListItem>
                    </BulletedList>
                    <Paragraph>The formula will return the t critical value, which in this case would be approximately 1.664.</Paragraph>
                    <Paragraph>Step 5: Compare the T-Statistic to T Critical Value</Paragraph>
                    <Paragraph>We now compare our calculated t-statistic to the critical value:</Paragraph>
                    <BulletedList>
                        <ListItem>Calculated t-statistic: 2.647</ListItem>
                    </BulletedList>
                    <BulletedList>
                        <ListItem>T Critical value: 1.646</ListItem>
                    </BulletedList>
                    <Paragraph>Since our calculated t-statistic (2.647) is greater than the critical t-value (1.646), we reject the null hypothesis.</Paragraph>
                    <Paragraph>Step 6: Draw Conclusions and Interpret Results</Paragraph>
                    <Paragraph>Based on our analysis, we have strong statistical evidence to conclude that the true average number of customer purchases after the marketing campaign is significantly higher than 50.</Paragraph>
                </SubSection>
            </Section>
            <Section>
                <Title>8.2 P-value</Title>
                <Paragraph>We can also find the p-value for t-test using Excel functions. For t-test, the Excel function is more complex than z-test. We have three different functions.</Paragraph>
                <Paragraph><i>Upper Tailed (One-Tailed) t-Test</i><language xml:lang="en-US">:</language></Paragraph>
                <Paragraph>Formula: =<b><i>T.DIST.RT(x, deg_freedom)</i></b></Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f018.eps.jpg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f018.eps.jpg" x_folderhash="9cb7b1d8" x_contenthash="2abda850" x_imagesrc="b126_unit3_s04_f018.eps.jpg" x_imagewidth="578" x_imageheight="251"/>
                    <Caption><b>Figure 26</b> T.DIST.RT function.</Caption>
                    <Description>The image shows the Excel function T.DIST.RT, which calculates the right-tailed probability of the Student’s t-distribution. It requires two inputs: x, the value to evaluate, and deg_freedom, the degrees of freedom that define the distribution.</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>Where:</Paragraph>
                <BulletedList>
                    <ListItem>You input the calcuated t-statistic as “x”</ListItem>
                    <ListItem>deg_freedom is the number of degree of freedom</ListItem>
                </BulletedList>
                <Paragraph>This function is used when we are testing if a sample mean is significantly greater than a hypothesised value.</Paragraph>
                <Paragraph>In our marketing campaign case, we found that our t-statistic = 2.643. </Paragraph>
                <Paragraph>We can use this function to find p-value: =T.DIST.RT(2.643, 79)</Paragraph>
                <Paragraph>This yields a p-value of approximately 0.005, indicating strong evidence that the campaign increased purchases.</Paragraph>
                <Paragraph>After exploring how you can calculate p-values for upper-tailed t-tests, it is important to understand that Microsoft Excel also offers a specific function for determining p-values in lower-tailed t-tests. You will find this function particularly valuable when you need to assess whether a sample mean is significantly less than a hypothesised value. Excel’s built-in capabilities will streamline your process, allowing you to perform efficient and accurate statistical analysis without resorting to manual calculations.</Paragraph>
                <Paragraph>You will encounter lower-tailed t-tests in various research scenarios where you focus on determining if a sample statistic is significantly lower than a population parameter. For example, in quality control, you might test whether the mean weight of a product is significantly less than the specified standard. In medical research, you could investigate whether a new treatment reduces symptoms significantly more than an existing treatment.</Paragraph>
                <Paragraph><i>Lower-Tailed (One-Tailed) t-Test:</i></Paragraph>
                <Paragraph>Formula: =<b><i>T.DIST(x, deg_freedom, cumulative)</i></b></Paragraph>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f019.eps.jpg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f019.eps.jpg" x_folderhash="9cb7b1d8" x_contenthash="ca84cf91" x_imagesrc="b126_unit3_s04_f019.eps.jpg" x_imagewidth="578" x_imageheight="237"/>
                    <Caption><b>Figure 27</b> T.DIST function</Caption>
                    <Description>The image shows the Excel function T.DIST, which calculates the Student’s t-distribution. It requires three inputs: x (the value to evaluate), deg_freedom (the degrees of freedom), and cumulative (a logical value that determines the type of distribution returned).</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>Where:</Paragraph>
                <BulletedList>
                    <ListItem>You input the calcuated t-statistic as “x”</ListItem>
                    <ListItem>deg_freedom is the number of degree of freedom</ListItem>
                    <ListItem>cumulative is set to “TRUE”</ListItem>
                </BulletedList>
                <Paragraph>This function is used when we are testing if a sample mean is significantly less than a hypothesised value.</Paragraph>
                <Paragraph>A negative t-statistic is used because we are looking at the lower tail of the distribution.</Paragraph>
                <Paragraph>Having explored both upper-tailed and lower-tailed t-tests, you should now turn your attention to two-tailed t-tests. Microsoft Excel continues to support your statistical analysis needs by offering a function that enables you to calculate p-values for two-tailed t-tests efficiently. This type of test broadens your analytical capabilities, as you will find it particularly useful when you need to determine whether a sample mean differs significantly from a hypothesised value in either direction, without specifying a particular tail of the distribution.</Paragraph>
                <Paragraph><i>Two-Tailed t-Test:</i></Paragraph>
                <Paragraph>Formula: =<i>T.DIST.2T(x, deg_freedom)</i></Paragraph>
                <Paragraph>Where:</Paragraph>
                <BulletedList>
                    <ListItem>You input the absolute value of calcuated t-statistic as “x”</ListItem>
                    <ListItem>deg_freedom is the number degree of freedom</ListItem>
                </BulletedList>
                <Figure>
                    <Image src="https://www.open.edu/openlearn/pluginfile.php/4939047/mod_oucontent/oucontent/158792/b126_unit3_s04_f020.eps.jpg" src_uri="https://openuniv.sharepoint.com/sites/bmodules/b126/lmimages/b126_unit3_s04_f020.eps.jpg" x_folderhash="9cb7b1d8" x_contenthash="26c7b61c" x_imagesrc="b126_unit3_s04_f020.eps.jpg" x_imagewidth="578" x_imageheight="229"/>
                    <Caption><b>Figure 28</b> T.DIST.2T function</Caption>
                    <Description>The image shows the Excel function T.DIST.2T, which calculates the two-tailed probability of the Student’s t-distribution. The function takes two inputs: x (the t-statistic value) and deg_freedom (the degrees of freedom).</Description>
                    <!--This graph is created by the author.-->
                </Figure>
                <Paragraph>This function is used when we are testing if a sample mean is significantly different (either higher or lower) from a hypothesised value. We use the absolute value of the t-statistic because we are considering both tails of the distribution.</Paragraph>
                <Activity>
                    <Heading>Activity 7: One sample t-test</Heading>
                    <Timing>Allow around 60 minutes for this activity.</Timing>
                    <Question>
                        <Paragraph>A marketing manager wants to assess whether a recent promotional campaign has increased the average sales per customer. Before the campaign, the average sales per customer were believed to be 35 units. The manager wants to test this claim rigorously at a 95% confidence level based on the sample data of 51 customers. Download the Excel file to review the data. <olink targetdoc="b126_4_sales_dataset">Excel file: Sales dataset</olink></Paragraph>
                        <Paragraph>Tip: The Excel function "Descriptive Statistics" provides all the information you need to calculate the t-statistic.</Paragraph>
                        <Paragraph>You can access via Data &gt; Data Analysis &gt; Descriptive Statistics.</Paragraph>
                        <BulletedList>
                            <ListItem>Type B2:B52 in the Input Range box </ListItem>
                            <ListItem>Tick "Summary Statistics" </ListItem>
                            <ListItem>Click OK</ListItem>
                        </BulletedList>
                        <Paragraph>What you will get Excel will show you important numbers including:</Paragraph>
                        <BulletedList>
                            <ListItem>Samplle mean (x̄)</ListItem>
                            <ListItem>Sample standard deviation (s)</ListItem>
                            <ListItem>Count (sample size - n)</ListItem>
                        </BulletedList>
                    </Question>
                    <Interaction>
                        <FreeResponse size="paragraph" id="fr4545"/>
                    </Interaction>
                    <Answer>
                        <Paragraph>Step 1: Formulate Hypotheses</Paragraph>
                        <BulletedList>
                            <ListItem>H₀: The average sales per customer is less than or equal to 35 units (H₀: μ ≤ 35).</ListItem>
                            <ListItem>H₁: The average sales per customer has increased (H₁: μ &gt; 35).</ListItem>
                        </BulletedList>
                        <Paragraph>Step 2: Obtain all the information needed to calculate t-statistics</Paragraph>
                        <BulletedList>
                            <ListItem>Sample size (n) = 51</ListItem>
                            <ListItem>Sample mean (x̄) = 38.235</ListItem>
                            <ListItem>Sample standard deviation (s) = 11.728</ListItem>
                        </BulletedList>
                        <Paragraph>Step 3: Calculate the T-Statistic</Paragraph>
                        <Equation>
                            <MathML>
                                <math xmlns="http://www.w3.org/1998/Math/MathML">
                                    <mrow>
                                        <mi>t</mi>
                                        <mo>=</mo>
                                        <mfrac>
                                            <mrow>
                                                <mover accent="true">
                                                  <mrow>
                                                  <mi>x</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <mo>¯</mo>
                                                  </mrow>
                                                </mover>
                                                <mo>−</mo>
                                                <mi>μ</mi>
                                            </mrow>
                                            <mrow>
                                                <mo>(</mo>
                                                <mrow>
                                                  <mfrac>
                                                  <mrow>
                                                  <mi>S</mi>
                                                  </mrow>
                                                  <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mi>n</mi>
                                                  </mrow>
                                                  </msqrt>
                                                  </mrow>
                                                  </mfrac>
                                                </mrow>
                                                <mo>)</mo>
                                            </mrow>
                                        </mfrac>
                                        <mo>=</mo>
                                        <mfrac>
                                            <mrow>
                                                <mn>38.235</mn>
                                                <mo>−</mo>
                                                <mn>35</mn>
                                            </mrow>
                                            <mrow>
                                                <mo>(</mo>
                                                <mfrac>
                                                  <mrow>
                                                  <mn>11.728</mn>
                                                  </mrow>
                                                  <mrow>
                                                  <msqrt>
                                                  <mrow>
                                                  <mn>51</mn>
                                                  </mrow>
                                                  </msqrt>
                                                  </mrow>
                                                </mfrac>
                                                <mo>)</mo>
                                            </mrow>
                                        </mfrac>
                                        <mo>=</mo>
                                        <mn>1.970</mn>
                                    </mrow>
                                </math>
                            </MathML>
                        </Equation>
                        <Paragraph>Step 4: Determine t-crtical value</Paragraph>
                        <Paragraph>There are 51 customers in the sample. So the degree of freedom = 51 -1 = 50</Paragraph>
                        <Paragraph>For an upper tailed test with α = 0.05 and 50 degrees of freedom, we input:</Paragraph>
                        <BulletedList>
                            <ListItem>=T.INV(0.95,50)</ListItem>
                        </BulletedList>
                        <Paragraph>The formula will return the t critical value, which in this case would be approximately 1.676.</Paragraph>
                        <Paragraph>Step 5: Make the Decision</Paragraph>
                        <BulletedList>
                            <ListItem>t-Statistic: 1.970</ListItem>
                            <ListItem>t-Critical Value: 1.676</ListItem>
                        </BulletedList>
                        <Paragraph>Since the calculated t-statistic (1.970) is greater than the critical t-value (1.676), we reject the null hypothesis (H<font val="Cambria Math">₀</font>).</Paragraph>
                        <Paragraph>Moreover, you calculate the p-value as well.</Paragraph>
                        <Paragraph>Since this is a one-tailed (upper-tailed) test, use the T.DIST.RT function in Excel to calculate the p-value. </Paragraph>
                        <BulletedList>
                            <ListItem>=T.DIST.RT(1.970, 50)</ListItem>
                        </BulletedList>
                        <Paragraph>Excel will return the p-value approximately 0.0277</Paragraph>
                        <Paragraph>This p-value is less than the significance level of 0.05, confirming the rejection of the null hypothesis.</Paragraph>
                    </Answer>
                </Activity>
            </Section>
        </Session>
        <Session>
            <Title>9 Summary</Title>
            <Paragraph>In this course, you have grasped the fundamental principles of formulating a hypothesis, learning to distinguish between one-tailed and two-tailed tests. These skills enable you to draw meaningful conclusions from data across various business scenarios. You also explored z-tests and t-tests, two fundamental statistical tools essential for data analysis in business contexts. You learned the characteristics and applications of these tests, understanding when to use each based on factors like sample size, population parameters, and data nature. Through practical examples and exercises, you applied these methods to real-world business problems, reinforcing your understanding and building confidence in your analytical skills. You practised formulating hypotheses, calculating test statistics, and interpreting p-values to draw meaningful conclusions from data. By mastering these techniques, you have developed the ability to critically assess data-driven claims with confidence, a crucial skillset in the increasingly data-driven landscape of business and management. You also gained insights into the limitations and assumptions of these tests, enabling you to approach statistical analysis with a critical eye and avoid common pitfalls in data interpretation.</Paragraph>
        </Session>
        <Session>
            <Title>10 Reflection</Title>
            <Paragraph>Now that you have reached the end of this course, complete the following reflection activity to check your progress against the key learning points.</Paragraph>
            <Activity>
                <Heading>Activity 8: Reflection</Heading>
                <Timing>Allow around 15 minutes for this activity.</Timing>
                <Multipart>
                    <Part>
                        <Question>
                            <Paragraph>This activity will help you to:</Paragraph>
                            <BulletedList>
                                <ListItem>Summarise your learning </ListItem>
                                <ListItem>Reflect on the extent to which you have achieved key learning points</ListItem>
                                <ListItem>Think about what you still need to do to fully achieve the key learning points</ListItem>
                            </BulletedList>
                        </Question>
                    </Part>
                    <Part>
                        <Heading>Part A:</Heading>
                        <Question>
                            <Paragraph>In the table below, indicate whether you feel very confident (3), confident (2) or not so confident (1) about having achieved each of the key learning points for this course.</Paragraph>
                            <Table style="topbottomrules" class="normal">
                                <TableHead>Table 1</TableHead>
                                <tbody>
                                    <tr>
                                        <th>After working through this course, you should be able to:</th>
                                        <th>At the end of this course, you feel:</th>
                                    </tr>
                                    <tr>
                                        <td>Differentiate between null and alternative hypotheses for evaluations</td>
                                        <td><FreeResponse size="single line" id="fr_33222"/></td>
                                    </tr>
                                    <tr>
                                        <td>Understand one-tailed or two-tailed tests in hypothesis testing</td>
                                        <td><FreeResponse size="single line" id="fr_332322"/></td>
                                    </tr>
                                    <tr>
                                        <td>Understand when to use z-tests vs. t-tests</td>
                                        <td><FreeResponse size="single line" id="fr_332222"/></td>
                                    </tr>
                                    <tr>
                                        <td>Perform z-tests for comparing means and proportions</td>
                                        <td><FreeResponse size="single line" id="fr_3322342"/></td>
                                    </tr>
                                    <tr>
                                        <td>Applying different t-tests based on sample characteristics</td>
                                        <td><FreeResponse size="single line" id="fr_3333222"/></td>
                                    </tr>
                                    <tr>
                                        <td>Evaluate critical values for hypothesis rejection</td>
                                        <td><FreeResponse size="single line" id="fr_3223222"/></td>
                                    </tr>
                                </tbody>
                            </Table>
                        </Question>
                    </Part>
                    <Part>
                        <Heading>Part B:</Heading>
                        <Question>
                            <Paragraph>For each of the key learning points, write a few sentences in the spaces below summarising what you have learned, what you still feel you need to improve and how you might do that. This activity can identify areas for revision. </Paragraph>
                            <NumberedList>
                                <ListItem> Differentiate between null and alternative hypotheses for evaluations.</ListItem>
                            </NumberedList>
                        </Question>
                        <Interaction>
                            <FreeResponse size="paragraph" id="fr556jk"/>
                        </Interaction>
                    </Part>
                    <Part>
                        <Question>
                            <NumberedList start="2">
                                <ListItem> Understand one-tailed or two-tailed tests in hypothesis testing.</ListItem>
                            </NumberedList>
                        </Question>
                        <Interaction>
                            <FreeResponse size="paragraph" id="fr556jgh"/>
                        </Interaction>
                    </Part>
                    <Part>
                        <Question>
                            <NumberedList start="3">
                                <ListItem>Understand when to use z-tests vs. t-tests.</ListItem>
                            </NumberedList>
                        </Question>
                        <Interaction>
                            <FreeResponse size="paragraph" id="fr556ghf"/>
                        </Interaction>
                    </Part>
                    <Part>
                        <Question>
                            <NumberedList start="4">
                                <ListItem>Perform z-tests for comparing means and proportions.</ListItem>
                            </NumberedList>
                        </Question>
                        <Interaction>
                            <FreeResponse size="paragraph" id="fr556fhfhrr"/>
                        </Interaction>
                    </Part>
                    <Part>
                        <Question>
                            <NumberedList start="5">
                                <ListItem>Differentiate between null and alternative hypotheses for evaluations.</ListItem>
                            </NumberedList>
                        </Question>
                        <Interaction>
                            <FreeResponse size="paragraph" id="fr556fhfh"/>
                        </Interaction>
                    </Part>
                    <Part>
                        <Question>
                            <NumberedList start="6">
                                <ListItem>Evaluate critical values for hypothesis rejection.</ListItem>
                            </NumberedList>
                        </Question>
                        <Interaction>
                            <FreeResponse size="paragraph" id="fr556jgg"/>
                        </Interaction>
                    </Part>
                </Multipart>
            </Activity>
        </Session>
        <Session>
            <Title>11 Conclusion</Title>
            <Paragraph>The purpose of this course was to discuss hypotheses testing. Through the activities, you have gained a better understanding of the concept of alpha (α). You have learned the difference between a one-tailed test and a two-tailed test. Additionally, you have learned how to calculate z-scores and p-values as well as how to use them to determine whether null hypotheses should be accepted or rejected. Finally, the end of this course helped you gain an understanding of how to conduct hypothesis testing for population proportions. </Paragraph>
            <Paragraph>A second OpenLearn course on data analysis, <a href="https://www.open.edu/openlearn/science-maths-technology/data-analysis-visualisations-excel/content-section-0">Data analysis: visualisations in Excel</a>, is now also available should you wish to take your studies further. </Paragraph>
            <Paragraph>This OpenLearn course is an adapted extract from the Open University course <a href="https://www.open.ac.uk/courses/modules/b126">B126 <i>Business data analytics and decision making</i>.</a> </Paragraph>
        </Session>
        <Session>
            <Title>References</Title>
            <Paragraph>Warner, R. M. (2021) <i>Applied statistics: From bivariate through multivariate techniques</i>. 3rd edn. Thousand Oaks, CA: Sage Publications. </Paragraph>
        </Session>
        <Session>
            <Title>Acknowledgements</Title>
            <Paragraph>This free course was written by the B126 Open University course team. <!--Author name, to be included if required--></Paragraph>
            <!--If archive course include following line: 
This free course includes adapted extracts from the course [Module title IN ITALICS]. If you are interested in this subject and want to study formally with us, you may wish to explore other courses we offer in [SUBJET AREA AND EMBEDDED LINK TO STUDY @OU].-->
            <Paragraph>Except for third party materials and otherwise stated (see <a href="http://www.open.ac.uk/conditions">terms and conditions</a>), this content is made available under a <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Licence</a>.</Paragraph>
            <Paragraph>The material acknowledged below is Proprietary and used under licence (not subject to Creative Commons Licence). Grateful acknowledgement is made to the following sources for permission to reproduce material in this free course: </Paragraph>
            <Paragraph>Course image: Image by congerdesign from Pixabay</Paragraph>
            <Paragraph>Figure 1: Dominique Deckmyn / www.cartoonstock.com</Paragraph>
            <Paragraph>Figure 2: Image by Jan Vaek from Pixabay</Paragraph>
            <Paragraph>Figure 3: Image by WikiImages from Pixabay</Paragraph>
            <Paragraph>Figure 4: Image by Tesa Robbins from Pixabay</Paragraph>
            <Paragraph>Figure 5: Mike Seddon / www.cartoonstock.com</Paragraph>
            <Paragraph>Figure 21: Tom Fishburne / Marketoonist.com</Paragraph>
            <Paragraph>Figure 29: Tom Fishburne / Marketoonist.com</Paragraph>
            <!--The full URLs if required should the hyperlinks above break are as follows: Terms and conditions link  http://www.open.ac.uk/ conditions; Creative Commons link: http://creativecommons.org/ licenses/ by-nc-sa/ 4.0/ deed.en_GB]-->
            <!--<Paragraph>Course image <EditorComment>Acknowledgements provided in production specification or by LTS-Rights</EditorComment></Paragraph>-->
            <!--<Paragraph>
        <EditorComment>Please include  further acknowledgements as provided in production specification or by LTS-Rights in following order:
Text



Images



Figures



Illustrations



Tables



AV



Interactive assets</EditorComment>
      </Paragraph>-->
            <Paragraph>Every effort has been made to contact copyright owners. If any have been inadvertently overlooked, the publishers will be pleased to make the necessary arrangements at the first opportunity.</Paragraph>
            <Paragraph/>
            <Paragraph><b>Don't miss out</b></Paragraph>
            <Paragraph>If reading this text has inspired you to learn more, you may be interested in joining the millions of people who discover our free learning resources and qualifications by visiting The Open University – <a href="http://www.open.edu/openlearn/free-courses?LKCAMPAIGN=ebook_&amp;MEDIA=ol">www.open.edu/openlearn/free-courses</a>.</Paragraph>
        </Session>
    </Unit>
    <BackMatter><!--NOW ONLY FOR GLOSSARY: To be completed where appropriate--></BackMatter>
<settings>
    <numbering>
        <Session autonumber="false"/>
        <Section autonumber="false"/>
        <SubSection autonumber="false"/>
        <SubSubSection autonumber="false"/>
        <Activity autonumber="false"/>
        <Exercise autonumber="false"/>
        <Box autonumber="false"/>
        <CaseStudy autonumber="false"/>
        <Quote autonumber="false"/>
        <Extract autonumber="false"/>
        <Dialogue autonumber="false"/>
        <ITQ autonumber="false"/>
        <Reading autonumber="false"/>
        <StudyNote autonumber="false"/>
        <Example autonumber="false"/>
        <Verse autonumber="false"/>
        <SAQ autonumber="false"/>
        <KeyPoints autonumber="false"/>
        <ComputerDisplay autonumber="false"/>
        <ProgramListing autonumber="false"/>
        <Summary autonumber="false"/>
        <Tables autonumber="false"/>
        <Figures autonumber="false"/>
        <MediaContent autonumber="false"/>
        <Chemistry autonumber="false"/>
    </numbering>
    <discussion_alias>Discussion</discussion_alias>
    <session_prefix/>
<version>2025021001</version></settings></Item>
