{"document_id": "openstax-intro-statistics-m46909", "title": "Sampling and Data — Definitions of Statistics, Probability, and Key Terms", "source": "https://openstax.org/books/introductory-statistics-2e/pages/1-1-definitions-of-statistics-probability-and-key-terms", "license": "CC-BY-4.0", "text": "The science of statistics deals with the collection, analysis, interpretation, and presentation of data. We see and use data in our everyday lives.\nIn your classroom, try this exercise. Have class members write down the average time (in hours, to the nearest half-hour) they sleep per night. Your instructor will record the data. Then create a simple graph (called a dot plot) of the data. A dot plot consists of a number line and dots (or points) positioned above the number line. For example, consider the following data:\n- 5\n- 5.5\n- 6\n- 6\n- 6\n- 6.5\n- 6.5\n- 6.5\n- 6.5\n- 7\n- 7\n- 8\n- 8\n- 9\nThe dot plot for this data would be as follows:\n[Image: This is a dot plot showing average hours of sleep. The number line is marked in intervals of 1 from 5 to 9. Dots above the line show 1 person reporting 5 hours, 1 with 5.5, 3 with 6, 4 with 6.5, 2 with 7, 2 with 8, and 1 with 9 hours.]\nDoes your dot plot look the same as or different from the example? Why? If you did the same example in an English class with the same number of students, do you think the results would be the same? Why or why not?\nWhere do your data appear to cluster? How might you interpret the clustering?\nThe questions above ask you to analyze and interpret your data. With this example, you have begun your study of statistics.\nIn this course, you will learn how to organize and summarize data. Organizing and summarizing data is called descriptive statistics. Two ways to summarize data are by graphing and by using numbers (for example, finding an average). After you have studied probability and probability distributions, you will use formal methods for drawing conclusions from \"good\" data. The formal methods are called inferential statistics. Statistical inference uses probability to determine how confident we can be that our conclusions are correct.\nEffective interpretation of data (inference) is based on good procedures for producing data and thoughtful examination of the data. You will encounter what will seem to be too many mathematical formulas for interpreting data. The goal of statistics is not to perform numerous calculations using the formulas, but to gain an understanding of your data. The calculations can be done using a calculator or a computer. The understanding must come from you. If you can thoroughly grasp the basics of statistics, you can be more confident in the decisions you make in life.\nProbability\nProbability is a mathematical tool used to study randomness. It deals with the chance (the likelihood) of an event occurring. For example, if you toss a fair coin four times, the outcomes may not be two heads and two tails. However, if you toss the same coin 4,000 times, the outcomes will be close to half heads and half tails. The expected theoretical probability of heads in any one toss is $\\frac{1}{2}$ or 0.5. Even though the outcomes of a few repetitions are uncertain, there is a regular pattern of outcomes when there are many repetitions. After reading about the English statistician Karl Pearson who tossed a coin 24,000 times with a result of 12,012 heads, one of the authors tossed a coin 2,000 times. The results were 996 heads. The fraction $\\frac{996}{2000}$ is equal to 0.498 which is very close to 0.5, the expected probability.\nThe theory of probability began with the study of games of chance such as poker. Predictions take the form of probabilities. To predict the likelihood of an earthquake, of rain, or whether you will get an A in this course, we use probabilities. Doctors use probability to determine the chance of a vaccination causing the disease the vaccination is supposed to prevent. A stockbroker uses probability to determine the rate of return on a client's investments. You might use probability to decide to buy a lottery ticket or not. In your study of statistics, you will use the power of mathematics through probability calculations to analyze and interpret your data.\nKey Terms\nIn statistics, we generally want to study a population. You can think of a population as a collection of persons, things, or objects under study. To study the population, we select a sample. The idea of sampling is to select a portion (or subset) of the larger population and study that portion (the sample) to gain information about the population. Data are the result of sampling from a population.\nBecause it takes a lot of time and money to examine an entire population, sampling is a very practical technique. If you wished to compute the overall grade point average at your school, it would make sense to select a sample of students who attend the school. The data collected from the sample would be the students' grade point averages. In presidential elections, opinion poll samples of 1,000–2,000 people are taken. The opinion poll is supposed to represent the views of the people in the entire country. Manufacturers of canned carbonated drinks take samples to determine if a 16-ounce can contains 16 ounces of carbonated drink.\nFrom the sample data, we can calculate a statistic. A statistic is a number that represents a property of the sample. For example, if we consider one math class to be a sample of the population of all math classes, then the average number of points earned by students in that one math class at the end of the term is an example of a statistic. The statistic is an estimate of a population parameter. A parameter is a numerical characteristic of the whole population that can be estimated by a statistic. Since we considered all math classes to be the population, then the average number of points earned per student over all the math classes is an example of a parameter.\nOne of the main concerns in the field of statistics is how accurately a statistic estimates a parameter. The accuracy really depends on how well the sample represents the population. The sample must contain the characteristics of the population in order to be a representative sample. We are interested in both the sample statistic and the population parameter in inferential statistics. In a later chapter, we will use the sample statistic to test the validity of the established population parameter.\nA variable, usually notated by capital letters such as X and Y, is a characteristic or measurement that can be determined for each member of a population. Variables may be numerical or categorical. Numerical variables take on values with equal units such as weight in pounds and time in hours. Categorical variables place the person or thing into a category. If we let X equal the number of points earned by one math student at the end of a term, then X is a numerical variable. If we let Y be a person's party affiliation, then some examples of Y include Republican, Democrat, and Independent. Y is a categorical variable. We could do some math with values of X (calculate the average number of points earned, for example), but it makes no sense to do math with values of Y (calculating an average party affiliation makes no sense).\nData are the actual values of the variable. They may be numbers or they may be words. Datum is a single value.\nTwo words that come up often in statistics are mean and proportion. If you were to take three exams in your math classes and obtain scores of 86, 75, and 92, you would calculate your mean score by adding the three exam scores and dividing by three (your mean score would be 84.3 to one decimal place). If, in your math class, there are 40 students and 22 are men and 18 are women, then the proportion of men students is $\\frac{22}{40}$ and the proportion of women students is $\\frac{18}{40}$. Mean and proportion are discussed in more detail in later chapters.\nNOTE\nThe words \"mean\" and \"average\" are often used interchangeably. The substitution of one word for the other is common practice. The technical term is \"arithmetic mean,\" and \"average\" is technically a center location. However, in practice among non-statisticians, \"average\" is commonly accepted for \"arithmetic mean.\"\nDetermine what the key terms refer to in the following study. We want to know the average (mean) amount of money first year college students spend at ABC College on school supplies that do not include books. We randomly surveyed 100 first year students at the college. Three of those students spent \\$150, \\$200, and \\$225, respectively.\nThe population is all first year students attending ABC College this term.\nThe sample could be all students enrolled in one section of a beginning statistics course at ABC College (although this sample may not represent the entire population).\nThe parameter is the average (mean) amount of money spent (excluding books) by first year college students at ABC College this term.\nThe statistic is the average (mean) amount of money spent (excluding books) by first year college students in the sample.\nThe variable could be the amount of money spent (excluding books) by one first year student. Let X = the amount of money spent (excluding books) by one first year student attending ABC College.\nThe data are the dollar amounts spent by the first year students. Examples of the data are \\$150, \\$200, and \\$225.\nTry It\nDetermine what the key terms refer to in the following study. We want to know the average (mean) amount of money spent on school uniforms each year by families with children at Knoll Academy. We randomly survey 100 families with children in the school. Three of the families spent \\$65, \\$75, and \\$95, respectively.\nDetermine what the key terms refer to in the following study.\nA study was conducted at a local college to analyze the average cumulative GPA’s of students who graduated last year. Fill in the letter of the phrase that best describes each of the items below.\n1. Population_____ 2. Statistic _____ 3. Parameter _____ 4. Sample _____ 5. Variable _____ 6. Data _____\n- all students who attended the college last year\n- the cumulative GPA of one student who graduated from the college last year\n- 3.65, 2.80, 1.50, 3.90\n- a group of students who graduated from the college last year, randomly selected\n- the average cumulative GPA of students who graduated from the college last year\n- all students who graduated from the college last year\n- the average cumulative GPA of students in the study who graduated from the college last year\n- 1. f\n- 2. g\n- 3. e\n- 4. d\n- 5. b\n- 6. c\nTry It\nDetermine what key terms refer to in the following study.\nA survey of athletes in a university was conducted to study the heights of athletes, in meters. Fill in the letter of the phrase that best describes each of the items below.\n- Population ____\n- Statistics ____\n- Parameter ____\n- Sample ____\n- Variable ____\n- Data _____\n- the average height of athletes in the university\n- the average height of athletes in the survey\n- all athletes in the university\n- all students in the university\n- the height of one athlete\n- a group of athletes randomly selected\n- 1.82, 1.76, 1.69, 1.93\n- c\n- b\n- a\n- f\n- e\n- g\nDetermine what the key terms refer to in the following study.\nAs part of a study designed to test the safety of electric automobiles, the National Transportation Safety Board collected and reviewed data about the effects of a crash on test dummies. Here is the criterion they used:\nSpeed at which Cars Crashed | Location of “drivers” (i.e. dummies)\n35 miles/hour | Front Seat\nCars with dummies in the front seats were crashed into a wall at a speed of 35 miles per hour. We want to know the proportion of dummies in the driver’s seat that would have had head injuries, if they had been actual drivers. We start with a simple random sample of 75 cars.\nThe population is all cars containing dummies in the front seat.\nThe sample is the 75 cars, selected by a simple random sample.\nThe parameter is the proportion of driver dummies (if they had been real people) who would have suffered head injuries in the population.\nThe statistic is proportion of driver dummies (if they had been real people) who would have suffered head injuries in the sample.\nThe variable X = whether a dummy (if it had been a real person) who would have suffered head injuries.\nThe data are either: yes, had head injury, or no, did not.\nTry It\nDetermine what the key terms refer to in the following study.\nA survey is conducted to check the time taken by a mobile for charging of battery from 50% to 100%. The criteria used to collect the data are:\nWattage of charger used | Type of mobile used\n30 W | Android\nWe want to know the proportion of Android mobiles that are charged to 100% within 30 minutes. We start with a simple random sample of 200 mobiles.\nThe population is all Android mobiles.\nThe sample is the 200 mobiles, selected by a simple random sample.\nThe parameter is the proportion of Android mobiles that are charged to 100% within 30 minutes in the population.\nThe statistic is the proportion of Android mobiles that are charged to 100% within 30 minutes in the survey.\nThe variable X = the number of Android mobiles that are charged to 100% within 30 minutes.\nThe data are either: yes, charged to 100% within 30 minutes; or no, charged to 100% taking more than 30 minutes.\nDetermine what the key terms refer to in the following study.\nAn insurance company would like to determine the proportion of all medical doctors who have been involved in one or more malpractice lawsuits. The company selects 500 doctors at random from a professional directory and determines the number in the sample who have been involved in a malpractice lawsuit.\nThe population is all medical doctors listed in the professional directory.\nThe parameter is the proportion of medical doctors who have been involved in one or more malpractice suits in the population.\nThe sample is the 500 doctors selected at random from the professional directory.\nThe statistic is the proportion of medical doctors who have been involved in one or more malpractice suits in the sample.\nThe variable X = whether an individual doctor has been involved in a malpractice suit.\nThe data are either: yes, was involved in one or more malpractice lawsuits, or no, was not.\nTry It\nDetermine what the key terms refer to in the following study.\nA study is to be conducted by a news agency to find the proportion of all truck drivers that have no points on their license. The agency selects 1000 truck drivers randomly from the directory of truck drivers and determines the number of truck drivers in the sample who have no points on their license.\nThe population is all truck drivers present in the directory.\nThe parameter is the proportion of truck drivers that have no points on their license in the population.\nThe sample is the 1000 truck drivers selected randomly from the directory.\nThe statistics is the proportion of truck drivers that have no points on their license in the sample.\nThe variable X = the number of truck drivers that have no points on their license.\nThe data are either: yes, they have no points on their license; or no, they have points on their license.\nDo the following exercise collaboratively with up to four people per group. Find a population, a sample, the parameter, the statistic, a variable, and data for the following study: You want to determine the average (mean) number of glasses of milk college students drink per day. Suppose yesterday, in your English class, you asked five students how many glasses of milk they drank the day before. The answers were 1, 0, 1, 3, and 4 glasses of milk.\nReferences\nThe Data and Story Library, http://lib.stat.cmu.edu/DASL/Stories/CrashTestDummies.html (accessed May 1, 2013).\nChapter Review\nThe mathematical theory of statistics is easier to learn when you know the language. This module presents important terms that will be used throughout the text.\nUse the following information to answer the next five exercises. Studies are often done by pharmaceutical companies to determine the effectiveness of a treatment program. Suppose that a new drug is currently under study to address a respiratory virus. It is given to patients once the patient exhibits symptoms of the virus. Of interest is the average (mean) length of time in days from the time the patient starts the treatment until the symptoms are alleviated. Two researchers each follow a different set of 40 patients with the respiratory virus from the start of treatment until the symptoms are alleviated. The following data (in days) are collected.\nResearcher A:\n- 3\n- 4\n- 11\n- 15\n- 16\n- 17\n- 22\n- 44\n- 37\n- 16\n- 14\n- 24\n- 25\n- 15\n- 26\n- 27\n- 33\n- 29\n- 35\n- 44\n- 13\n- 21\n- 22\n- 10\n- 12\n- 8\n- 40\n- 32\n- 26\n- 27\n- 31\n- 34\n- 29\n- 17\n- 8\n- 24\n- 18\n- 47\n- 33\n- 34\nResearcher B:\n- 3\n- 14\n- 11\n- 5\n- 16\n- 17\n- 28\n- 41\n- 31\n- 18\n- 14\n- 14\n- 26\n- 25\n- 21\n- 22\n- 31\n- 2\n- 35\n- 44\n- 23\n- 21\n- 21\n- 16\n- 12\n- 18\n- 41\n- 22\n- 16\n- 25\n- 33\n- 34\n- 29\n- 13\n- 18\n- 24\n- 23\n- 42\n- 33\n- 29\nDetermine what the key terms refer to in the example for Researcher A.\npopulation\nPatients with the virus\nsample\nparameter\nThe average length of time (in months) patients with the virus live after treatment.\nstatistic\nvariable\nX = the length of time (in months) patients with the virus live after treatment\nHOMEWORK\nFor each of the following eight exercises, identify: a. the population, b. the sample, c. the parameter, d. the statistic, e. the variable, and f. the data. Give examples where appropriate.\nA fitness center is interested in the mean amount of time a client exercises in the center each week.\nSki resorts are interested in the mean age that children take their first ski and snowboard lessons. They need this information to plan their ski classes optimally.\n- all children who take ski or snowboard lessons\n- a group of these children\n- the population mean age of children who take their first snowboard lesson\n- the sample mean age of children who take their first snowboard lesson\n- X = the age of one child who takes their first ski or snowboard lesson\n- values for X, such as 3, 7, and so on\nA cardiologist is interested in the mean recovery period of their patients who have had heart attacks.\nInsurance companies are interested in the mean health costs each year of their clients, so that they can determine the costs of health insurance.\n- the clients of the insurance companies\n- a group of the clients\n- the mean health costs of the clients\n- the mean health costs of the sample\n- X = the health costs of one client\n- values for X, such as 34, 9, 82, and so on\nA politician is interested in the proportion of voters in their district who think the politician doing a good job.\nA marriage counselor is interested in the proportion of clients they counsel who stay married.\n- all the clients of this counselor\n- a group of clients of this marriage counselor\n- the proportion of all her clients who stay married\n- the proportion of the sample of the counselor’s clients who stay married\n- X = whether a client stayed married\n- yes, no\nPolitical pollsters may be interested in the proportion of people who will vote for a particular cause.\nA marketing company is interested in the proportion of people who will buy a particular product.\n- all people (maybe in a certain geographic area, such as the United States)\n- a group of the people\n- the proportion of all people who will buy the product\n- the proportion of the sample who will buy the product\n- X = whether a person bought the product\n- buy, not buy\nUse the following information to answer the next three exercises: A Lake Tahoe Community College instructor is interested in the mean number of days Lake Tahoe Community College math students are absent from class during a quarter.\nWhat is the population she is interested in?\n- all Lake Tahoe Community College students\n- all Lake Tahoe Community College English students\n- all Lake Tahoe Community College students in her classes\n- all Lake Tahoe Community College math students\nConsider the following:\n$X$ = number of days a Lake Tahoe Community College math student is absent\nIn this case, X is an example of a:\n- variable.\n- population.\n- statistic.\n- data.\na\nThe instructor’s sample produces a mean number of days absent of 3.5 days. This value is an example of a:\n- parameter.\n- data.\n- statistic.\n- variable.\n\nGlossary\nAverage also called mean; a number that describes the central tendency of the data\nCategorical Variable variables that take on values that are names or labels\nData a set of observations (a set of possible outcomes); most data can be put into two groups: qualitative (an attribute whose value is indicated by a label) or quantitative (an attribute whose value is indicated by a number). Quantitative data can be separated into two subgroups: discrete and continuous. Data is discrete if it is the result of counting (such as the number of students of a given ethnic group in a class or the number of books on a shelf). Data is continuous if it is the result of measuring (such as distance traveled or weight of luggage)\nNumerical Variable variables that take on values that are indicated by numbers\nParameter a number that is used to represent a population characteristic and that generally cannot be determined easily\nPopulation all individuals, objects, or measurements whose properties are being studied\nProbability a number between zero and one, inclusive, that gives the likelihood that a specific event will occur\nProportion the number of successes divided by the total number in the sample\nRepresentative Sample a subset of the population that has the same characteristics as the population\nSample a subset of the population studied\nStatistic a numerical characteristic of the sample; a statistic estimates the corresponding population parameter.\nVariable a characteristic of interest for each person or object in a population"}
{"document_id": "openstax-intro-statistics-m46885", "title": "Sampling and Data — Data, Sampling, and Variation in Data and Sampling", "source": "https://openstax.org/books/introductory-statistics-2e/pages/1-2-data-sampling-and-variation-in-data-and-sampling", "license": "CC-BY-4.0", "text": "Data may come from a population or from a sample. Lowercase letters like $x$ or $y$ generally are used to represent data values. Most data can be put into the following categories:\n- Qualitative\n- Quantitative\nQualitative data are the result of categorizing or describing attributes of a population. Qualitative data are also often called categorical data. Hair color, blood type, ethnic group, the car a person drives, and the street a person lives on are examples of qualitative data. Qualitative data are generally described by words or letters. For instance, hair color might be black, dark brown, light brown, blonde, gray, or red. Blood type might be AB+, O-, or B+. Researchers often prefer to use quantitative data over qualitative data because it lends itself more easily to mathematical analysis. For example, it does not make sense to find an average hair color or blood type.\nQuantitative data are always numbers. Quantitative data are the result of counting or measuring attributes of a population. Amount of money, pulse rate, weight, number of people living in your town, and number of students who take statistics are examples of quantitative data. Quantitative data may be either discrete or continuous.\nAll data that are the result of counting are called quantitative discrete data. These data take on only certain numerical values. If you count the number of phone calls you receive for each day of the week, you might get values such as zero, one, two, or three.\nData that are not only made up of counting numbers, but that may include fractions, decimals, or irrational numbers, are called quantitative continuous data. Continuous data are often the results of measurements like lengths, weights, or times. A list of the lengths in minutes for all the phone calls that you make in a week, with numbers like 2.4, 7.5, or 11.0, would be quantitative continuous data.\nData Sample of Quantitative Discrete Data\nThe data are the number of books students carry in their backpacks. You sample five students. Two students carry three books, one student carries four books, one student carries two books, and one student carries one book. The numbers of books (three, four, two, and one) are the quantitative discrete data.\nTry It\nThe data are the number of machines in a gym. You sample five gyms. One gym has 12 machines, one gym has 15 machines, one gym has ten machines, one gym has 22 machines, and the other gym has 20 machines. What type of data is this?\nData Sample of Quantitative Continuous Data\nThe data are the weights of backpacks with books in them. You sample the same five students. The weights (in pounds) of their backpacks are 6.2, 7, 6.8, 9.1, 4.3. Notice that backpacks carrying three books can have different weights. Weights are quantitative continuous data.\nTry It\nThe data are the areas of lawns in square feet. You sample five houses. The areas of the lawns are 144 sq. feet, 160 sq. feet, 190 sq. feet, 180 sq. feet, and 210 sq. feet. What type of data is this?\nYou go to the supermarket and purchase three cans of soup (19 ounces tomato bisque, 14.1 ounces lentil, and 19 ounces Italian wedding), two packages of nuts (walnuts and peanuts), four different kinds of vegetable (broccoli, cauliflower, spinach, and carrots), and two desserts (16 ounces pistachio ice cream and 32 ounces chocolate chip cookies).\nName data sets that are quantitative discrete, quantitative continuous, and qualitative.\nOne Possible Solution:\n- The three cans of soup, two packages of nuts, four kinds of vegetables and two desserts are quantitative discrete data because you count them.\n- The weights of the soups (19 ounces, 14.1 ounces, 19 ounces) are quantitative continuous data because you measure weights as precisely as possible.\n- Types of soups, nuts, vegetables and desserts are qualitative data because they are categorical.\nTry to identify additional data sets in this example.\nTry It\nThe following list of materials was purchased by a purchase manager in a company:\n- Two types of nails (2 kg box nails, 3 kg roofing nails)\n- One type of oil (4 L machine oil)\n- Four types of screws (3 kg wood screws, 5 kg machine screws, 1 kg set screws, 2 kg socket screws)\nName data sets that are quantitative discrete, quantitative continuous, and qualitative.\nOne possible solution:\n- The two types of nails, one type of oil, and four types of screws are quantitative discrete data because you count them.\n- The weights of materials are quantitative continuous data because you can measure weight as precisely as possible.\n- Types of nails, oil, and screws are qualitative data because they are categorical.\nTry to identify additional data sets in the example.\nThe data are the colors of backpacks. Again, you sample the same five students. One student has a red backpack, two students have black backpacks, one student has a green backpack, and one student has a gray backpack. The colors red, black, black, green, and gray are qualitative data.\nTry It\nThe data are the colors of houses. You sample five houses. The colors of the houses are white, yellow, white, red, and white. What type of data is this?\nNOTE\nYou may collect data as numbers and report it categorically. For example, the quiz scores for each student are recorded throughout the term. At the end of the term, the quiz scores are reported as A, B, C, D, or F.\nWork collaboratively to determine the correct data type (quantitative or qualitative). Indicate whether quantitative data are continuous or discrete. Hint: Data that are discrete often start with the words \"the number of.\"\n- the number of pairs of shoes you own\n- the type of car you drive\n- the distance it is from your home to the nearest grocery store\n- the number of classes you take per school year.\n- the type of calculator you use\n- weights of dogs at an animal shelter\n- number of correct answers on a quiz\n- IQ scores (This may cause some discussion.)\nItems a, d, and g are quantitative discrete; items c, f, and h are quantitative continuous; items b and e are qualitative, or categorical.\nTry It\nDetermine the correct data type (quantitative or qualitative) for the number of cars in a parking lot. Indicate whether quantitative data are continuous or discrete.\nA statistics professor collects information about the classification of her students as first-year students, sophomores, juniors, or seniors. The data she collects are summarized in the pie chart Figure. What type of data does this graph show?\n[Image: This is a pie chart showing the class classification of statistics students. The chart has 4 sections labeled Freshman, Sophomore, Junior, Senior. A question is asked below the pie chart: what type of data does this graph show?]\nThis pie chart shows the students in each year, which is qualitative (or categorical) data.\nTry It\nThe registrar at State University keeps records of the number of credit hours students complete each semester. The data collected are summarized in the histogram. The class boundaries are 10 to less than 13, 13 to less than 16, 16 to less than 19, 19 to less than 22, and 22 to less than 25.\n[Image: This histogram consists of 5 bars with the x-axis marked at intervals of 3 from 10 to 25, and the y-axis in increments of 100 from 0 to 800. The height of bars shows the number of students in each interval. Interval 10 to 13 is at 250, interval 13 to 16 is at 580, interval 16 to 19 is at 720, interval 19 to 22 is at 620, and interval 22 to 25 is at 250.]\nWhat type of data does this graph show?\nQualitative Data Discussion\nBelow are tables comparing the number of part-time and full-time students at De Anza College and Foothill College enrolled for the most recent spring quarter. The tables display counts (frequencies) and percentages or proportions (relative frequencies). The percent columns make comparing the same categories in the colleges easier. Displaying percentages along with the numbers is often helpful, but it is particularly important when comparing sets of data that do not have the same totals, such as the total enrollments for both colleges in this example. Notice how much larger the percentage for part-time students at Foothill College is compared to De Anza College.\nDe Anza College | Foothill College\nNumber | Percent | Number | Percent\nFull-time | 9,200 | 40.9% | Full-time | 4,059 | 28.6%\nPart-time | 13,296 | 59.1% | Part-time | 10,124 | 71.4%\nTotal | 22,496 | 100% | Total | 14,183 | 100%\nTables are a good way of organizing and displaying data. But graphs can be even more helpful in understanding the data. There are no strict rules concerning which graphs to use. Two graphs that are used to display qualitative data are pie charts and bar graphs.\nIn a pie chart, categories of data are represented by wedges in a circle and are proportional in size to the percent of individuals in each category.\nIn a bar graph, the length of the bar for each category is proportional to the number or percent of individuals in each category. Bars may be vertical or horizontal.\nA Pareto chart consists of bars that are sorted into order by category size (largest to smallest).\nLook at Figure and Figure and determine which graph (pie or bar) you think displays the comparisons better.\nIt is a good idea to look at a variety of graphs to see which is the most helpful in displaying the data. We might make different choices of what we think is the “best” graph depending on the data and the context. Our choice also depends on what we are using the data for.\n[Image: Side-by-side pie charts showing the distribution of part time and full time students. The chart on the left is titled De Anza college. It is divided into two sections showing that part time students represent 59.1% of the population and full time students make up 40.9%. The chart on the right is titled Foothill college. It is divided into two sections showing that part time students represent 71.4% of the population and full time students make up 28.6%.]\n[Image: A bar chart titled 'Student Status' shows student numbers for De Anza and Foothill colleges. De Anza has 9,200 full-time and 13,296 part-time students. Foothill has 4,059 full-time and 10,124 part-time students.]\nPercentages That Add to More (or Less) Than 100%\nSometimes percentages add up to be more than 100% (or less than 100%). In the graph, the percentages add to more than 100% because students can be in more than one category. A bar graph is appropriate to compare the relative size of the categories. A pie chart cannot be used. It also could not be used if the percentages added to less than 100%.\nCharacteristic/Category | Percent\nFull-Time Students | 40.9%\nStudents who intend to transfer to a 4-year educational institution | 48.6%\nStudents under age 25 | 61.0%\nTOTAL | 150.5%\n[Image: A bar graph. The vertical axis marks values from 0% to 100% in intervals of 20%. The horizontal axis categories are Under age 25 (height of bar shows 61.0%), Intend to transfer (height of bar shows 48.6%), Full-time (height of bar shows 40.9%), and All students (height of bar shows 100%).]\nOmitting Categories/Missing Data\nThe table displays Ethnicity of Students but is missing the \"Other/Unknown\" category. This category contains people who did not feel they fit into any of the ethnicity categories or declined to respond. Notice that the frequencies do not add up to the total number of students. In this situation, create a bar graph and not a pie chart.\nFrequency | Percent\nAsian | 8,794 | 36.1%\nBlack | 1,412 | 5.8%\nFilipino | 1,298 | 5.3%\nHispanic/Latino | 4,180 | 17.1%\nNative American | 146 | 0.6%\nPacific Islander | 236 | 1.0%\nWhite | 5,978 | 24.5%\nTOTAL | 22,044 out of 24,382 | 90.4% out of 100%\n[Image: A bar graph showing ethnicity of students. The vertical axis marks values from 0.0% to 40.0% in intervals of 5.0%. The horizontal axis categories are Asian (height of bar shows 36.1%), Black (height of bar shows 5.8%), Filipino (height of bar shows 5.3%), Hispanic/Latino (height of bar shows 17.1%), Native American (height of bar shows 0.6%), Pacific Islander (height of bar shows 1.0%),and White (height of bar shows 24.5%).]\nThe following graph is the same as the previous graph but the “Other/Unknown” percent (9.6%) has been included. The “Other/Unknown” category is large compared to some of the other categories (Native American, 0.6%, Pacific Islander 1.0%). This is important to know when we think about what the data are telling us.\nThis particular bar graph in Figure can be difficult to understand visually. The graph in Figure is a Pareto chart. The Pareto chart has the bars sorted from largest to smallest and is easier to read and interpret.\n[Image: Bar graph consisting of 8 bars with values matching the given data. Horizontal axis has all ethinicity of student. Vertical axis ranges ffrom 0 to 40 percent in increments of 5 percent.]\n[Image: A Pareto chart is a bar graph with the bars ordered from greatest height to least. This one shows ethnicity of students. The vertical axis marks values from 0.0% to 40.0% in intervals of 5.0%. The horizontal axis categories are Asian (height of bar shows 36.1%), White (height of bar shows 24.5%), Hispanic/Latino (height of bar shows 17.1%), Other/Unknown (height of bar shows 9.6%), Black (height of bar shows 5.8%), Filipino (height of bar shows 5.3%), Pacific Islander (height of bar shows 1.0%), and Native American (height of bar shows 0.6%).]\nPie Charts: No Missing Data\nThe following pie charts have the “Other/Unknown” category included (since the percentages must add to 100%). The chart in Figure(b) is organized by the size of each wedge, which makes it a more visually informative graph than the unsorted, alphabetical graph in Figure(a).\n[Image: Two pie charts are titled Ethnicity of Students. Chart (a) The sections of the chart are ordered alphabetically. Clockwise from the top, the sections show that Asian students make up 36.1% of students, Black 5.8%, Filipino 5.3%, Hispanic/Latino 17.1%, Native American 0.6%, Pacific Islander 1.0%, White 24.5%, and Other 9.6%. Chart (b) This is the same data as shown in chart (a), but the sections of the chart are now ordered from greatest area to least. Clockwise from the top, the sections show that Asian students make up 36.1% of students, White 24.5%, Hispanic/Latino 17.1%, Other 9.6%, Black 5.8%, Filipino 5.3%, Pacific Islander 1.0%, and Native American 0.6%.]\nSampling\nGathering information about an entire population often costs too much or is virtually impossible. Instead, we use a sample of the population. A sample should have the same characteristics as the population it is representing. Most statisticians use various methods of random sampling in an attempt to achieve this goal. This section will describe a few of the most common methods. There are several different methods of random sampling. In each form of random sampling, each member of a population initially has an equal chance of being selected for the sample. Each method has pros and cons. The easiest method to describe is called a simple random sample. Any group of n individuals is equally likely to be chosen as any other group of n individuals if the simple random sampling technique is used. In other words, each sample of the same size has an equal chance of being selected. For example, suppose Lisa wants to form a four-person study group (herself and three other people) from her pre-calculus class, which has 31 members not including Lisa. To choose a simple random sample of size three from the other members of her class, Lisa could put all 31 names in a hat, shake the hat, close her eyes, and pick out three names. A more technological way is for Lisa to first list the last names of the members of her class together with a two-digit number, as in Table:\nID | Name | ID | Name | ID | Name\n00 | Anselmo | 11 | King | 21 | Roquero\n01 | Bautista | 12 | Legeny | 22 | Roth\n02 | Bayani | 13 | Lundquist | 23 | Rowell\n03 | Cheng | 14 | Macierz | 24 | Salangsang\n04 | Cuarismo | 15 | Motogawa | 25 | Slade\n05 | Cuningham | 16 | Okimoto | 26 | Stratcher\n06 | Fontecha | 17 | Patel | 27 | Tallai\n07 | Hong | 18 | Price | 28 | Tran\n08 | Hoobler | 19 | Quizon | 29 | Wai\n09 | Jiao | 20 | Reyes | 30 | Wood\n10 | Khan\nLisa can use a table of random numbers (found in many statistics books and mathematical handbooks), a calculator, or a computer to generate random numbers. For this example, suppose Lisa chooses to generate random numbers from a calculator. The numbers generated are as follows:\n- 0.94360\n- 0.99832\n- 0.14669\n- 0.51470\n- 0.40581\n- 0.73381\n- 0.04399\nLisa reads two-digit groups until she has chosen three class members (that is, she reads 0.94360 as the groups 94, 43, 36, 60). Each random number may only contribute one class member. If she needed to, Lisa could have generated more random numbers.\nThe random numbers 0.94360 and 0.99832 do not contain appropriate two digit numbers. However the third random number, 0.14669, contains 14 (the fourth random number also contains 14), the fifth random number contains 05, and the seventh random number contains 04. The two-digit number 14 corresponds to Macierz, 05 corresponds to Cuningham, and 04 corresponds to Cuarismo. Besides herself, Lisa’s group will consist of Marcierz, Cuningham, and Cuarismo.\nTo generate random numbers:\n- Press MATH.\n- Arrow over to PRB.\n- Press 5:randInt(. Enter 0, 30).\n- Press ENTER for the first random number.\n- Press ENTER two more times for the other 2 random numbers. If there is a repeat press ENTER again.\nNote: randInt(0, 30, 3) will generate 3 random numbers.\n[Image: A calculator screen shows the following set on separate lines: randInt (0, 30); 29; randInt (0, 30); 28; randInt (0, 30); 4.]\nBesides simple random sampling, there are other forms of sampling that involve a chance process for getting the sample. Other well-known random sampling methods are the stratified sample, the cluster sample, and the systematic sample.\nTo choose a stratified sample, divide the population into groups called strata and then take a proportionate number from each stratum. For example, you could stratify (group) your college population by department and then choose a proportionate simple random sample from each stratum (each department) to get a stratified random sample. To choose a simple random sample from each department, number each member of the first department, number each member of the second department, and do the same for the remaining departments. Then use simple random sampling to choose proportionate numbers from the first department and do the same for each of the remaining departments. Those numbers picked from the first department, picked from the second department, and so on represent the members who make up the stratified sample.\nTo choose a cluster sample, divide the population into clusters (groups) and then randomly select some of the clusters. All the members from these clusters are in the cluster sample. For example, if you randomly sample four departments from your college population, the four departments make up the cluster sample. Divide your college faculty by department. The departments are the clusters. Number each department, and then choose four different numbers using simple random sampling. All members of the four departments with those numbers are the cluster sample.\nTo choose a systematic sample, randomly select a starting point and take every nth piece of data from a listing of the population. For example, suppose you have to do a phone survey. Your phone book contains 20,000 residence listings. You must choose 400 names for the sample. Number the population 1–20,000 and then use a simple random sample to pick a number that represents the first name in the sample. Then choose every fiftieth name thereafter until you have a total of 400 names (you might have to go back to the beginning of your phone list). Systematic sampling is frequently chosen because it is a simple method.\nA type of sampling that is non-random is convenience sampling. Convenience sampling involves using results that are readily available. For example, a computer software store conducts a marketing study by interviewing potential customers who happen to be in the store browsing through the available software. The results of convenience sampling may be very good in some cases and highly biased (favor certain outcomes) in others.\nSampling data should be done very carefully. Collecting data carelessly can have devastating results. Surveys mailed to households and then returned may be very biased (they may favor a certain group). It is better for the person conducting the survey to select the sample respondents.\nSampling with replacement is truly random sampling. That is, once a member is picked, that member goes back into the population and thus may be chosen more than once. However for practical reasons, in most populations, simple random sampling without replacement is done. Surveys are typically done without replacement. That is, a member of the population may be chosen only once. Most samples are taken from large populations and the sample tends to be small in comparison to the population. Since this is the case, sampling without replacement is approximately the same as sampling with replacement because the chance of picking the same individual more than once with replacement is very low.\nSampling without replacement instead of sampling with replacement becomes a mathematical issue only when the population is small.\nWhen you analyze data, it is important to be aware of sampling errors and nonsampling errors. The actual process of sampling causes sampling errors. For example, the sample may not be large enough. Factors not related to the sampling process cause nonsampling errors. A defective counting device can cause a nonsampling error.\nIn reality, a sample will never be exactly representative of the population so there will always be some sampling error. As a rule, the larger the sample, the smaller the sampling error.\nIn statistics, a sampling bias is created when a sample is collected from a population and some members of the population are not as likely to be chosen as others (remember, each member of the population should have an equally likely chance of being chosen). When a sampling bias happens, there can be incorrect conclusions drawn about the population that is being studied.\nCritical Evaluation\nWe need to evaluate the statistical studies we read about critically and analyze them before accepting the results of the studies. Common problems to be aware of include\n- Problems with samples: A sample must be representative of the population. A sample that is not representative of the population is biased. Biased samples that are not representative of the population give results that are inaccurate and not valid.\n- Self-selected samples: Responses only by people who choose to respond, such as call-in surveys, are often unreliable.\n- Sample size issues: Samples that are too small may be unreliable. Larger samples are better, if possible. In some situations, having small samples is unavoidable and can still be used to draw conclusions. Examples: crash testing cars or medical testing for rare conditions\n- Undue influence: collecting data or asking questions in a way that influences the response\n- Non-response or refusal of subject to participate: The collected responses may no longer be representative of the population. Often, people with strong positive or negative opinions may answer surveys, which can affect the results.\n- Causality: A relationship between two variables does not mean that one causes the other to occur. They may be related (correlated) because of their relationship through a different variable.\n- Self-funded or self-interest studies: A study performed by a person or organization in order to support their claim. Is the study impartial? Read the study carefully to evaluate the work. Do not automatically assume that the study is good, but do not automatically assume the study is bad either. Evaluate it on its merits and the work done.\n- Misleading use of data: improperly displayed graphs, incomplete data, or lack of context\n- Confounding: When the effects of multiple factors on a response cannot be separated. Confounding makes it difficult or impossible to draw valid conclusions about the effect of each factor.\nAs a class, determine whether or not the following samples are representative. If they are not, discuss the reasons.\n- To find the average GPA of all students in a university, use all honor students at the university as the sample.\n- To find out the most popular cereal among young people under the age of ten, stand outside a large supermarket for three hours and speak to every twentieth child under age ten who enters the supermarket.\n- To find the average annual income of all adults in the United States, sample U.S. Representatives. Create a cluster sample by considering each state as a stratum (group). By using simple random sampling, select states to be part of the cluster. Then survey every U.S. Representative in the cluster.\n- To determine the proportion of people taking public transportation to work, survey 20 people in New York City. Conduct the survey by sitting in Central Park on a bench and interviewing every person who sits next to you.\n- To determine the average cost of a two-day stay in a hospital in Massachusetts, survey 100 hospitals across the state using simple random sampling.\nA study is done to determine the average tuition that San Jose State undergraduate students pay per semester. Each student in the following samples is asked how much tuition they paid for the Fall semester. What is the type of sampling in each case?\n- A sample of 100 undergraduate San Jose State students is taken by organizing the students’ names by classification (first-year, sophomore, junior, or senior), and then selecting 25 students from each.\n- A random number generator is used to select a student from the alphabetical listing of all undergraduate students in the Fall semester. Starting with that student, every 50th student is chosen until 75 students are included in the sample.\n- A completely random method is used to select 75 students. Each undergraduate student in the fall semester has the same probability of being chosen at any stage of the sampling process.\n- The first-year, sophomore, junior, and senior years are numbered one, two, three, and four, respectively. A random number generator is used to pick two of those years. All students in those two years are in the sample.\n- An administrative assistant is asked to stand in front of the library one Wednesday and to ask the first 100 undergraduate students he encounters what they paid for tuition the Fall semester. Those 100 students are the sample.\na. stratified; b. systematic; c. simple random; d. cluster; e. convenience\nTry It\nYou are going to use the random number generator to generate different types of samples from the data.\nThis table displays six sets of quiz scores (each quiz counts 10 points) for an elementary statistics class.\n#1 | #2 | #3 | #4 | #5 | #6\n5 | 7 | 10 | 9 | 8 | 3\n10 | 5 | 9 | 8 | 7 | 6\n9 | 10 | 8 | 6 | 7 | 9\n9 | 10 | 10 | 9 | 8 | 9\n7 | 8 | 9 | 5 | 7 | 4\n9 | 9 | 9 | 10 | 8 | 7\n7 | 7 | 10 | 9 | 8 | 8\n8 | 8 | 9 | 10 | 8 | 8\n9 | 7 | 8 | 7 | 7 | 8\n8 | 8 | 10 | 9 | 8 | 7\nInstructions: Use the Random Number Generator to pick samples.\n- Create a stratified sample by column. Pick three quiz scores randomly from each column.\n- Number each row one through ten.\n- On your calculator, press Math and arrow over to PRB.\n- For column 1, Press 5:randInt(and enter 1,10). Press ENTER. Record the number. Press ENTER 2 more times (even the repeats). Record these numbers. Record the three quiz scores in column one that correspond to these three numbers.\n- Repeat for columns two through six.\n- These 18 quiz scores are a stratified sample.\n- Create a cluster sample by picking two of the columns. Use the column numbers: one through six.\n- Press MATH and arrow over to PRB.\n- Press 5:randInt(and enter 1,6). Press ENTER. Record the number. Press ENTER and record that number.\n- The two numbers are for two of the columns.\n- The quiz scores (20 of them) in these 2 columns are the cluster sample.\n- Create a simple random sample of 15 quiz scores.\n- Use the numbering one through 60.\n- Press MATH. Arrow over to PRB. Press 5:randInt(and enter 1, 60).\n- Press ENTER 15 times and record the numbers.\n- Record the quiz scores that correspond to these numbers.\n- These 15 quiz scores are the random sample.\n- Create a systematic sample of 12 quiz scores.\n- Use the numbering one through 60.\n- Press MATH. Arrow over to PRB. Press 5:randInt(and enter 1, 60).\n- Press ENTER. Record the number and the first quiz score. From that number, count ten quiz scores and record that quiz score. Keep counting ten quiz scores and recording the quiz score until you have a sample of 12 quiz scores. You may wrap around (go back to the beginning).\nDetermine the type of sampling used (simple random, stratified, systematic, cluster, or convenience).\n- A soccer coach selects six players from a group of boys aged eight to ten, seven players from a group of boys aged 11 to 12, and three players from a group of boys aged 13 to 14 to form a recreational soccer team.\n- A pollster interviews all human resource personnel in five different high tech companies.\n- A high school educational researcher interviews 50 public high school teachers and 50 private high school teachers.\n- A medical researcher interviews every third cancer patient from a list of cancer patients at a local hospital.\n- A high school counselor uses a computer to generate 50 random numbers and then picks students whose names correspond to the numbers.\n- A student interviews classmates in their algebra class to determine how many pairs of jeans a student owns, on the average.\na. stratified; b. cluster; c. stratified; d. systematic; e. simple random; f.convenience\nTry It\nDetermine the type of sampling used (simple random, stratified, systematic, cluster, or convenience).\nA high school principal polls 50 first-year students, 50 sophomores, 50 juniors, and 50 seniors regarding policy changes for after school activities.\nIf we were to examine two samples representing the same population, even if we used random sampling methods for the samples, they would not be exactly the same. Just as there is variation in data, there is variation in samples. As you become accustomed to sampling, the variability will begin to seem natural.\nNOTE\nIn Confidence Intervals of the text, sample size formulas are provided which will determine sample sizes when sampling from a population. The sample size will be a function of the desired precision and not a function of the population size. It may be somewhat counterintuitive that the sample size does not depend on the population size. However, this implies that a sample size of 1,000 can be adequate to represent a population of 100,000 versus 1,000,000 given that the same level of precision is desired. When working in Confidence Intervals with sample size formulas, the student will notice that population size is not a factor in determining the sample size.\nSuppose ABC College has 10,000 part-time students (the population). We are interested in the average amount of money a part-time student spends on books in the fall term. Asking all 10,000 students is an almost impossible task.\nSuppose we take two different samples.\nFirst, we use convenience sampling and survey ten students from a first term organic chemistry class. Many of these students are taking first term calculus in addition to the organic chemistry class. The amount of money they spend on books is as follows:\n- \\$128\n- \\$87\n- \\$173\n- \\$116\n- \\$130\n- \\$204\n- \\$147\n- \\$189\n- \\$93\n- \\$153\nThe second sample is taken using a list of senior citizens who take P.E. classes and taking every fifth senior citizen on the list, for a total of ten senior citizens. They spend:\n- \\$50\n- \\$40\n- \\$36\n- \\$15\n- \\$50\n- \\$100\n- \\$40\n- \\$53\n- \\$22\n- \\$22\nIt is unlikely that any student is in both samples.\na. Do you think that either of these samples is representative of (or is characteristic of) the entire 10,000 part-time student population?\na. No. The first sample probably consists of science-oriented students. Besides the chemistry course, some of them are also taking first-term calculus. Books for these classes tend to be expensive. Most of these students are, more than likely, paying more than the average part-time student for their books. The second sample is a group of senior citizens who are, more than likely, taking courses for health and interest. The amount of money they spend on books is probably much less than the average part-time student. Both samples are biased. Also, in both cases, not all students have a chance to be in either sample.\nb. Since these samples are not representative of the entire population, is it wise to use the results to describe the entire population?\nb. No. For these samples, each member of the population did not have an equally likely chance of being chosen.\nNow, suppose we take a third sample. We choose ten different part-time students from the disciplines of chemistry, math, English, psychology, sociology, history, nursing, physical education, art, and early childhood development. (We assume that these are the only disciplines in which part-time students at ABC College are enrolled and that an equal number of part-time students are enrolled in each of the disciplines.) Each student is chosen using simple random sampling. Using a calculator, random numbers are generated and a student from a particular discipline is selected if they have a corresponding number. The students spend the following amounts:\n- \\$180\n- \\$50\n- \\$150\n- \\$85\n- \\$260\n- \\$75\n- \\$180\n- \\$200\n- \\$200\n- \\$150\nc. Is the sample biased?\nc. The sample is unbiased, but a larger sample would be recommended to increase the likelihood that the sample will be close to representative of the population. However, for a biased sampling technique, even a large sample runs the risk of not being representative of the population.\nStudents often ask if it is \"good enough\" to take a sample, instead of surveying the entire population. If the survey is done well, the answer is yes.\nTry It\nA local radio station has a fan base of 20,000 listeners. The station wants to know if its audience would prefer more music or more talk shows. Asking all 20,000 listeners is an almost impossible task.\nThe station uses convenience sampling and surveys the first 200 people they meet at one of the station’s music concert events. 24 people said they’d prefer more talk shows, and 176 people said they’d prefer more music.\nDo you think that this sample is representative of (or is characteristic of) the entire 20,000 listener population?\nVariation in Data\nVariation is present in any set of data. For example, 16-ounce cans of beverage may contain more or less than 16 ounces of liquid. In one study, eight 16-ounce cans were measured and produced the following amount (in ounces) of beverage:\n- 15.8\n- 16.1\n- 15.2\n- 14.8\n- 15.8\n- 15.9\n- 16.0\n- 15.5\nMeasurements of the amount of beverage in a 16-ounce can may vary because different people make the measurements or because the exact amount, 16 ounces of liquid, was not put into the cans. Manufacturers regularly run tests to determine if the amount of beverage in a 16-ounce can falls within the desired range.\nBe aware that as you take data, your data may vary somewhat from the data someone else is taking for the same purpose. This is completely natural. However, if two or more of you are taking the same data and get very different results, it is time for you and the others to reevaluate your data-taking methods and your accuracy.\nVariation in Samples\nIt was mentioned previously that two or more samples from the same population, taken randomly, and having close to the same characteristics of the population will likely be different from each other. Suppose Doreen and Jung both decide to study the average amount of time students at their college sleep each night. Doreen and Jung each take samples of 500 students. Doreen uses systematic sampling and Jung uses cluster sampling. Doreen's sample will be different from Jung's sample. Even if Doreen and Jung used the same sampling method, in all likelihood their samples would be different. Neither would be wrong, however.\nThink about what contributes to making Doreen’s and Jung’s samples different.\nIf Doreen and Jung took larger samples (i.e. the number of data values is increased), their sample results (the average amount of time a student sleeps) might be closer to the actual population average. But still, their samples would be, in all likelihood, different from each other. This variability in samples cannot be stressed enough.\nSize of a Sample\nThe size of a sample (often called the number of observations) is important. The examples you have seen in this book so far have been small. Samples of only a few hundred observations, or even smaller, are sufficient for many purposes. In polling, samples that are from 1,200 to 1,500 observations are considered large enough and good enough if the survey is random and is well done. You will learn why when you study confidence intervals.\nBe aware that many large samples are biased. For example, call-in surveys are invariably biased, because people choose to respond or not.\nDivide into groups of two, three, or four. Your instructor will give each group one six-sided die. Try this experiment twice. Roll one fair die (six-sided) 20 times. Record the number of ones, twos, threes, fours, fives, and sixes you get in Table and Table (“frequency” is the number of times a particular face of the die occurs):\nFace on Die | Frequency\n1\n2\n3\n4\n5\n6\nFace on Die | Frequency\n1\n2\n3\n4\n5\n6\nDid the two experiments have the same results? Probably not. If you did the experiment a third time, do you expect the results to be identical to the first or second experiment? Why or why not?\nWhich experiment had the correct results? They both did. The job of the statistician is to see through the variability and draw appropriate conclusions.\nReferences\nGallup-Healthways Well-Being Index. http://www.well-beingindex.com/default.asp (accessed May 1, 2013).\nGallup-Healthways Well-Being Index. http://www.well-beingindex.com/methodology.asp (accessed May 1, 2013).\nGallup-Healthways Well-Being Index. http://www.gallup.com/poll/146822/gallup-healthways-index-questions.aspx (accessed May 1, 2013).\nData from http://www.bookofodds.com/Relationships-Society/Articles/A0374-How-George-Gallup-Picked-the-President\nDominic Lusinchi, “’President’ Landon and the 1936 Literary Digest Poll: Were Automobile and Telephone Owners to Blame?” Social Science History 36, no. 1: 23-54 (2012), http://ssh.dukejournals.org/content/36/1/23.abstract (accessed May 1, 2013).\n“The Literary Digest Poll,” Virtual Laboratories in Probability and Statistics http://www.math.uah.edu/stat/data/LiteraryDigest.html (accessed May 1, 2013).\n“Gallup Presidential Election Trial-Heat Trends, 1936–2008,” Gallup Politics http://www.gallup.com/poll/110548/gallup-presidential-election-trialheat-trends-19362004.aspx#4 (accessed May 1, 2013).\nThe Data and Story Library, http://lib.stat.cmu.edu/DASL/Datafiles/USCrime.html (accessed May 1, 2013).\nLBCC Distance Learning (DL) program data in 2010-2011, http://de.lbcc.edu/reports/2010-11/future/highlights.html#focus (accessed May 1, 2013).\nData from San Jose Mercury News\nChapter Review\nData are individual items of information that come from a population or sample. Data may be classified as qualitative (categorical), quantitative continuous, or quantitative discrete.\nBecause it is not practical to measure the entire population in a study, researchers use samples to represent the population. A random sample is a representative group from the population chosen by using a method that gives each individual in the population an equal chance of being included in the sample. Random sampling methods include simple random sampling, stratified sampling, cluster sampling, and systematic sampling. Convenience sampling is a nonrandom method of choosing a sample that often produces biased data.\nSamples that contain different individuals result in different data. This is true even when the samples are well-chosen and representative of the population. When properly selected, larger samples model the population more closely than smaller samples. There are many different potential problems that can affect the reliability of a sample. Statistical data needs to be critically analyzed, not simply accepted.\nPractice\n“Number of times per week” is what type of data?\n- a. qualitative (categorical)\n- b. quantitative discrete\n- c. quantitative continuous\nUse the following information to answer the next four exercises: A study was done to determine the age, number of times per week, and the duration (amount of time) of residents using a local park in San Antonio, Texas. The first house in the neighborhood around the park was selected randomly, and then the resident of every eighth house in the neighborhood around the park was interviewed.\nThe sampling method was\n- a. simple random\n- b. systematic\n- c. stratified\n- d. cluster\nb\n“Duration (amount of time)” is what type of data?\n- a. qualitative (categorical)\n- b. quantitative discrete\n- c. quantitative continuous\nThe colors of the houses around the park are what kind of data?\n- a. qualitative (categorical)\n- b. quantitative discrete\n- c. quantitative continuous\na\nThe population is ______________________\nTable contains the total number of deaths worldwide as a result of earthquakes over a 13-year period.\nYear | Total Number of Deaths\n1 | 231\n2 | 21,357\n3 | 11,685\n4 | 33,819\n5 | 228,802\n6 | 88,003\n7 | 6,605\n8 | 712\n9 | 88,011\n10 | 1,790\n11 | 320,120\n12 | 21,953\n13 | 768\nTotal | 823,856\nUse Table to answer the following questions.\n- What is the proportion of deaths between Year 8 and Year 13?\n- What percent of deaths occurred before Year 2?\n- What is the percent of deaths that occurred in Year 4 or after Year 11?\n- What is the fraction of deaths that happened before Year 13?\n- What kind of data is the number of deaths?\n- Earthquakes are quantified according to the amount of energy they produce (examples are 2.1, 5.0, 6.7). What type of data is that?\n- What contributed to the large number of deaths in Year 11? In Year 5? Explain.\n- 0.5242\n- 0.03%\n- 6.86%\n- $\\frac{823,088}{823,856}$\n- quantitative discrete\n- quantitative continuous\n- In both years, underwater earthquakes produced massive tsunamis.\nFor the following four exercises, determine the type of sampling used (simple random, stratified, systematic, cluster, or convenience).\nA group of test subjects is divided into twelve groups; then four of the groups are chosen at random.\nA market researcher polls every tenth person who walks into a store.\nsystematic\nThe first 50 people who walk into a sporting event are polled on their television preferences.\nA computer generates 100 random numbers, and 100 people whose names correspond with the numbers on the list are chosen.\nsimple random\nUse the following information to answer the next seven exercises. Studies are often done by pharmaceutical companies to determine the effectiveness of a treatment program. Suppose that a new drug is currently under study to address a respiratory virus. It is given to patients once the patient exhibits symptoms of the virus. Of interest is the average (mean) length of time in days from the time the patient starts the treatment until the symptoms are alleviated. Two researchers each follow a different set of 40 patients with the respiratory virus from the start of treatment until the symptoms are alleviated. The following data (in days) are collected.\nResearcher A: 3; 4; 11; 15; 16; 17; 22; 44; 37; 16; 14; 24; 25; 15; 26; 27; 33; 29; 35; 44; 13; 21; 22; 10; 12; 8; 40; 32; 26; 27; 31; 34; 29; 17; 8; 24; 18; 47; 33; 34\nResearcher B: 3; 14; 11; 5; 16; 17; 28; 41; 31; 18; 14; 14; 26; 25; 21; 22; 31; 2; 35; 44; 23; 21; 21; 16; 12; 18; 41; 22; 16; 25; 33; 34; 29; 13; 18; 24; 23; 42; 33; 29\nComplete the tables using the data provided:\nSurvival Length (in days) | Frequency | Relative Frequency | Cumulative Relative Frequency\n0.5–6.5\n6.5–12.5\n12.5–18.5\n18.5–24.5\n24.5–30.5\n30.5–36.5\n36.5–42.5\n42.5–48.5\nSurvival Length (in days) | Frequency | Relative Frequency | Cumulative Relative Frequency\n0.5–6.5\n6.5–12.5\n12.5–18.5\n18.5–24.5\n24.5–30.5\n30.5–36.5\n36.5-45.5\nDetermine what the key term data refers to in the above example for Researcher A.\nvalues for X, such as 3, 4, 11, and so on\nList two reasons why the data may differ.\nCan you tell if one researcher is correct and the other one is incorrect? Why?\nNo, we do not have enough information to make such a claim.\nWould you expect the data to be identical? Why or why not?\nSuggest at least two methods the researchers might use to gather random data.\nTake a simple random sample from each group. One way is by assigning a number to each patient and using a random number generator to randomly select patients.\nSuppose that the first researcher conducted his survey by randomly choosing one state in the nation and then randomly picking 40 patients from that state. What sampling method would that researcher have used?\nSuppose that the second researcher conducted his survey by choosing 40 patients he knew. What sampling method would that researcher have used? What concerns would you have about this data set, based upon the data collection method?\nThis would be convenience sampling and is not random.\nUse the following data to answer the next five exercises: Two researchers are gathering data on hours of video games played by school-aged children and young adults. They each randomly sample different groups of 150 students from the same school. They collect the following data.\nHours Played per Week | Frequency | Relative Frequency | Cumulative Relative Frequency\n0–2 | 26 | 0.17 | 0.17\n2–4 | 30 | 0.20 | 0.37\n4–6 | 49 | 0.33 | 0.70\n6–8 | 25 | 0.17 | 0.87\n8–10 | 12 | 0.08 | 0.95\n10–12 | 8 | 0.05 | 1\nHours Played per Week | Frequency | Relative Frequency | Cumulative Relative Frequency\n0–2 | 48 | 0.32 | 0.32\n2–4 | 51 | 0.34 | 0.66\n4–6 | 24 | 0.16 | 0.82\n6–8 | 12 | 0.08 | 0.90\n8–10 | 11 | 0.07 | 0.97\n10–12 | 4 | 0.03 | 1\nGive a reason why the data may differ.\nWould the sample size be large enough if the population is the students in the school?\nYes, the sample size of 150 would be large enough to reflect a population of one school.\nWould the sample size be large enough if the population is school-aged children and young adults in the United States?\nResearcher A concludes that most students play video games between four and six hours each week. Researcher B concludes that most students play video games between two and four hours each week. Who is correct?\nEven though the specific data support each researcher’s conclusions, the different results suggest that more data need to be collected before the researchers can reach a conclusion.\nAs part of a way to reward students for participating in the survey, the researchers gave each student a gift card to a video game store. Would this affect the data if students knew about the award before the study?\nUse the following data to answer the next five exercises: A pair of studies was performed to measure the effectiveness of a new software program designed to help stroke patients regain their problem-solving skills. Patients were asked to use the software program twice a day, once in the morning and once in the evening. The studies observed 200 stroke patients recovering over a period of several weeks. The first study collected the data in Table. The second study collected the data in Table.\nGroup | Showed improvement | No improvement | Deterioration\nUsed program | 142 | 43 | 15\nDid not use program | 72 | 110 | 18\nGroup | Showed improvement | No improvement | Deterioration\nUsed program | 105 | 74 | 19\nDid not use program | 89 | 99 | 4\nGiven what you know, which study is correct?\nThere is not enough information given to judge if either one is correct or incorrect.\nThe first study was performed by the company that designed the software program. The second study was performed by the American Medical Association. Which study is more reliable?\nBoth groups that performed the study concluded that the software works. Is this accurate?\nThe software program seems to work because the second study shows that more patients improve while using the software than not. Even though the difference is not as large as that in the first study, the results from the second study are likely more reliable and still show improvement.\nThe company takes the two studies as proof that their software causes mental improvement in stroke patients. Is this a fair statement?\nPatients who used the software were also a part of an exercise program whereas patients who did not use the software were not. Does this change the validity of the conclusions from Exercise?\nYes, because we cannot tell if the improvement was due to the software or the exercise; the data is confounded, and a reliable conclusion cannot be drawn. New studies should be performed.\nIs a sample size of 1,000 a reliable measure for a population of 5,000?\nIs a sample of 500 volunteers a reliable measure for a population of 2,500?\nNo, even though the sample is large enough, the fact that the sample consists of volunteers makes it a self-selected sample, which is not reliable.\nA question on a survey reads: \"Do you prefer the delicious taste of Brand X or the taste of Brand Y?\" Is this a fair question?\nIs a sample size of two representative of a population of five?\nNo, even though the sample is a large portion of the population, two responses are not enough to justify any conclusions. Because the population is so small, it would be better to include everyone in the population to get the most accurate data.\nIs it possible for two experiments to be well run with similar sample sizes to get different data?\nHOMEWORK\nFor the following exercises, identify the type of data that would be used to describe a response (quantitative discrete, quantitative continuous, or qualitative), and give an example of the data.\nnumber of tickets sold to a concert\nquantitative discrete, 150\npercent of body fat\nfavorite baseball team\nqualitative, Oakland A’s\ntime in line to buy groceries\nnumber of students enrolled at Evergreen Valley College\nquantitative discrete, 11,234 students\nmost-watched television show\nbrand of toothpaste\nqualitative, Crest\ndistance to the closest movie theatre\nage of executives in Fortune 500 companies\nquantitative continuous, 47.3 years\nnumber of competing computer spreadsheet software packages\nUse the following information to answer the next two exercises: A study was done to determine the age, number of times per week, and the duration (amount of time) of resident use of a local park in San Jose. The first house in the neighborhood around the park was selected randomly and then every 8th house in the neighborhood around the park was interviewed.\n“Number of times per week” is what type of data?\n- qualitative\n- quantitative discrete\n- quantitative continuous\nb\n“Duration (amount of time)” is what type of data?\n- qualitative\n- quantitative discrete\n- quantitative continuous\nAirline companies are interested in the consistency of the number of babies on each flight, so that they have adequate safety equipment. Suppose an airline conducts a survey. Over Thanksgiving weekend, it surveys six flights from Boston to Salt Lake City to determine the number of babies on the flights. It determines the amount of safety equipment needed by the result of that study.\n- Using complete sentences, list three things wrong with the way the survey was conducted.\n- Using complete sentences, list three ways that you would improve the survey if it were to be repeated.\n- The survey was conducted using six similar flights. The survey would not be a true representation of the entire population of air travelers. Conducting the survey on a holiday weekend will not produce representative results.\n- Conduct the survey during different times of the year. Conduct the survey using flights to and from various locations. Conduct the survey on different days of the week.\nSuppose you want to determine the mean number of students per statistics class in your state. Describe a possible sampling method in three to five complete sentences. Make the description detailed.\nSuppose you want to determine the mean number of cans of soda drunk each month by students in their twenties at your school. Describe a possible sampling method in three to five complete sentences. Make the description detailed.\nAnswers will vary. Sample Answer: You could use a systematic sampling method. Stop the tenth person as they leave one of the buildings on campus at 9:50 in the morning. Then stop the tenth person as they leave a different building on campus at 1:50 in the afternoon.\nList some practical difficulties involved in getting accurate results from a telephone survey.\nList some practical difficulties involved in getting accurate results from a mailed survey.\nAnswers will vary. Sample Answer: Many people will not respond to mail surveys. If they do respond to the surveys, you can’t be sure who is responding. In addition, mailing lists can be incomplete.\nWith your classmates, brainstorm some ways you could overcome these problems if you needed to conduct a phone or mail survey.\nAn instructor takes a sample by gathering data on five randomly selected students from each Lake Tahoe Community College math class. The type of sampling used is\n- cluster sampling\n- stratified sampling\n- simple random sampling\n- convenience sampling\nb\nA study was done to determine the age, number of times per week, and the duration (amount of time) of residents using a local park in San Jose. The first house in the neighborhood around the park was selected randomly and then every eighth house in the neighborhood around the park was interviewed. The sampling method was:\n- simple random\n- systematic\n- stratified\n- cluster\nName the sampling method used in each of the following situations:\n- A person in the airport is handing out questionnaires to travelers asking them to evaluate the airport’s service. The person does not ask travelers who are hurrying through the airport with their hands full of luggage but instead asks all travelers who are sitting near gates and not taking naps while they wait.\n- A teacher wants to know if her students are doing homework, so they randomly select rows two and five and then call on all students in row two and all students in row five to present the solutions to homework problems to the class.\n- The marketing manager for an electronics chain store wants information about the ages of its customers. Over the next two weeks, at each store location, 100 randomly selected customers are given questionnaires to fill out asking for information about age, as well as about other variables of interest.\n- The librarian at a public library wants to determine what proportion of the library users are children. The librarian has a tally sheet on which they mark whether books are checked out by an adult or a child. The librarian records this data for every fourth patron who checks out books.\n- A political party wants to know the reaction of voters to a debate between the candidates. The day after the debate, the party’s polling staff calls 1,200 randomly selected phone numbers. If a registered voter answers the phone or is available to come to the phone, that registered voter is asked whom they intend to vote for and whether the debate changed their opinion of the candidates.\n- convenience\n- cluster\n- stratified\n- systematic\n- simple random\nA “random survey” was conducted of 3,274 people of the “microprocessor generation” (people born since 1971, the year the microprocessor was invented). It was reported that 48% of those individuals surveyed stated that if they had \\$2,000 to spend, they would use it for computer equipment. Also, 66% of those surveyed considered themselves relatively savvy computer users.\n- Do you consider the sample size large enough for a study of this type? Why or why not?\n- Based on your “gut feeling,” do you believe the percents accurately reflect the U.S. population for those individuals born since 1971? If not, do you think the percents of the population are actually higher or lower than the sample statistics? Why? Additional information: The survey, reported by Intel Corporation, was filled out by individuals who visited the Los Angeles Convention Center to see the Smithsonian Institute's road show called “America’s Smithsonian.”\n- With this additional information, do you feel that all demographic and ethnic groups were equally represented at the event? Why or why not?\n- With the additional information, comment on how accurately you think the sample statistics reflect the population parameters.\nThe Well-Being Index is a survey that follows trends of U.S. residents on a regular basis. There are six areas of health and wellness covered in the survey: Life Evaluation, Emotional Health, Physical Health, Healthy Behavior, Work Environment, and Basic Access. Some of the questions used to measure the Index are listed below.\nIdentify the type of data obtained from each question used in this survey: qualitative, quantitative discrete, or quantitative continuous.\n- Do you have any health problems that prevent you from doing any of the things people your age can normally do?\n- During the past 30 days, for about how many days did poor health keep you from doing your usual activities?\n- In the last seven days, on how many days did you exercise for 30 minutes or more?\n- Do you have health insurance coverage?\n- qualitative\n- quantitative discrete\n- quantitative discrete\n- qualitative\nIn advance of the 1936 Presidential Election, a magazine titled Literary Digest released the results of an opinion poll predicting that the republican candidate Alf Landon would win by a large margin. The magazine sent post cards to approximately 10,000,000 prospective voters. These prospective voters were selected from the subscription list of the magazine, from automobile registration lists, from phone lists, and from club membership lists. Approximately 2,300,000 people returned the postcards.\n- Think about the state of the United States in 1936. Explain why a sample chosen from magazine subscription lists, automobile registration lists, phone books, and club membership lists was not representative of the population of the United States at that time.\n- What effect does the low response rate have on the reliability of the sample?\n- Are these problems examples of sampling error or nonsampling error?\n- During the same year, George Gallup conducted his own poll of 30,000 prospective voters. These researchers used a method they called \"quota sampling\" to obtain survey answers from specific subsets of the population. Quota sampling is an example of which sampling method described in this module?\nCrime-related and demographic statistics for 47 US states in 1960 were collected from government agencies, including the FBI's Uniform Crime Report. One analysis of this data found a strong connection between education and crime indicating that higher levels of education in a community correspond to higher crime rates.\nWhich of the potential problems with samples discussed in Data, Sampling, and Variation in Data and Sampling could explain this connection?\nCausality: The fact that two variables are related does not guarantee that one variable is influencing the other. We cannot assume that crime rate impacts education level or that education level impacts crime rate.\nConfounding: There are many factors that define a community other than education level and crime rate. Communities with high crime rates and high education levels may have other lurking variables that distinguish them from communities with lower crime rates and lower education levels. Because we cannot isolate these variables of interest, we cannot draw valid conclusions about the connection between education and crime. Possible lurking variables include police expenditures, unemployment levels, region, average age, and size.\nImagine you work for a polling company and a member of your team has proposed the following survey question:\n“Do you feel happy paying your taxes while some politicians are allowed to use loopholes and avoid paying their fair share of taxes?”\nAs part of preliminary data collection, 11 people responded to this question. Each participant answered “NO!”\nWhich of the potential problems with samples discussed in this module could explain this connection?\nA scholarly article about response rates begins with the following quote:\n“Declining contact and cooperation rates in random digit dial (RDD) national telephone surveys raise serious concerns about the validity of estimates drawn from such research.”(Scott Keeter et al., “Gauging the Impact of Growing Nonresponse on Estimates from a National RDD Telephone Survey,” Public Opinion Quarterly 70 no. 5 (2006), http://poq.oxfordjournals.org/content/70/5/759.full (accessed May 1, 2013).)\nThe Pew Research Center for People and the Press admits:\n“The percentage of people we interview – out of all we try to interview – has been declining over the past decade or more.” (Frequently Asked Questions, Pew Research Center for the People & the Press, http://www.people-press.org/methodology/frequently-asked-questions/#dont-you-have-trouble-getting-people-to-answer-your-polls (accessed May 1, 2013).)\n- What are some reasons for the decline in response rate over the past decade?\n- Explain why researchers are concerned with the impact of the declining response rate on public opinion polls.\n- Possible reasons: increased use of caller id, decreased use of landlines, increased use of private numbers, voice mail, privacy managers, hectic nature of personal schedules, decreased willingness to be interviewed\n- When a large number of people refuse to participate, then the sample may not have the same characteristics of the population. Perhaps the majority of people willing to participate are doing so because they feel strongly about the subject of the survey.\nBringing It Together\nSeven hundred and seventy-one distance learning students at Long Beach City College responded to surveys in a specific academic year. Highlights of the summary report are listed in Table.\nHave computer at home | 96%\nUnable to come to campus for classes | 65%\nAge 41 or over | 24%\nWould like LBCC to offer more DL courses | 95%\nTook DL classes due to a disability | 17%\nLive at least 16 miles from campus | 13%\nTook DL courses to fulfill transfer requirements | 71%\n- What percent of the students surveyed do not have a computer at home?\n- About how many students in the survey live at least 16 miles from campus?\n- If the same survey were done at Great Basin College in Elko, Nevada, do you think the percentages would be the same? Why?\nSeveral online textbook retailers advertise that they have lower prices than on-campus bookstores. However, an important factor is whether the Internet retailers actually have the textbooks that students need in stock. Students need to be able to get textbooks promptly at the beginning of the college term. If the book is not available, then a student would not be able to get the textbook at all, or might get a delayed delivery if the book is back ordered.\nMartin, a college newspaper reporter, is investigating textbook availability at online retailers. He decides to investigate one textbook for each of the following seven subjects: calculus, biology, chemistry, physics, statistics, geology, and general engineering. He consults textbook industry sales data and selects the most popular nationally used textbook in each of these subjects. He visits websites for a random sample of major online textbook sellers and looks up each of these seven textbooks to see if they are available in stock for quick delivery through these retailers. Based on his investigation, Martin writes an article in which he draws conclusions about the overall availability of all college textbooks through online textbook retailers.\nWrite an analysis of his study that addresses the following issues: Is his sample representative of the population of all college textbooks? Explain why or why not. Describe some possible sources of bias in this study, and how it might affect the results of the study. Give some suggestions about what could be done to improve the study.\nAnswers will vary. Sample answer: The sample is not representative of the population of all college textbooks. Two reasons why it is not representative are that he only sampled seven subjects and he only investigated one textbook in each subject. There are several possible sources of bias in the study. The seven subjects that he investigated are all in mathematics and the sciences; there are many subjects in the humanities, social sciences, and other subject areas, (for example: literature, art, history, psychology, sociology, business) that he did not investigate at all. It may be that different subject areas exhibit different patterns of textbook availability, but his sample would not detect such results.\nHe also looked only at the most popular textbook in each of the subjects he investigated. The availability of the most popular textbooks may differ from the availability of other textbooks in one of two ways:\n- the most popular textbooks may be more readily available online, because more new copies are printed, and more students nationwide are selling back their used copies OR\n- the most popular textbooks may be harder to find available online, because more student demand exhausts the supply more quickly.\nIn reality, many college students do not use the most popular textbook in their subject, and this study gives no useful information about the situation for those less popular textbooks.\nHe could improve this study by:\n- expanding the selection of subjects he investigates so that it is more representative of all subjects studied by college students, and\n- expanding the selection of textbooks he investigates within each subject to include a mixed representation of both the most popular and less popular textbooks.\n\nGlossary\nCluster Sampling a method for selecting a random sample and dividing the population into groups (clusters); use simple random sampling to select a set of clusters. Every individual in the chosen clusters is included in the sample.\nContinuous Random Variable a random variable (RV) whose outcomes are measured; the height of trees in the forest is a continuous RV.\nConvenience Sampling a nonrandom method of selecting a sample; this method selects individuals that are easily accessible and may result in biased data.\nNonsampling Error an issue that affects the reliability of sampling data other than natural variation; it includes a variety of human errors including poor study design, biased sampling methods, inaccurate information provided by study participants, data entry errors, and poor analysis.\nQualitative Data a set of observations (a set of possible outcomes); qualitative data has an attribute whose value is indicated by a label\nQuantitative Data a set of observations (a set of possible outcomes); quantitative (an attribute whose value is indicated by a number) data can be separated into two subgroups: discrete and continuous. Data is discrete if it is the result of counting (such as the number of students of a given ethnic group in a class or the number of books on a shelf). Data is continuous if it is the result of measuring (such as distance traveled or weight of luggage).\nRandom Sampling a method of selecting a sample that gives every member of the population an equal chance of being selected.\nSampling Bias not all members of the population are equally likely to be selected\nSampling Error the natural variation that results from selecting a sample to represent a larger population; this variation decreases as the sample size increases, so selecting larger samples reduces sampling error.\nSampling with Replacement Once a member of the population is selected for inclusion in a sample, that member is returned to the population for the selection of the next individual.\nSampling without Replacement A member of the population may be chosen for inclusion in a sample only once. If chosen, the member is not returned to the population before the next selection.\nSimple Random Sampling a straightforward method for selecting a random sample; give each member of the population a number. Use a random number generator to select a set of labels. These randomly selected labels identify the members of your sample.\nStratified Sampling a method for selecting a random sample used to ensure that subgroups of the population are represented adequately; divide the population into groups (strata). Use simple random sampling to identify a proportionate number of individuals from each stratum.\nSystematic Sampling a method for selecting a random sample; list the members of the population. Use simple random sampling to select a starting point in the population. Let k = (number of individuals in the population)/(number of individuals needed in the sample). Choose every kth individual in the list starting with the one that was randomly selected. If necessary, return to the beginning of the population list to complete your sample."}
{"document_id": "openstax-intro-statistics-m46882", "title": "Sampling and Data — Frequency, Frequency Tables, and Levels of Measurement", "source": "https://openstax.org/books/introductory-statistics-2e/pages/1-3-frequency-frequency-tables-and-levels-of-measurement", "license": "CC-BY-4.0", "text": "Once you have a set of data, you will need to organize it so that you can analyze how frequently each datum occurs in the set. However, when calculating the frequency, you may need to round your answers so that they are as precise as possible.\nAnswers and Rounding Off\nA simple way to round off answers is to carry your final answer one more decimal place than was present in the original data. Round off only the final answer. Do not round off any intermediate results, if possible. If it becomes necessary to round off intermediate results, carry them to at least twice as many decimal places as the final answer. For example, the average of the three quiz scores four, six, and nine is 6.3, rounded off to the nearest tenth, because the data are whole numbers. Most answers will be rounded off in this manner.\nIt is not necessary to reduce most fractions in this course. Especially in Probability Topics, the chapter on probability, it is more helpful to leave an answer as an unreduced fraction.\nLevels of Measurement\nThe way a set of data is measured is called its level of measurement. Correct statistical procedures depend on a researcher being familiar with levels of measurement. Not every statistical operation can be used with every set of data. Data can be classified into four levels of measurement. They are (from lowest to highest level):\n- Nominal scale level\n- Ordinal scale level\n- Interval scale level\n- Ratio scale level\nData that is measured using a nominal scale is qualitative (categorical). Categories, colors, names, labels and favorite foods along with yes or no responses are examples of nominal level data. Nominal scale data are not ordered. For example, trying to classify people according to their favorite food does not make any sense. Putting pizza first and sushi second is not meaningful.\nSmartphone companies are another example of nominal scale data. The data are the names of the companies that make smartphones, but there is no agreed upon order of these brands, even though people may have personal preferences. Nominal scale data cannot be used in calculations.\nData that is measured using an ordinal scale is similar to nominal scale data but there is a big difference. The ordinal scale data can be ordered. An example of ordinal scale data is a list of the top five national parks in the United States. The top five national parks in the United States can be ranked from one to five but we cannot measure differences between the data.\nAnother example of using the ordinal scale is a cruise survey where the responses to questions about the cruise are “excellent,” “good,” “satisfactory,” and “unsatisfactory.” These responses are ordered from the most desired response to the least desired. But the differences between two pieces of data cannot be measured. Like the nominal scale data, ordinal scale data cannot be used in calculations.\nLike data measured on an ordinal scale, data that are measured on an interval scale have a definite ordering. While ordinal scale data are categorical, or qualitative, interval scale data are numerical, or quantitative. It is possible to calculate differences between values measured on an interval scale. There is no minimum or \"zero\" value, however.\nTemperature scales like Celsius (C) and Fahrenheit (F) are measured by using the interval scale. In both temperature measurements, 40° is equal to 100° minus 60°. Differences make sense. But 0 degrees does not represent a minimum value. In both scales, 0 is not the absolute lowest temperature. Temperatures like -10° F and -15° C exist and are colder than 0.\nData that are measured using the ratio scale give the most information. Ratio scale data is like interval scale data, but there is a minimum value and ratios can be calculated. For example, four multiple choice statistics final exam scores are 80, 68, 20 and 92 (out of a possible 100 points). The exams are machine-graded.\nThe data can be put in order from lowest to highest: 20, 68, 80, 92.\nThe differences between the data have meaning. The score 92 is more than the score 68 by 24 points. Ratios can be calculated. The minimum score is 0. So 80 is four times 20. The score of 80 is four times better than the score of 20.\nFrequency\nTwenty students were asked how many hours they worked per day. Their responses, in hours, are as follows:\n- 5\n- 6\n- 3\n- 3\n- 2\n- 4\n- 7\n- 5\n- 2\n- 3\n- 5\n- 6\n- 5\n- 4\n- 4\n- 3\n- 5\n- 2\n- 5\n- 3\n.\nTable lists the different data values in ascending order and their frequencies.\nDATA VALUE | FREQUENCY\n2 | 3\n3 | 5\n4 | 3\n5 | 6\n6 | 2\n7 | 1\nA frequency is the number of times a value of the data occurs. According to Table, there are three students who work two hours, five students who work three hours, and so on. The sum of the values in the frequency column, 20, represents the total number of students included in the sample.\nA relative frequency is the ratio (fraction or proportion) of the number of times a value of the data occurs in the set of all outcomes to the total number of outcomes. To find the relative frequencies, divide each frequency by the total number of students in the sample–in this case, 20. Relative frequencies can be written as fractions, percents, or decimals.\nDATA VALUE | FREQUENCY | RELATIVE FREQUENCY\n2 | 3 | $\\frac{3}{20}$ or 0.15\n3 | 5 | $\\frac{5}{20}$ or 0.25\n4 | 3 | $\\frac{3}{20}$ or 0.15\n5 | 6 | $\\frac{6}{20}$ or 0.30\n6 | 2 | $\\frac{2}{20}$ or 0.10\n7 | 1 | $\\frac{1}{20}$ or 0.05\nThe sum of the values in the relative frequency column of Table is $\\frac{20}{20}$, or 1.\nCumulative relative frequency is the accumulation of the previous relative frequencies. To find the cumulative relative frequencies, add all the previous relative frequencies to the relative frequency for the current row, as shown in Table.\nDATA VALUE | FREQUENCY | RELATIVE FREQUENCY | CUMULATIVE RELATIVE FREQUENCY\n2 | 3 | $\\frac{3}{20}$ or 0.15 | 0.15\n3 | 5 | $\\frac{5}{20}$ or 0.25 | 0.15 + 0.25 = 0.40\n4 | 3 | $\\frac{3}{20}$ or 0.15 | 0.40 + 0.15 = 0.55\n5 | 6 | $\\frac{6}{20}$ or 0.30 | 0.55 + 0.30 = 0.85\n6 | 2 | $\\frac{2}{20}$ or 0.10 | 0.85 + 0.10 = 0.95\n7 | 1 | $\\frac{1}{20}$ or 0.05 | 0.95 + 0.05 = 1.00\nThe last entry of the cumulative relative frequency column is one, indicating that one hundred percent of the data has been accumulated.\nNOTE\nBecause of rounding, the relative frequency column may not always sum to one, and the last entry in the cumulative relative frequency column may not be one. However, they each should be close to one.\nTable represents the heights, in inches, of a sample of 100 semiprofessional soccer players.\nHEIGHTS (INCHES) | FREQUENCY | RELATIVE FREQUENCY | CUMULATIVE RELATIVE FREQUENCY\n59.95–61.95 | 5 | $\\frac{5}{100}$ = 0.05 | 0.05\n61.95–63.95 | 3 | $\\frac{3}{100}$ = 0.03 | 0.05 + 0.03 = 0.08\n63.95–65.95 | 15 | $\\frac{15}{100}$ = 0.15 | 0.08 + 0.15 = 0.23\n65.95–67.95 | 40 | $\\frac{40}{100}$ = 0.40 | 0.23 + 0.40 = 0.63\n67.95–69.95 | 17 | $\\frac{17}{100}$ = 0.17 | 0.63 + 0.17 = 0.80\n69.95–71.95 | 12 | $\\frac{12}{100}$ = 0.12 | 0.80 + 0.12 = 0.92\n71.95–73.95 | 7 | $\\frac{7}{100}$ = 0.07 | 0.92 + 0.07 = 0.99\n73.95–75.95 | 1 | $\\frac{1}{100}$ = 0.01 | 0.99 + 0.01 = 1.00\nTotal = 100 | Total = 1.00\nThe data in this table have been grouped into the following intervals:\n- 59.95 to 61.95 inches\n- 61.95 to 63.95 inches\n- 63.95 to 65.95 inches\n- 65.95 to 67.95 inches\n- 67.95 to 69.95 inches\n- 69.95 to 71.95 inches\n- 71.95 to 73.95 inches\n- 73.95 to 75.95 inches\nNOTE\nThis example is used again in Descriptive Statistics, where the method used to compute the intervals will be explained.\nIn this sample, there are five players whose heights fall within the interval 59.95–61.95 inches, three players whose heights fall within the interval 61.95–63.95 inches, 15 players whose heights fall within the interval 63.95–65.95 inches, 40 players whose heights fall within the interval 65.95–67.95 inches, 17 players whose heights fall within the interval 67.95–69.95 inches, 12 players whose heights fall within the interval 69.95–71.95, seven players whose heights fall within the interval 71.95–73.95, and one player whose heights fall within the interval 73.95–75.95. All heights fall between the endpoints of an interval and not at the endpoints.\nFrom Table, find the percentage of heights that are less than 65.95 inches.\nIf you look at the first, second, and third rows, the heights are all less than 65.95 inches. There are 5 + 3 + 15 = 23 players whose heights are less than 65.95 inches. The percentage of heights less than 65.95 inches is then $\\frac{23}{100}$ or 23%. This percentage is the cumulative relative frequency entry in the third row.\nTry It\nTable shows the amount, in inches, of annual rainfall in a sample of towns.\nRainfall (Inches) | Frequency | Relative Frequency | Cumulative Relative Frequency\n2.95–4.97 | 6 | $\\frac{6}{50}$ = 0.12 | 0.12\n4.97–6.99 | 7 | $\\frac{7}{50}$ = 0.14 | 0.12 + 0.14 = 0.26\n6.99–9.01 | 15 | $\\frac{15}{50}$ = 0.30 | 0.26 + 0.30 = 0.56\n9.01–11.03 | 8 | $\\frac{8}{50}$ = 0.16 | 0.56 + 0.16 = 0.72\n11.03–13.05 | 9 | $\\frac{9}{50}$ = 0.18 | 0.72 + 0.18 = 0.90\n13.05–15.07 | 5 | $\\frac{5}{50}$ = 0.10 | 0.90 + 0.10 = 1.00\nTotal = 50 | Total = 1.00\nFrom Table, find the percentage of rainfall that is less than 9.01 inches.\nFrom Table, find the percentage of heights that fall between 61.95 and 65.95 inches.\nAdd the relative frequencies in the second and third rows: 0.03 + 0.15 = 0.18 or 18%.\nTry It\nFrom Table, find the percentage of rainfall that is between 6.99 and 13.05 inches.\nUse the heights of the 100 semiprofessional soccer players in Table. Fill in the blanks and check your answers.\n- The percentage of heights that are from 67.95 to 71.95 inches is: ____.\n- The percentage of heights that are from 67.95 to 73.95 inches is: ____.\n- The percentage of heights that are more than 65.95 inches is: ____.\n- The number of players in the sample who are between 61.95 and 71.95 inches tall is: ____.\n- What kind of data are the heights?\n- Describe how you could gather this data (the heights) so that the data are characteristic of all semiprofessional soccer players.\nRemember, you count frequencies. To find the relative frequency, divide the frequency by the total number of data values. To find the cumulative relative frequency, add all of the previous relative frequencies to the relative frequency for the current row.\n- 29%\n- 36%\n- 77%\n- 87\n- quantitative continuous\n- get rosters from each team and choose a simple random sample from each\nTry It\nFrom Table, find the number of towns that have rainfall between 2.95 and 9.01 inches.\nIn your class, have someone conduct a survey of the number of siblings each student has. Create a frequency table. Add to it a relative frequency column and a cumulative relative frequency column. Answer the following questions:\n- What percentage of the students in your class have no siblings?\n- What percentage of the students have from one to three siblings?\n- What percentage of the students have fewer than three siblings?\nNineteen people were asked how many miles, to the nearest mile, they commute to work each day. The data are as follows:\n- 2\n- 5\n- 7\n- 3\n- 2\n- 10\n- 18\n- 15\n- 20\n- 7\n- 10\n- 18\n- 5\n- 12\n- 13\n- 12\n- 4\n- 5\n- 10\n. Table was produced:\nDATA | FREQUENCY | RELATIVE FREQUENCY | CUMULATIVE RELATIVE FREQUENCY\n2 | 2 | $\\frac{2}{19}$ | $\\frac{2}{19}$\n3 | 1 | $\\frac{1}{19}$ | $\\frac{3}{19}$\n4 | 1 | $\\frac{1}{19}$ | $\\frac{4}{19}$\n5 | 3 | $\\frac{3}{19}$ | $\\frac{7}{19}$\n7 | 2 | $\\frac{2}{19}$ | $\\frac{9}{19}$\n10 | 3 | $\\frac{3}{19}$ | $\\frac{12}{19}$\n12 | 2 | $\\frac{2}{19}$ | $\\frac{14}{19}$\n13 | 1 | $\\frac{1}{19}$ | $\\frac{15}{19}$\n15 | 1 | $\\frac{1}{19}$ | $\\frac{16}{19}$\n18 | 1 | $\\frac{1}{19}$ | $\\frac{17}{19}$\n20 | 1 | $\\frac{1}{19}$ | $\\frac{19}{19}$\n- Is the table correct? If it is not correct, what is wrong?\n- True or False: Three percent of the people surveyed commute three miles or less. If the statement is not correct, what should it be? If the table is incorrect, make the corrections.\n- What fraction of the people surveyed commute five or seven miles?\n- What fraction of the people surveyed commute 12 miles or more? Less than 12 miles? Between five and 13 miles (not including five and 13 miles)? The cumulative relative frequency column should read: $\\frac{2}{19},\\frac{3}{19},\\frac{4}{19},\\frac{7}{19},\\frac{9}{19},\\frac{12}{19},\\frac{14}{19},\\frac{15}{19},\\frac{16}{19},\\frac{18}{19},\\frac{19}{19}$\n- No. The frequency column sums to 18, not 19. Not all cumulative relative frequencies are correct.\n- False. The frequency for three miles is one; for two miles, two.\n- $\\frac{5}{19}$\n- $\\frac{7}{19}$, $\\frac{12}{19}$, $\\frac{7}{19}$\nTry It\nTable represents the amount, in inches, of annual rainfall in a sample of towns. What fraction of towns surveyed get between 11.03 and 13.05 inches of rainfall each year?\nTable contains data for the number of years of service for 70 federal employees.\nNumber of Years of Service | Number of Federal Employees\n24 | 2\n25 | 1\n26 | 3\n27 | 0\n28 | 4\n29 | 6\n30 | 11\n31 | 12\n32 | 7\n33 | 8\n34 | 6\n35 | 10\nAnswer the following questions.\n- What is the cumulative frequency for years of service between 30 and 35 (inclusive)?\n- What is the relative frequency for 30 years of service?\n- What is the relative frequency for 30 years of service or less?\n- What is the relative frequency for 25 years of service or more?\n- Cumulative frequency is 54.\n- 11/70 or 0.157 or 15.7%\n- 27/70 or 0.386 or 38.6%\n- 68/70 or 0.971 or 97.1%\nTry It\nTable contains the total number of fatal motor vehicle traffic crashes in the United States for a period of 18 years.\nYear | Total Number of Crashes | Year | Total Number of Crashes\nYear 1 | 36,254 | Year 11 | 38,444\nYear 2 | 37,241 | Year 12 | 39,252\nYear 3 | 37,494 | Year 13 | 38,648\nYear 4 | 37,324 | Year 14 | 37,435\nYear 5 | 37,107 | Year 15 | 34,172\nYear 6 | 37,140 | Year 16 | 30,862\nYear 7 | 37,526 | Year 17 | 30,296\nYear 8 | 37,862 | Year 18 | 29,757\nYear 9 | 38,491 | Total | 653,782\nYear 10 | 38,477\nAnswer the following questions.\n- What is the frequency of deaths measured from Year 7 through Year 11?\n- What percentage of deaths occurred after Year 13?\n- What is the relative frequency of deaths that occurred in Year 7 or before?\n- What is the percentage of deaths that occurred in Year 18?\n- What is the cumulative relative frequency for Year 13? Explain what this number tells you about the data.\nReferences\n“State & County QuickFacts,” U.S. Census Bureau. http://quickfacts.census.gov/qfd/download_data.html (accessed May 1, 2013).\n“State & County QuickFacts: Quick, easy access to facts about people, business, and geography,” U.S. Census Bureau. http://quickfacts.census.gov/qfd/index.html (accessed May 1, 2013).\n“Table 5: Direct hits by mainland United States Hurricanes (1851-2004),” National Hurricane Center, http://www.nhc.noaa.gov/gifs/table5.gif (accessed May 1, 2013).\n“Levels of Measurement,” http://infinity.cos.edu/faculty/woodbury/stats/tutorial/Data_Levels.htm (accessed May 1, 2013).\nCourtney Taylor, “Levels of Measurement,” about.com, http://statistics.about.com/od/HelpandTutorials/a/Levels-Of-Measurement.htm (accessed May 1, 2013).\nDavid Lane. “Levels of Measurement,” Connexions, http://cnx.org/content/m10809/latest/ (accessed May 1, 2013).\nChapter Review\nSome calculations generate numbers that are artificially precise. It is not necessary to report a value to eight decimal places when the measures that generated that value were only accurate to the nearest tenth. Round off your final answer to one more decimal place than was present in the original data. This means that if you have data measured to the nearest tenth of a unit, report the final statistic to the nearest hundredth.\nIn addition to rounding your answers, you can measure your data using the following four levels of measurement.\n- Nominal scale level: data that cannot be ordered nor can it be used in calculations\n- Ordinal scale level: data that can be ordered; the differences cannot be measured\n- Interval scale level: data with a definite ordering but no starting point; the differences can be measured, but there is no such thing as a ratio.\n- Ratio scale level: data with a starting point that can be ordered; the differences have meaning and ratios can be calculated.\nWhen organizing data, it is important to know how many times a value appears. How many statistics students study five hours or more for an exam? What percent of families on our block own two pets? Frequency, relative frequency, and cumulative relative frequency are measures that answer questions like these.\nWhat type of measure scale is being used? Nominal, ordinal, interval or ratio.\n- High school soccer players classified by their athletic ability: Superior, Average, Above average\n- Baking temperatures for various main dishes: 350, 400, 325, 250, 300\n- The colors of crayons in a 24-crayon box\n- Social security numbers\n- Incomes measured in dollars\n- A satisfaction survey of a social website by number: 1 = very satisfied, 2 = somewhat satisfied, 3 = not satisfied\n- Political outlook: extreme left, left-of-center, right-of-center, extreme right\n- Time of day on an analog watch\n- The distance in miles to the closest grocery store\n- The dates 1066, 1492, 1644, 1947, and 1944\n- The heights of 21–65 year-old women\n- Common letter grades: A, B, C, D, and F\n- ordinal\n- interval\n- nominal\n- nominal\n- ratio\n- ordinal\n- nominal\n- interval\n- ratio\n- interval\n- ratio\n- ordinal\nHOMEWORK\nFifty part-time students were asked how many courses they were taking this term. The (incomplete) results are shown below:\n# of Courses | Frequency | Relative Frequency | Cumulative Relative Frequency\n1 | 30 | 0.6\n2 | 15\n3\n- Fill in the blanks in Table.\n- What percent of students take exactly two courses?\n- What percent of students take one or two courses?\nSixty adults with gum disease were asked the number of times per week they used to floss before their diagnosis. The (incomplete) results are shown in Table.\n# Flossing per Week | Frequency | Relative Frequency | Cumulative Relative Freq.\n0 | 27 | 0.4500\n1 | 18\n3 | 0.9333\n6 | 3 | 0.0500\n7 | 1 | 0.0167\n- Fill in the blanks in Table.\n- What percent of adults flossed six times per week?\n- What percent flossed at most three times per week?\n-\n# Flossing per Week | Frequency | Relative Frequency | Cumulative Relative Frequency\n0 | 27 | 0.4500 | 0.4500\n1 | 18 | 0.3000 | 0.7500\n3 | 11 | 0.1833 | 0.9333\n6 | 3 | 0.0500 | 0.9833\n7 | 1 | 0.0167 | 1\n- 5.00%\n- 93.33%\nNineteen immigrants to the U.S were asked how many years, to the nearest year, they have lived in the U.S. The data are as follows:\n- 2\n- 5\n- 7\n- 2\n- 2\n- 10\n- 20\n- 15\n- 0\n- 7\n- 0\n- 20\n- 5\n- 12\n- 15\n- 12\n- 4\n- 5\n- 10\n.\nTable was produced.\nData | Frequency | Relative Frequency | Cumulative Relative Frequency\n0 | 2 | $\\frac{2}{19}$ | 0.1053\n2 | 3 | $\\frac{3}{19}$ | 0.2632\n4 | 1 | $\\frac{1}{19}$ | 0.3158\n5 | 3 | $\\frac{3}{19}$ | 0.4737\n7 | 2 | $\\frac{2}{19}$ | 0.5789\n10 | 2 | $\\frac{2}{19}$ | 0.6842\n12 | 2 | $\\frac{2}{19}$ | 0.7895\n15 | 1 | $\\frac{1}{19}$ | 0.8421\n20 | 1 | $\\frac{1}{19}$ | 1.0000\n- Fix the errors in Table. Also, explain how someone might have arrived at the incorrect number(s).\n- Explain what is wrong with this statement: “47 percent of the people surveyed have lived in the U.S. for 5 years.”\n- Fix the statement in b to make it correct.\n- What fraction of the people surveyed have lived in the U.S. five or seven years?\n- What fraction of the people surveyed have lived in the U.S. at most 12 years?\n- What fraction of the people surveyed have lived in the U.S. fewer than 12 years?\n- What fraction of the people surveyed have lived in the U.S. from five to 20 years, inclusive?\nHow much time does it take to travel to work? Table shows the mean commute time by state for workers at least 16 years old who are not working at home. Find the mean travel time, and round off the answer properly.\n24.0 | 24.3 | 25.9 | 18.9 | 27.5 | 17.9 | 21.8 | 20.9 | 16.7 | 27.3\n18.2 | 24.7 | 20.0 | 22.6 | 23.9 | 18.0 | 31.4 | 22.3 | 24.0 | 25.5\n24.7 | 24.6 | 28.1 | 24.9 | 22.6 | 23.6 | 23.4 | 25.7 | 24.8 | 25.5\n21.2 | 25.7 | 23.1 | 23.0 | 23.9 | 26.0 | 16.3 | 23.1 | 21.4 | 21.5\n27.0 | 27.0 | 18.6 | 31.7 | 23.3 | 30.1 | 22.9 | 23.3 | 21.7 | 18.6\nThe sum of the travel times is 1,173.1. Divide the sum by 50 to calculate the mean value: 23.462. Because each state’s travel time was measured to the nearest tenth, round this calculation to the nearest hundredth: 23.46.\nA leading business magazine publishes data on small businesses (defined as businesses that have been publicly traded for at least a year, have a stock price of at least \\$5 per share, and have reported annual revenue between \\$5 million and \\$1 billion). Table shows the ages of the chief executive officers for the first 60 ranked small businesses.\nAge | Frequency | Relative Frequency | Cumulative Relative Frequency\n40–44 | 3\n45–49 | 11\n50–54 | 13\n55–59 | 16\n60–64 | 10\n65–69 | 6\n70–74 | 1\n- What is the frequency for CEO ages between 54 and 65?\n- What percentage of CEOs are 65 years or older?\n- What is the relative frequency of ages under 50?\n- What is the cumulative relative frequency for CEOs younger than 55?\n- Which graph shows the relative frequency and which shows the cumulative relative frequency?\n[Image: Graph A is a bar graph with 7 bars. The x-axis shows CEO's ages in intervals of 5 years starting with 40 - 44. The y-axis shows the relative frequency in intervals of 0.2 from 0 - 1. The highest relative frequency shown is 0.27. Graph B is a bar graph with 7 bars. The x-axis shows CEO's ages in intervals of 5 years starting with 40 - 44. The y-axis shows relative frequency in intervals of 0.2 from 0 - 1. The highest relative frequency shown is 1.]\nUse the following information to answer the next two exercises: Table contains data on hurricanes that have made direct hits on the U.S. Between 1851 and 2004. A hurricane is given a strength category rating based on the minimum wind speed generated by the storm.\nCategory | Number of Direct Hits | Relative Frequency | Cumulative Frequency\n1 | 109 | 0.3993 | 0.3993\n2 | 72 | 0.2637 | 0.6630\n3 | 71 | 0.2601\n4 | 18 | 0.9890\n5 | 3 | 0.0110 | 1.0000\nTotal = 273\nWhat is the relative frequency of direct hits that were category 4 hurricanes?\n- 0.0768\n- 0.0659\n- 0.2601\n- Not enough information to calculate\nb\nWhat is the relative frequency of direct hits that were AT MOST a category 3 storm?\n- 0.3480\n- 0.9231\n- 0.2601\n- 0.3370\n\nGlossary\nCumulative Relative Frequency The term applies to an ordered set of observations from smallest to largest. The cumulative relative frequency is the sum of the relative frequencies for all values that are less than or equal to the given value.\nFrequency the number of times a value of the data occurs\nRelative Frequency the ratio of the number of times a value of the data occurs in the set of all outcomes to the total number of outcomes"}
{"document_id": "openstax-intro-statistics-m46919", "title": "Sampling and Data — Experimental Design and Ethics", "source": "https://openstax.org/books/introductory-statistics-2e/pages/1-4-experimental-design-and-ethics", "license": "CC-BY-4.0", "text": "Does aspirin reduce the risk of heart attacks? Is one brand of fertilizer more effective at growing roses than another? Is fatigue as dangerous to a driver as the influence of alcohol? Questions like these are answered using randomized experiments. In this module, you will learn important aspects of experimental design. Proper study design ensures the production of reliable, accurate data.\nThe purpose of an experiment is to investigate the relationship between two variables. When one variable causes change in another, we call the first variable the explanatory variable. The affected variable is called the response variable. In a randomized experiment, the researcher manipulates values of the explanatory variable and measures the resulting changes in the response variable. The different values of the explanatory variable are called treatments. An experimental unit is a single object or individual to be measured.\nYou want to investigate the effectiveness of vitamin E in preventing disease. You recruit a group of subjects and ask them if they regularly take vitamin E. You notice that the subjects who take vitamin E exhibit better health on average than those who do not. Does this prove that vitamin E is effective in disease prevention? It does not. There are many differences between the two groups compared in addition to vitamin E consumption. People who take vitamin E regularly often take other steps to improve their health: exercise, diet, other vitamin supplements, choosing not to smoke. Any one of these factors could be influencing health. As described, this study does not prove that vitamin E is the key to disease prevention.\nAdditional variables that can cloud a study are called lurking variables. In order to prove that the explanatory variable is causing a change in the response variable, it is necessary to isolate the explanatory variable. The researcher must design her experiment in such a way that there is only one difference between groups being compared: the planned treatments. This is accomplished by the random assignment of experimental units to treatment groups. When subjects are assigned treatments randomly, all of the potential lurking variables are spread equally among the groups. At this point, the only difference between groups is the one imposed by the researcher. Different outcomes measured in the response variable, therefore, must be a direct result of the different treatments. In this way, an experiment can prove a cause-and-effect connection between the explanatory and response variables.\nThe power of suggestion can have an important influence on the outcome of an experiment. Studies have shown that the expectation of the study participant can be as important as the actual medication. In one study of performance-enhancing drugs, researchers noted:\nResults showed that believing one had taken the substance resulted in [performance] times almost as fast as those associated with consuming the drug itself. In contrast, taking the drug without knowledge yielded no significant performance increment.McClung, M. Collins, D. “Because I know it will!”: placebo effects of an ergogenic aid on athletic performance. Journal of Sport & Exercise Psychology. 2007 Jun. 29(3):382-94. Web. April 30, 2013.\nWhen participation in a study prompts a physical response from a participant, it is difficult to isolate the effects of the explanatory variable. To counter the power of suggestion, researchers set aside one treatment group as a control group. This group is given a placebo treatment–an active treatment that cannot directly influence the response variable. The control group helps researchers balance the effects of being in an experiment with the effects of the active treatments. Of course, if you are participating in a study and you know that you are receiving a pill which contains no actual medication, then the power of suggestion is no longer a factor. Blinding or masking in a randomized experiment preserves the power of suggestion. When a person involved in a research study is blinded, they do not know who is receiving the active treatment(s) and who is receiving the placebo treatment. A double-blind experiment is one in which both the subjects and the researchers involved with the subjects are blinded.\nResearchers want to investigate whether taking aspirin regularly reduces the risk of heart attack. Four hundred people between the ages of 50 and 84 are recruited as participants. The people are divided randomly into two groups: one group will take aspirin, and the other group will take a placebo. Each person takes one pill each day for three years, but they don't know whether they are taking aspirin or the placebo. At the end of the study, researchers count the number of people in each group who have had heart attacks.\nIdentify the following values for this study: population, sample, experimental units, explanatory variable, response variable, treatments.\nThe population is people aged 50 to 84. The sample is the 400 people who participated. The experimental units are the individual people in the study. The explanatory variable is oral medication. The treatments are aspirin and a placebo. The response variable is whether a subject had a heart attack.\nTry It\nA study needs to be conducted of the effect of three medicines A, B, and C on the height of adults aged 30 to 45. 90 adults were selected randomly and divided into three equal groups. The first group was asked to take medicine A for 6 months. The second group was asked to take medicine B for 6 months. The third group was asked to take medicine C for 6 months. The average change in height in each group is calculated at the end of the study.\nIdentify the following values for this study: population, sample, experimental units, explanatory variables, response variable, treatments.\nThe population is adults aged 30 to 45.\nThe sample is 90 adults that were selected randomly.\nThe experimental units are the individual adults in the study.\nThe explanatory variable is the medicines.\nThe treatments are medicines A, B, and C.\nThe response variable is the average change in height in the group.\nThe Smell & Taste Treatment and Research Foundation conducted a study to investigate whether smell can affect learning. Subjects completed mazes multiple times while wearing masks. They completed the pencil and paper mazes three times wearing floral-scented masks, and three times with unscented masks. Participants were assigned at random to wear the floral mask during the first three trials or during the last three trials. For each trial, researchers recorded the time it took to complete the maze and the subject’s impression of the mask’s scent: positive, negative, or neutral.\n- Describe the explanatory and response variables in this study.\n- What are the treatments?\n- Identify any lurking variables that could interfere with this study.\n- Is it possible to use blinding in this study?\n- The explanatory variable is scent, and the response variable is the time it takes to complete the maze.\n- There are two treatments: a floral-scented mask and an unscented mask.\n- All subjects experienced both treatments. The order of treatments was randomly assigned so there were no differences between the treatment groups. Random assignment eliminates the problem of lurking variables.\n- Subjects will clearly know whether they can smell flowers or not, so subjects cannot be blinded in this study. Researchers timing the mazes can be blinded, though. The researcher who is observing a subject will not know which mask is being worn.\nTry It\nThe Placebo Research Group conducted a study to find the extent of placebo effects. A group of men randomly selected were asked to take a test before and after taking a pill that induces a mild headache. The pill in half of the randomly selected men was replaced with a similar pill that has no effect. For each trial, researchers recorded the change in time men took to complete the tests before and after taking the pill.\n- Describe the explanatory and response variable in this study.\n- What are the treatments?\n- Identify any lurking variables that could interfere with this study.\n- Is it possible to use blinding in this study?\n- The explanatory variable is the pill, and the response variable is the change in time taken between the two tests.\n- There are two treatments: a pill that induces a mild headache and a pill that has no effect.\n- All subjects have been given pills. The men for kind of pill intake are randomly selected. Random assignment eliminates the problem of lurking variables.\n- Subjects do not know which pill they are taking, so they are blinded in this study. The researchers know which subject is taking which pill, so they cannot be blinded in this study.\nA researcher wants to study the effects of birth order on personality. Explain why this study could not be conducted as a randomized experiment. What is the main problem in a study that cannot be designed as a randomized experiment?\nThe explanatory variable is birth order. You cannot randomly assign a person’s birth order. Random assignment eliminates the impact of lurking variables. When you cannot assign subjects to treatment groups at random, there will be differences between the groups other than the explanatory variable.\nTry It\nYou are concerned about the effects of texting on driving performance. Design a study to test the response time of drivers while texting and while driving only. How many seconds does it take for a driver to respond when a leading car hits the brakes?\n- Describe the explanatory and response variables in the study.\n- What are the treatments?\n- What should you consider when selecting participants?\n- Your research partner wants to divide participants randomly into two groups: one to drive without distraction and one to text and drive simultaneously. Is this a good idea? Why or why not?\n- Identify any lurking variables that could interfere with this study.\n- How can blinding be used in this study?\nEthics\nThe widespread misuse and misrepresentation of statistical information often gives the field a bad name. Some say that “numbers don’t lie,” but the people who use numbers to support their claims often do.\nAn investigation of famous social psychologist, Diederik Stapel, has led to the retraction of his articles from some of the world’s top journals including Journal of Experimental Social Psychology, Social Psychology, Basic and Applied Social Psychology, British Journal of Social Psychology, and the magazine Science. Diederik Stapel is a former professor at Tilburg University in the Netherlands. An extensive investigation involving three universities where Stapel has worked concluded that the psychologist is guilty of fraud on a colossal scale. Falsified data taints over 55 papers he authored and 10 Ph.D. dissertations that he supervised.\nStapel did not deny that his deceit was driven by ambition. But it was more complicated than that, he told me. He insisted that he loved social psychology but had been frustrated by the messiness of experimental data, which rarely led to clear conclusions. His lifelong obsession with elegance and order, he said, led him to concoct sexy results that journals found attractive. “It was a quest for aesthetics, for beauty—instead of the truth,” he said. He described his behavior as an addiction that drove him to carry out acts of increasingly daring fraud, like a junkie seeking a bigger and better high. Yudhijit Bhattacharjee, “The Mind of a Con Man,” Magazine, New York Times, April 26, 2013. Available online at: http://www.nytimes.com/2013/04/28/magazine/diederik-stapels-audacious-academic-fraud.html?src=dayp&_r=2& (accessed May 1, 2013).\nThe committee investigating Stapel concluded that he is guilty of several practices including:\n- creating datasets, which largely confirmed the prior expectations,\n- altering data in existing datasets,\n- changing measuring instruments without reporting the change, and\n- misrepresenting the number of experimental subjects.\nClearly, it is never acceptable to falsify data the way this researcher did. Sometimes, however, violations of ethics are not as easy to spot.\nResearchers have a responsibility to verify that proper methods are being followed. The report describing the investigation of Stapel’s fraud states that, “statistical flaws frequently revealed a lack of familiarity with elementary statistics.”“Flawed Science: The Fraudulent Research Practices of Social Psychologist Diederik Stapel,” Tillburg University, November 28, 2012, http://www.tilburguniversity.edu/upload/064a10cd-bce5-4385-b9ff-05b840caeae6_120695_Rapp_nov_2012_UK_web.pdf (accessed May 1, 2013). Many of Stapel’s co-authors should have spotted irregularities in his data. Unfortunately, they did not know very much about statistical analysis, and they simply trusted that he was collecting and reporting data properly.\nMany types of statistical fraud are difficult to spot. Some researchers simply stop collecting data once they have just enough to prove what they had hoped to prove. They don’t want to take the chance that a more extensive study would complicate their lives by producing data contradicting their hypothesis.\nProfessional organizations, like the American Statistical Association, clearly define expectations for researchers. There are even laws in the federal code about the use of research data.\nWhen a statistical study uses human participants, as in medical studies, both ethics and the law dictate that researchers should be mindful of the safety of their research subjects. The U.S. Department of Health and Human Services oversees federal regulations of research studies with the aim of protecting participants. When a university or other research institution engages in research, it must ensure the safety of all human subjects. For this reason, research institutions establish oversight committees known as Institutional Review Boards (IRB). All planned studies must be approved in advance by the IRB. Key protections that are mandated by law include the following:\n- Risks to participants must be minimized and reasonable with respect to projected benefits.\n- Participants must give informed consent. This means that the risks of participation must be clearly explained to the subjects of the study. Subjects must consent in writing, and researchers are required to keep documentation of their consent.\n- Data collected from individuals must be guarded carefully to protect their privacy.\nThese ideas may seem fundamental, but they can be very difficult to verify in practice. Is removing a participant’s name from the data record sufficient to protect privacy? Perhaps the person’s identity could be discovered from the data that remains. What happens if the study does not proceed as planned and risks arise that were not anticipated? When is informed consent really necessary? Suppose your doctor wants a blood sample to check your cholesterol level. Once the sample has been tested, you expect the lab to dispose of the remaining blood. At that point the blood becomes biological waste. Does a researcher have the right to take it for use in a study?\nIt is important that students of statistics take time to consider the ethical questions that arise in statistical studies. How prevalent is fraud in statistical studies? You might be surprised—and disappointed. There is a website dedicated to cataloging retractions of study articles that have been proven fraudulent. A quick glance will show that the misuse of statistics is a bigger problem than most people realize.\nVigilance against fraud requires knowledge. Learning the basic theory of statistics will empower you to analyze statistical studies critically.\nDescribe the unethical behavior in each example and describe how it could impact the reliability of the resulting data. Explain how the problem should be corrected.\nA researcher is collecting data in a community.\n- The researcher selects a block where they are comfortable walking because they know many of the people living on the street.\n- No one seems to be home at four houses on the route. They do not record the addresses and do not return at a later time to try to find residents at home.\n- The researcher skips four houses on the route because they are running late for an appointment. When they get home, they fill in the forms by selecting random answers from other residents in the neighborhood.\n- By selecting a convenient sample, the researcher is intentionally selecting a sample that could be biased. Claiming that this sample represents the community is misleading. The researcher needs to select areas in the community at random.\n- Intentionally omitting relevant data will create bias in the sample. Suppose the researcher is gathering information about jobs and child care. By ignoring people who are not home, They may be missing data from working families that are relevant to her study. They need to make every effort to interview all members of the target sample.\n- It is never acceptable to fake data. Even though the responses the researcher are “real” responses provided by other participants, the duplication is fraudulent and can create bias in the data. They researcher needs to work diligently to interview everyone on their route.\nTry It\nDescribe the unethical behavior, if any, in each example and describe how it could impact the reliability of the resulting data. Explain how the problem should be corrected.\nA study is commissioned to determine the favorite brand of fruit juice among teens in California.\n- The survey is commissioned by the seller of a popular brand of apple juice.\n- There are only two types of juice included in the study: apple juice and cranberry juice.\n- Researchers allow participants to see the brand of juice as samples are poured for a taste test.\n- Twenty-five percent of participants prefer Brand X, 33% prefer Brand Y and 42% have no preference between the two brands. Brand X references the study in a commercial saying “Most teens like Brand X as much as or more than Brand Y.”\nReferences\n“Vitamin E and Health,” Nutrition Source, Harvard School of Public Health, http://www.hsph.harvard.edu/nutritionsource/vitamin-e/ (accessed May 1, 2013).\nStan Reents. “Don’t Underestimate the Power of Suggestion,” athleteinme.com, http://www.athleteinme.com/ArticleView.aspx?id=1053 (accessed May 1, 2013).\nAnkita Mehta. “Daily Dose of Aspiring Helps Reduce Heart Attacks: Study,” International Business Times, July 21, 2011. Also available online at http://www.ibtimes.com/daily-dose-aspirin-helps-reduce-heart-attacks-study-300443 (accessed May 1, 2013).\nThe Data and Story Library, http://lib.stat.cmu.edu/DASL/Stories/ScentsandLearning.html (accessed May 1, 2013).\nM.L. Jacskon et al., “Cognitive Components of Simulated Driving Performance: Sleep Loss effect and Predictors,” Accident Analysis and Prevention Journal, Jan no. 50 (2013), http://www.ncbi.nlm.nih.gov/pubmed/22721550 (accessed May 1, 2013).\n“Earthquake Information by Year,” U.S. Geological Survey. http://earthquake.usgs.gov/earthquakes/eqarchives/year/ (accessed May 1, 2013).\n“Fatality Analysis Report Systems (FARS) Encyclopedia,” National Highway Traffic and Safety Administration. http://www-fars.nhtsa.dot.gov/Main/index.aspx (accessed May 1, 2013).\nData from www.businessweek.com (accessed May 1, 2013).\nData from www.forbes.com (accessed May 1, 2013).\n“America’s Best Small Companies,” http://www.forbes.com/best-small-companies/list/ (accessed May 1, 2013).\nU.S. Department of Health and Human Services, Code of Federal Regulations Title 45 Public Welfare Department of Health and Human Services Part 46 Protection of Human Subjects revised January 15, 2009. Section 46.111:Criteria for IRB Approval of Research.\n“April 2013 Air Travel Consumer Report,” U.S. Department of Transportation, April 11 (2013), http://www.dot.gov/airconsumer/april-2013-air-travel-consumer-report (accessed May 1, 2013).\nLori Alden, “Statistics can be Misleading,” econoclass.com, http://www.econoclass.com/misleadingstats.html (accessed May 1, 2013).\nMaria de los A. Medina, “Ethics in Statistics,” Based on “Building an Ethics Module for Business, Science, and Engineering Students” by Jose A. Cruz-Cruz and William Frey, Connexions, http://cnx.org/content/m15555/latest/ (accessed May 1, 2013).\nChapter Review\nA poorly designed study will not produce reliable data. There are certain key components that must be included in every experiment. To eliminate lurking variables, subjects must be assigned randomly to different treatment groups. One of the groups must act as a control group, demonstrating what happens when the active treatment is not applied. To counter the influence of the power of suggestion in the study, participants in the control group receive an inactive placebo treatment that looks exactly like the active treatments, but cannot directly influence the response variable. To preserve the integrity of the placebo, both researchers and subjects may be blinded. When a study is designed properly, the only difference between treatment groups is the one imposed by the researcher. Therefore, when groups respond differently to different treatments, the difference must be due to the influence of the explanatory variable.\n“An ethics problem arises when you are considering an action that benefits you or some cause you support, hurts or reduces benefits to others, and violates some rule.” (Andrew Gelman, “Open Data and Open Methods,” Ethics and Statistics, http://www.stat.columbia.edu/~gelman/research/published/ChanceEthics1.pdf (accessed May 1, 2013).) Ethical violations in statistics are not always easy to spot. Professional associations and federal agencies post guidelines for proper conduct. It is important that you learn basic statistical procedures so that you can recognize proper data analysis.\nDesign an experiment. Identify the explanatory and response variables. Describe the population being studied and the experimental units. Explain the treatments that will be used and how they will be assigned to the experimental units. Describe how blinding and placebos may be used to counter the power of suggestion.\nDiscuss potential violations of the rule requiring informed consent.\n- People in a correctional facility are offered good behavior credit in return for participation in a study.\n- A research study is designed to investigate a new children’s allergy medication.\n- Participants in a study are told that the new medication being tested is highly promising, but they are not told that only a small portion of participants will receive the new medication. Others will receive placebo treatments and traditional treatments.\n- People who are incarcerated may not feel comfortable refusing participation, or may feel obligated to take advantage of the promised benefits. They may not feel truly free to refuse participation.\n- Parents can provide consent on behalf of their children, but children are not competent to provide consent for themselves.\n- All risks and benefits must be clearly outlined. Study participants must be informed of relevant aspects of the study in order to give appropriate consent.\nHOMEWORK\nHow does sleep deprivation affect your ability to drive? A recent study measured the effects on 19 professional drivers. Each driver participated in two experimental sessions: one after normal sleep and one after 27 hours of total sleep deprivation. The treatments were assigned in random order. In each session, performance was measured on a variety of tasks including a driving simulation.\nUse key terms from this module to describe the design of this experiment.\nExplanatory variable: amount of sleep Response variable: performance measured in assigned tasks Treatments: normal sleep and 27 hours of total sleep deprivation Experimental Units: 19 professional drivers Lurking variables: none – all drivers participated in both treatments Random assignment: treatments were assigned in random order; this eliminated the effect of any “learning” that may take place during the first experimental session Control/Placebo: completing the experimental session under normal sleep conditions Blinding: researchers evaluating subjects’ performance must not know which treatment is being applied at the time\nAn advertisement for Acme Investments displays the two graphs in Figure to show the value of Acme’s product in comparison with the Other Guy’s product. Describe the potentially misleading visual effect of these comparison graphs. How can this be corrected?\n[Image: (a) This is a line graph titled Acme Investments. The line graph shows a dramatic increase; neither the x-axis nor y-axis are labeled. (b) This is a line graph titled Other Guy's Investments. The line graph shows a modest increase; neither the x-axis nor y-axis are labeled.]\nAs the graphs show, Acme consistently outperforms the Other Guys!\nThe graph in Figure shows the number of complaints for six different airlines as reported to the US Department of Transportation in February 2013. Alaska, Pinnacle, and Airtran Airlines have far fewer complaints reported than American, Delta, and United. Can we conclude that American, Delta, and United are the worst airline carriers since they have the most complaints?\n[Image: This is a bar graph with 6 different airlines on the x-axis, and number of complaints on y-axis. The graph is titled Total Passenger Complaints. Data is from an April 2013 DOT report.]\nYou cannot assume that the numbers of complaints reflect the quality of the airlines. The airlines shown with the greatest number of complaints are the ones with the most passengers. You must consider the appropriateness of methods for presenting data; in this case displaying totals is misleading.\n\nGlossary\nExplanatory Variablethe independent variable in an experiment; the value controlled by researchers\nTreatments different values or components of the explanatory variable applied in an experiment\nResponse Variable the dependent variable in an experiment; the value that is measured for change at the end of an experiment\nExperimental Unit any individual or object to be measured\nLurking Variable a variable that has an effect on a study even though it is neither an explanatory variable nor a response variable\nRandom Assignment the act of organizing experimental units into treatment groups using random methods\nControl Group a group in a randomized experiment that receives an inactive treatment but is otherwise managed exactly as the other groups\nInformed Consent Any human subject in a research study must be cognizant of any risks or costs associated with the study. The subject has the right to know the nature of the treatments included in the study, their potential risks, and their potential benefits. Consent must be given freely by an informed, fit participant.\nInstitutional Review Board a committee tasked with oversight of research programs that involve human subjects\nPlacebo an inactive treatment that cannot directly affect the response variable, used to counter the power of suggestion\nBlinding not telling participants which treatment a subject is receiving\nDouble-blind experiment an experiment in which both the subjects of an experiment and the researchers who work with the subjects are blinded"}
{"document_id": "openstax-intro-statistics-m50252", "title": "Sampling and Data — Data Collection Experiment", "source": "https://openstax.org/books/introductory-statistics-2e/pages/1-5-data-collection-experiment", "license": "CC-BY-4.0", "text": "Data Collection Experiment\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will demonstrate the systematic sampling technique.\n- The student will construct relative frequency tables.\n- The student will interpret results and their differences from different data groupings.\nMovie Survey\nAsk five classmates from a different class how many movies they saw at the theater last month. Do not include rented movies.\n- Record the data.\n- In class, randomly pick one person. On the class list, mark that person’s name. Move down four names on the class list. Mark that person’s name. Continue doing this until you have marked 12 names. You may need to go back to the start of the list. For each marked name record the five data values. You now have a total of 60 data values.\n- For each name marked, record the data.\nOrder the Data\nComplete the two relative frequency tables below using your class data.\nNumber of Movies | Frequency | Relative Frequency | Cumulative Relative Frequency\n0\n1\n2\n3\n4\n5\n6\n7+\nNumber of Movies | Frequency | Relative Frequency | Cumulative Relative Frequency\n0–1\n2–3\n4–5\n6–7+\n- Using the tables, find the percent of data that is at most two. Which table did you use and why?\n- Using the tables, find the percent of data that is at most three. Which table did you use and why?\n- Using the tables, find the percent of data that is more than two. Which table did you use and why?\n- Using the tables, find the percent of data that is more than three. Which table did you use and why?\nDiscussion Questions\n- Is one of the tables “more correct” than the other? Why or why not?\n- In general, how could you group the data differently? Are there any advantages to either way of grouping the data?\n- Why did you switch between tables, if you did, when answering the question above?"}
{"document_id": "openstax-intro-statistics-m50243", "title": "Sampling and Data — Sampling Experiment", "source": "https://openstax.org/books/introductory-statistics-2e/pages/1-6-sampling-experiment", "license": "CC-BY-4.0", "text": "Sampling Experiment\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will demonstrate the simple random, systematic, stratified, and cluster sampling techniques.\n- The student will explain the details of each procedure used.\nIn this lab, you will be asked to pick several random samples of restaurants. In each case, describe your procedure briefly, including how you might have used the random number generator, and then list the restaurants in the sample you obtained.\nNOTE\nThe following section contains restaurants stratified by city into columns and grouped horizontally by entree cost (clusters).\nRestaurants Stratified by City and Entree Cost\nEntree Cost | Under \\$10 | \\$10 to under \\$15 | \\$15 to under \\$20 | Over \\$20\nSan Jose | El Abuelo Taq, Pasta Mia, Emma’s Express, Bamboo Hut | Emperor’s Guard, Creekside Inn | Agenda, Gervais, Miro’s | Blake’s, Eulipia, Hayes Mansion, Germania\nPalo Alto | Senor Taco, Olive Garden, Taxi’s | Ming’s, P.A. Joe’s, Stickney’s | Scott’s Seafood, Poolside Grill, Fish Market | Sundance Mine, Maddalena’s, Spago’s\nLos Gatos | Mary’s Patio, Mount Everest, Sweet Pea’s, Andele Taqueria | Lindsey’s, Willow Street | Toll House | Charter House, La Maison Du Cafe\nMountain View | Maharaja, New Ma’s, Thai-Rific, Garden Fresh | Amber Indian, La Fiesta, Fiesta del Mar, Dawit | Austin’s, Shiva’s, Mazeh | Le Petit Bistro\nCupertino | Hobees, Hung Fu, Samrat, Panda Express | Santa Barb. Grill, Mand. Gourmet, Bombay Oven, Kathmandu West | Fontana’s, Blue Pheasant | Hamasushi, Helios\nSunnyvale | Chekijababi, Taj India, Full Throttle, Tia Juana, Lemon Grass | Pacific Fresh, Charley Brown’s, Cafe Cameroon, Faz, Aruba’s | Lion & Compass, The Palace, Beau Sejour\nSanta Clara | Rangoli, Armadillo Willy’s, Thai Pepper, Pasand | Arthur’s, Katie’s Cafe, Pedro’s, La Galleria | Birk’s, Truya Sushi, Valley Plaza | Lakeside, Mariani’s\nA Simple Random Sample\nPick a simple random sample of 15 restaurants.\n- Describe your procedure.\n- Complete the table with your sample.\n1. __________ | 6. __________ | 11. __________\n2. __________ | 7. __________ | 12. __________\n3. __________ | 8. __________ | 13. __________\n4. __________ | 9. __________ | 14. __________\n5. __________ | 10. __________ | 15. __________\nA Systematic Sample\nPick a systematic sample of 15 restaurants.\n- Describe your procedure.\n- Complete the table with your sample.\n1. __________ | 6. __________ | 11. __________\n2. __________ | 7. __________ | 12. __________\n3. __________ | 8. __________ | 13. __________\n4. __________ | 9. __________ | 14. __________\n5. __________ | 10. __________ | 15. __________\nA Stratified Sample\nPick a stratified sample, by city, of 20 restaurants. Use 25% of the restaurants from each stratum. Round to the nearest whole number.\n- Describe your procedure.\n- Complete the table with your sample.\n1. __________ | 6. __________ | 11. __________ | 16. __________\n2. __________ | 7. __________ | 12. __________ | 17. __________\n3. __________ | 8. __________ | 13. __________ | 18. __________\n4. __________ | 9. __________ | 14. __________ | 19. __________\n5. __________ | 10. __________ | 15. __________ | 20. __________\nA Stratified Sample\nPick a stratified sample, by entree cost, of 21 restaurants. Use 25% of the restaurants from each stratum. Round to the nearest whole number.\n- Describe your procedure.\n- Complete the table with your sample.\n1. __________ | 6. __________ | 11. __________ | 16. __________\n2. __________ | 7. __________ | 12. __________ | 17. __________\n3. __________ | 8. __________ | 13. __________ | 18. __________\n4. __________ | 9. __________ | 14. __________ | 19. __________\n5. __________ | 10. __________ | 15. __________ | 20. __________\n21. __________\nA Cluster Sample\nPick a cluster sample of restaurants from two cities. The number of restaurants will vary.\n- Describe your procedure.\n- Complete the table with your sample.\n1. ________ | 6. ________ | 11. ________ | 16. ________ | 21. ________\n2. ________ | 7. ________ | 12. ________ | 17. ________ | 22. ________\n3. ________ | 8. ________ | 13. ________ | 18. ________ | 23. ________\n4. ________ | 9. ________ | 14. ________ | 19. ________ | 24. ________\n5. ________ | 10. ________ | 15. ________ | 20. ________ | 25. ________"}
{"document_id": "openstax-intro-statistics-m46934", "title": "Descriptive Statistics — Stem-and-Leaf Graphs (Stemplots), Line Graphs, and Bar Graphs", "source": "https://openstax.org/books/introductory-statistics-2e/pages/2-1-stem-and-leaf-graphs-stemplots-line-graphs-and-bar-graphs", "license": "CC-BY-4.0", "text": "One simple graph, the stem-and-leaf graph or stemplot, comes from the field of exploratory data analysis. It is a good choice when the data sets are small. To create the plot, divide each observation of data into a stem and a leaf. The leaf consists of a final significant digit. For example, 23 has stem two and leaf three. The number 432 has stem 43 and leaf two. Likewise, the number 5,432 has stem 543 and leaf two. The decimal 9.3 has stem nine and leaf three. Write the stems in a vertical line from smallest to largest. Draw a vertical line to the right of the stems. Then write the leaves in increasing order next to their corresponding stem.\nFor Professor Dean's spring pre-calculus class, scores for the first exam were as follows (smallest to largest): 33; 42; 49; 49; 53; 55; 55; 61; 63; 67; 68; 68; 69; 69; 72; 73; 74; 78; 80; 83; 88; 88; 88; 90; 92; 94; 94; 94; 94; 96; 100\nStem | Leaf\n3 | 3\n4 | 2 9 9\n5 | 3 5 5\n6 | 1 3 7 8 8 9 9\n7 | 2 3 4 8\n8 | 0 3 8 8 8\n9 | 0 2 4 4 4 4 6\n10 | 0\nThe stemplot shows that most scores fell in the 60s, 70s, 80s, and 90s. Eight out of the 31 scores or approximately 26% $(\\frac{8}{31})$ were in the 90s or 100, a fairly high number of As.\nTry It\nFor the Park City basketball team, scores for the last 30 games were as follows (smallest to largest): 32; 32; 33; 34; 38; 40; 42; 42; 43; 44; 46; 47; 47; 48; 48; 48; 49; 50; 50; 51; 52; 52; 52; 53; 54; 56; 57; 57; 60; 61 Construct a stem plot for the data.\nThe stemplot is a quick way to graph data and gives an exact picture of the data. You want to look for an overall pattern and any outliers. An outlier is an observation of data that does not fit the rest of the data. It is sometimes called an extreme value. When you graph an outlier, it will appear not to fit the pattern of the graph. Some outliers are due to mistakes (for example, writing down 50 instead of 500) while others may indicate that something unusual is happening. It takes some background information to explain outliers, so we will cover them in more detail later.\nThe data are the distances (in kilometers) from a home to local supermarkets. Create a stemplot using the data: 1.1; 1.5; 2.3; 2.5; 2.7; 3.2; 3.3; 3.3; 3.5; 3.8; 4.0; 4.2; 4.5; 4.5; 4.7; 4.8; 5.5; 5.6; 6.5; 6.7; 12.3\nDo the data seem to have any concentration of values?\nNOTE\nThe leaves are to the right of the decimal.\nThe value 12.3 may be an outlier. Values appear to concentrate at three and four kilometers.\nStem | Leaf\n1 | 1 5\n2 | 3 5 7\n3 | 2 3 3 5 8\n4 | 0 2 5 5 7 8\n5 | 5 6\n6 | 5 7\n7\n8\n9\n10\n11\n12 | 3\nTry It\nThe following data show the distances (in miles) from the homes of off-campus statistics students to the college. Create a stem plot using the data and identify any outliers:\n0.5; 0.7; 1.1; 1.2; 1.2; 1.3; 1.3; 1.5; 1.5; 1.7; 1.7; 1.8; 1.9; 2.0; 2.2; 2.5; 2.6; 2.8; 2.8; 2.8; 3.5; 3.8; 4.4; 4.8; 4.9; 5.2; 5.5; 5.7; 5.8; 8.0\nA side-by-side stem-and-leaf plot allows a comparison of the two data sets in two columns. In a side-by-side stem-and-leaf plot, two sets of leaves share the same stem. The leaves are to the left and the right of the stems. Table and Table show the ages of presidents at their inauguration and at their death. Construct a side-by-side stem-and-leaf plot using this data.\nPresident | Age | President | Age | President | Age\nWashington | 57 | Lincoln | 52 | Hoover | 54\nJ. Adams | 61 | A. Johnson | 56 | F. Roosevelt | 51\nJefferson | 57 | Grant | 46 | Truman | 60\nMadison | 57 | Hayes | 54 | Eisenhower | 62\nMonroe | 58 | Garfield | 49 | Kennedy | 43\nJ. Q. Adams | 57 | Arthur | 51 | L. Johnson | 55\nJackson | 61 | Cleveland | 47 | Nixon | 56\nVan Buren | 54 | B. Harrison | 55 | Ford | 61\nW. H. Harrison | 68 | Cleveland | 55 | Carter | 52\nTyler | 51 | McKinley | 54 | Reagan | 69\nPolk | 49 | T. Roosevelt | 42 | G.H.W. Bush | 64\nTaylor | 64 | Taft | 51 | Clinton | 47\nFillmore | 50 | Wilson | 56 | G. W. Bush | 54\nPierce | 48 | Harding | 55 | Obama | 47\nBuchanan | 65 | Coolidge | 51\nPresident | Age | President | Age | President | Age\nWashington | 67 | Lincoln | 56 | Hoover | 90\nJ. Adams | 90 | A. Johnson | 66 | F. Roosevelt | 63\nJefferson | 83 | Grant | 63 | Truman | 88\nMadison | 85 | Hayes | 70 | Eisenhower | 78\nMonroe | 73 | Garfield | 49 | Kennedy | 46\nJ. Q. Adams | 80 | Arthur | 56 | L. Johnson | 64\nJackson | 78 | Cleveland | 71 | Nixon | 81\nVan Buren | 79 | B. Harrison | 67 | Ford | 93\nW. H. Harrison | 68 | Cleveland | 71 | Reagan | 93\nTyler | 71 | McKinley | 58\nPolk | 53 | T. Roosevelt | 60\nTaylor | 65 | Taft | 72\nFillmore | 74 | Wilson | 67\nPierce | 64 | Harding | 57\nBuchanan | 77 | Coolidge | 60\nAges at Inauguration | Ages at Death\n9 9 8 7 7 7 6 3 2 | 4 | 6 9\n8 7 7 7 7 6 6 6 5 5 5 5 4 4 4 4 4 2 2 1 1 1 1 1 0 | 5 | 3 6 6 7 7 8\n9 8 5 4 4 2 1 1 1 0 | 6 | 0 0 3 3 4 4 5 6 7 7 7 8\n7 | 0 1 1 1 2 3 4 7 8 8 9\n8 | 0 1 3 5 8\n9 | 0 0 3 3\nThe table shows the number of wins and losses the Atlanta Hawks have had in 42 seasons. Create a side-by-side stemand-leaf plot of these wins and losses.\nLosses | Wins | Season | Losses | Wins | Season\n34 | 48 | 1 | 41 | 41 | 22\n34 | 48 | 2 | 39 | 43 | 23\n46 | 36 | 3 | 44 | 38 | 24\n46 | 36 | 4 | 39 | 43 | 25\n36 | 46 | 5 | 25 | 57 | 26\n47 | 35 | 6 | 40 | 42 | 27\n51 | 31 | 7 | 36 | 46 | 28\n53 | 29 | 8 | 26 | 56 | 29\n51 | 31 | 9 | 32 | 50 | 30\n41 | 41 | 10 | 19 | 31 | 31\n36 | 46 | 11 | 54 | 28 | 32\n32 | 50 | 12 | 57 | 25 | 33\n51 | 31 | 13 | 49 | 33 | 34\n40 | 42 | 14 | 47 | 35 | 35\n39 | 43 | 15 | 54 | 28 | 36\n42 | 40 | 16 | 69 | 13 | 37\n48 | 34 | 17 | 56 | 26 | 38\n32 | 50 | 18 | 52 | 30 | 39\n25 | 57 | 19 | 45 | 37 | 40\n32 | 50 | 20 | 35 | 47 | 41\n30 | 52 | 21 | 29 | 53 | 42\nAnother type of graph that is useful for specific data values is a line graph. In the particular line graph shown in Example, the x-axis (horizontal axis) consists of data values and the y-axis (vertical axis) consists of frequency points. The frequency points are connected using line segments.\nIn a survey, 40 parents were asked how many times per week a teenager must be reminded to do their chores. The results are shown in Table and in Figure.\nNumber of times teenager is reminded | Frequency\n0 | 2\n1 | 5\n2 | 8\n3 | 14\n4 | 7\n5 | 4\n[Image: A line graph showing the number of times a teenager needs to be reminded to do chores on the x-axis and frequency on the y-axis.]\nTry It\nIn a survey, 40 people were asked how many times per year they had their car in the shop for repairs. The results are shown in Table. Construct a line graph.\nNumber of times in shop | Frequency\n0 | 7\n1 | 10\n2 | 14\n3 | 9\nBar graphs consist of bars that are separated from each other. The bars can be rectangles or they can be rectangular boxes (used in three-dimensional plots), and they can be vertical or horizontal. The bar graph shown in Example has age groups represented on the x-axis and proportions on the y-axis.\nThe percentage of U.S.-based TikTok users by age is shown in Table. Construct a bar graph using this data.\nAge groups | Proportion (%) of TikTok users\n10–19 | 32.5%\n20–29 | 29.5%\n30–39 | 16.4%\n40–49 | 13.9%\n50+ | 7.1%\n[Image: Bar graph of age groups against percentage of TikTok users. The percentage ranges from 0 to 35 in increments of 5. Bar of age group 10 to 19 has height of 32 percent, 20 to 29 has height of 29 percent, 30 to 39 has height of 16 percent, 40 to 49 has height of 14 percent, 50 plus has height of 7 percent.]\nTry It\nThe population in Park City is made up of children, working-age adults, and retirees. Table shows the three age groups, the number of people in the town from each age group, and the proportion (%) of people in each age group. Construct a bar graph showing the proportions.\nAge groups | Number of people | Proportion of population\nChildren | 67,059 | 19%\nWorking-age adults | 152,198 | 43%\nRetirees | 131,662 | 38%\nThe columns in Table show the projected data for the year 2030 for the number and percentages of high school graduates by geographic region in the United States. Create a bar graph for this data with the geographic region (qualitative data) on the x-axis and the percentage of high school data (quantitative data) on the y-axis.\nRegion | Number of Graduates | Percentage of Graduates\nNortheast | 517,720 | 16.1%\nMidwest | 695,170 | 21.6%\nSouth | 1,253,540 | 39.0%\nWest | 749,400 | 23.3%\n[Image: Bar graph of geographic region against percentage of graduates. Percent of graduates ranges from 0 to 45 in increments of 5. Bar of northeast has height of 16 percent, midwest has height of 22 percent, south has height of 39 percent, west has height of 23 percent.]\nTry It\nPark city is broken down into six voting districts. The table shows the percent of the total registered voter population that lives in each district as well as the percent total of the entire population that lives in each district. Construct a bar graph that shows the registered voter population by district.\nDistrict | Registered voter population | Overall city population\n1 | 15.5% | 19.4%\n2 | 12.2% | 15.6%\n3 | 9.8% | 9.0%\n4 | 17.4% | 18.5%\n5 | 22.8% | 20.7%\n6 | 22.3% | 16.8%\nReferences\nDoyle, Brandon. \"TikTok Statistics – Updated Mar 2023.\" Wallaroo. March 21, 2023. https://wallaroomedia.com/blog/social-media/tiktok-statistics/.\n“Table 219.20. Public High School Graduates, by Region, State, and Jurisdiction: Selected Years, 1980-81 through 2030-31.” National Center for Education Statistics. Accessed May 24, 2023. https://nces.ed.gov/programs/digest/d21/tables/dt21_219.20.asp.\n“Overweight and Obesity: Adult Obesity Facts.” Centers for Disease Control and Prevention. Available online at http://www.cdc.gov/obesity/data/adult.html (accessed September 13, 2013).\nChapter Review\nA stem-and-leaf plot is a way to plot data and look at the distribution. In a stem-and-leaf plot, all data values within a class are visible. The advantage in a stem-and-leaf plot is that all values are listed, unlike a histogram, which gives classes of data values. A line graph is often used to represent a set of data values in which a quantity varies with time. These graphs are useful for finding trends. That is, finding a general pattern in data sets including temperature, sales, employment, company profit or cost over a period of time. A bar graph is a chart that uses either horizontal or vertical bars to show comparisons among categories. One axis of the chart shows the specific categories being compared, and the other axis represents a discrete value. Some bar graphs present bars clustered in groups of more than one (grouped bar graphs), and others show the bars divided into subparts to show cumulative effect (stacked bar graphs). Bar graphs are especially useful when categorical data is being used.\nFor each of the following data sets, create a stem plot and identify any outliers.\nThe miles per gallon rating for 30 cars are shown below (lowest to highest). 19, 19, 19, 20, 21, 21, 25, 25, 25, 26, 26, 28, 29, 31, 31, 32, 32, 33, 34, 35, 36, 37, 37, 38, 38, 38, 38, 41, 43, 43\nStem | Leaf\n1 | 9 9 9\n2 | 0 1 1 5 5 5 6 6 8 9\n3 | 1 1 2 2 3 4 5 6 7 7 8 8 8 8\n4 | 1 3 3\nThe height in feet of 25 trees is shown below (lowest to highest). 25, 27, 33, 34, 34, 34, 35, 37, 37, 38, 39, 39, 39, 40, 41, 45, 46, 47, 49, 50, 50, 53, 53, 54, 54\nThe data are the prices of different laptops at an electronics store. Round each value to the nearest ten. 249, 249, 260, 265, 265, 280, 299, 299, 309, 319, 325, 326, 350, 350, 350, 365, 369, 389, 409, 459, 489, 559, 569, 570, 610\nStem | Leaf\n2 | 5 5 6 7 7 8\n3 | 0 0 1 2 3 3 5 5 5 7 7 9\n4 | 1 6 9\n5 | 6 7 7\n6 | 1\nThe data are daily high temperatures in a town for one month. 61, 61, 62, 64, 66, 67, 67, 67, 68, 69, 70, 70, 70, 71, 71, 72, 74, 74, 74, 75, 75, 75, 76, 76, 77, 78, 78, 79, 79, 95\nFor the next three exercises, use the data to construct a line graph.\nIn a survey, 40 people were asked how many times they visited a store before making a major purchase. The results are shown in Table.\nNumber of times in store | Frequency\n1 | 4\n2 | 10\n3 | 16\n4 | 6\n5 | 4\n[Image: This is a line graph that matches the supplied data. The x-axis shows the number of times people reported visiting a store before making a major purchase, and the y-axis shows the frequency.]\nIn a survey, several people were asked how many years it has been since they purchased a mattress. The results are shown in Table.\nYears since last purchase | Frequency\n0 | 2\n1 | 8\n2 | 13\n3 | 22\n4 | 16\n5 | 9\nSeveral children were asked how many TV shows they watch each day. The results of the survey are shown in Table.\nNumber of TV Shows | Frequency\n0 | 12\n1 | 18\n2 | 36\n3 | 7\n4 | 2\n[Image: This is a line graph that matches the supplied data. The x-axis shows the number of TV shows a kid watches each day, and the y-axis shows the frequency.]\nThe students in Ms. Ramirez’s math class have birthdays in each of the four seasons. Table shows the four seasons, the number of students who have birthdays in each season, and the percentage (%) of students in each group. Construct a bar graph showing the number of students.\nSeasons | Number of students | Proportion of population\nSpring | 8 | 24%\nSummer | 9 | 26%\nAutumn | 11 | 32%\nWinter | 6 | 18%\nUsing the data from Ms. Ramirez’s math class supplied in Table, construct a bar graph showing the percentages.\n[Image: This is a bar graph that matches the supplied data. The x-axis shows the seasons of the year, and the y-axis shows the proportion of birthdays.]\nDavid County has six high schools. Each school sent students to participate in a county-wide science competition. Table shows the percentage breakdown of competitors from each school, and the percentage of the entire student population of the county that goes to each school. Construct a bar graph that shows the population percentage of competitors from each school.\nHigh School | Science competition population | Overall student population\nAlabaster | 28.9% | 8.6%\nConcordia | 7.6% | 23.2%\nGenoa | 12.1% | 15.0%\nMocksville | 18.5% | 14.3%\nTynneson | 24.2% | 10.1%\nWest End | 8.7% | 28.8%\nUse the data from the David County science competition supplied in Table. Construct a bar graph that shows the county-wide population percentage of students at each school.\n[Image: This is a bar graph that matches the supplied data. The x-axis shows the county high schools, and the y-axis shows the proportion of county students.]\nHomework\nStudent grades on a chemistry exam were: 77, 78, 76, 81, 86, 51, 79, 82, 84, 99\n- Construct a stem-and-leaf plot of the data.\n- Are there any potential outliers? If so, which scores are they? Why do you consider them outliers?\nTable contains the percentages of adults who were never married in the 50 U.S. states and Washington, DC.\nState | Percent (%) | State | Percent (%) | State | Percent (%)\nAlabama | 32.2 | Kentucky | 31.3 | North Dakota | 27.2\nAlaska | 24.5 | Louisiana | 31.0 | Ohio | 29.2\nArizona | 24.3 | Maine | 26.8 | Oklahoma | 30.4\nArkansas | 30.1 | Maryland | 27.1 | Oregon | 26.8\nCalifornia | 24.0 | Massachusetts | 23.0 | Pennsylvania | 28.6\nColorado | 21.0 | Michigan | 30.9 | Rhode Island | 25.5\nConnecticut | 22.5 | Minnesota | 24.8 | South Carolina | 31.5\nDelaware | 28.0 | Mississippi | 34.0 | South Dakota | 27.3\nWashington, DC | 22.2 | Missouri | 30.5 | Tennessee | 30.8\nFlorida | 26.6 | Montana | 23.0 | Texas | 31.0\nGeorgia | 29.6 | Nebraska | 26.9 | Utah | 22.5\nHawaii | 22.7 | Nevada | 22.4 | Vermont | 23.2\nIdaho | 26.5 | New Hampshire | 25.0 | Virginia | 26.0\nIllinois | 28.2 | New Jersey | 23.8 | Washington | 25.5\nIndiana | 29.6 | New Mexico | 25.1 | West Virginia | 32.5\nIowa | 28.4 | New York | 23.9 | Wisconsin | 26.3\nKansas | 29.4 | North Carolina | 27.8 | Wyoming | 25.1\n- Use a random number generator to randomly pick eight states. Construct a bar graph of the rates of those eight states.\n- Construct a bar graph for all the states beginning with the letter \"A.\"\n- Construct a bar graph for all the states beginning with the letter \"M.\"\n- Example solution for using the random number generator for the TI-84+ to generate a simple random sample of 8 states. Instructions are as follows.\n- Number the entries in the table 1–51 (Includes Washington, DC; Numbered vertically)\n- Press MATH\n- Arrow over to PRB\n- Press 5:randInt(\n- Enter 51,1,8)\nEight numbers are generated (use the right arrow key to scroll through the numbers). The numbers correspond to the numbered states (for this example: {47 21 9 23 51 13 25 4}. If any numbers are repeated, generate a different number by using 5:randInt(51,1)). Here, the states (and Washington DC) are {Arkansas, Washington DC, Idaho, Maryland, Michigan, Mississippi, Virginia, Wyoming}.\nCorresponding percents are {30.1, 22.2, 26.5, 27.1, 30.9, 34.0, 26.0, 25.1}.\n[Image: A bar graph showing 8 states on the x-axis and corresponding obesity rates on the y-axis.]\n-\n[Image: This is a bar graph that matches the supplied data. The x-axis shows states, and the y-axis shows percentages.]\n-\n[Image: This is a bar graph that matches the supplied data. The x-axis shows states, and the y-axis shows percentages.]"}
{"document_id": "openstax-intro-statistics-m46924", "title": "Descriptive Statistics — Histograms, Frequency Polygons, and Time Series Graphs", "source": "https://openstax.org/books/introductory-statistics-2e/pages/2-2-histograms-frequency-polygons-and-time-series-graphs", "license": "CC-BY-4.0", "text": "For most of the work you do in this book, you will use a histogram to display the data. One advantage of a histogram is that it can readily display large data sets. A rule of thumb is to use a histogram when the data set consists of 100 values or more.\nA histogram consists of contiguous (adjoining) boxes. It has both a horizontal axis and a vertical axis. The horizontal axis is labeled with what the data represents (for instance, distance from your home to school). The vertical axis is labeled either frequency or relative frequency (or percent frequency or probability). The graph will have the same shape with either label. The histogram (like the stemplot) can give you the shape of the data, the center, and the spread of the data.\nThe relative frequency is equal to the frequency for an observed value of the data divided by the total number of data values in the sample. (Remember, frequency is defined as the number of times an answer occurs.) If:\n- f = frequency\n- n = total number of data values (or the sum of the individual frequencies), and\n- RF = relative frequency,\nthen:\n$$\\text{RF}=\\frac{f}{n}$$\nFor example, if three students in an English class of 40 students received from 90% to 100%, then, f = 3, n = 40, and RF = $\\frac{f}{n}$ = $\\frac{3}{40}$ = 0.075. 7.5% of the students received 90–100%. 90–100% are quantitative measures.\nTo construct a histogram, first decide how many bars or intervals, also called classes, represent the data. Many histograms consist of five to 15 bars or classes for clarity. The number of bars needs to be chosen. Choose a starting point for the first interval to be less than the smallest data value. A convenient starting point is a lower value carried out to one more decimal place than the value with the most decimal places. For example, if the value with the most decimal places is 6.1 and this is the smallest value, a convenient starting point is 6.05 (6.1 – 0.05 = 6.05). We say that 6.05 has more precision. If the value with the most decimal places is 2.23 and the lowest value is 1.5, a convenient starting point is 1.495 (1.5 – 0.005 = 1.495). If the value with the most decimal places is 3.234 and the lowest value is 1.0, a convenient starting point is 0.9995 (1.0 – 0.0005 = 0.9995). If all the data happen to be integers and the smallest value is two, then a convenient starting point is 1.5 (2 – 0.5 = 1.5). Also, when the starting point and other boundaries are carried to one additional decimal place, no data value will fall on a boundary. The next two examples go into detail about how to construct a histogram using continuous data and how to create a histogram using discrete data.\nThe following data are the heights (in inches to the nearest half inch) of 100 semiprofessional soccer players. The heights are continuous data, since height is measured. 60; 60.5; 61; 61; 61.5 63.5; 63.5; 63.5 64; 64; 64; 64; 64; 64; 64; 64.5; 64.5; 64.5; 64.5; 64.5; 64.5; 64.5; 64.5 66; 66; 66; 66; 66; 66; 66; 66; 66; 66; 66.5; 66.5; 66.5; 66.5; 66.5; 66.5; 66.5; 66.5; 66.5; 66.5; 66.5; 67; 67; 67; 67; 67; 67; 67; 67; 67; 67; 67; 67; 67.5; 67.5; 67.5; 67.5; 67.5; 67.5; 67.5 68; 68; 69; 69; 69; 69; 69; 69; 69; 69; 69; 69; 69.5; 69.5; 69.5; 69.5; 69.5 70; 70; 70; 70; 70; 70; 70.5; 70.5; 70.5; 71; 71; 71 72; 72; 72; 72.5; 72.5; 73; 73.5 74\nThe smallest data value is 60. Since the data with the most decimal places has one decimal (for instance, 61.5), we want our starting point to have two decimal places. Since the numbers 0.5, 0.05, 0.005, etc. are convenient numbers, use 0.05 and subtract it from 60, the smallest value, for the convenient starting point.\n60 – 0.05 = 59.95 which is more precise than, say, 61.5 by one decimal place. The starting point is, then, 59.95.\nThe largest value is 74, so 74 + 0.05 = 74.05 is the ending value.\nNext, calculate the width of each bar or class interval. To calculate this width, subtract the starting point from the ending value and divide by the number of bars (you must choose the number of bars you desire). Suppose you choose eight bars.\n$$\\begin{matrix} 74.05-59.95=14.1 \\\\ 14.1\\div8=1.76 \\end{matrix}$$\nNOTE\nWe will round up to two and make each bar or class interval two units wide. Rounding up to two is one way to prevent a value from falling on a boundary. Rounding to the next number is often necessary even if it goes against the standard rules of rounding. For this example, using 1.76 as the width would also work. A guideline that is followed by some for the number of bars or class intervals is to take the square root of the number of data values and then round to the nearest whole number, if necessary. For example, if there are 150 values of data, take the square root of 150 and round to 12 bars or intervals.\nThe boundaries are:\n- 59.95\n- 59.95 + 2 = 61.95\n- 61.95 + 2 = 63.95\n- 63.95 + 2 = 65.95\n- 65.95 + 2 = 67.95\n- 67.95 + 2 = 69.95\n- 69.95 + 2 = 71.95\n- 71.95 + 2 = 73.95\n- 73.95 + 2 = 75.95\nThe heights 60 through 61.5 inches are in the interval 59.95–61.95. The heights that are 63.5 are in the interval 61.95–63.95. The heights that are 64 through 64.5 are in the interval 63.95–65.95. The heights 66 through 67.5 are in the interval 65.95–67.95. The heights 68 through 69.5 are in the interval 67.95–69.95. The heights 70 through 71 are in the interval 69.95–71.95. The heights 72 through 73.5 are in the interval 71.95–73.95. The height 74 is in the interval 73.95–75.95.\nThe following histogram displays the heights on the x-axis and relative frequency on the y-axis.\n[Image: Histogram consists of 8 bars with the y-axis in increments of 0.05 from 0-0.4 and the x-axis in intervals of 2 from 59.95-75.95.]\nTry It\nThe following data are the shoe sizes of 50 students. The sizes are discrete data since shoe size is measured in whole and half units only. Construct a histogram and calculate the width of each bar or class interval. Suppose you choose six bars. 9; 9; 9.5; 9.5; 10; 10; 10; 10; 10; 10; 10.5; 10.5; 10.5; 10.5; 10.5; 10.5; 10.5; 10.5 11; 11; 11; 11; 11; 11; 11; 11; 11; 11; 11; 11; 11; 11.5; 11.5; 11.5; 11.5; 11.5; 11.5; 11.5 12; 12; 12; 12; 12; 12; 12; 12.5; 12.5; 12.5; 12.5; 14\nCreate a histogram for the following data: the number of books bought by 50 part-time college students at ABC College. The number of books is discrete data, since books are counted. 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1 2; 2; 2; 2; 2; 2; 2; 2; 2; 2 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3 4; 4; 4; 4; 4; 4 5; 5; 5; 5; 5 6; 6\nEleven students buy one book. Ten students buy two books. Sixteen students buy three books. Six students buy four books. Five students buy five books. Two students buy six books.\nBecause the data are integers, subtract 0.5 from 1, the smallest data value and add 0.5 to 6, the largest data value. Then the starting point is 0.5 and the ending value is 6.5.\nNext, calculate the width of each bar or class interval. If the data are discrete and there are not too many different values, a width that places the data values in the middle of the bar or class interval is the most convenient. Since the data consist of the numbers 1, 2, 3, 4, 5, 6, and the starting point is 0.5, a width of one places the 1 in the middle of the interval from 0.5 to 1.5, the 2 in the middle of the interval from 1.5 to 2.5, the 3 in the middle of the interval from 2.5 to 3.5, the 4 in the middle of the interval from _______ to _______, the 5 in the middle of the interval from _______ to _______, and the _______ in the middle of the interval from _______ to _______.\n- 3.5 to 4.5\n- 4.5 to 5.5\n- 6\n- 5.5 to 6.5\nCalculate the number of bars as follows:\n$$\\begin{matrix} 6.5-0.5=6 \\\\ 6\\div1=6 \\end{matrix}$$\nwhere 1 is the width of a bar. Therefore, bars = 6.\nThe following histogram displays the number of books on the x-axis and the frequency on the y-axis.\n[Image: Histogram consists of 6 bars with the y-axis in increments of 2 from 0-16 and the x-axis in intervals of 1 from 0.5-6.5.]\nGo to NOTEs for the TI-83, 83+, 84, 84+ Calculators. There are calculator instructions for entering data and for creating a customized histogram. Create the histogram for Example.\n- Press Y=. Press CLEAR to delete any equations.\n- Press STAT 1:EDIT. If L1 has data in it, arrow up into the name L1, press CLEAR and then arrow down. If necessary, do the same for L2.\n- Into L1, enter 1, 2, 3, 4, 5, 6.\n- Into L2, enter 11, 10, 16, 6, 5, 2.\n- Press WINDOW. Set Xmin =.5, Xmax = 6.5, Xscl = (6.5 –.5)/6, Ymin = –1, Ymax = 20, Yscl = 1, Xres = 1.\n- Press 2nd Y=. Start by pressing 4:Plotsoff ENTER.\n- Press 2nd Y=. Press 1:Plot1. Press ENTER. Arrow down to TYPE. Arrow to the 3rd picture (histogram). Press ENTER.\n- Arrow down to Xlist: Enter L1 (2nd 1). Arrow down to Freq. Enter L2 (2nd 2).\n- Press GRAPH.\n- Use the TRACE key and the arrow keys to examine the histogram.\nTry It\nThe following data are the number of sports played by 50 student athletes. The number of sports is discrete data since sports are counted.\n1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2 3; 3; 3; 3; 3; 3; 3; 3 20 student athletes play one sport. 22 student athletes play two sports. Eight student athletes play three sports.\nFill in the blanks for the following sentence. Since the data consist of the numbers 1, 2, 3, and the starting point is 0.5, a width of one places the 1 in the middle of the interval 0.5 to _____, the 2 in the middle of the interval from _____ to _____, and the 3 in the middle of the interval from _____ to _____.\nUsing this data set, construct a histogram.\nNumber of Hours My Classmates Spent Playing Video Games on Weekends\n9.95 | 10 | 2.25 | 16.75 | 0\n19.5 | 22.5 | 7.5 | 15 | 12.75\n5.5 | 11 | 10 | 20.75 | 17.5\n23 | 21.9 | 24 | 23.75 | 18\n20 | 15 | 22.9 | 18.8 | 20.5\n[Image: This is a histogram that matches the supplied data. The x-axis consists of 5 bars in intervals of 5 from 0 to 25. The y-axis is marked in increments of 1 from 0 to 10. The x-axis shows the number of hours spent playing video games on the weekends, and the y-axis shows the number of students.]\nSome values in this data set fall on boundaries for the class intervals. A value is counted in a class interval if it falls on the left boundary, but not if it falls on the right boundary. Different researchers may set up histograms for the same data in different ways. There is more than one correct way to set up a histogram.\nTry It\nThe following data represent the number of employees at various restaurants in New York City. Using this data, create a histogram.\n- 22\n- 35\n- 15\n- 26\n- 40\n- 28\n- 18\n- 20\n- 25\n- 34\n- 39\n- 42\n- 24\n- 22\n- 19\n- 27\n- 22\n- 34\n- 40\n- 20\n- 38\n- and 28\nUse 10–19 as the first interval.\nCount the money (bills and change) in your pocket or purse. Your instructor will record the amounts. As a class, construct a histogram displaying the data. Discuss how many intervals you think is appropriate. You may want to experiment with the number of intervals.\nFrequency Polygons\nFrequency polygons are analogous to line graphs, and just as line graphs make continuous data visually easy to interpret, so too do frequency polygons.\nTo construct a frequency polygon, first examine the data and decide on the number of intervals, or class intervals, to use on the x-axis and y-axis. After choosing the appropriate ranges, begin plotting the data points. After all the points are plotted, draw line segments to connect them.\nA frequency polygon was constructed from the frequency table below.\nFrequency Distribution for Calculus Final Test Scores\nLower Bound | Upper Bound | Frequency | Cumulative Frequency\n49.5 | 59.5 | 5 | 5\n59.5 | 69.5 | 10 | 15\n69.5 | 79.5 | 30 | 45\n79.5 | 89.5 | 40 | 85\n89.5 | 99.5 | 15 | 100\n[Image: A frequency polygon was constructed from the frequency table below.]\nThe first label on the x-axis is 44.5. This represents an interval extending from 39.5 to 49.5. Since the lowest test score is 54.5, this interval is used only to allow the graph to touch the x-axis. The point labeled 54.5 represents the next interval, or the first “real” interval from the table, and contains five scores. This reasoning is followed for each of the remaining intervals with the point 104.5 representing the interval from 99.5 to 109.5. Again, this interval contains no data and is only used so that the graph will touch the x-axis. Looking at the graph, we say that this distribution is skewed because one side of the graph does not mirror the other side.\nTry It\nConstruct a frequency polygon of U.S. Presidents’ ages at inauguration shown in Table.\nAge at Inauguration | Frequency\n41.5–46.5 | 4\n46.5–51.5 | 11\n51.5–56.5 | 14\n56.5–61.5 | 9\n61.5–66.5 | 4\n66.5–71.5 | 2\nFrequency polygons are useful for comparing distributions. This is achieved by overlaying the frequency polygons drawn for different data sets.\nWe will construct an overlay frequency polygon comparing the scores from Example with the students’ final numeric grade.\nFrequency Distribution for Calculus Final Test Scores\nLower Bound | Upper Bound | Frequency | Cumulative Frequency\n49.5 | 59.5 | 5 | 5\n59.5 | 69.5 | 10 | 15\n69.5 | 79.5 | 30 | 45\n79.5 | 89.5 | 40 | 85\n89.5 | 99.5 | 15 | 100\nFrequency Distribution for Calculus Final Grades\nLower Bound | Upper Bound | Frequency | Cumulative Frequency\n49.5 | 59.5 | 10 | 10\n59.5 | 69.5 | 10 | 20\n69.5 | 79.5 | 30 | 50\n79.5 | 89.5 | 45 | 95\n89.5 | 99.5 | 5 | 100\n[Image: This is an overlay frequency polygon that matches the supplied data. The x-axis shows the grades, and the y-axis shows the frequency.]\nTry It\nWe will construct an overlay frequency polygon comparing the scores from Example with the students’ final test scores in algebra.\nFrequency Distribution for Algebra Final Test Scores\nLower Bound | Upper Bound | Frequency | Cumulative Frequency\n49.5 | 59.5 | 10 | 10\n59.5 | 69.5 | 5 | 15\n69.5 | 79.5 | 40 | 55\n79.5 | 89.5 | 35 | 90\n89.5 | 99.5 | 10 | 100\nCalculus Test Scores v Algebra Test Scores\nImage Insert\nConstructing a Time Series Graph\nSuppose that we want to study the temperature range of a region for an entire month. Every day at noon we note the temperature and write this down in a log. A variety of statistical studies could be done with this data. We could find the mean or the median temperature for the month. We could construct a histogram displaying the number of days that temperatures reach a certain range of values. However, all of these methods ignore a portion of the data that we have collected.\nOne feature of the data that we may want to consider is that of time. Since each date is paired with the temperature reading for the day, we don‘t have to think of the data as being random. We can instead use the times given to impose a chronological order on the data. A graph that recognizes this ordering and displays the changing temperature as the month progresses is called a time series graph.\nTo construct a time series graph, we must look at both pieces of our paired data set. We start with a standard Cartesian coordinate system. The horizontal axis is used to plot the date or time increments, and the vertical axis is used to plot the values of the variable that we are measuring. By doing this, we make each point on the graph correspond to a date and a measured quantity. The points on the graph are typically connected by straight lines in the order in which they occur.\nThe following data shows the Annual Consumer Price Index, each month, for ten years. Construct a time series graph for the Annual Consumer Price Index data only.\nYear | Jan | Feb | Mar | Apr | May | Jun | Jul\n1 | 181.7 | 183.1 | 184.2 | 183.8 | 183.5 | 183.7 | 183.9\n2 | 185.2 | 186.2 | 187.4 | 188.0 | 189.1 | 189.7 | 189.4\n3 | 190.7 | 191.8 | 193.3 | 194.6 | 194.4 | 194.5 | 195.4\n4 | 198.3 | 198.7 | 199.8 | 201.5 | 202.5 | 202.9 | 203.5\n5 | 202.416 | 203.499 | 205.352 | 206.686 | 207.949 | 208.352 | 208.299\n6 | 211.080 | 211.693 | 213.528 | 214.823 | 216.632 | 218.815 | 219.964\n7 | 211.143 | 212.193 | 212.709 | 213.240 | 213.856 | 215.693 | 215.351\n8 | 216.687 | 216.741 | 217.631 | 218.009 | 218.178 | 217.965 | 218.011\n9 | 220.223 | 221.309 | 223.467 | 224.906 | 225.964 | 225.722 | 225.922\n10 | 226.665 | 227.663 | 229.392 | 230.085 | 229.815 | 229.478 | 229.104\nYear | Aug | Sep | Oct | Nov | Dec | Annual\n1 | 184.6 | 185.2 | 185.0 | 184.5 | 184.3 | 184.0\n2 | 189.5 | 189.9 | 190.9 | 191.0 | 190.3 | 188.9\n3 | 196.4 | 198.8 | 199.2 | 197.6 | 196.8 | 195.3\n4 | 203.9 | 202.9 | 201.8 | 201.5 | 201.8 | 201.6\n5 | 207.917 | 208.490 | 208.936 | 210.177 | 210.036 | 207.342\n6 | 219.086 | 218.783 | 216.573 | 212.425 | 210.228 | 215.303\n7 | 215.834 | 215.969 | 216.177 | 216.330 | 215.949 | 214.537\n8 | 218.312 | 218.439 | 218.711 | 218.803 | 219.179 | 218.056\n9 | 226.545 | 226.889 | 226.421 | 226.230 | 225.672 | 224.939\n10 | 230.379 | 231.407 | 231.317 | 230.221 | 229.601 | 229.594\n[Image: This is a times series graph that matches the supplied data. The x-axis shows years from 2003 to 2012, and the y-axis shows the annual CPI.]\nTry It\nThe following table is a portion of a data set from www.worldbank.org. Use the table to construct a time series graph for CO2 emissions for the United States.\nCO2 Emissions\nYear | Ukraine | United Kingdom | United States\n1 | 352,259 | 540,640 | 5,681,664\n2 | 343,121 | 540,409 | 5,790,761\n3 | 339,029 | 541,990 | 5,826,394\n4 | 327,797 | 542,045 | 5,737,615\n5 | 328,357 | 528,631 | 5,828,697\n6 | 323,657 | 522,247 | 5,656,839\n7 | 272,176 | 474,579 | 5,299,563\nUses of a Time Series Graph\nTime series graphs are important tools in various applications of statistics. When recording values of the same variable over an extended period of time, sometimes it is difficult to discern any trend or pattern. However, once the same data points are displayed graphically, some features jump out. Time series graphs make trends easy to spot.\nHow NOT to Lie with Statistics\nIt is important to remember that the very reason we develop a variety of methods to present data is to develop insights into the subject of what the observations represent. We want to get a \"sense\" of the data. Are the observations all very much alike or are they spread across a wide range of values, are they bunched at one end of the spectrum or are they distributed evenly and so on. We are trying to get a visual picture of the numerical data. Shortly we will develop formal mathematical measures of the data, but our visual graphical presentation can say much. It can, unfortunately, also say much that is distracting, confusing and simply wrong in terms of the impression the visual leaves. Many years ago Darrell Huff wrote the book How to Lie with Statistics. It has been through 25 plus printings and sold more than one and one-half million copies. His perspective was a harsh one and used many actual examples that were designed to mislead. He wanted to make people aware of such deception, but perhaps more importantly to educate so that others do not make the same errors inadvertently.\nAgain, the goal is to enlighten with visuals that tell the story of the data. Pie charts have a number of common problems when used to convey the message of the data. Too many pieces of the pie overwhelm the reader. More than perhaps five or six categories ought to give an idea of the relative importance of each piece. This is after all the goal of a pie chart, what subset matters most relative to the others. If there are more components than this then perhaps an alternative approach would be better or perhaps some can be consolidated into an \"other\" category. Pie charts cannot show changes over time, although we see this attempted all too often. In federal, state, and city finance documents pie charts are often presented to show the components of revenue available to the governing body for appropriation: income tax, sales tax motor vehicle taxes and so on. In and of itself this is interesting information and can be nicely done with a pie chart. The error occurs when two years are set side-by-side. Because the total revenues change year to year, but the size of the pie is fixed, no real information is provided and the relative size of each piece of the pie cannot be meaningfully compared.\nHistograms can be very helpful in understanding the data. Properly presented, they can be a quick visual way to present probabilities of different categories by the simple visual of comparing relative areas in each category. Here the error, purposeful or not, is to vary the width of the categories. This of course makes comparison to the other categories impossible. It does embellish the importance of the category with the expanded width because it has a greater area, inappropriately, and thus visually \"says\" that that category has a higher probability of occurrence.\nTime series graphs perhaps are the most abused. A plot of some variable across time should never be presented on axes that change part way across the page either in the vertical or horizontal dimension. Perhaps the time frame is changed from years to months. Perhaps this is to save space or because monthly data was not available for early years. In either case this confounds the presentation and destroys any value of the graph. If this is not done to purposefully confuse the reader, then it certainly is either lazy or sloppy work.\nChanging the units of measurement of the axis can smooth out a drop or accentuate one. If you want to show large changes, then measure the variable in small units, penny rather than thousands of dollars. And of course to continue the fraud, be sure that the axis does not begin at zero, zero. If it begins at zero, zero, then it becomes apparent that the axis has been manipulated.\nPerhaps you have a client that is concerned with the volatility of the portfolio you manage. An easy way to present the data is to use long time periods on the time series graph. Use months or better, quarters rather than daily or weekly data. If that doesn't get the volatility down then spread the time axis relative to the rate of return or portfolio valuation axis. If you want to show \"quick\" dramatic growth, then shrink the time axis. Any positive growth will show visually \"high\" growth rates. Do note that if the growth is negative then this trick will show the portfolio is collapsing at a dramatic rate.\nAgain, the goal of descriptive statistics is to convey meaningful visuals that tell the story of the data. Purposeful manipulation is fraud and unethical at the worst, but even at its best, making these type of errors will lead to confusion on the part of the analysis.\nReferences\nData on annual homicides in Detroit, 1961–73, from Gunst & Mason’s book ‘Regression Analysis and its Application’, Marcel Dekker\n“Timeline: Guide to the U.S. Presidents: Information on every president’s birthplace, political party, term of office, and more.” Scholastic, 2013. Available online at http://www.scholastic.com/teachers/article/timeline-guide-us-presidents (accessed April 3, 2013).\n“Presidents.” Fact Monster. Pearson Education, 2007. Available online at http://www.factmonster.com/ipka/A0194030.html (accessed April 3, 2013).\n“Food Security Statistics.” Food and Agriculture Organization of the United Nations. Available online at http://www.fao.org/economic/ess/ess-fs/en/ (accessed April 3, 2013).\n“Consumer Price Index.” United States Department of Labor: Bureau of Labor Statistics. Available online at http://data.bls.gov/pdq/SurveyOutputServlet (accessed April 3, 2013).\n“CO2 emissions (kt).” The World Bank, 2013. Available online at http://databank.worldbank.org/data/home.aspx (accessed April 3, 2013).\n“Births Time Series Data.” General Register Office For Scotland, 2013. Available online at http://www.gro-scotland.gov.uk/statistics/theme/vital-events/births/time-series.html (accessed April 3, 2013).\n“Demographics: Children under the age of 5 years underweight.” Indexmundi. Available online at http://www.indexmundi.com/g/r.aspx?t=50&v=2224&aml=en (accessed April 3, 2013).\nGunst, Richard, Robert Mason. Regression Analysis and Its Application: A Data-Oriented Approach. CRC Press: 1980.\n“Overweight and Obesity: Adult Obesity Facts.” Centers for Disease Control and Prevention. Available online at http://www.cdc.gov/obesity/data/adult.html (accessed September 13, 2013).\nChapter Review\nA histogram is a graphic version of a frequency distribution. The graph consists of bars of equal width drawn adjacent to each other. The horizontal scale represents classes of quantitative data values and the vertical scale represents frequencies. The heights of the bars correspond to frequency values. Histograms are typically used for large, continuous, quantitative data sets. A frequency polygon can also be used when graphing large data sets with data points that repeat. The data usually goes on y-axis with the frequency being graphed on the x-axis. Time series graphs can be helpful when looking at large amounts of data for one variable over a period of time.\nSixty-five randomly selected car salespersons were asked the number of cars they generally sell in one week. Fourteen people answered that they generally sell three cars; nineteen generally sell four cars; twelve generally sell five cars; nine generally sell six cars; eleven generally sell seven cars. Complete the table.\nData Value (# cars) | Frequency | Relative Frequency | Cumulative Relative Frequency\nWhat does the frequency column in Table sum to? Why?\n65\nWhat does the relative frequency column in Table sum to? Why?\nWhat is the difference between relative frequency and frequency for each data value in Table?\nThe relative frequency shows the proportion of data points that have each value. The frequency tells the number of data points that have each value.\nWhat is the difference between cumulative relative frequency and relative frequency for each data value?\nTo construct the histogram for the data in Table, determine appropriate minimum and maximum x and y values and the scaling. Sketch the histogram. Label the horizontal and vertical axes with words. Include numerical scaling.\n[Image: An empty graph template for use with this question.]\nAnswers will vary. One possible histogram is shown:\n[Image: This is a histogram that matches the supplied data supplied for car sales. The x-axis shows the number of cars sold in intervals of 1 from 3 to 8, and the y-axis shows the frequency in increments of 2 from 0 to 20. The bar from 3 to 4 has height 14; the bar from 4 to 5 has height 19; the bar from 5 to 6 has height 12; the bar from 6 to 7 has height 9; the bar form 7 to 8 has height 11.]\nConstruct a frequency polygon for the following:\n-\nPulse Rates for Females | Frequency\n60–69 | 12\n70–79 | 14\n80–89 | 11\n90–99 | 1\n100–109 | 1\n110–119 | 0\n120–129 | 1\n-\nActual Speed in a 30 MPH Zone | Frequency\n42–45 | 25\n46–49 | 14\n50–53 | 7\n54–57 | 3\n58–61 | 1\n-\nTar (mg) in Nonfiltered Cigarettes | Frequency\n10–13 | 1\n14–17 | 0\n18–21 | 15\n22–25 | 7\n26–29 | 2\nConstruct a frequency polygon from the frequency distribution for the 50 highest ranked countries for depth of hunger.\nDepth of Hunger | Frequency\n230–259 | 21\n260–289 | 13\n290–319 | 5\n320–349 | 7\n350–379 | 1\n380–409 | 1\n410–439 | 1\nFind the midpoint for each class. These will be graphed on the x-axis. The frequency values will be graphed on the y-axis values.\n[Image: This is a frequency polygon that matches the supplied data. The x-axis shows the depth of hunger, and the y-axis shows the frequency.]\nUse the two frequency tables to compare the life expectancy of males and females from 20 randomly selected countries. Include an overlayed frequency polygon and discuss the shapes of the distributions, the center, the spread, and any outliers. What can we conclude about the life expectancy of females compared to males?\nLife Expectancy at Birth – Females | Frequency\n49–55 | 3\n56–62 | 3\n63–69 | 1\n70–76 | 3\n77–83 | 8\n84–90 | 2\nLife Expectancy at Birth – Males | Frequency\n49–55 | 3\n56–62 | 3\n63–69 | 1\n70–76 | 1\n77–83 | 7\n84–90 | 5\nConstruct a times series graph for (a) the number of male births, (b) the number of female births, and (c) the total number of births.\nSex/Year | 1855 | 1856 | 1857 | 1858 | 1859 | 1860 | 1861\nFemale | 45,545 | 49,582 | 50,257 | 50,324 | 51,915 | 51,220 | 52,403\nMale | 47,804 | 52,239 | 53,158 | 53,694 | 54,628 | 54,409 | 54,606\nTotal | 93,349 | 101,821 | 103,415 | 104,018 | 106,543 | 105,629 | 107,009\nSex/Year | 1862 | 1863 | 1864 | 1865 | 1866 | 1867 | 1868 | 1869\nFemale | 51,812 | 53,115 | 54,959 | 54,850 | 55,307 | 55,527 | 56,292 | 55,033\nMale | 55,257 | 56,226 | 57,374 | 58,220 | 58,360 | 58,517 | 59,222 | 58,321\nTotal | 107,069 | 109,341 | 112,333 | 113,070 | 113,667 | 114,044 | 115,514 | 113,354\nSex/Year | 1870 | 1871 | 1872 | 1873 | 1874 | 1875\nFemale | 56,431 | 56,099 | 57,472 | 58,233 | 60,109 | 60,146\nMale | 58,959 | 60,029 | 61,293 | 61,467 | 63,602 | 63,432\nTotal | 115,390 | 116,128 | 118,765 | 119,700 | 123,711 | 123,578\n[Image: This is a line graph that shows births in Scotland and is compiled from the data provided in tables 2.49, 2.50, and 2.51. The horizontal axis shows Years in intervals of 1 from 1855 to 1875. The vertical axis shows number of births in intervals of 5,000 from 40,000 to 130,000. A series of connected line segments show the numbers of female births over the period, increasing form 45,545 in 1855 to 60,146 in 1875. A second series of connected line segments show the numbers of male births over the period, increasing form 47,804 in 1855 to 63,432 in 1875. A third series of connected line segments show the total births over the period, increasing from 93,349 in 1855 to 123,578 in 1875.]\nThe following data sets list full time police per 100,000 citizens along with homicides per 100,000 citizens for a city during the period from 1961 to 1973.\nYear | 1961 | 1962 | 1963 | 1964 | 1965 | 1966 | 1967\nPolice | 260.35 | 269.8 | 272.04 | 272.96 | 272.51 | 261.34 | 268.89\nHomicides | 8.6 | 8.9 | 8.52 | 8.89 | 13.07 | 14.57 | 21.36\nYear | 1968 | 1969 | 1970 | 1971 | 1972 | 1973\nPolice | 295.99 | 319.87 | 341.43 | 356.59 | 376.69 | 390.19\nHomicides | 28.03 | 31.49 | 37.39 | 46.26 | 47.24 | 52.33\n- Construct a double time series graph using a common x-axis for both sets of data.\n- Which variable increased the fastest? Explain.\n- Did the city's increase in police officers have an impact on the murder rate? Explain.\nHomework\nSuppose that three book publishers were interested in the number of fiction paperbacks adult consumers purchase per month. Each publisher conducted a survey. In the survey, adult consumers were asked the number of fiction paperbacks they had purchased the previous month. The results are as follows:\n# of books | Freq. | Rel. Freq.\n0 | 10\n1 | 12\n2 | 16\n3 | 12\n4 | 8\n5 | 6\n6 | 2\n8 | 2\n# of books | Freq. | Rel. Freq.\n0 | 18\n1 | 24\n2 | 24\n3 | 22\n4 | 15\n5 | 10\n7 | 5\n9 | 1\n# of books | Freq. | Rel. Freq.\n0–1 | 20\n2–3 | 35\n4–5 | 12\n6–7 | 2\n8–9 | 1\n- Find the relative frequencies for each survey. Write them in the charts.\n- Using either a graphing calculator, computer, or by hand, use the frequency column to construct a histogram for each publisher's survey. For Publishers A and B, make bar widths of one. For Publisher C, make bar widths of two.\n- In complete sentences, give two reasons why the graphs for Publishers A and B are not identical.\n- Would you have expected the graph for Publisher C to look like the other two graphs? Why or why not?\n- Make new histograms for Publisher A and Publisher B. This time, make bar widths of two.\n- Now, compare the graph for Publisher C to the new graphs for Publishers A and B. Are the graphs more similar or more different? Explain your answer.\nOften, cruise ships conduct all on-board transactions, with the exception of gambling, on a cashless basis. At the end of the cruise, guests pay one bill that covers all onboard transactions. Suppose that 60 single travelers and 70 couples were surveyed as to their on-board bills for a seven-day cruise from Los Angeles to the Mexican Riviera. Following is a summary of the bills for each group.\nAmount(\\$) | Frequency | Rel. Frequency\n51–100 | 5\n101–150 | 10\n151–200 | 15\n201–250 | 15\n251–300 | 10\n301–350 | 5\nAmount(\\$) | Frequency | Rel. Frequency\n100–150 | 5\n201–250 | 5\n251–300 | 5\n301–350 | 5\n351–400 | 10\n401–450 | 10\n451–500 | 10\n501–550 | 10\n551–600 | 5\n601–650 | 5\n- Fill in the relative frequency for each group.\n- Construct a histogram for the singles group. Scale the x-axis by \\$50 widths. Use relative frequency on the y-axis.\n- Construct a histogram for the couples group. Scale the x-axis by \\$50 widths. Use relative frequency on the y-axis.\n- Compare the two graphs:\n- List two similarities between the graphs.\n- List two differences between the graphs.\n- Overall, are the graphs more similar or different?\n- Construct a new graph for the couples by hand. Since each couple is paying for two individuals, instead of scaling the x-axis by \\$50, scale it by \\$100. Use relative frequency on the y-axis.\n- Compare the graph for the singles with the new graph for the couples:\n- List two similarities between the graphs.\n- Overall, are the graphs more similar or different?\n- How did scaling the couples graph differently change the way you compared it to the singles graph?\n- Based on the graphs, do you think that individuals spend the same amount, more or less, as singles as they do person by person as a couple? Explain why in one or two complete sentences.\nAmount(\\$) | Frequency | Relative Frequency\n51–100 | 5 | 0.08\n101–150 | 10 | 0.17\n151–200 | 15 | 0.25\n201–250 | 15 | 0.25\n251–300 | 10 | 0.17\n301–350 | 5 | 0.08\nAmount(\\$) | Frequency | Relative Frequency\n100–150 | 5 | 0.07\n201–250 | 5 | 0.07\n251–300 | 5 | 0.07\n301–350 | 5 | 0.07\n351–400 | 10 | 0.14\n401–450 | 10 | 0.14\n451–500 | 10 | 0.14\n501–550 | 10 | 0.14\n551–600 | 5 | 0.07\n601–650 | 5 | 0.07\n- See Table and Table.\n- In the following histogram data values that fall on the right boundary are counted in the class interval, while values that fall on the left boundary are not counted (with the exception of the first interval where both boundary values are included).\n[Image: This is a histogram that matches the supplied data supplied for singles. The x-axis shows the total charges in intervals of 50 from 50 to 350, and the y-axis shows the relative frequency in increments of 0.05 from 0 to 0.3.]\n- In the following histogram, the data values that fall on the right boundary are counted in the class interval, while values that fall on the left boundary are not counted (with the exception of the first interval where values on both boundaries are included).\n[Image: This is a histogram that matches the supplied data for couples. The x-axis shows the total charges in intervals of 50 from 100 to 650, and the y-axis shows the relative frequency in increments of 0.02 from 0 to 0.16.]\n- Compare the two graphs:\n- Answers may vary. Possible answers include:\n- Both graphs have a single peak.\n- Both graphs use class intervals with width equal to \\$50.\n- Answers may vary. Possible answers include:\n- The couples graph has a class interval with no values.\n- It takes almost twice as many class intervals to display the data for couples.\n- Answers may vary. Possible answers include: The graphs are more similar than different because the overall patterns for the graphs are the same.\n- Answers may vary.\n- Compare the graph for the Singles with the new graph for the Couples:\n-\n- Both graphs have a single peak.\n- Both graphs display 6 class intervals.\n- Both graphs show the same general pattern.\n- Answers may vary. Possible answers include: Although the width of the class intervals for couples is double that of the class intervals for singles, the graphs are more similar than they are different.\n- Answers may vary. Possible answers include: You are able to compare the graphs interval by interval. It is easier to compare the overall patterns with the new scale on the Couples graph. Because a couple represents two individuals, the new scale leads to a more accurate comparison.\n- Answers may vary. Possible answers include: Based on the histograms, it seems that spending does not vary much from singles to individuals who are part of a couple. The overall patterns are the same. The range of spending for couples is approximately double the range for individuals.\nTwenty-five randomly selected students were asked the number of movies they watched the previous week. The results are as follows.\n# of movies | Frequency | Relative Frequency | Cumulative Relative Frequency\n0 | 5\n1 | 9\n2 | 6\n3 | 4\n4 | 1\n- Construct a histogram of the data.\n- Complete the columns of the chart.\nUse the following information to answer the next two exercises: Suppose 111 people who shopped in a special T-shirt store were asked the number of T-shirts they own costing more than \\$19 each.\n[Image: A histogram showing the results of a survey. Of 111 respondents, 5 own 1 t-shirt costing more than \\$19, 17 own 2, 23 own 3, 39 own 4, 25 own 5, 2 own 6, and no respondents own 7.]\nThe percentage of people who own at most three T-shirts costing more than \\$19 each is approximately:\n- 21\n- 59\n- 41\n- Cannot be determined\nc\nIf the data were collected by asking the first 111 people who entered the store, then the type of sampling is:\n- cluster\n- simple random\n- stratified\n- convenience\nFollowing are the rates of unmarried adults for the 50 U.S. states and Washington, DC.\nState | Percent (%) | State | Percent (%) | State | Percent (%)\nAlabama | 32.2 | Kentucky | 31.3 | North Dakota | 27.2\nAlaska | 24.5 | Louisiana | 31.0 | Ohio | 29.2\nArizona | 24.3 | Maine | 26.8 | Oklahoma | 30.4\nArkansas | 30.1 | Maryland | 27.1 | Oregon | 26.8\nCalifornia | 24.0 | Massachusetts | 23.0 | Pennsylvania | 28.6\nColorado | 21.0 | Michigan | 30.9 | Rhode Island | 25.5\nConnecticut | 22.5 | Minnesota | 24.8 | South Carolina | 31.5\nDelaware | 28.0 | Mississippi | 34.0 | South Dakota | 27.3\nWashington, DC | 22.2 | Missouri | 30.5 | Tennessee | 30.8\nFlorida | 26.6 | Montana | 23.0 | Texas | 31.0\nGeorgia | 29.6 | Nebraska | 26.9 | Utah | 22.5\nHawaii | 22.7 | Nevada | 22.4 | Vermont | 23.2\nIdaho | 26.5 | New Hampshire | 25.0 | Virginia | 26.0\nIllinois | 28.2 | New Jersey | 23.8 | Washington | 25.5\nIndiana | 29.6 | New Mexico | 25.1 | West Virginia | 32.5\nIowa | 28.4 | New York | 23.9 | Wisconsin | 26.3\nKansas | 29.4 | North Carolina | 27.8 | Wyoming | 25.1\nConstruct a bar graph of the unmarried adult rates of your state and the four states closest to your state. Hint: Label the x-axis with the states.\nAnswers will vary.\n\nGlossary\nFrequency the number of times a value of the data occurs\nHistogram a graphical representation in x-y form of the distribution of data in a data set; x represents the data and y represents the frequency, or relative frequency. The graph consists of contiguous rectangles.\nRelative Frequency the ratio of the number of times a value of the data occurs in the set of all outcomes to the number of all outcomes"}
{"document_id": "openstax-intro-statistics-m46930", "title": "Descriptive Statistics — Measures of the Location of the Data", "source": "https://openstax.org/books/introductory-statistics-2e/pages/2-3-measures-of-the-location-of-the-data", "license": "CC-BY-4.0", "text": "The common measures of location are quartiles and percentiles.\nQuartiles divide an ordered data set into four equal parts. The three quartiles of a data set are labeled as Q1, Q2, and Q3.\n- About one-fourth of the data falls on or below the first quartile Q1.\n- About one-half of the data falls on or below the second quartile Q2.\n- About three-fourths of the data falls on or below the third quartile Q3.\nIn the same way, percentiles divide a data set into 100 equal parts.\nTo calculate quartiles and percentiles, the data must be ordered from smallest to largest. Quartiles divide ordered data into quarters. Percentiles divide ordered data into hundredths. To score in the 90th percentile of an exam does not mean, necessarily, that you received 90% on a test. It means that 90% of test scores are the same or less than your score and 10% of the test scores are the same or greater than your test score.\nPercentiles are useful for comparing values. For this reason, universities and colleges use percentiles extensively. One instance in which colleges and universities use percentiles is when SAT results are used to determine a minimum testing score that will be used as an acceptance factor. For example, suppose Duke accepts SAT scores at or above the 75th percentile. That translates into a score of at least 1220.\nPercentiles are mostly used with very large populations. Therefore, if you were to say that 90% of the test scores are less (and not the same or less) than your score, it would be acceptable because removing one particular data value is not significant.\nThe median is a number that measures the \"center\" of the data. You can think of the median as the \"middle value,\" but it does not actually have to be one of the observed values. It is a number that separates ordered data into halves. Half the values are the same number or smaller than the median, and half the values are the same number or larger. For example, consider the following data. 1; 11.5; 6; 7.2; 4; 8; 9; 10; 6.8; 8.3; 2; 2; 10; 1 Ordered from smallest to largest: 1; 1; 2; 2; 4; 6; 6.8; 7.2; 8; 8.3; 9; 10; 10; 11.5\nSince there are 14 observations, the median is between the seventh value, 6.8, and the eighth value, 7.2. To find the median, add the two values together and divide by two.\n$$\\begin{matrix} 6.8+7.2=14 \\\\ 14\\div2=7 \\end{matrix}$$\nThe median is seven. Half of the values are smaller than seven and half of the values are larger than seven.\nQuartiles are numbers that separate the data into quarters. Quartiles may or may not be part of the data. To find the quartiles, first find the median or second quartile. The first quartile, Q1, is the middle value of the lower half of the data, and the third quartile, Q3, is the middle value, or median, of the upper half of the data. To get the idea, consider the same data set: 1; 1; 2; 2; 4; 6; 6.8; 7.2; 8; 8.3; 9; 10; 10; 11.5\nThe median or second quartile is seven. The lower half of the data are 1, 1, 2, 2, 4, 6, 6.8. The middle value of the lower half is two. 1; 1; 2; 2; 4; 6; 6.8\nThe number two, which is part of the data, is the first quartile. One-fourth of the entire sets of values are the same as or less than two and three-fourths of the values are more than two.\nThe upper half of the data is 7.2, 8, 8.3, 9, 10, 10, 11.5. The middle value of the upper half is nine.\nThe third quartile, Q3, is nine. Three-fourths (75%) of the ordered data set are less than nine. One-fourth (25%) of the ordered data set are greater than nine. The third quartile is part of the data set in this example.\nThe interquartile range is a number that indicates the spread of the middle half or the middle 50% of the data. It is the difference between the third quartile (Q3) and the first quartile (Q1).\nIQR = Q3 – Q1\nThe IQR can help to determine potential outliers. A value is suspected to be a potential outlier if it is less than (1.5)(IQR) below the first quartile or more than (1.5)(IQR) above the third quartile. Potential outliers always require further investigation.\nNOTE\nA potential outlier is a data point that is significantly different from the other data points. These special data points may be errors or some kind of abnormality or they may be a key to understanding the data.\nFor the following 13 real estate prices, calculate the IQR and determine if any prices are potential outliers. Prices are in dollars. 389,950; 230,500; 158,000; 479,000; 639,000; 114,950; 5,500,000; 387,000; 659,000; 529,000; 575,000; 488,800; 1,095,000\nOrder the data from smallest to largest. 114,950; 158,000; 230,500; 387,000; 389,950; 479,000; 488,800; 529,000; 575,000; 639,000; 659,000; 1,095,000; 5,500,000\nM = 488,800\nQ1 = $\\frac{\\text{230,500 + 387,000}}{2}$ = 308,750\nQ3 = $\\frac{\\text{639,000 + 659,000}}{2}$ = 649,000\nIQR = 649,000 – 308,750 = 340,250\n(1.5)(IQR) = (1.5)(340,250) = 510,375\nQ1 – (1.5)(IQR) = 308,750 – 510,375 = –201,625\nQ3 + (1.5)(IQR) = 649,000 + 510,375 = 1,159,375\nNo house price is less than –201,625. However, 5,500,000 is more than 1,159,375. Therefore, 5,500,000 is a potential outlier.\nTry It\nFor the following 11 salaries, calculate the IQR and determine if any salaries are outliers. The salaries are in dollars.\n- \\$33,000\n- \\$64,500\n- \\$28,000\n- \\$54,000\n- \\$72,000\n- \\$68,500\n- \\$69,000\n- \\$42,000\n- \\$54,000\n- \\$120,000\n- \\$40,500\nTest scores for a college statistics class held during the day are:99; 56; 78; 55.5; 32; 90; 80; 81; 56; 59; 45; 77; 84.5; 84; 70; 72; 68; 32; 79; 90\nTest scores for a college statistics class held during the evening are:98; 78; 68; 83; 81; 89; 88; 76; 65; 45; 98; 90; 80; 84.5; 85; 79; 78; 98; 90; 79; 81; 25.5\nFor the two data sets, find the following:\n- The interquartile range. Compare the two interquartile ranges.\n- Any outliers in either set.\nThe five number summary for the day and night classes is\nMinimum | Q1 | Median | Q3 | Maximum\nDay | 32 | 56 | 74.5 | 82.5 | 99\nNight | 25.5 | 78 | 81 | 89 | 98\n- The IQR for the day group is Q3 – Q1 = 82.5 – 56 = 26.5\nThe IQR for the night group is Q3 – Q1 = 89 – 78 = 11\nThe interquartile range (the spread or variability) for the day class is larger than the night class IQR. This suggests more variation will be found in the day class’s class test scores.\n- Day class outliers are found using the IQR times 1.5 rule. So,\n- Q1 - IQR(1.5) = 56 – 26.5(1.5) = 16.25\n- Q3 + IQR(1.5) = 82.5 + 26.5(1.5) = 122.25\nSince the minimum and maximum values for the day class are greater than 16.25 and less than 122.25, there are no outliers.\nNight class outliers are calculated as:\n- Q1 – IQR (1.5) = 78 – 11(1.5) = 61.5\n- Q3 + IQR(1.5) = 89 + 11(1.5) = 105.5\nFor this class, any test score less than 61.5 is an outlier. Therefore, the scores of 45 and 25.5 are outliers. Since no test score is greater than 105.5, there is no upper end outlier.\nTry It\nFind the interquartile range for the following two data sets and compare them.\nTest Scores for Class A 69; 96; 81; 79; 65; 76; 83; 99; 89; 67; 90; 77; 85; 98; 66; 91; 77; 69; 80; 94 Test Scores for Class B 90; 72; 80; 92; 90; 97; 92; 75; 79; 68; 70; 80; 99; 95; 78; 73; 71; 68; 95; 100\nFifty statistics students were asked how much sleep they get per school night (rounded to the nearest hour). The results were:\nAMOUNT OF SLEEP PER SCHOOL NIGHT (HOURS) | FREQUENCY | RELATIVE FREQUENCY | CUMULATIVE RELATIVE FREQUENCY\n4 | 2 | 0.04 | 0.04\n5 | 5 | 0.10 | 0.14\n6 | 7 | 0.14 | 0.28\n7 | 12 | 0.24 | 0.52\n8 | 14 | 0.28 | 0.80\n9 | 7 | 0.14 | 0.94\n10 | 3 | 0.06 | 1.00\nFind the 28th percentile. Notice the 0.28 in the \"cumulative relative frequency\" column. Twenty-eight percent of 50 data values is 14 values. There are 14 values less than the 28th percentile. They include the two 4s, the five 5s, and the seven 6s. The 28th percentile is between the last six and the first seven. The 28th percentile is 6.5.\nFind the median. Look again at the \"cumulative relative frequency\" column and find 0.52. The median is the 50th percentile or the second quartile. 50% of 50 is 25. There are 25 values less than the median. They include the two 4s, the five 5s, the seven 6s, and eleven of the 7s. The median or 50th percentile is between the 25th, or seven, and 26th, or seven, values. The median is seven.\nFind the third quartile. The third quartile is the same as the 75th percentile. You can \"eyeball\" this answer. If you look at the \"cumulative relative frequency\" column, you find 0.52 and 0.80. When you have all the fours, fives, sixes and sevens, you have 52% of the data. When you include all the 8s, you have 80% of the data. The 75th percentile, then, must be an eight. Another way to look at the problem is to find 75% of 50, which is 37.5, and round up to 38. The third quartile, Q3, is the 38th value, which is an eight. You can check this answer by counting the values. (There are 37 values below the third quartile and 12 values above.)\nTry it\nForty bus drivers were asked how many hours they spend each day running their routes (rounded to the nearest hour). Find the 65th percentile.\nAmount of time spent on route (hours) | Frequency | Relative Frequency | Cumulative Relative Frequency\n2 | 12 | 0.30 | 0.30\n3 | 14 | 0.35 | 0.65\n4 | 10 | 0.25 | 0.90\n5 | 4 | 0.10 | 1.00\nA Formula for Finding the kth Percentile\nIf you were to do a little research, you would find several formulas for calculating the kth percentile. Here is one of them.\nk = the kth percentile. It may or may not be part of the data.\ni = the index (ranking or position of a data value)\nn = the total number of data\n- Order the data from smallest to largest.\n- Calculate $i=\\frac{k}{100}(n+1)$\n- If i is an integer, then the kth percentile is the data value in the ith position in the ordered set of data.\n- If i is not an integer, then round i up and round i down to the nearest integers. Average the two data values in these two positions in the ordered data set. This is easier to understand in an example.\nListed are 29 ages for Academy Award winning best actors in order from smallest to largest. 18; 21; 22; 25; 26; 27; 29; 30; 31; 33; 36; 37; 41; 42; 47; 52; 55; 57; 58; 62; 64; 67; 69; 71; 72; 73; 74; 76; 77\n- Find the 70th percentile.\n- Find the 83rd percentile.\n-\n- k = 70\n- i = the index\n- n = 29\ni = $\\frac{k}{100}$ (n + 1) = ($\\frac{70}{100}$)(29 + 1) = 21. Twenty-one is an integer, and the data value in the 21st position in the ordered data set is 64. The 70th percentile is 64 years.\n-\n- k = 83rd percentile\n- i = the index\n- n = 29\ni = $\\frac{k}{100}$ (n + 1) = ($\\frac{83}{100}$)(29 + 1) = 24.9, which is NOT an integer. Round it down to 24 and up to 25. The age in the 24th position is 71 and the age in the 25th position is 72. Average 71 and 72. The 83rd percentile is 71.5 years.\nTry It\nListed are 29 ages for Academy Award winning best actors in order from smallest to largest.\n18; 21; 22; 25; 26; 27; 29; 30; 31; 33; 36; 37; 41; 42; 47; 52; 55; 57; 58; 62; 64; 67; 69; 71; 72; 73; 74; 76; 77 Calculate the 20th percentile and the 55th percentile.\nNOTE\nYou can calculate percentiles using calculators and computers. There are a variety of online calculators.\nUsing Table:\n- Find the 80th percentile.\n- Find the 90th percentile.\n- Find the first quartile. What is another name for the first quartile?\nUsing the data from the frequency table, we have:\n- Notice there are 50 data values in the table, so n = 50.Calculate the index i as follows:$i=\\frac{80}{100}(50+1)=40.8$Since i = 40.8, calculate the mean of the 40th and 41st data values. The 40th data value is 8, the 41st data value is 9, and the mean of these two data values is 8.5. Thus, the 80th percentile is 8.5.\n- Calculate the index i as follows:$i=\\frac{90}{100}(50+1)=45.9$Since i = 45.9, calculate the mean of the 45th and 46th data values. The 45th data value is 9, the 46th data value is 9, and the mean of these two data values is 9. Thus, the 90th percentile is 9.\n- Another name for the first quartile is the 25th percentile. Proceed to calculate the 25th percentile:Calculate the index i as follows:$i=\\frac{25}{100}(50+1)=12.75$Since i = 12.75, calculate the mean of the 12th and 13th data values. The 12th data value is 6, the 13th data value is 6, and the mean of these two data values is 6. Thus, the first quartile is 6.\nTry It\nRefer to the Table. Find the third quartile. What is another name for the third quartile?\nYour instructor or a member of the class will ask everyone in class how many sweaters they own. Answer the following questions:\n- How many students were surveyed?\n- What kind of sampling did you do?\n- Construct two different histograms. For each, starting value = _____ ending value = ____.\n- Find the median, first quartile, and third quartile.\n- Construct a table of the data to find the following:\n- the 10th percentile\n- the 70th percentile\n- the percent of students who own less than four sweaters\nA Formula for Finding the Percentile of a Value in a Data Set\n- Order the data from smallest to largest.\n- x = the number of data values counting from the bottom of the data list up to but not including the data value for which you want to find the percentile.\n- y = the number of data values equal to the data value for which you want to find the percentile.\n- n = the total number of data.\n- Calculate $\\frac{x+0.5y}{n}$(100). Then round to the nearest integer.\nListed are 29 ages for Academy Award winning best actors in order from smallest to largest. 18; 21; 22; 25; 26; 27; 29; 30; 31; 33; 36; 37; 41; 42; 47; 52; 55; 57; 58; 62; 64; 67; 69; 71; 72; 73; 74; 76; 77\n- Find the percentile for 58.\n- Find the percentile for 25.\n- Counting from the bottom of the list, there are 18 data values less than 58. There is one value of 58.\nx = 18 and y = 1.$\\frac{x+0.5y}{n}$(100) = $\\frac{18+0.5(1)}{29}$(100) = 63.80. 58 is the 64th percentile.\n- Counting from the bottom of the list, there are three data values less than 25. There is one value of 25.\nx = 3 and y = 1.$\\frac{x+0.5y}{n}$(100) = $\\frac{3+0.5(1)}{29}$(100) = 12.07. Twenty-five is the 12th percentile.\nTry It\nListed are 30 ages for Academy Award winning best actors in order from smallest to largest.\n18; 21; 22; 25; 26; 27; 29; 30; 31, 31; 33; 36; 37; 41; 42; 47; 52; 55; 57; 58; 62; 64; 67; 69; 71; 72; 73; 74; 76; 77 Find the percentiles for 47 and 31.\nInterpreting Percentiles, Quartiles, and Median\nA percentile indicates the relative standing of a data value when data are sorted into numerical order from smallest to largest. Percentages of data values are less than or equal to the pth percentile. For example, 15% of data values are less than or equal to the 15th percentile.\n- Low percentiles always correspond to lower data values.\n- High percentiles always correspond to higher data values.\nA percentile may or may not correspond to a value judgment about whether it is \"good\" or \"bad.\" The interpretation of whether a certain percentile is \"good\" or \"bad\" depends on the context of the situation to which the data applies. In some situations, a low percentile would be considered \"good;\" in other contexts a high percentile might be considered \"good\". In many situations, there is no value judgment that applies.\nUnderstanding how to interpret percentiles properly is important not only when describing data, but also when calculating probabilities in later chapters of this text.\nNOTE\nWhen writing the interpretation of a percentile in the context of the given data, the sentence should contain the following information.\n- information about the context of the situation being considered\n- the data value (value of the variable) that represents the percentile\n- the percent of individuals or items with data values below the percentile\n- the percent of individuals or items with data values above the percentile.\nOn a timed math test, the first quartile for time it took to finish the exam was 35 minutes. Interpret the first quartile in the context of this situation.\n- Twenty-five percent of students finished the exam in 35 minutes or less.\n- Seventy-five percent of students finished the exam in 35 minutes or more.\n- A low percentile could be considered good, as finishing more quickly on a timed exam is desirable. (If you take too long, you might not be able to finish.)\nTry It\nFor the 100-meter dash, the third quartile for times for finishing the race was 11.5 seconds. Interpret the third quartile in the context of the situation.\nOn a 20 question math test, the 70th percentile for number of correct answers was 16. Interpret the 70th percentile in the context of this situation.\nTry It\nOn a 60 point written assignment, the 80th percentile for the number of points earned was 49. Interpret the 80th percentile in the context of this situation.\nAt a community college, it was found that the 30th percentile of credit units that students are enrolled for is seven units. Interpret the 30th percentile in the context of this situation.\nTry It\nDuring a season, the 40th percentile for points scored per player in a game is eight. Interpret the 40th percentile in the context of this situation.\nSharpe Middle School is applying for a grant that will be used to add fitness equipment to the gym. The principal surveyed 15 anonymous students to determine how many minutes a day the students spend exercising. The results from the 15 anonymous students are shown.\n0 minutes; 40 minutes; 60 minutes; 30 minutes; 60 minutes\n10 minutes; 45 minutes; 30 minutes; 300 minutes; 90 minutes;\n30 minutes; 120 minutes; 60 minutes; 0 minutes; 20 minutes\nDetermine the following five values.\n- Min = 0\n- Q1 = 20\n- Med = 40\n- Q3 = 60\n- Max = 300\nIf you were the principal, would you be justified in purchasing new fitness equipment? Since 75% of the students exercise for 60 minutes or less daily, and since the IQR is 40 minutes (60 – 20 = 40), we know that half of the students surveyed exercise between 20 minutes and 60 minutes daily. This seems a reasonable amount of time spent exercising, so the principal would be justified in purchasing the new equipment.\nHowever, the principal needs to be careful. The value 300 appears to be a potential outlier.\nQ3 + 1.5(IQR) = 60 + (1.5)(40) = 120.\nThe value 300 is greater than 120 so it is a potential outlier. If we delete it and calculate the five values, we get the following values:\n- Min = 0\n- Q1 = 20\n- Q3 = 60\n- Max = 120\nWe still have 75% of the students exercising for 60 minutes or less daily and half of the students exercising between 20 and 60 minutes a day. However, 15 students is a small sample and the principal should survey more students to be sure of his survey results.\nTry It\nA college statistics instructor is investigating the amount of time students spend working on a final project in the course. The instructor would like students to spend approximately 3 to 4 hours as the typical amount of time to be spent on the project. The instructor collects data from a random sample of 10 students for the number of hours spent working on the final project. The results obtained are as follows:\n2 hours; 3 hours; 5 hours; 3 hours; 4 hours;\n4 hours; 3 hours; 11 hours; 3 hours; 2 hours.\n- Determine the following five values: Min, Q1, Med, Q3, Max.\n- Should the instructor modify the final project or leave as is?\n- The five values are obtained as follows:\nMin = 2\nQ1 = 3\nMed = 3\nQ3 = 4\nMax = 11\n- Given that the 3rd quartile is 4 hours, this indicates that 75% of the students spend 4 hours or less on the project. Also for the interquartile range: IQR = 4 – 3 = 1, we know that half the students spent between 3 and 4 hours on the project. This seems like a reasonable amount of time for students to spend on the final project.\nHowever, the value 11 hours appears to be a potential outlier.\n$${Q}_{3}+1.5(IQR)=4+1.5(1)=5.5$$\nThe value 11 is greater than 5.5, so it is an outlier. If we delete it and recalculate the five values, we get the following values:\nMin = 2\nQ1 = 2.5\nQ3 = 4\nMax = 5\nWe still have 75% of students spending 4 hours or less on the project. Half of the students spend between 2.5 hours and 4 hours on the project.\nHowever, 10 students may be a relatively small sample size. The instructor might consider a larger sample size.\nReferences\nCauchon, Dennis, Paul Overberg. “Census data shows minorities now a majority of U.S. births.” USA Today, 2012. Available online at http://usatoday30.usatoday.com/news/nation/story/2012-05-17/minority-birthscensus/55029100/1 (accessed April 3, 2013).\nData from the United States Department of Commerce: United States Census Bureau. Available online at http://www.census.gov/ (accessed April 3, 2013).\n“1990 Census.” United States Department of Commerce: United States Census Bureau. Available online at http://www.census.gov/main/www/cen1990.html (accessed April 3, 2013).\nData from San Jose Mercury News.\nData from Time Magazine; survey by Yankelovich Partners, Inc.\nChapter Review\nThe values that divide a rank-ordered set of data into 100 equal parts are called percentiles. Percentiles are used to compare and interpret data. For example, an observation at the 50th percentile would be greater than 50 percent of the other observations in the set. Quartiles divide data into quarters. The first quartile (Q1) is the 25th percentile,the second quartile (Q2 or median) is 50th percentile, and the third quartile (Q3) is the 75th percentile. The interquartile range, or IQR, is the range of the middle 50 percent of the data values. The IQR is found by subtracting Q1 from Q3, and can help determine outliers by using the following two expressions.\n- Q3 + IQR(1.5)\n- Q1 – IQR(1.5)\nFormula Review\n$i=(\\frac{k}{100})(n+1)$\nwhere i = the ranking or position of a data value,\nk = the kth percentile,\nn = total number of data.\nExpression for finding the percentile of a data value: $(\\frac{x\\text{+}0.5y}{n})$(100)\nwhere x = the number of values counting from the bottom of the data list up to but not including the data value for which you want to find the percentile,\ny = the number of data values equal to the data value for which you want to find the percentile,\nn = total number of data\nListed are 29 ages for Academy Award winning best actors in order from smallest to largest.\n18; 21; 22; 25; 26; 27; 29; 30; 31; 33; 36; 37; 41; 42; 47; 52; 55; 57; 58; 62; 64; 67; 69; 71; 72; 73; 74; 76; 77\n- Find the 40th percentile.\n- Find the 78th percentile.\n- The 40th percentile is 37 years.\n- The 78th percentile is 70 years.\nListed are 32 ages for Academy Award winning best actors in order from smallest to largest.\n18; 18; 21; 22; 25; 26; 27; 29; 30; 31; 31; 33; 36; 37; 37; 41; 42; 47; 52; 55; 57; 58; 62; 64; 67; 69; 71; 72; 73; 74; 76; 77\n- Find the percentile of 37.\n- Find the percentile of 72.\nJesse was ranked 37th in his graduating class of 180 students. At what percentile is Jesse’s ranking?\nJesse graduated 37th out of a class of 180 students. There are 180 – 37 = 143 students ranked below Jesse. There is one rank of 37.\nx = 143 and y = 1. $\\frac{x+0.5y}{n}$(100) = $\\frac{143+0.5(1)}{180}$(100) = 79.72. Jesse’s rank of 37 puts him at the 80th percentile.\n- For runners in a race, a low time means a faster run. The winners in a race have the shortest running times. Is it more desirable to have a finish time with a high or a low percentile when running a race?\n- The 20th percentile of run times in a particular race is 5.2 minutes. Write a sentence interpreting the 20th percentile in the context of the situation.\n- A bicyclist in the 90th percentile of a bicycle race completed the race in 1 hour and 12 minutes. Is he among the fastest or slowest cyclists in the race? Write a sentence interpreting the 90th percentile in the context of the situation.\n- For runners in a race, a higher speed means a faster run. Is it more desirable to have a speed with a high or a low percentile when running a race?\n- The 40th percentile of speeds in a particular race is 7.5 miles per hour. Write a sentence interpreting the 40th percentile in the context of the situation.\n- For runners in a race it is more desirable to have a high percentile for speed. A high percentile means a higher speed which is faster.\n- 40% of runners ran at speeds of 7.5 miles per hour or less (slower). 60% of runners ran at speeds of 7.5 miles per hour or more (faster).\nOn an exam, would it be more desirable to earn a grade with a high or low percentile? Explain.\nMina is waiting in line at the Department of Motor Vehicles (DMV). Her wait time of 32 minutes is the 85th percentile of wait times. Is that good or bad? Write a sentence interpreting the 85th percentile in the context of this situation.\nWhen waiting in line at the DMV, the 85th percentile would be a long wait time compared to the other people waiting. 85% of people had shorter wait times than Mina. In this context, Mina would prefer a wait time corresponding to a lower percentile. 85% of people at the DMV waited 32 minutes or less. 15% of people at the DMV waited 32 minutes or longer.\nIn a survey collecting data about the salaries earned by recent college graduates, Li found that her salary was in the 78th percentile. Should Li be pleased or upset by this result? Explain.\nIn a study collecting data about the repair costs of damage to automobiles in a certain type of crash tests, a certain model of car had \\$1,700 in damage and was in the 90th percentile. Should the manufacturer and the consumer be pleased or upset by this result? Explain and write a sentence that interprets the 90th percentile in the context of this problem.\nThe manufacturer and the consumer would be upset. This is a large repair cost for the damages, compared to the other cars in the sample. INTERPRETATION: 90% of the crash tested cars had damage repair costs of \\$1700 or less; only 10% had damage repair costs of \\$1700 or more.\nThe University of Wisconsin has two criteria used to set admission standards for students to be admitted to a college in the UW system:\n- Students' GPAs and scores on standardized tests (SATs and ACTs) are entered into a formula that calculates an \"admissions index\" score. The admissions index score is used to set eligibility standards intended to meet the goal of admitting the top 12% of high school students in the state. In this context, what percentile does the top 12% represent?\n- Students whose GPAs are at or above the 96th percentile of all students at their high school are eligible (called eligible in the local context), even if they are not in the top 12% of all students in the state. What percentage of students from each high school are \"eligible in the local context\"?\nSuppose that you are buying a house. You and your realtor have determined that the most expensive house you can afford is the 34th percentile. The 34th percentile of housing prices is \\$240,000 in the town you want to move to. In this town, can you afford 34% of the houses or 66% of the houses?\nYou can afford 34% of houses. 66% of the houses are too expensive for your budget. INTERPRETATION: 34% of houses cost \\$240,000 or less. 66% of houses cost \\$240,000 or more.\nUse the following information to answer the next six exercises. Sixty-five randomly selected car salespersons were asked the number of cars they generally sell in one week. Fourteen people answered that they generally sell three cars; nineteen generally sell four cars; twelve generally sell five cars; nine generally sell six cars; eleven generally sell seven cars.\nFirst quartile = _______\nSecond quartile = median = 50th percentile = _______\n4\nThird quartile = _______\nInterquartile range (IQR) = _____ – _____ = _____\n6 – 4 = 2\n10th percentile = _______\n70th percentile = _______\n6\nHomework\nThe median age for Black people in the U.S. is 30.9 years; for U.S. White people it is 42.3 years.\n- Based upon this information, give two reasons why the median age for Black people could be lower than the median age for White people.\n- Does the lower median age for Black people necessarily mean that Black people die younger than White people? Why or why not?\n- How might it be possible for Black people and White people to die at approximately the same age, but for the median age for White people to be higher?\nSix hundred adult Americans were asked by telephone poll, \"What do you think constitutes a middle-class income?\" The results are in Table. Also, include left endpoint, but not the right endpoint.\nSalary (\\$) | Relative Frequency\n< 20,000 | 0.02\n20,000–25,000 | 0.09\n25,000–30,000 | 0.19\n30,000–40,000 | 0.26\n40,000–50,000 | 0.18\n50,000–75,000 | 0.17\n75,000–99,999 | 0.02\n100,000+ | 0.01\n- What percentage of the survey answered \"not sure\"?\n- What percentage think that middle-class is from \\$25,000 to \\$50,000?\n- Construct a histogram of the data.\n- Should all bars have the same width, based on the data? Why or why not?\n- How should the <20,000 and the 100,000+ intervals be handled? Why?\n- Find the 40th and 80th percentiles\n- Construct a bar graph of the data\n- 1 – (0.02+0.09+0.19+0.26+0.18+0.17+0.02+0.01) = 0.06\n- 0.19+0.26+0.18 = 0.63\n- Answers may vary.\n-\n40th percentile will fall between 30,000 and 40,000\n80th percentile will fall between 50,000 and 75,000\n- Answers may vary.\nGiven the following box plot:\n[Image: This is a horizontal boxplot graphed over a number line from 0 to 13. The first whisker extends from the smallest value, 0, to the first quartile, 2. The box begins at the first quartile and extends to third quartile, 12. A vertical, dashed line is drawn at median, 10. The second whisker extends from the third quartile to largest value, 13.]\n- which quarter has the smallest spread of data? What is that spread?\n- which quarter has the largest spread of data? What is that spread?\n- find the interquartile range (IQR).\n- are there more data in the interval 5–10 or in the interval 10–13? How do you know this?\n- which interval has the fewest data in it? How do you know this?\n- 0–2\n- 2–4\n- 10–12\n- 12–13\n- need more information\nThe following box plot shows the U.S. population for a certain year.\n[Image: A box plot with values from 0 to 105, with Q1 at 17, M at 33, and Q3 at 50.]\n- Are there fewer or more children (age 17 and under) than senior citizens (age 65 and over)? How do you know?\n- 12.6% are age 65 and over. Approximately what percentage of the population are working age adults (above age 17 to age 65)?\n- more children; the left whisker shows that 25% of the population are children 17 and younger. The right whisker shows that 25% of the population are adults 50 and older, so adults 65 and over represent less than 25%.\n- 62.4%\n\nGlossary\nInterquartile Range or IQR, is the range of the middle 50 percent of the data values; the IQR is found by subtracting the first quartile from the third quartile.\nOutlier an observation that does not fit the rest of the data\nPercentile a number that divides ordered data into hundredths; percentiles may or may not be part of the data. The median of the data is the second quartile and the 50th percentile. The first and third quartiles are the 25th and the 75th percentiles, respectively.\nQuartiles the numbers that separate the data into quarters; quartiles may or may not be part of the data. The second quartile is the median of the data."}
{"document_id": "openstax-intro-statistics-m46920", "title": "Descriptive Statistics — Box Plots", "source": "https://openstax.org/books/introductory-statistics-2e/pages/2-4-box-plots", "license": "CC-BY-4.0", "text": "Box plots (also called box-and-whisker plots or box-whisker plots) give a good graphical image of the concentration of the data. They also show how far the extreme values are from most of the data. A box plot is constructed from five values: the minimum value, the first quartile, the median, the third quartile, and the maximum value. We use these values to compare how close other data values are to them.\nTo construct a box plot, use a horizontal or vertical number line and a rectangular box. The smallest and largest data values label the endpoints of the axis. The first quartile marks one end of the box and the third quartile marks the other end of the box. Approximately the middle 50 percent of the data fall inside the box. The \"whiskers\" extend from the ends of the box to the smallest and largest data values. The median or second quartile can be between the first and third quartiles, or it can be one, or the other, or both. The box plot gives a good, quick picture of the data.\nNOTE\nYou may encounter box-and-whisker plots that have dots marking outlier values. In those cases, the whiskers are not extending to the minimum and maximum values.\nConsider, again, this dataset.\n- 1\n- 1\n- 2\n- 2\n- 4\n- 6\n- 6.8\n- 7.2\n- 8\n- 8.3\n- 9\n- 10\n- 10\n- 11.5\nThe first quartile is two, the median is seven, and the third quartile is nine. The smallest value is one, and the largest value is 11.5. The following image shows the constructed box plot.\nNOTE\nSee the calculator instructions on the TI web site or in the appendix.\n[Image: Horizontal boxplot's first whisker extends from the smallest value, 1, to the first quartile, 2, the box begins at the first quartile and extends to the third quartile, 9, a vertical dashed line is drawn at the median, 7, and the second whisker extends from the third quartile to the largest value of 11.5.]\nThe two whiskers extend from the first quartile to the smallest value and from the third quartile to the largest value. The median is shown with a dashed line.\nNOTE\nIt is important to start a box plot with a scaled number line. Otherwise the box plot may not be useful.\nThe following data are the heights of 40 students in a statistics class.\n- 59\n- 60\n- 61\n- 62\n- 62\n- 63\n- 63\n- 64\n- 64\n- 64\n- 65\n- 65\n- 65\n- 65\n- 65\n- 65\n- 65\n- 65\n- 65\n- 66\n- 66\n- 67\n- 67\n- 68\n- 68\n- 69\n- 70\n- 70\n- 70\n- 70\n- 70\n- 71\n- 71\n- 72\n- 72\n- 73\n- 74\n- 74\n- 75\n- 77\nConstruct a box plot with the following properties; the calculator intructions for the minimum and maximum values as well as the quartiles follow the example.\n- Minimum value = 59\n- Maximum value = 77\n- Q1: First quartile = 64.5\n- Q2: Second quartile or median= 66\n- Q3: Third quartile = 70\n[Image: Horizontal boxplot with first whisker extending from smallest value, 59, to Q1, 64.5, box beginning from Q1 to Q3, 70, median dashed line at Q2, 66, and second whisker extending from Q3 to largest value, 77.]\n- Each quarter has approximately 25% of the data.\n- The spreads of the four quarters are 64.5 – 59 = 5.5 (first quarter), 66 – 64.5 = 1.5 (second quarter), 70 – 66 = 4 (third quarter), and 77 – 70 = 7 (fourth quarter). So, the second quarter has the smallest spread and the fourth quarter has the largest spread.\n- Range = maximum value – the minimum value = 77 – 59 = 18\n- Interquartile Range: IQR = Q3 – Q1 = 70 – 64.5 = 5.5.\n- The interval 59–65 has more than 25% of the data so it has more data in it than the interval 66 through 70 which has 25% of the data.\n- The middle 50% (middle half) of the data has a range of 5.5 inches.\nTo find the minimum, maximum, and quartiles:\nEnter data into the list editor (Pres STAT 1:EDIT). If you need to clear the list, arrow up to the name L1, press CLEAR, and then arrow down.\nPut the data values into the list L1.\nPress STAT and arrow to CALC. Press 1:1-VarStats. Enter L1.\nPress ENTER.\nUse the down and up arrow keys to scroll.\nSmallest value = 59.\nLargest value = 77.\nQ1: First quartile = 64.5.\nQ2: Second quartile or median = 66.\nQ3: Third quartile = 70.\nTo construct the box plot:\nPress 4:Plotsoff. Press ENTER.\nArrow down and then use the right arrow key to go to the fifth picture, which is the box plot. Press ENTER.\nArrow down to Xlist: Press 2nd 1 for L1\nArrow down to Freq: Press ALPHA. Press 1.\nPress Zoom. Press 9: ZoomStat.\nPress TRACE, and use the arrow keys to examine the box plot.\nTry It\nThe following data are the number of pages in 40 books on a shelf. Construct a box plot using a graphing calculator, and state the interquartile range.\n- 136\n- 140\n- 178\n- 190\n- 205\n- 215\n- 217\n- 218\n- 232\n- 234\n- 240\n- 255\n- 270\n- 275\n- 290\n- 301\n- 303\n- 315\n- 317\n- 318\n- 326\n- 333\n- 343\n- 349\n- 360\n- 369\n- 377\n- 388\n- 391\n- 392\n- 398\n- 400\n- 402\n- 405\n- 408\n- 422\n- 429\n- 450\n- 475\n- 512\nFor some sets of data, some of the largest value, smallest value, first quartile, median, and third quartile may be the same. For instance, you might have a data set in which the median and the third quartile are the same. In this case, the diagram would not have a dotted line inside the box displaying the median. The right side of the box would display both the third quartile and the median. For example, if the smallest value and the first quartile were both one, the median and the third quartile were both five, and the largest value was seven, the box plot would look like:\n[Image: Horizontal boxplot box begins at the smallest value and Q1, 1, until the Q3 and median, 5, no median line is designated, and has its lone whisker extending from the Q3 to the largest value, 7.]\nIn this case, at least 25% of the values are equal to one. Twenty-five percent of the values are between one and five, inclusive. At least 25% of the values are equal to five. The top 25% of the values fall between five and seven, inclusive.\nTest scores for a college statistics class held during the day are:\n- 99\n- 56\n- 78\n- 55.5\n- 32\n- 90\n- 80\n- 81\n- 56\n- 59\n- 45\n- 77\n- 84.5\n- 84\n- 70\n- 72\n- 68\n- 32\n- 79\n- 90\nTest scores for a college statistics class held during the evening are:\n- 98\n- 78\n- 68\n- 83\n- 81\n- 89\n- 88\n- 76\n- 65\n- 45\n- 98\n- 90\n- 80\n- 84.5\n- 85\n- 79\n- 78\n- 98\n- 90\n- 79\n- 81\n- 25.5\n- Find the smallest and largest values, the median, and the first and third quartile for the day class.\n- Find the smallest and largest values, the median, and the first and third quartile for the night class.\n- For each data set, what percentage of the data is between the smallest value and the first quartile? the first quartile and the median? the median and the third quartile? the third quartile and the largest value? What percentage of the data is between the first quartile and the largest value?\n- Create a box plot for each set of data. Use one number line for both box plots.\n- Which box plot has the widest spread for the middle 50% of the data (the data between the first and third quartiles)? What does this mean for that set of data in comparison to the other set of data?\n-\n- Min = 32\n- Q1 = 56\n- M = 74.5\n- Q3 = 82.5\n- Max = 99\n-\n- Min = 25.5\n- Q1 = 78\n- M = 81\n- Q3 = 89\n- Max = 98\n- Day class: There are six data values ranging from 32 to 56: 30%. There are six data values ranging from 56 to 74.5: 30%. There are five data values ranging from 74.5 to 82.5: 25%. There are five data values ranging from 82.5 to 99: 25%. There are 16 data values between the first quartile, 56, and the largest value, 99: 75%. Night class:\n-\n[Image: Two box plots over a number line from 0 to 100. The top plot shows a whisker from 32 to 56, a solid line at 56, a dashed line at 74.5, a solid line at 82.5, and a whisker from 82.5 to 99. The lower plot shows a whisker from 25.5 to 78, solid line at 78, dashed line at 81, solid line at 89, and a whisker from 89 to 98.]\n- The first data set has the wider spread for the middle 50% of the data. The IQR for the first data set is greater than the IQR for the second set. This means that there is more variability in the middle 50% of the first data set.\nTry It\nThe following data set shows the heights in inches for the boys in a class of 40 students.\n66; 66; 67; 67; 68; 68; 68; 68; 68; 69; 69; 69; 70; 71; 72; 72; 72; 73; 73; 74 The following data set shows the heights in inches for the girls in a class of 40 students. 61; 61; 62; 62; 63; 63; 63; 65; 65; 65; 66; 66; 66; 67; 68; 68; 68; 69; 69; 69 Construct a box plot using a graphing calculator for each data set, and state which box plot has the wider spread for the middle 50% of the data.\nGraph a box-and-whisker plot for the data values shown.\n- 10\n- 10\n- 10\n- 15\n- 35\n- 75\n- 90\n- 95\n- 100\n- 175\n- 420\n- 490\n- 515\n- 515\n- 790\nThe five numbers used to create a box-and-whisker plot are:\n- Min: 10\n- Q1: 15\n- Med: 95\n- Q3: 490\n- Max: 790\nThe following graph shows the box-and-whisker plot.\n[Image: Horizontal boxplot with first whisker extending from smallest value, 10, to Q1, 15, box beginning from Q1 to Q3, 490, median dashed line at Q2, 95, and second whisker extending from Q3 to largest value, 790.]\nTry It\nFollow the steps you used to graph a box-and-whisker plot for the data values shown.\n- 0\n- 5\n- 5\n- 15\n- 30\n- 30\n- 45\n- 50\n- 50\n- 60\n- 75\n- 110\n- 140\n- 240\n- 330\nReferences\nData from West Magazine.\nChapter Review\nBox plots are a type of graph that can help visually organize data. To graph a box plot the following data points must be calculated: the minimum value, the first quartile, the median, the third quartile, and the maximum value. Once the box plot is graphed, you can display and compare distributions of data.\nUse the following information to answer the next two exercises. Sixty-five randomly selected car salespersons were asked the number of cars they generally sell in one week. Fourteen people answered that they generally sell three cars; nineteen generally sell four cars; twelve generally sell five cars; nine generally sell six cars; eleven generally sell seven cars.\nConstruct a box plot below. Use a ruler to measure and scale accurately.\nLooking at your box plot, does it appear that the data are concentrated together, spread out evenly, or concentrated in some areas, but not in others? How can you tell?\nMore than 25% of salespersons sell four cars in a typical week. You can see this concentration in the box plot because the first quartile is equal to the median. The top 25% and the bottom 25% are spread out evenly; the whiskers have the same length.\nHomework\nIn a survey of 20-year-olds in China, Germany, and the United States, people were asked the number of foreign countries they had visited in their lifetime. The following box plots display the results.\n[Image: This shows three boxplots graphed over a number line from 0 to 11. The boxplots match the supplied data, and compare the countries' results. The China boxplot has a single whisker from 0 to 5. The Germany box plot's median is equal to the third quartile, so there is a dashed line at right edge of box. The America boxplot does not have a left whisker.]\n- In complete sentences, describe what the shape of each box plot implies about the distribution of the data collected.\n- Have more U.S. citizens or more Germans surveyed been to over eight foreign countries?\n- Compare the three box plots. What do they imply about the foreign travel of 20-year-old residents of the three countries when compared to each other?\nGiven the following box plot, answer the questions.\n[Image: This is a boxplot graphed over a number line from 0 to 150. There is no first, or left, whisker. The box starts at the first quartile, 0, and ends at the third quartile, 80. A vertical, dashed line marks the median, 20. The second whisker extends the third quartile to the largest value, 150.]\n- Think of an example (in words) where the data might fit into the above box plot. In 2–5 sentences, write down the example.\n- What does it mean to have the first and second quartiles so close together, while the second to third quartiles are far apart?\n- Answers will vary. Possible answer: State University conducted a survey to see how involved its students are in community service. The box plot shows the number of community service hours logged by participants over the past year.\n- Because the first and second quartiles are close, the data in this quarter is very similar. There is not much variation in the values. The data in the third quarter is much more variable, or spread out. This is clear because the second quartile is so far away from the third quartile.\nGiven the following box plots, answer the questions.\n[Image: This shows two boxplots graphed over number lines from 0 to 7. The first whisker in the data 1 boxplot extends from 0 to 2. The box begins at the firs quartile, 2, and ends at the third quartile, 5. A vertical, dashed line marks the median at 4. The second whisker extends from the third quartile to the largest value, 7. The first whisker in the data 2 box plot extends from 0 to 1.3. The box begins at the first quartile, 1.3, and ends at the third quartile, 2.5. A vertical, dashed line marks the medial at 2. The second whisker extends from the third quartile to the largest value, 7.]\n- In complete sentences, explain why each statement is false.\n- Data 1 has more data values above two than Data 2 has above two.\n- The data sets cannot have the same mode.\n- For Data 1, there are more data values below four than there are above four.\n- For which group, Data 1 or Data 2, is the value of “7” more likely to be an outlier? Explain why in complete sentences.\nA survey was conducted of 130 purchasers of new BMW 3 series cars, 130 purchasers of new BMW 5 series cars, and 130 purchasers of new BMW 7 series cars. In it, people were asked the age they were when they purchased their car. The following box plots display the results.\n[Image: This shows three boxplots graphed over a number line from 25 to 80. The first whisker on the BMW 3 plot extends from 25 to 30. The box begins at the firs quartile, 30 and ends at the thir quartile, 41. A verical, dashed line marks the median at 34. The second whisker extends from the third quartile to 66. The first whisker on the BMW 5 plot extends from 31 to 40. The box begins at the firs quartile, 40, and ends at the third quartile, 55. A vertical, dashed line marks the median at 41. The second whisker extends from 55 to 64. The first whisker on the BMW 7 plot extends from 35 to 41. The box begins at the first quartile, 41, and ends at the third quartile, 59. A vertical, dashed line marks the median at 46. The second whisker extends from 59 to 68.]\n- In complete sentences, describe what the shape of each box plot implies about the distribution of the data collected for that car series.\n- Which group is most likely to have an outlier? Explain how you determined that.\n- Compare the three box plots. What do they imply about the age of purchasing a BMW from the series when compared to each other?\n- Look at the BMW 5 series. Which quarter has the smallest spread of data? What is the spread?\n- Look at the BMW 5 series. Which quarter has the largest spread of data? What is the spread?\n- Look at the BMW 5 series. Estimate the interquartile range (IQR).\n- Look at the BMW 5 series. Are there more data in the interval 31 to 38 or in the interval 45 to 55? How do you know this?\n- Look at the BMW 5 series. Which interval has the fewest data in it? How do you know this?\n- 31–35\n- 38–41\n- 41–64\n- Each box plot is spread out more in the greater values. Each plot is skewed to the right, so the ages of the top 50% of buyers are more variable than the ages of the lower 50%.\n- The BMW 3 series is most likely to have an outlier. It has the longest whisker.\n- Comparing the median ages, younger people tend to buy the BMW 3 series, while older people tend to buy the BMW 7 series. However, this is not a rule, because there is so much variability in each data set.\n- The second quarter has the smallest spread. There seems to be only a three-year difference between the first quartile and the median.\n- The third quarter has the largest spread. There seems to be approximately a 14-year difference between the median and the third quartile.\n- IQR ~ 17 years\n- There is not enough information to tell. Each interval lies within a quarter, so we cannot tell exactly where the data in that quarter is concentrated.\n- The interval from 31 to 35 years has the fewest data values. Twenty-five percent of the values fall in the interval 38 to 41, and 25% fall between 41 and 64. Since 25% of values fall between 31 and 38, we know that fewer than 25% fall between 31 and 35.\nTwenty-five randomly selected students were asked the number of movies they watched the previous week. The results are as follows:\n# of movies | Frequency\n0 | 5\n1 | 9\n2 | 6\n3 | 4\n4 | 1\nConstruct a box plot of the data.\nBringing It Together\nA certain small town in the United states has a population of 27,873 people. Their ages are as follows:\nAge Group | Percent of Community\n0–17 | 18.9\n18–24 | 8.0\n25–34 | 22.8\n35–44 | 15.0\n45–54 | 13.1\n55–64 | 11.9\n65+ | 10.3\n- Construct a histogram of the age distribution for this small town. The bars will not be the same width for this example. Why not? What impact does this have on the reliability of the graph?\n- What percentage of the community is under age 35?\n- Which box plot most resembles the information above?\n[Image: Three box plots with values between 0 and 100. Plot i has Q1 at 24, M at 34, and Q3 at 53; Plot ii has Q1 at 18, M at 34, and Q3 at 45; Plot iii has Q1 at 24, M at 25, and Q3 at 54.]\n- For graph, answers may vary.\n- 49.7% of the community is under the age of 35.\n- Based on the information in the table, graph (a) most closely represents the data.\n\nGlossary\nBox plot a graph that gives a quick picture of the middle 50% of the data\nFirst Quartile the value that is the median of the of the lower half of the ordered data set\nFrequency Polygon looks like a line graph but uses intervals to display ranges of large amounts of data\nInterval also called a class interval; an interval represents a range of data and is used when displaying large data sets\nPaired Data Set two data sets that have a one to one relationship so that:\n- both data sets are the same size, and\n- each data point in one data set is matched with exactly one point from the other set.\nSkewed used to describe data that is not symmetrical; when the right side of a graph looks “chopped off” compared the left side, we say it is “skewed to the left.” When the left side of the graph looks “chopped off” compared to the right side, we say the data is “skewed to the right.” Alternatively: when the lower values of the data are more spread out, we say the data are skewed to the left. When the greater values are more spread out, the data are skewed to the right."}
{"document_id": "openstax-intro-statistics-m46928", "title": "Descriptive Statistics — Measures of the Center of the Data", "source": "https://openstax.org/books/introductory-statistics-2e/pages/2-5-measures-of-the-center-of-the-data", "license": "CC-BY-4.0", "text": "The \"center\" of a data set is also a way of describing location. The two most widely used measures of the \"center\" of the data are the mean (average) and the median. To calculate the mean weight of 50 people, add the 50 weights together and divide by 50. To find the median weight of the 50 people, order the data and find the number that splits the data into two equal parts. The median is generally a better measure of the center when there are extreme values or outliers because it is not affected by the precise numerical values of the outliers. The mean is the most common measure of the center.\nNOTE\nThe words “mean” and “average” are often used interchangeably. The substitution of one word for the other is common practice. The technical term is “arithmetic mean” and “average” is technically a center location. However, in practice among non-statisticians, “average\" is commonly accepted for “arithmetic mean.”\nWhen each value in the data set is not unique, the mean can be calculated by multiplying each distinct value by its frequency and then dividing the sum by the total number of data values. The letter used to represent the sample mean is an x with a bar over it (pronounced “x bar”): $\\overline{x}$.\nThe Greek letter μ (pronounced \"mew\") represents the population mean. One of the requirements for the sample mean to be a good estimate of the population mean is for the sample taken to be truly random.\nTo see that both ways of calculating the mean are the same, consider the sample: 1; 1; 1; 2; 2; 3; 4; 4; 4; 4; 4\n$$\\overline{x}=\\frac{1+1+1+2+2+3+4+4+4+4+4}{11}=2.7$$\n$$\\overline{x}=\\frac{3(1)+2(2)+1(3)+5(4)}{11}=2.7$$\nIn the second calculation, the frequencies are 3, 2, 1, and 5.\nYou can quickly find the location of the median by using the expression $\\frac{n+1}{2}$.\nThe letter n is the total number of data values in the sample. If n is an odd number, the median is the middle value of the ordered data (ordered smallest to largest). If n is an even number, the median is equal to the two middle values added together and divided by two after the data has been ordered. For example, if the total number of data values is 97, then $\\frac{n+1}{2}$= $\\frac{97+1}{2}$ = 49. The median is the 49th value in the ordered data. If the total number of data values is 100, then $\\frac{n+1}{2}$= $\\frac{100+1}{2}$ = 50.5. The median occurs midway between the 50th and 51st values. The location of the median and the value of the median are not the same. The upper case letter M is often used to represent the median. The next example illustrates the location of the median and the value of the median.\nA hospital administrator keeps track of the ages (in years) of patients visiting the emergency room over a one-week period (data are sorted from smallest to largest):3; 4; 8; 8; 10; 11; 12; 13; 14; 15; 15; 16; 16; 17; 17; 18; 21; 22; 22; 24; 24; 25; 26; 26; 27; 27; 29; 29; 31; 32; 33; 33; 34; 34; 35; 37; 40; 44; 44; 47; Calculate the mean and the median.\nThe calculation for the mean is:\n$\\overline{x}=\\frac{[3+4+(8)(2)+10+11+12+13+14+(15)(2)+(16)(2)+\\text{...}+35+37+40+(44)(2)+47]}{40}=23.6$ To find the median, M, first use the formula for the location. The location is: $\\frac{n+1}{2}=\\frac{40+1}{2}=20.5$ Starting at the smallest value, the median is located between the 20th and 21st values (the two 24s): 3; 4; 8; 8; 10; 11; 12; 13; 14; 15; 15; 16; 16; 17; 17; 18; 21; 22; 22; 24; 24; 25; 26; 26; 27; 27; 29; 29; 31; 32; 33; 33; 34; 34; 35; 37; 40; 44; 44; 47;\n$M=\\frac{24+24}{2}=24$\nTo find the mean and the median:\nClear list L1. Pres STAT 4:ClrList. Enter 2nd 1 for list L1. Press ENTER.\nEnter data into the list editor. Press STAT 1:EDIT.\nPut the data values into list L1.\nPress STAT and arrow to CALC. Press 1:1-VarStats. Press 2nd 1 for L1 and then ENTER.\nPress the down and up arrow keys to scroll.\n$\\overline{x}$ = 23.6, M = 24\nTry It\nThe following data show the number of months patients typically wait on a transplant list before getting surgery. The data are ordered from smallest to largest. Calculate the mean and median.\n- 3\n- 4\n- 5\n- 7\n- 7\n- 7\n- 7\n- 8\n- 8\n- 9\n- 9\n- 10\n- 10\n- 10\n- 10\n- 10\n- 11\n- 12\n- 12\n- 13\n- 14\n- 14\n- 15\n- 15\n- 17\n- 17\n- 18\n- 19\n- 19\n- 19\n- 21\n- 21\n- 22\n- 22\n- 23\n- 24\n- 24\n- 24\n- 24\nSuppose that in a small town of 50 people, one person earns \\$5,000,000 per year and the other 49 each earn \\$30,000. Which is the better measure of the \"center\": the mean or the median?\n$\\overline{x}=\\frac{5,000,000+49(30,000)}{50}=129,400$\nM = 30,000\n(There are 49 people who earn \\$30,000 and one person who earns \\$5,000,000.)\nThe median is a better measure of the \"center\" than the mean because 49 of the values are 30,000 and one is 5,000,000. The 5,000,000 is an outlier. The 30,000 gives us a better sense of the middle of the data.\nTry It\nIn a sample of 60 households, one house is worth \\$2,500,000. Twenty-nine houses are worth \\$280,000, and all the others are worth \\$315,000. Which is the better measure of the “center”: the mean or the median?\nAnother measure of the center is the mode. The mode is the most frequent value. There can be more than one mode in a data set as long as those values have the same frequency and that frequency is the highest. A data set with two modes is called bimodal.\nStatistics exam scores for 20 students are as follows:\n- 50\n- 53\n- 59\n- 59\n- 63\n- 63\n- 72\n- 72\n- 72\n- 72\n- 72\n- 76\n- 78\n- 81\n- 83\n- 84\n- 84\n- 84\n- 90\n- 93\nFind the mode.\nThe most frequent score is 72, which occurs five times. Mode = 72.\nTry It\nThe number of books checked out from the library from 25 students are as follows:\n- 0\n- 0\n- 0\n- 1\n- 2\n- 3\n- 3\n- 4\n- 4\n- 5\n- 5\n- 7\n- 7\n- 7\n- 7\n- 8\n- 8\n- 8\n- 9\n- 10\n- 10\n- 11\n- 11\n- 12\n- 12\nFind the mode.\nFive real estate exam scores are 430, 430, 480, 480, 495. The data set is bimodal because the scores 430 and 480 each occur twice.\nWhen is the mode the best measure of the \"center\"? Consider a weight loss program that advertises a mean weight loss of six pounds the first week of the program. The mode might indicate that most people lose two pounds the first week, making the program less appealing.\nNOTE\nThe mode can be calculated for qualitative data as well as for quantitative data. For example, if the data set is: red, red, red, green, green, yellow, purple, black, blue, the mode is red.\nStatistical software will easily calculate the mean, the median, and the mode. Some graphing calculators can also make these calculations. In the real world, people make these calculations using software.\nTry It\nFive credit scores are 680, 680, 700, 720, 720. The data set is bimodal because the scores 680 and 720 each occur twice. Consider the annual earnings of workers at a factory. The mode is \\$25,000 and occurs 150 times out of 301. The median is \\$50,000 and the mean is \\$47,500. What would be the best measure of the “center”?\nThe Law of Large Numbers and the Mean\nThe Law of Large Numbers says that if you take samples of larger and larger size from any population, then the mean $\\overline{x}$ of the sample is very likely to get closer and closer to µ. This is discussed in more detail later in the text.\nSampling Distributions and Statistic of a Sampling Distribution\nYou can think of a sampling distribution as a relative frequency distribution with a great many samples. (See Sampling and Data for a review of relative frequency). Suppose thirty randomly selected students were asked the number of movies they watched the previous week. The results are in the relative frequency table shown below.\n# of movies | Relative Frequency\n0 | $\\frac{5}{30}$\n1 | $\\frac{15}{30}$\n2 | $\\frac{6}{30}$\n3 | $\\frac{3}{30}$\n4 | $\\frac{1}{30}$\nIf you let the number of samples get very large (say, 300 million or more), the relative frequency table becomes a relative frequency distribution.\nA statistic is a number calculated from a sample. Statistic examples include the mean, the median and the mode as well as others. The sample mean $\\overline{x}$ is an example of a statistic which estimates the population mean μ.\nCalculating the Mean of Grouped Frequency Tables\nWhen only grouped data is available, you do not know the individual data values (we only know intervals and interval frequencies); therefore, you cannot compute an exact mean for the data set. What we must do is estimate the actual mean by calculating the mean of a frequency table. A frequency table is a data representation in which grouped data is displayed along with the corresponding frequencies. To calculate the mean from a grouped frequency table we can apply the basic definition of mean: mean = $\\frac{\\text{data}\\text{sum}}{\\text{number of data values}}$ We simply need to modify the definition to fit within the restrictions of a frequency table.\nSince we do not know the individual data values we can instead find the midpoint of each interval. The midpoint is $\\frac{\\text{lower boundary}+\\text{upper boundary}}{2}$. We can now modify the mean definition to be $\\text{Mean of Frequency Table}=\\frac{\\sum fm}{\\sum f}$ where f = the frequency of the interval and m = the midpoint of the interval.\nA frequency table displaying professor Blount’s last statistic test is shown. Find the best estimate of the class mean.\nGrade Interval | Number of Students\n50–56.5 | 1\n56.5–62.5 | 0\n62.5–68.5 | 4\n68.5–74.5 | 4\n74.5–80.5 | 2\n80.5–86.5 | 3\n86.5–92.5 | 4\n92.5–98.5 | 1\n- Find the midpoints for all intervals\nGrade Interval | Midpoint\n50–56.5 | 53.25\n56.5–62.5 | 59.5\n62.5–68.5 | 65.5\n68.5–74.5 | 71.5\n74.5–80.5 | 77.5\n80.5–86.5 | 83.5\n86.5–92.5 | 89.5\n92.5–98.5 | 95.5\n- Calculate the sum of the product of each interval frequency and midpoint.${\\sum}^{\\text{​}}fm$$53.25(1)+59.5(0)+65.5(4)+71.5(4)+77.5(2)+83.5(3)+89.5(4)+95.5(1)=1460.25$\n- $\\mu=\\frac{\\sum fm}{\\sum f}=\\frac{1460.25}{19}=76.86$\nTry It\nA researcher conducted a study on the effect that playing video games has on memory recall. As part of the study, they compiled the following data:\nHours Teenagers Spend on Video Games | Number of Teenagers\n0–3.5 | 3\n3.5–7.5 | 7\n7.5–11.5 | 12\n11.5–15.5 | 7\n15.5–19.5 | 9\nWhat is the best estimate for the mean number of hours spent playing video games?\nReferences\nData from The World Bank, available online at http://www.worldbank.org (accessed April 3, 2013).\n“Demographics: Obesity – adult prevalence rate.” Indexmundi. Available online at http://www.indexmundi.com/g/r.aspx?t=50&v=2228&l=en (accessed April 3, 2013).\nChapter Review\nThe mean and the median can be calculated to help you find the \"center\" of a data set. The mean is the best estimate for the actual data set, but the median is the best measurement when a data set contains several outliers or extreme values. The mode will tell you the most frequently occurring datum (or data) in your data set. The mean, median, and mode are extremely helpful when you need to analyze your data, but if your data set consists of ranges which lack specific values, the mean may seem impossible to calculate. However, the mean can be approximated if you add the lower boundary with the upper boundary and divide by two to find the midpoint of each interval. Multiply each midpoint by the number of values found in the corresponding range. Divide the sum of these values by the total number of data values in the set.\nFormula Review\n$\\mu=\\frac{\\sum fm}{\\sum f}$ Where f = interval frequencies and m = interval midpoints.\nFind the mean for the following frequency tables.\n-\nGrade | Frequency\n49.5–59.5 | 2\n59.5–69.5 | 3\n69.5–79.5 | 8\n79.5–89.5 | 12\n89.5–99.5 | 5\n-\nDaily Low Temperature | Frequency\n49.5–59.5 | 53\n59.5–69.5 | 32\n69.5–79.5 | 15\n79.5–89.5 | 1\n89.5–99.5 | 0\n-\nPoints per Game | Frequency\n49.5–59.5 | 14\n59.5–69.5 | 32\n69.5–79.5 | 15\n79.5–89.5 | 23\n89.5–99.5 | 2\nUse the following information to answer the next three exercises: The following data show the lengths of boats moored in a marina. The data are ordered from smallest to largest:\n- 16\n- 17\n- 19\n- 20\n- 20\n- 21\n- 23\n- 24\n- 25\n- 25\n- 25\n- 26\n- 26\n- 27\n- 27\n- 27\n- 28\n- 29\n- 30\n- 32\n- 33\n- 33\n- 34\n- 35\n- 37\n- 39\n- 40\nCalculate the mean.\nMean: 16 + 17 + 19 + 20 + 20 + 21 + 23 + 24 + 25 + 25 + 25 + 26 + 26 + 27 + 27 + 27 + 28 + 29 + 30 + 32 + 33 + 33 + 34 + 35 + 37 + 39 + 40 = 738;\n$\\frac{738}{27}$ = 27.33\nIdentify the median.\nIdentify the mode.\nThe most frequent lengths are 25 and 27, which occur three times. Mode = 25, 27\nUse the following information to answer the next three exercises: Sixty-five randomly selected car salespersons were asked the number of cars they generally sell in one week. Fourteen people answered that they generally sell three cars; nineteen generally sell four cars; twelve generally sell five cars; nine generally sell six cars; eleven generally sell seven cars. Calculate the following:\nsample mean = $\\overline{x}$ = _______\nmedian = _______\n4\nmode = _______\nHomework\nThe countries with the highest rates of obesity in the world have obesity rates that range from 11.4% to 74.6%. This data is summarized in the following table.\nPercent of Population | Number of Countries\n11.4–20.45 | 29\n20.45–29.45 | 13\n29.45–38.45 | 4\n38.45–47.45 | 0\n47.45–56.45 | 2\n56.45–65.45 | 1\n65.45–74.45 | 0\n74.45–83.45 | 1\n- What is the best estimate of the average obesity percentage for these countries?\n- The United States has an average obesity rate of 33.9%. Is this rate above average or below?\n- How does the United States compare to other countries?\nTable gives the percent of children under five considered to be underweight. What is the best estimate for the mean percentage of underweight children?\nPercent of Underweight Children | Number of Countries\n16–21.45 | 23\n21.45–26.9 | 4\n26.9–32.35 | 9\n32.35–37.8 | 7\n37.8–43.25 | 6\n43.25–48.7 | 1\nThe mean percentage, $\\overline{x}=\\frac{1328.65}{50}=26.57$\nBringing It Together\nJavier and Ercilia are supervisors at a shopping mall. Each was given the task of estimating the mean distance that shoppers live from the mall. They each randomly surveyed 100 shoppers. The samples yielded the following information.\nJavier | Ercilia\n$\\overline{x}$ | 6.0 miles | 6.0 miles\n$s$ | 4.0 miles | 7.0 miles\n- How can you determine which survey was correct?\n- Explain what the difference in the results of the surveys implies about the data.\n- If the two histograms depict the distribution of values for each supervisor, which one depicts Ercilia's sample? How do you know?\n[Image: This shows two histograms. The first histogram shows a fairly symmetrical distribution with a mode of 6. The second histogram shows a uniform distribution.]\n- If the two box plots depict the distribution of values for each supervisor, which one depicts Ercilia’s sample? How do you know?\n[Image: This shows two horizontal boxplots. The first boxplot is graphed over a number line from 0 to 21. The first whisker extends from 0 to 1. The box begins at the first quartile, 1, and ends at the third quartile, 14. A vertical, dashed line marks the median at 6. The second whisker extends from the third quartile to the largest value, 21. The second boxplot is graphed over a number line from 0 to 12. The first whisker extends from 0 to 4. The box begins at the first quartile, 4, and ends at the third quartile, 9. A vertical, dashed line marks the median at 6. The second whisker extends from the third quartile to the largest value, 12.]\nUse the following information to answer the next three exercises: We are interested in the number of years students in a particular elementary statistics class have lived in California. The information in the following table is from the entire section.\nNumber of years | Frequency | Number of years | Frequency\n7 | 1 | 22 | 1\n14 | 3 | 23 | 1\n15 | 1 | 26 | 1\n18 | 1 | 40 | 2\n19 | 4 | 42 | 2\n20 | 3\nTotal = 20\nWhat is the IQR?\n- 8\n- 11\n- 15\n- 35\na\nWhat is the mode?\n- 19\n- 19.5\n- 14 and 20\n- 22.65\nIs this a sample or the entire population?\n- sample\n- entire population\n- neither\nb\n\nGlossary\nFrequency Table a data representation in which grouped data is displayed along with the corresponding frequencies\nMean a number that measures the central tendency of the data; a common name for mean is 'average.' The term 'mean' is a shortened form of 'arithmetic mean.' By definition, the mean for a sample (denoted by $\\overline{x}$) is $\\overline{x}=\\frac{\\text{Sum of all values in the sample}}{\\text{Number of values in the sample}}$, and the mean for a population (denoted by μ) is $\\mu=\\frac{\\text{Sum of all values in the population}}{\\text{Number of values in the population}}$.\nMedian a number that separates ordered data into halves; half the values are the same number or smaller than the median and half the values are the same number or larger than the median. The median may or may not be part of the data.\nMidpoint the mean of an interval in a frequency table\nMode the value that appears most frequently in a set of data"}
{"document_id": "openstax-intro-statistics-m46931", "title": "Descriptive Statistics — Skewness and the Mean, Median, and Mode", "source": "https://openstax.org/books/introductory-statistics-2e/pages/2-6-skewness-and-the-mean-median-and-mode", "license": "CC-BY-4.0", "text": "Consider the following data set. 4; 5; 6; 6; 6; 7; 7; 7; 7; 7; 7; 8; 8; 8; 9; 10\nThis data set can be represented by following histogram. Each interval has width one, and each value is located in the middle of an interval.\n[Image: This histogram matches the supplied data. It consists of 7 adjacent bars with the x-axis split into intervals of 1 from 4 to 10. The heighs of the bars peak in the middle and taper symmetrically to the right and left.]\nThe histogram (shown in Figure) displays a symmetrical distribution of data. A distribution is symmetrical if a vertical line can be drawn at some point in the histogram such that the shape to the left and the right of the vertical line are mirror images of each other. The mean, the median, and the mode are each seven for these data. In a perfectly symmetrical distribution, the mean and the median are the same. This example has one mode (unimodal), and the mode is the same as the mean and median. In a symmetrical distribution that has two modes (bimodal), the two modes would be different from the mean and median.\nThe histogram for the data:\n- 4\n- 5\n- 6\n- 6\n- 6\n- 7\n- 7\n- 7\n- 7\n- 8 (shown in Figure)\nis not symmetrical. The right-hand side seems \"chopped off\" compared to the left side. A distribution of this type is called skewed to the left because it is pulled out to the left.\n[Image: This histogram matches the supplied data. It consists of 5 adjacent bars with the x-axis split into intervals of 1 from 4 to 8. The peak is to the right, and the heights of the bars taper down to the left.]\nThe mean is 6.3, the median is 6.5, and the mode is seven. Notice that the mean is less than the median, and they are both less than the mode. The mean and the median both reflect the skewing, but the mean reflects it more so.\nThe histogram for the data:\n- 6\n- 7\n- 7\n- 7\n- 7\n- 8\n- 8\n- 8\n- 9\n- 10 Figure\n, is also not symmetrical. It is skewed to the right.\n[Image: This histogram matches the supplied data. It consists of 5 adjacent bars with the x-axis split into intervals of 1 from 6 to 10. The peak is to the left, and the heights of the bars taper down to the right.]\nThe mean is 7.7, the median is 7.5, and the mode is seven. Of the three statistics, the mean is the largest, while the mode is the smallest. Again, the mean reflects the skewing the most.\nThe mean is affected by outliers that do not influence the median. Therefore, when the distribution of data is skewed to the left, the mean is often less than the median. When the distribution is skewed to the right, the mean is often greater than the median. In symmetric distributions, we expect the mean and median to be approximately equal in value. This is an important connection between the shape of the distribution and the relationship of the mean and median. It is not, however, true for every data set. The most common exceptions occur in sets of discrete data.\nSkewness and symmetry become important when we discuss probability distributions in later chapters.\nStatistics are used to compare and sometimes identify authors. The following lists shows a simple random sample that compares the letter counts for three authors.\nTerry: 7; 9; 3; 3; 3; 4; 1; 3; 2; 2\nDavis: 3; 3; 3; 4; 1; 4; 3; 2; 3; 1\nMaris: 2; 3; 4; 4; 4; 6; 6; 6; 8; 3\n- Make a dot plot for the three authors and compare the shapes.\n- Calculate the mean for each.\n- Calculate the median for each.\n- Describe any pattern you notice between the shape and the measures of center.\n-\n[Image: This dot plot matches the supplied data for Terry. The plot uses a number line from 1 to 10. It shows one x over 1, two x's over 2, four x's over 3, one x over 4, one x over 7, and one x over 9. There are no x's over the numbers 5, 6, 8, and 10.]\nTerry’s distribution has a right (positive) skew.\n[Image: This dot plot matches the supplied data for Davi. The plot uses a number line from 1 to 10. It shows two x's over 1, one x over 2, five x's over 3, and two x's over 4. There are no x's over the numbers 5, 6, 7, 8, 9, and 10.]\nDavis’ distribution has a left (negative) skew\n[Image: This dot plot matches the supplied data for Mari. The plot uses a number line from 1 to 10. It shows one x over 2, two x's over 3, three x's over 4, three x's over 6, and one x over 8. There are no x's over the numbers 1, 5, 7, 9, and 10.]\nMaris’ distribution is symmetrically shaped.\n- Terry’s mean is 3.7, Davis’ mean is 2.7, Maris’ mean is 4.6.\n- Terry’s median is three, Davis’ median is three. Maris’ median is four.\n- It appears that the median is always closest to the high point (the mode), while the mean tends to be farther out on the tail. In a symmetrical distribution, the mean and the median are both centrally located close to the high point of the distribution.\nTry It\nDiscuss the mean, median, and mode for each of the following problems. Is there a pattern between the shape and measure of the center?\na.\n[Image: This dot plot matches the supplied data. The plot uses a number line from 0 to 14. It shows two x's over 0, four x's over 1, three x's over 2, one x over 3, two x's over the number 4, 5, 6, and 9, and 1 x each over 10 and 14. There are no x's over the numbers 7, 8, 11, 12, and 13.]\nb.\nThe Ages Former U.S Presidents Died\n4 | 6 9\n5 | 3 6 7 7 7 8\n6 | 0 0 3 3 4 4 5 6 7 7 7 8\n7 | 0 1 1 2 3 4 7 8 8 9\n8 | 0 1 3 5 8\n9 | 0 0 3 3\nKey: 8|0 means 80.\nc.\n[Image: This is a histogram titled Hours Spent Playing Video Games on Weekends. The x-axis shows the number of hours spent playing video games with bars showing values at intervals of 5. The y-axis shows the number of students. The first bar for 0 - 4.99 hours has a height of 2. The second bar from 5 - 9.99 has a height of 3. The third bar from 10 - 14.99 has a height of 4. The fourth bar from 15 - 19.99 has a height of 7. The fifth bar from 20 - 24.99 has a height of 9.]\nChapter Review\nLooking at the distribution of data can reveal a lot about the relationship between the mean, the median, and the mode. There are three types of distributions. A left (or negative) skewed distribution has a shape like Figure. A right (or positive) skewed distribution has a shape like Figure. A symmetrical distribution looks like Figure.\nUse the following information to answer the next three exercises: State whether the data are symmetrical, skewed to the left, or skewed to the right.\n- 1\n- 1\n- 1\n- 2\n- 2\n- 2\n- 2\n- 3\n- 3\n- 3\n- 3\n- 3\n- 3\n- 3\n- 3\n- 4\n- 4\n- 4\n- 5\n- 5\nThe data are symmetrical. The median is 3 and the mean is 2.85. They are close, and the mode lies close to the middle of the data, so the data are symmetrical.\n- 16\n- 17\n- 19\n- 22\n- 22\n- 22\n- 22\n- 22\n- 23\n- 87\n- 87\n- 87\n- 87\n- 87\n- 88\n- 89\n- 89\n- 90\n- 91\nThe data are skewed right. The median is 87.5 and the mean is 88.2. Even though they are close, the mode lies to the left of the middle of the data, and there are many more instances of 87 than any other number, so the data are skewed right.\nWhen the data are skewed left, what is the typical relationship between the mean and median?\nWhen the data are symmetrical, what is the typical relationship between the mean and median?\nWhen the data are symmetrical, the mean and median are close or the same.\nWhat word describes a distribution that has two modes?\nDescribe the shape of this distribution.\n[Image: This is a historgram which consists of 5 adjacent bars with the x-axis split into intervals of 1 from 3 to 7. The bar heights peak at the first bar and taper lower to the right.]\nThe distribution is skewed right because it looks pulled out to the right.\nDescribe the relationship between the mode and the median of this distribution.\n[Image: This is a histogram which consists of 5 adjacent bars with the x-axis split into intervals of 1 from 3 to 7. The bar heights peak at the first bar and taper lower to the right. The bar ehighs from left to right are: 8, 4, 2, 2, 1.]\nDescribe the relationship between the mean and the median of this distribution.\n[Image: This is a histogram which consists of 5 adjacent bars with the x-axis split into intervals of 1 from 3 to 7. The bar heights peak at the first bar and taper lower to the right. The bar heights from left to right are: 8, 4, 2, 2, 1.]\nThe mean is 4.1 and is slightly greater than the median, which is four.\nDescribe the shape of this distribution.\n[Image: This is a histogram which consists of 5 adjacent bars with the x-axis split into intervals of 1 from 3 to 7. The bar heights peak in the middle and taper down to the right and left.]\nDescribe the relationship between the mode and the median of this distribution.\n[Image: This is a histogram which consists of 5 adjacent bars with the x-axis split intervals of 1 from 3 to 7. The bar heights peak in the middle and taper down to the right and left.]\nThe mode and the median are the same. In this case, they are both five.\nAre the mean and the median the exact same in this distribution? Why or why not?\n[Image: This is a histogram which consists of 5 adjacent bars with the x-axis split into intervals of 1 from 3 to 7. The bar heights from left to right are: 2, 4, 8, 5, 2.]\nDescribe the shape of this distribution.\n[Image: This is a histogram which consists of 5 adjacent bars over an x-axis split into intervals of 1 from 3 to 7. The bar heights from left to right are: 1, 1, 2, 4, 7.]\nThe distribution is skewed left because it looks pulled out to the left.\nDescribe the relationship between the mode and the median of this distribution.\n[Image: This is a histogram which consists of 5 adjacent bars over an x-axis split into intervals of 1 from 3 to 7. The bar heights from left to right are: 1, 1, 2, 4, 7.]\nDescribe the relationship between the mean and the median of this distribution.\n[Image: This is a histogram which consists of 5 adjacent bars over an x-axis split into intervals of 1 from 3 to 7. The bar heights from left to right are: 1, 1, 2, 4, 7.]\nThe mean and the median are both six.\nThe mean and median for the data are the same.\n- 3\n- 4\n- 5\n- 5\n- 6\n- 6\n- 6\n- 6\n- 7\n- 7\n- 7\n- 7\n- 7\n- 7\n- 7\nIs the data perfectly symmetrical? Why or why not?\nWhich is the greatest, the mean, the mode, or the median of the data set?\n- 11\n- 11\n- 12\n- 12\n- 12\n- 12\n- 13\n- 15\n- 17\n- 22\n- 22\n- 22\nThe mode is 12, the median is 12.5, and the mean is 15.1. The mean is the largest.\nWhich is the least, the mean, the mode, and the median of the data set?\n- 56\n- 56\n- 56\n- 58\n- 59\n- 60\n- 62\n- 64\n- 64\n- 65\n- 67\nOf the three measures, which tends to reflect skewing the most, the mean, the mode, or the median? Why?\nThe mean tends to reflect skewing the most because it is affected the most by outliers.\nIn a perfectly symmetrical distribution, when would the mode be different from the mean and median?\nHomework\nThe median age of the U.S. population in 1980 was 30.0 years. In 1991, the median age was 33.1 years.\n- What does it mean for the median age to rise?\n- Give two reasons why the median age could rise.\n- For the median age to rise, is the actual number of children less in 1991 than it was in 1980? Why or why not?"}
{"document_id": "openstax-intro-statistics-m46922", "title": "Descriptive Statistics — Measures of the Spread of the Data", "source": "https://openstax.org/books/introductory-statistics-2e/pages/2-7-measures-of-the-spread-of-the-data", "license": "CC-BY-4.0", "text": "An important characteristic of any set of data is the variation in the data. In some data sets, the data values are concentrated closely near the mean; in other data sets, the data values are more widely spread out from the mean. The most common measure of variation, or spread, is the standard deviation. The standard deviation is a number that measures how far data values are from their mean.\nThe standard deviation\n- provides a numerical measure of the overall amount of variation in a data set, and\n- can be used to determine whether a particular data value is close to or far from the mean.\nThe standard deviation provides a measure of the overall variation in a data set\nThe standard deviation is always positive or zero. The standard deviation is small when the data are all concentrated close to the mean, exhibiting little variation or spread. The standard deviation is larger when the data values are more spread out from the mean, exhibiting more variation.\nSuppose that we are studying the amount of time customers wait in line at the checkout at supermarket A and supermarket B. The average wait time at both supermarkets is five minutes. At supermarket A, the standard deviation for the wait time is two minutes; at supermarket B the standard deviation for the wait time is four minutes.\nBecause supermarket B has a higher standard deviation, we know that there is more variation in the wait times at supermarket B. Overall, wait times at supermarket B are more spread out from the average; wait times at supermarket A are more concentrated near the average.\nThe standard deviation can be used to determine whether a data value is close to or far from the mean.\nSuppose that Rosa and Binh both shop at supermarket A. Rosa waits at the checkout counter for seven minutes and Binh waits for one minute. At supermarket A, the mean waiting time is five minutes and the standard deviation is two minutes. The standard deviation can be used to determine whether a data value is close to or far from the mean.\nRosa waits for seven minutes:\n- Seven is two minutes longer than the average of five; two minutes is equal to one standard deviation.\n- Rosa's wait time of seven minutes is two minutes longer than the average of five minutes.\n- Rosa's wait time of seven minutes is one standard deviation above the average of five minutes.\nBinh waits for one minute.\n- One is four minutes less than the average of five; four minutes is equal to two standard deviations.\n- Binh's wait time of one minute is four minutes less than the average of five minutes.\n- Binh's wait time of one minute is two standard deviations below the average of five minutes.\n- A data value that is two standard deviations from the average is just on the borderline for what many statisticians would consider to be far from the average. Considering data to be far from the mean if it is more than two standard deviations away is more of an approximate \"rule of thumb\" than a rigid rule. In general, the shape of the distribution of the data affects how much of the data is further away than two standard deviations. (You will learn more about this in later chapters.)\nThe number line may help you understand standard deviation. If we were to put five and seven on a number line, seven is to the right of five. We say, then, that seven is one standard deviation to the right of five because 5 + (1)(2) = 7.\nIf one were also part of the data set, then one is two standard deviations to the left of five because 5 + (–2)(2) = 1.\n[Image: This shows a number line in intervals of 1 from 0 to 7.]\n- In general, a value = mean + (#ofSTDEV)(standard deviation)\n- where #ofSTDEVs = the number of standard deviations\n- #ofSTDEV does not need to be an integer\n- One is two standard deviations less than the mean of five because: 1 = 5 + (–2)(2).\nThe equation value = mean + (#ofSTDEVs)(standard deviation) can be expressed for a sample and for a population.\n- sample: $x\\text{=}\\overline{x}\\text{+}(#ofSTDEV)(s)$\n- Population: $x=\\mu+(#ofSTDEV)(\\sigma)$\nThe lower case letter s represents the sample standard deviation and the Greek letter σ (sigma, lower case) represents the population standard deviation. The symbol $\\overline{x}$ is the sample mean and the Greek symbol $\\mu$ is the population mean.\nCalculating the Standard Deviation\nIf x is a number, then the difference \"x – mean\" is called its deviation. In a data set, there are as many deviations as there are items in the data set. The deviations are used to calculate the standard deviation. If the numbers belong to a population, in symbols a deviation is x – μ. For sample data, in symbols a deviation is x – $\\overline{x}$.\nThe procedure to calculate the standard deviation depends on whether the numbers are the entire population or are data from a sample. The calculations are similar, but not identical. Therefore the symbol used to represent the standard deviation depends on whether it is calculated from a population or a sample. The lower case letter s represents the sample standard deviation and the Greek letter σ (sigma, lower case) represents the population standard deviation. If the sample has the same characteristics as the population, then s should be a good estimate of σ.\nTo calculate the standard deviation, we need to calculate the variance first. The variance is the average of the squares of the deviations (the x – $\\overline{x}$ values for a sample, or the x – μ values for a population). The symbol σ2 represents the population variance; the population standard deviation σ is the square root of the population variance. The symbol s2 represents the sample variance; the sample standard deviation s is the square root of the sample variance. You can think of the standard deviation as a special average of the deviations.\nIf the numbers come from a census of the entire population and not a sample, when we calculate the average of the squared deviations to find the variance, we divide by N, the number of items in the population. If the data are from a sample rather than a population, when we calculate the average of the squared deviations, we divide by n – 1, one less than the number of items in the sample.\nFormulas for the Sample Standard Deviation\n- $s=\\sqrt{\\frac{\\Sigma{(x-\\overline{x})}^{2}}{n-1}}$ or $s=\\sqrt{\\frac{\\Sigma f{(x-\\overline{x})}^{2}}{n-1}}$\n- For the sample standard deviation, the denominator is n - 1, that is the sample size MINUS 1.\nFormulas for the Population Standard Deviation\n- $\\sigma=\\sqrt{\\frac{\\Sigma{(x-\\mu)}^{2}}{N}}$ or $\\sigma=\\sqrt{\\frac{\\Sigma f{(x–\\mu)}^{2}}{N}}$\n- For the population standard deviation, the denominator is N, the number of items in the population.\nIn these formulas, f represents the frequency with which a value appears. For example, if a value appears once, f is one. If a value appears three times in the data set or population, f is three.\nSampling Variability of a Statistic\nThe statistic of a sampling distribution was discussed in Descriptive Statistics: Measures of the Center of the Data. How much the statistic varies from one sample to another is known as the sampling variability of a statistic. You typically measure the sampling variability of a statistic by its standard error. The standard error of the mean is an example of a standard error. It is a special standard deviation and is known as the standard deviation of the sampling distribution of the mean. You will cover the standard error of the mean in the chapter The Central Limit Theorem (not now). The notation for the standard error of the mean is $\\frac{\\sigma}{\\sqrt{n}}$ where σ is the standard deviation of the population and n is the size of the sample.\nNOTE\nIn practice, USE A CALCULATOR OR COMPUTER SOFTWARE TO CALCULATE THE STANDARD DEVIATION. If you are using a TI-83, 83+, 84+ calculator, you need to select the appropriate standard deviation σx or sx from the summary statistics. We will concentrate on using and interpreting the information that the standard deviation gives us. However you should study the following step-by-step example to help you understand how the standard deviation measures variation from the mean. (The calculator instructions appear at the end of this example.)\nIn a fifth grade class, the teacher was interested in the average age and the sample standard deviation of the ages of the students. The following data are the ages for a SAMPLE of n = 20 fifth grade students. The ages are rounded to the nearest half year:\n9; 9.5; 9.5; 10; 10; 10; 10; 10.5; 10.5; 10.5; 10.5; 11; 11; 11; 11; 11; 11; 11.5; 11.5; 11.5;\n$$\\overline{x}=\\frac{\\text{9 + 9}\\text{.5(2) + 10(4) + 10}\\text{.5(4) + 11(6) + 11}\\text{.5(3)}}{20}=10.525$$\nThe average age is 10.53 years, rounded to two places.\nThe variance may be calculated by using a table. Then the standard deviation is calculated by taking the square root of the variance. We will explain the parts of the table after calculating s.\nData | Freq. | Deviations | Deviations2 | (Freq.)(Deviations2)\nx | f | (x – $\\overline{x}$) | (x – $\\overline{x}$)2 | (f)(x – $\\overline{x}$)2\n9 | 1 | 9 – 10.525 = –1.525 | (–1.525)2 = 2.325625 | 1 × 2.325625 = 2.325625\n9.5 | 2 | 9.5 – 10.525 = –1.025 | (–1.025)2 = 1.050625 | 2 × 1.050625 = 2.101250\n10 | 4 | 10 – 10.525 = –0.525 | (–0.525)2 = 0.275625 | 4 × 0.275625 = 1.1025\n10.5 | 4 | 10.5 – 10.525 = –0.025 | (–0.025)2 = 0.000625 | 4 × 0.000625 = 0.0025\n11 | 6 | 11 – 10.525 = 0.475 | (0.475)2 = 0.225625 | 6 × 0.225625 = 1.35375\n11.5 | 3 | 11.5 – 10.525 = 0.975 | (0.975)2 = 0.950625 | 3 × 0.950625 = 2.851875\nThe total is 9.7375\nThe sample variance, s2, is equal to the sum of the last column (9.7375) divided by the total number of data values minus one (20 – 1):\n${s}^{2}=\\frac{9.7375}{20-1}=0.5125$\nThe sample standard deviation s is equal to the square root of the sample variance:\n$s=\\sqrt{0.5125}=0.715891,$ which is rounded to two decimal places, s = 0.72.\nTypically, you do the calculation for the standard deviation on your calculator or computer. The intermediate results are not rounded. This is done for accuracy.\n- For the following problems, recall that value = mean + (#ofSTDEVs)(standard deviation). Verify the mean and standard deviation or a calculator or computer.\n- For a sample: x = $\\overline{x}$ + (#ofSTDEVs)(s)\n- For a population: x = μ + (#ofSTDEVs)(σ)\n- For this example, use x = $\\overline{x}$ + (#ofSTDEVs)(s) because the data is from a sample\n- Verify the mean and standard deviation on your calculator or computer.\n- Find the value that is one standard deviation above the mean. Find ($\\overline{x}$ + 1s).\n- Find the value that is two standard deviations below the mean. Find ($\\overline{x}$ – 2s).\n- Find the values that are 1.5 standard deviations from (below and above) the mean.\n-\n- Clear lists L1 and L2. Press STAT 4:ClrList. Enter 2nd 1 for L1, the comma (,), and 2nd 2 for L2.\n- Enter data into the list editor. Press STAT 1:EDIT. If necessary, clear the lists by arrowing up into the name. Press CLEAR and arrow down.\n- Put the data values (9, 9.5, 10, 10.5, 11, 11.5) into list L1 and the frequencies (1, 2, 4, 4, 6, 3) into list L2. Use the arrow keys to move around.\n- Press STAT and arrow to CALC. Press 1:1-VarStats and enter L1 (2nd 1), L2 (2nd 2). Do not forget the comma. Press ENTER.\n- $\\overline{x}$ = 10.525\n- Use Sx because this is sample data (not a population): Sx=0.715891\n- ($\\overline{x}$ + 1s) = 10.53 + (1)(0.72) = 11.25\n- ($\\overline{x}$ – 2s) = 10.53 – (2)(0.72) = 9.09\n-\n- ($\\overline{x}$ – 1.5s) = 10.53 – (1.5)(0.72) = 9.45\n- ($\\overline{x}$ + 1.5s) = 10.53 + (1.5)(0.72) = 11.61\nTry It\nOn a baseball team, the ages of each of the players are as follows:\n21; 21; 22; 23; 24; 24; 25; 25; 28; 29; 29; 31; 32; 33; 33; 34; 35; 36; 36; 36; 36; 38; 38; 38; 40\nUse your calculator or computer to find the mean and standard deviation. Then find the value that is two standard deviations above the mean.\nExplanation of the standard deviation calculation shown in the table\nThe deviations show how spread out the data are about the mean. The data value 11.5 is farther from the mean than is the data value 11 which is indicated by the deviations 0.97 and 0.47. A positive deviation occurs when the data value is greater than the mean, whereas a negative deviation occurs when the data value is less than the mean. The deviation is –1.525 for the data value nine. If you add the deviations, the sum is always zero. (For Example, there are n = 20 deviations.) So you cannot simply add the deviations to get the spread of the data. By squaring the deviations, you make them positive numbers, and the sum will also be positive. The variance, then, is the average squared deviation.\nThe variance is a squared measure and does not have the same units as the data. Taking the square root solves the problem. The standard deviation measures the spread in the same units as the data.\nNotice that instead of dividing by n = 20, the calculation divided by n – 1 = 20 – 1 = 19 because the data is a sample. For the sample variance, we divide by the sample size minus one (n – 1). Why not divide by n? The answer has to do with the population variance. The sample variance is an estimate of the population variance. Based on the theoretical mathematics that lies behind these calculations, dividing by (n – 1) gives a better estimate of the population variance.\nNOTE\nYour concentration should be on what the standard deviation tells us about the data. The standard deviation is a number which measures how far the data are spread from the mean. Let a calculator or computer do the arithmetic.\nThe standard deviation, s or σ, is either zero or larger than zero. Describing the data with reference to the spread is called \"variability\". The variability in data depends upon the method by which the outcomes are obtained; for example, by measuring or by random sampling. When the standard deviation is zero, there is no spread; that is, the all the data values are equal to each other. The standard deviation is small when the data are all concentrated close to the mean, and is larger when the data values show more variation from the mean. When the standard deviation is a lot larger than zero, the data values are very spread out about the mean; outliers can make s or σ very large.\nThe standard deviation, when first presented, can seem unclear. By graphing your data, you can get a better \"feel\" for the deviations and the standard deviation. You will find that in symmetrical distributions, the standard deviation can be very helpful but in skewed distributions, the standard deviation may not be much help. The reason is that the two sides of a skewed distribution have different spreads. In a skewed distribution, it is better to look at the first quartile, the median, the third quartile, the smallest value, and the largest value. Because numbers can be confusing, always graph your data. Display your data in a histogram or a box plot.\nUse the following data (first exam scores) from Professor Dean's spring pre-calculus class:\n33; 42; 49; 49; 53; 55; 55; 61; 63; 67; 68; 68; 69; 69; 72; 73; 74; 78; 80; 83; 88; 88; 88; 90; 92; 94; 94; 94; 94; 96; 100\n- Create a chart containing the data, frequencies, relative frequencies, and cumulative relative frequencies to three decimal places.\n- Calculate the following to one decimal place using a TI-83+ or TI-84 calculator:\n- The sample mean\n- The sample standard deviation\n- The median\n- The first quartile\n- The third quartile\n- IQR\n- Construct a box plot and a histogram on the same set of axes. Make comments about the box plot, the histogram, and the chart.\n- See Table\n-\n- The sample mean = 73.5\n- The sample standard deviation = 17.9\n- The median = 73\n- The first quartile = 61\n- The third quartile = 90\n- IQR = 90 – 61 = 29\n- The x-axis goes from 32.5 to 100.5; y-axis goes from –2.4 to 15 for the histogram. The number of intervals is five, so the width of an interval is (100.5 – 32.5) divided by five, is equal to 13.6. Endpoints of the intervals are as follows: the starting point is 32.5, 32.5 + 13.6 = 46.1, 46.1 + 13.6 = 59.7, 59.7 + 13.6 = 73.3, 73.3 + 13.6 = 86.9, 86.9 + 13.6 = 100.5 = the ending value; No data values fall on an interval boundary.\n[Image: A hybrid image displaying both a histogram and box plot described in detail in the answer solution above.]\nData | Frequency | Relative Frequency | Cumulative Relative Frequency\n33 | 1 | 0.032 | 0.032\n42 | 1 | 0.032 | 0.064\n49 | 2 | 0.065 | 0.129\n53 | 1 | 0.032 | 0.161\n55 | 2 | 0.065 | 0.226\n61 | 1 | 0.032 | 0.258\n63 | 1 | 0.032 | 0.29\n67 | 1 | 0.032 | 0.322\n68 | 2 | 0.065 | 0.387\n69 | 2 | 0.065 | 0.452\n72 | 1 | 0.032 | 0.484\n73 | 1 | 0.032 | 0.516\n74 | 1 | 0.032 | 0.548\n78 | 1 | 0.032 | 0.580\n80 | 1 | 0.032 | 0.612\n83 | 1 | 0.032 | 0.644\n88 | 3 | 0.097 | 0.741\n90 | 1 | 0.032 | 0.773\n92 | 1 | 0.032 | 0.805\n94 | 4 | 0.129 | 0.934\n96 | 1 | 0.032 | 0.966\n100 | 1 | 0.032 | 0.998 (Why isn't this value 1?)\nThe long left whisker in the box plot is reflected in the left side of the histogram. The spread of the exam scores in the lower 50% is greater (73 – 33 = 40) than the spread in the upper 50% (100 – 73 = 27). The histogram, box plot, and chart all reflect this. There are a substantial number of A and B grades (80s, 90s, and 100). The histogram clearly shows this. The box plot shows us that the middle 50% of the exam scores (IQR = 29) are Ds, Cs, and Bs. The box plot also shows us that the lower 25% of the exam scores are Ds and Fs.\nTry It\nThe following data show the different types of pet food stores in the area carry. 6; 6; 6; 6; 7; 7; 7; 7; 7; 8; 9; 9; 9; 9; 10; 10; 10; 10; 10; 11; 11; 11; 11; 12; 12; 12; 12; 12; 12; Calculate the sample mean and the sample standard deviation to one decimal place using a TI-83+ or TI-84 calculator.\nStandard deviation of Grouped Frequency Tables\nRecall that for grouped data we do not know individual data values, so we cannot describe the typical value of the data with precision. In other words, we cannot find the exact mean, median, or mode. We can, however, determine the best estimate of the measures of center by finding the mean of the grouped data with the formula: $MeanofFrequencyTable=\\frac{\\sum fm}{\\sum f}$ where $f=$ interval frequencies and m = interval midpoints.\nJust as we could not find the exact mean, neither can we find the exact standard deviation. Remember that standard deviation describes numerically the expected deviation a data value has from the mean. In simple English, the standard deviation allows us to compare how “unusual” individual data is compared to the mean.\nFind the standard deviation for the data in Table.\nClass | Frequency, $f$ | Midpoint, $m$ | $f\\cdot m$ | $\\overline{x}$ | $m-\\overline{x}$ | ${(m-\\overline{x})}^{2}$ | $f{(m-\\overline{x})}^{2}$\n0–2 | 1 | 1 | 1 | 7.58 | -6.58 | 43.2964 | 43.2964\n3–5 | 6 | 4 | 24 | 7.58 | -3.58 | 12.8164 | 76.8984\n6–8 | 10 | 7 | 70 | 7.58 | -0.58 | 0.3364 | 3.364\n9–11 | 7 | 10 | 70 | 7.58 | 2.42 | 5.8564 | 40.9948\n12–14 | 0 | 13 | 0 | 7.58 | 5.42 | 29.3764 | 0\n15–17 | 2 | 16 | 32 | 7.58 | 8.42 | 70.8964 | 141.7928\nSUM ($\\Sigma$) | 26 | 197 | 306.3464\nThe values in the second, third, and fourth columns of Table are used to calculate the mean of the grouped frequency table, the value in the fifth column.\n$$\\overline{x}=\\frac{\\Sigma fm}{\\Sigma f}=\\frac{197}{26}\\approx7.58.$$\nAfter calculating $\\overline{x}$, find the difference, $m-\\overline{x}$, for each midpoint, $m$. Next, square each difference. In the final column, calculate the product of the frequency and the squared difference for each class.\nThe table makes it easy to use the formula for calculating the standard deviation of a grouped frequency table:\n$${s}_{x}=\\sqrt{\\frac{\\Sigma f{(m-\\overline{x})}^{2}}{n-1}}=\\sqrt{\\frac{43.2964}{26-1}}\\approx3.50.$$\nAlthough the formula is not complicated, these calculations are typically performed using technology.\nTry It\nFind the standard deviation for the data from the previous example\nClass | Frequency, f\n0–2 | 1\n3–5 | 6\n6–8 | 10\n9–11 | 7\n12–14 | 0\n15–17 | 2\nFirst, press the STAT key and select 1:Edit\n[Image: Image of a TI calculator screen. After pressing the STAT key, screen displays top menu choices EDIT, CALC, TESTS. EDIT is selected. Below the top menu, option 1: Edit… is selected.]\nInput the midpoint values into L1 and the frequencies into L2\n[Image: Image of a TI calculator screen. L1 list shows entries 1, 4, 7, 10, 13, 16. L2 list shows 1, 6, 10, 7, 0, 2.]\nSelect STAT, CALC, and 1: 1-Var Stats\n[Image: Image of a TI calculator screen. After pressing the STAT key, screen displays top menu choices EDIT, CALC, TESTS. CALC is selected. Below the top menu, option 1: 1–Var Stats is selected.]\nSelect 2nd then 1 then, 2nd then 2 Enter\n[Image: Image of a TI calculator screen. At the top of the screen, the label shows 1–Var Stats. Below this label, the screen displays x-bar = 7.576923077, upper-case sigma x = 197, upper-case sigma x-squared = 1799, Sx = 3.500549407, and lower-case sigma = 3.432571103, n = 26.]\nYou will see displayed both a population standard deviation, σx, and the sample standard deviation, sx.\nComparing Values from Different Data Sets\nThe standard deviation is useful when comparing data values that come from different data sets. If the data sets have different means and standard deviations, then comparing the data values directly can be misleading.\n- For each data value, calculate how many standard deviations away from its mean the value is.\n- Use the formula: value = mean + (#ofSTDEVs)(standard deviation); solve for #ofSTDEVs.\n- $#ofSTDEVs=\\frac{\\text{value – mean}}{\\text{standard deviation}}$\n- Compare the results of this calculation.\n#ofSTDEVs is often called a \"z-score\"; we can use the symbol z. In symbols, the formulas become:\nSample | $x$ = $\\overline{x}$ + zs | $z=\\frac{x-\\overline{x}}{s}$\nPopulation | $x$ = $\\mu$ + zσ | $z=\\frac{x-\\mu}{\\sigma}$\nTwo students, John and Ali, from different high schools, wanted to find out who had the highest GPA when compared to his school. Which student had the highest GPA when compared to his school?\nStudent | GPA | School Mean GPA | School Standard Deviation\nJohn | 2.85 | 3.0 | 0.7\nAli | 77 | 80 | 10\nFor each student, determine how many standard deviations (#ofSTDEVs) his GPA is away from the average, for his school. Pay careful attention to signs when comparing and interpreting the answer.\n$z=# of STDEVs=\\frac{\\text{value}–\\text{mean}}{\\text{standard deviation}}=\\frac{x–\\mu}{\\sigma}$\nFor John, $z=#ofSTDEVs=\\frac{2.85–3.0}{0.7}=–0.21$\nFor Ali, $z=#ofSTDEVs=\\frac{77-80}{10}=-0.3$\nJohn has the better GPA when compared to his school because his GPA is 0.21 standard deviations below his school's mean while Ali's GPA is 0.3 standard deviations below his school's mean.\nJohn's z-score of –0.21 is higher than Ali's z-score of –0.3. For GPA, higher values are better, so we conclude that John has the better GPA when compared to his school.\nTry It\nTwo swimmers, Angie and Beth, from different teams, wanted to find out who had the fastest time for the 50 meter freestyle when compared to her team. Which swimmer had the fastest time when compared to her team?\nSwimmer | Time (seconds) | Team Mean Time | Team Standard Deviation\nAngie | 26.2 | 27.2 | 0.8\nBeth | 27.3 | 30.1 | 1.4\nThe following lists give a few facts that provide a little more insight into what the standard deviation tells us about the distribution of the data.\nFor ANY data set, no matter what the distribution of the data is:\n- At least 75% of the data is within two standard deviations of the mean.\n- At least 89% of the data is within three standard deviations of the mean.\n- At least 95% of the data is within 4.5 standard deviations of the mean.\n- This is known as Chebyshev's Rule.\nFor data having a distribution that is BELL-SHAPED and SYMMETRIC:\n- Approximately 68% of the data is within one standard deviation of the mean.\n- Approximately 95% of the data is within two standard deviations of the mean.\n- More than 99% of the data is within three standard deviations of the mean.\n- This is known as the Empirical Rule.\n- It is important to note that this rule only applies when the shape of the distribution of the data is bell-shaped and symmetric. We will learn more about this when studying the \"Normal\" or \"Gaussian\" probability distribution in later chapters.\nReferences\nData from Microsoft Bookshelf.\nKing, Bill.“Graphically Speaking.” Institutional Research, Lake Tahoe Community College. Available online at http://www.ltcc.edu/web/about/institutional-research (accessed April 3, 2013).\nChapter Review\nThe standard deviation can help you calculate the spread of data. There are different equations to use if are calculating the standard deviation of a sample or of a population.\n- The Standard Deviation allows us to compare individual data or classes to the data set mean numerically.\n- s = $\\sqrt{\\frac{{\\sum}^{\\text{​}}{(x-\\overline{x})}^{2}}{n-1}}$ or s = $\\sqrt{\\frac{{\\sum}^{\\text{​}}f{(x-\\overline{x})}^{2}}{n-1}}$ is the formula for calculating the standard deviation of a sample. To calculate the standard deviation of a population, we would use the population mean, μ, and the formula σ = $\\sqrt{\\frac{{\\sum}^{\\text{​}}{(x-\\mu)}^{2}}{N}}$ or σ = $\\sqrt{\\frac{{\\sum}^{\\text{​}}f{(x-\\mu)}^{2}}{N}}$.\nFormula Review\n${s}_{x}=\\sqrt{\\frac{\\sum f{m}^{2}}{n}-{\\overline{x}}^{2}}$ where $\\begin{matrix} {s}_{x}=\\text{sample standard deviation} \\\\ \\overline{x}\\text{= sample mean} \\end{matrix}$\nUse the following information to answer the next two exercises: The following data are the distances between 20 retail stores and a large distribution center. The distances are in miles. 29; 37; 38; 40; 58; 67; 68; 69; 76; 86; 87; 95; 96; 96; 99; 106; 112; 127; 145; 150\nUse a graphing calculator or computer to find the standard deviation and round to the nearest tenth.\ns = 34.5\nFind the value that is one standard deviation below the mean.\nTwo baseball players, Fredo and Karl, on different teams wanted to find out who had the higher batting average when compared to his team. Which baseball player had the higher batting average when compared to his team?\nBaseball Player | Batting Average | Team Batting Average | Team Standard Deviation\nFredo | 0.158 | 0.166 | 0.012\nKarl | 0.177 | 0.189 | 0.015\nFor Fredo: z = $\\frac{0.158\\text{–}0.166}{0.012}$ = –0.67\nFor Karl: z = $\\frac{0.177\\text{–}0.189}{0.015}$ = –0.8\nFredo’s z-score of –0.67 is higher than Karl’s z-score of –0.8. For batting average, higher values are better, so Fredo has a better batting average compared to his team.\nUse Table to find the value that is three standard deviations:\n- above the mean\n- below the mean\nFind the standard deviation for the following frequency tables using the formula. Check the calculations with the TI 83/84.\nFind the standard deviation for the following frequency tables using the formula. Check the calculations with the TI 83/84.\n-\nGrade | Frequency\n49.5–59.5 | 2\n59.5–69.5 | 3\n69.5–79.5 | 8\n79.5–89.5 | 12\n89.5–99.5 | 5\n-\nDaily Low Temperature | Frequency\n49.5–59.5 | 53\n59.5–69.5 | 32\n69.5–79.5 | 15\n79.5–89.5 | 1\n89.5–99.5 | 0\n-\nPoints per Game | Frequency\n49.5–59.5 | 14\n59.5–69.5 | 32\n69.5–79.5 | 15\n79.5–89.5 | 23\n89.5–99.5 | 2\n- ${s}_{x}=\\sqrt{\\frac{\\sum f{m}^{2}}{n}-{\\overline{x}}^{2}}=\\sqrt{\\frac{193157.45}{30}-{79.5}^{2}}=10.88$\n- ${s}_{x}=\\sqrt{\\frac{\\sum f{m}^{2}}{n}-{\\overline{x}}^{2}}=\\sqrt{\\frac{380945.3}{101}-{60.94}^{2}}=7.62$\n- ${s}_{x}=\\sqrt{\\frac{\\sum f{m}^{2}}{n}-{\\overline{x}}^{2}}=\\sqrt{\\frac{440051.5}{86}-{70.66}^{2}}=11.14$\nHomework\nUse the following information to answer the next nine exercises: The population parameters below describe the full-time equivalent number of students (FTES) each year at a local community college over a 29-year period.\n- μ = 1000 FTES\n- median = 1,014 FTES\n- σ = 474 FTES\n- first quartile = 528.5 FTES\n- third quartile = 1,447.5 FTES\n- n = 29 years\nA sample of 11 years is taken. About how many are expected to have a FTES of 1014 or above? Explain how you determined your answer.\nThe median value is the middle value in the ordered list of data values. The median value of a set of 11 will be the 6th number in order. Six years will have totals at or above the median.\n75% of all years have an FTES:\n- at or below: _____\n- at or above: _____\nThe population standard deviation = _____\n474 FTES\nWhat percent of the FTES were from 528.5 to 1447.5? How do you know?\nWhat is the IQR? What does the IQR represent?\n919\nHow many standard deviations away from the mean is the median?\nAdditional Information: The population FTES for a specific six-year period was given in an updated report. The data are reported here.\nYear | 1 | 2 | 3 | 4 | 5 | 6\nTotal FTES | 1,585 | 1,690 | 1,735 | 1,935 | 2,021 | 1,890\nCalculate the mean, median, standard deviation, the first quartile, the third quartile and the IQR. Round to one decimal place.\n- mean = 1,809.3\n- median = 1,812.5\n- standard deviation = 151.2\n- first quartile = 1,690\n- third quartile = 1,935\n- IQR = 245\nWhat additional information is needed to construct a box plot for the FTES for Years 1 to 6 and a box plot for the 29-year period shown earlier?\nCompare the IQR for the previous 29-year period with the IQR for the six-year period shown in Table. Why do you suppose the IQRs are so different?\nHint: Think about the number of years covered by each time period and what happened to higher education during those periods.\nThree students were applying to the same graduate school. They came from schools with different grading systems. Which student had the best GPA when compared to other students at his school? Explain how you determined your answer.\nStudent | GPA | School Average GPA | School Standard Deviation\nThuy | 2.7 | 3.2 | 0.8\nVichet | 87 | 75 | 20\nKamala | 8.6 | 8 | 0.4\nA music school has budgeted to purchase three musical instruments. They plan to purchase a piano costing \\$3,000, a guitar costing \\$550, and a drum set costing \\$600. The mean cost for a piano is \\$4,000 with a standard deviation of \\$2,500. The mean cost for a guitar is \\$500 with a standard deviation of \\$200. The mean cost for drums is \\$700 with a standard deviation of \\$100. Which cost is the lowest, when compared to other instruments of the same type? Which cost is the highest when compared to other instruments of the same type. Justify your answer.\nFor pianos, the cost of the piano is 0.4 standard deviations BELOW the mean. For guitars, the cost of the guitar is 0.25 standard deviations ABOVE the mean. For drums, the cost of the drum set is 1.0 standard deviations BELOW the mean. Of the three, the drums cost the lowest in comparison to the cost of other instruments of the same type. The guitar costs the most in comparison to the cost of other instruments of the same type.\nAn elementary school class ran one mile with a mean of 11 minutes and a standard deviation of three minutes. Rachel, a student in the class, ran one mile in eight minutes. A junior high school class ran one mile with a mean of nine minutes and a standard deviation of two minutes. Kenji, a student in the class, ran 1 mile in 8.5 minutes. A high school class ran one mile with a mean of seven minutes and a standard deviation of four minutes. Nedda, a student in the class, ran one mile in eight minutes.\n- Why is Kenji considered a better runner than Nedda, even though Nedda ran faster than he?\n- Who is the fastest runner with respect to their class? Explain why.\nA selection of countries has poverty rates that range from 11.4% to 74.6%. This data is summarized in Table 2.76.\nPercent of Population | Number of Countries\n11.4–20.45 | 29\n20.45–29.45 | 13\n29.45–38.45 | 4\n38.45–47.45 | 0\n47.45–56.45 | 2\n56.45–65.45 | 1\n65.45–74.45 | 0\n74.45–83.45 | 1\nWhat is the best estimate of the average poverty percentage for these countries? What is the standard deviation for the listed poverty rates? The United States has an average poverty rate of 33.9%. Is this rate above average or below? How “unusual” is the United States’ rate compared to the average rate? Explain.\n- $\\overline{x}=23.32$\n- Using the TI 83/84, we obtain a standard deviation of: ${s}_{x}=12.95.$\n- The poverty rate of the United States is 10.58% higher than the average rate.\n- Since the standard deviation is 12.95, we see that 23.32 + 12.95 = 36.27 is the poverty percentage that is one standard deviation from the mean. The United States rate is slightly less than one standard deviation from the mean. Therefore, we can assume that the United States does not have an unusually high percentage of people experiencing poverty.\nTable gives the percent of children under five considered to be underweight.\nPercent of Underweight Children | Number of Countries\n16–21.45 | 23\n21.45–26.9 | 4\n26.9–32.35 | 9\n32.35–37.8 | 7\n37.8–43.25 | 6\n43.25–48.7 | 1\nWhat is the best estimate for the mean percentage of underweight children? What is the standard deviation? Which interval(s) could be considered unusual? Explain.\nBringing It Together\nTwenty-five randomly selected students were asked the number of movies they watched the previous week. The results are as follows:\n# of movies | Frequency\n0 | 5\n1 | 9\n2 | 6\n3 | 4\n4 | 1\n- Find the sample mean $\\overline{x}$.\n- Find the approximate sample standard deviation, s.\n- 1.48\n- 1.12\nForty randomly selected students were asked the number of pairs of sneakers they owned. Let X = the number of pairs of sneakers owned. The results are as follows:\nX | Frequency\n1 | 2\n2 | 5\n3 | 8\n4 | 12\n5 | 12\n6 | 0\n7 | 1\n- Find the sample mean $\\overline{x}$\n- Find the sample standard deviation, s\n- Construct a histogram of the data.\n- Complete the columns of the chart.\n- Find the first quartile.\n- Find the median.\n- Find the third quartile.\n- Construct a box plot of the data.\n- What percent of the students owned at least five pairs?\n- Find the 40th percentile.\n- Find the 90th percentile.\n- Construct a line graph of the data\n- Construct a stemplot of the data\nFollowing are the published weights (in pounds) of all of the team members of the San Francisco 49ers from a previous year.\n177; 205; 210; 210; 232; 205; 185; 185; 178; 210; 206; 212; 184; 174; 185; 242; 188; 212; 215; 247; 241; 223; 220; 260; 245; 259; 278; 270; 280; 295; 275; 285; 290; 272; 273; 280; 285; 286; 200; 215; 185; 230; 250; 241; 190; 260; 250; 302; 265; 290; 276; 228; 265\n- Organize the data from smallest to largest value.\n- Find the median.\n- Find the first quartile.\n- Find the third quartile.\n- Construct a box plot of the data.\n- The middle 50% of the weights are from _______ to _______.\n- If our population were all professional football players, would the above data be a sample of weights or the population of weights? Why?\n- Assume the population was the San Francisco 49ers. Find:\n- the population mean, μ.\n- the population standard deviation, σ.\n- the weight that is two standard deviations below the mean.\n- When Steve Young, quarterback, played football, he weighed 205 pounds. How many standard deviations above or below the mean was he?\n- That same year, the mean weight for the Dallas Cowboys was 240.08 pounds with a standard deviation of 44.38 pounds. Emmit Smith weighed in at 209 pounds. With respect to his team, who was lighter, Smith or Young? How did you determine your answer?\n- 174; 177; 178; 184; 185; 185; 185; 185; 188; 190; 200; 205; 205; 206; 210; 210; 210; 212; 212; 215; 215; 220; 223; 228; 230; 232; 241; 241; 242; 245; 247; 250; 250; 259; 260; 260; 265; 265; 270; 272; 273; 275; 276; 278; 280; 280; 285; 285; 286; 290; 290; 295; 302\n- 241\n- 205.5\n- 272.5\n-\n- 205.5, 272.5\n- sample\n-\n- 236.34\n- 37.50\n- 161.34\n- 0.84 std. dev. below the mean\n- Young\nOne hundred teachers attended a seminar on mathematical problem solving. The attitudes of a representative sample of 12 of the teachers were measured before and after the seminar. A positive number for change in attitude indicates that a teacher's attitude toward math became more positive. The 12 change scores are as follows:\n- 3\n- 8\n- –1\n- 2\n- 0\n- 5\n- –3\n- 1\n- –1\n- 6\n- 5\n- –2\n- What is the mean change score?\n- What is the standard deviation for this population?\n- What is the median change score?\n- Find the change score that is 2.2 standard deviations below the mean.\nRefer to Figure determine which of the following are true and which are false. Explain your solution to each part in complete sentences.\n[Image: This shows three graphs. The first is a histogram with a mode of 3 and fairly symmetrical distribution between 1 (minimum value) and 5 (maximum value). The second graph is a histogram with peaks at 1 (minimum value) and 5 (maximum value) with 3 having the lowest frequency. The third graph is a box plot. The first whisker extends from 0 to 1. The box begins at the firs quartile, 1, and ends at the third quartile,6. A vertical, dashed line marks the median at 3. The second whisker extends from 6 on.]\n- The medians for all three graphs are the same.\n- We cannot determine if any of the means for the three graphs is different.\n- The standard deviation for graph b is larger than the standard deviation for graph a.\n- We cannot determine if any of the third quartiles for the three graphs is different.\n- True\n- True\n- True\n- False\nIn a recent issue of the IEEE Spectrum, 84 engineering conferences were announced. Four conferences lasted two days. Thirty-six lasted three days. Eighteen lasted four days. Nineteen lasted five days. Four lasted six days. One lasted seven days. One lasted eight days. One lasted nine days. Let X = the length (in days) of an engineering conference.\n- Organize the data in a chart.\n- Find the median, the first quartile, and the third quartile.\n- Find the 65th percentile.\n- Find the 10th percentile.\n- Construct a box plot of the data.\n- The middle 50% of the conferences last from _______ days to _______ days.\n- Calculate the sample mean of days of engineering conferences.\n- Calculate the sample standard deviation of days of engineering conferences.\n- Find the mode.\n- If you were planning an engineering conference, which would you choose as the length of the conference: mean; median; or mode? Explain why you made that choice.\n- Give two reasons why you think that three to five days seem to be popular lengths of engineering conferences.\nA survey of enrollment at 35 community colleges across the United States yielded the following figures:\n6414; 1550; 2109; 9350; 21828; 4300; 5944; 5722; 2825; 2044; 5481; 5200; 5853; 2750; 10012; 6357; 27000; 9414; 7681; 3200; 17500; 9200; 7380; 18314; 6557; 13713; 17768; 7493; 2771; 2861; 1263; 7285; 28165; 5080; 11622\n- Organize the data into a chart with six intervals of equal width from 0 to 30,000. Label the two columns \"Enrollment\" and \"Frequency.\"\n- Construct a histogram of the data.\n- If you were to build a new community college, which piece of information would be more valuable: the mode or the mean?\n- Calculate the sample mean.\n- Calculate the sample standard deviation.\n- A school with an enrollment of 8000 would be how many standard deviations away from the mean?\n-\nEnrollment | Frequency\n1000-5000 | 10\n5000-10000 | 16\n10000-15000 | 3\n15000-20000 | 3\n20000-25000 | 1\n25000-30000 | 2\n- Answers may vary.\n- mode\n- 8628.74\n- 6943.88\n- –0.09\nUse the following information to answer the next two exercises. X = the number of days per week that 100 clients use a particular exercise facility.\nx | Frequency\n0 | 3\n1 | 12\n2 | 33\n3 | 28\n4 | 11\n5 | 9\n6 | 4\nThe 80th percentile is _____\n- 5\n- 80\n- 3\n- 4\nThe number that is 1.5 standard deviations BELOW the mean is approximately _____\n- 0.7\n- 4.8\n- –2.8\n- Cannot be determined\na\nSuppose that a publisher conducted a survey asking adult consumers the number of fiction paperback books they had purchased in the previous month. The results are summarized in the Table.\n# of books | Freq. | Rel. Freq.\n0 | 18\n1 | 24\n2 | 24\n3 | 22\n4 | 15\n5 | 10\n7 | 5\n9 | 1\n- Are there any outliers in the data? Use an appropriate numerical test involving the IQR to identify outliers, if any, and clearly state your conclusion.\n- If a data value is identified as an outlier, what should be done about it?\n- Are any data values further than two standard deviations away from the mean? In some situations, statisticians may use this criteria to identify data values that are unusual, compared to the other data values. (Note that this criteria is most appropriate to use for data that is mound-shaped and symmetric, rather than for skewed data.)\n- Do parts a and c of this problem give the same answer?\n- Examine the shape of the data. Which part, a or c, of this question gives a more appropriate result for this data?\n- Based on the shape of the data which is the most appropriate measure of center for this data: mean, median or mode?\n\nGlossary\nStandard Deviation a number that is equal to the square root of the variance and measures how far data values are from their mean; notation: s for sample standard deviation and σ for population standard deviation.\nVariance mean of the squared deviations from the mean, or the square of the standard deviation; for a set of data, a deviation can be represented as x – $\\overline{x}$ where x is a value of the data and $\\overline{x}$ is the sample mean. The sample variance is equal to the sum of the squares of the deviations divided by the difference of the sample size and one."}
{"document_id": "openstax-intro-statistics-m50253", "title": "Descriptive Statistics — Descriptive Statistics", "source": "https://openstax.org/books/introductory-statistics-2e/pages/2-8-descriptive-statistics", "license": "CC-BY-4.0", "text": "Descriptive Statistics\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will construct a histogram and a box plot.\n- The student will calculate univariate statistics.\n- The student will examine the graphs to interpret what the data implies.\nCollect the Data\nRecord the number of pairs of shoes you own.\n- Randomly survey 30 classmates about the number of pairs of shoes they own. Record their values.\n- Construct a histogram. Make five to six intervals. Sketch the graph using a ruler and pencil and scale the axes.\n[Image: A blank graph template for use with this problem.]\n- Calculate the following values.\n- $\\overline{x}$ = _____\n- s = _____\n- Are the data discrete or continuous? How do you know?\n- In complete sentences, describe the shape of the histogram.\n- Are there any potential outliers? List the value(s) that could be outliers. Use a formula to check the end values to determine if they are potential outliers.\nAnalyze the Data\n- Determine the following values.\n- Min = _____\n- M = _____\n- Max = _____\n- Q1 = _____\n- Q3 = _____\n- IQR = _____\n- Construct a box plot of data\n- What does the shape of the box plot imply about the concentration of data? Use complete sentences.\n- Using the box plot, how can you determine if there are potential outliers?\n- How does the standard deviation help you to determine concentration of the data and whether or not there are potential outliers?\n- What does the IQR represent in this problem?\n- Show your work to find the value that is 1.5 standard deviations:\n- above the mean.\n- below the mean."}
{"document_id": "openstax-intro-statistics-m46942", "title": "Probability Topics — Terminology", "source": "https://openstax.org/books/introductory-statistics-2e/pages/3-1-terminology", "license": "CC-BY-4.0", "text": "Probability is a measure that is associated with how certain we are of outcomes of a particular experiment or activity. An experiment is a planned operation carried out under controlled conditions. If the result is not predetermined, then the experiment is said to be a chance experiment. Flipping one fair coin twice is an example of an experiment.\nA result of an experiment is called an outcome. The sample space of an experiment is the set of all possible outcomes. Three ways to represent a sample space are: to list the possible outcomes, to create a tree diagram, or to create a Venn diagram. The uppercase letter S is used to denote the sample space. For example, if you flip one fair coin, S = {H, T} where H = heads and T = tails are the outcomes.\nAn event is any combination of outcomes. Upper case letters like A and B represent events. For example, if the experiment is to flip one fair coin, event A might be getting at most one head. The probability of an event A is written P(A).\nThe probability of any outcome is the long-term relative frequency of that outcome. Probabilities are between zero and one, inclusive (that is, zero and one and all numbers between these values). P(A) = 0 means the event A can never happen. P(A) = 1 means the event A always happens. P(A) = 0.5 means the event A is equally likely to occur or not to occur. For example, if you flip one fair coin repeatedly (from 20 to 2,000 to 20,000 times) the relative frequency of heads approaches 0.5 (the probability of heads).\nEqually likely means that each outcome of an experiment occurs with equal probability. For example, if you toss a fair, six-sided die, each face (1, 2, 3, 4, 5, or 6) is as likely to occur as any other face. If you toss a fair coin, a Head (H) and a Tail (T) are equally likely to occur. If you randomly guess the answer to a true/false question on an exam, you are equally likely to select a correct answer or an incorrect answer.\nTo calculate the probability of an event A when all outcomes in the sample space are equally likely, count the number of outcomes for event A and divide by the total number of outcomes in the sample space. For example, if you toss a fair dime and a fair nickel, the sample space is {HH, TH, HT, TT} where T = tails and H = heads. The sample space has four outcomes. A = getting one head. There are two outcomes that meet this condition {HT, TH}, so P(A) = $\\frac{2}{4}$ = 0.5.\nSuppose you roll one fair six-sided die, with the numbers {1, 2, 3, 4, 5, 6} on its faces. Let event E = rolling a number that is at least five. There are two outcomes {5, 6}. P(E) = $\\frac{2}{6}$. If you were to roll the die only a few times, you would not be surprised if your observed results did not match the probability. If you were to roll the die a very large number of times, you would expect that, overall, $\\frac{2}{6}$ of the rolls would result in an outcome of \"at least five\". You would not expect exactly $\\frac{2}{6}$. The long-term relative frequency of obtaining this result would approach the theoretical probability of $\\frac{2}{6}$ as the number of repetitions grows larger and larger.\nThis important characteristic of probability experiments is known as the law of large numbers which states that as the number of repetitions of an experiment is increased, the relative frequency obtained in the experiment tends to become closer and closer to the theoretical probability. Even though the outcomes do not happen according to any set pattern or order, overall, the long-term observed relative frequency will approach the theoretical probability. (The word empirical is often used instead of the word observed.)\nIt is important to realize that in many situations, the outcomes are not equally likely. A coin or die may be unfair, or biased. Two math professors in Europe had their statistics students test the Belgian one Euro coin and discovered that in 250 trials, a head was obtained 56% of the time and a tail was obtained 44% of the time. The data seem to show that the coin is not a fair coin; more repetitions would be helpful to draw a more accurate conclusion about such bias. Some dice may be biased. Look at the dice in a game you have at home; the spots on each face are usually small holes carved out and then painted to make the spots visible. Your dice may or may not be biased; it is possible that the outcomes may be affected by the slight weight differences due to the different numbers of holes in the faces. Gambling casinos make a lot of money depending on outcomes from rolling dice, so casino dice are made differently to eliminate bias. Casino dice have flat faces; the holes are completely filled with paint having the same density as the material that the dice are made out of so that each face is equally likely to occur. Later we will learn techniques to use to work with probabilities for events that are not equally likely.\n\"OR\" Event:\nAn outcome is in the event A OR B if the outcome is in A or is in B or is in both A and B.The event A OR B can also be written as A Union B, with notation as follows:$A\\cup B$For example, let A = {1, 2, 3, 4, 5} and B = {4, 5, 6, 7, 8}.Then $A\\cup B$ = {1, 2, 3, 4, 5, 6, 7, 8}. Notice that 4 and 5 are NOT listed twice.\n\"AND\" Event:\nAn outcome is in the event A AND B if the outcome is in both A and B at the same time.The event A AND B can also be written as A Intersection B, with notation as follows:$A\\cap B$For example, let A and B be {1, 2, 3, 4, 5} and {4, 5, 6, 7, 8}, respectively.Then $A\\cap B$= {4, 5}.\nThe complement of event A is denoted A′ (read \"A prime\"). A′ consists of all outcomes that are NOT in A. Notice that P(A) + P(A′) = 1. For example, let S = {1, 2, 3, 4, 5, 6} and let A = {1, 2, 3, 4}. Then, A′ = {5, 6}. P(A) = $\\frac{4}{6}$, P(A′) = $\\frac{2}{6}$, and P(A) + P(A′) = $\\frac{4}{6}+\\frac{2}{6}$ = 1\nThe conditional probability of A given B is written P(A|B). P(A|B) is the probability that event A will occur given that the event B has already occurred. A conditional reduces the sample space. We calculate the probability of A from the reduced sample space B. The formula to calculate P(A|B) is P(A|B) = $\\frac{P(A\\text{AND}B)}{P(B)}$ where P(B) is greater than zero.\nFor example, suppose we toss one fair, six-sided die. The sample space S = {1, 2, 3, 4, 5, 6}. Let A = face is 2 or 3 and B = face is even (2, 4, 6). To calculate P(A|B), we count the number of outcomes 2 or 3 in the sample space B = {2, 4, 6}. Then we divide that by the number of outcomes B (rather than S).\nWe get the same result by using the formula. Remember that S has six outcomes.\nP(A|B) = $\\frac{P(A \\text{AND} B)}{P(B)}=\\frac{\\frac{(\\text{the number of outcomes that are 2 or 3 and even in} S)}{6}}{\\frac{(\\text{the number of outcomes that are even in} S)}{6}}=\\frac{\\frac{1}{6}}{\\frac{3}{6}}=\\frac{1}{3}$\nUnderstanding Terminology and Symbols\nIt is important to read each problem carefully to think about and understand what the events are. Understanding the wording is the first very important step in solving probability problems. Reread the problem several times if necessary. Clearly identify the event of interest. Determine whether there is a condition stated in the wording that would indicate that the probability is conditional; carefully identify the condition, if any.\nThe sample space S is the whole numbers starting at one and less than 20.\n- S = _____________________________\nLet event A = the even numbers and event B = numbers greater than 13.\n- A = _____________________, B = _____________________\n- P(A) = _____________, P(B) = ________________\n- A AND B = ____________________, A OR B = ________________\n- P(A AND B) = _________, P(A OR B) = _____________\n- A′ = _____________, P(A′) = _____________\n- P(A) + P(A′) = ____________\n- P(A|B) = ___________, P(B|A) = _____________; are the probabilities equal?\n- S = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19}\n- A = {2, 4, 6, 8, 10, 12, 14, 16, 18}, B = {14, 15, 16, 17, 18, 19}\n- P(A) = $\\frac{9}{19}$, P(B) = $\\frac{6}{19}$\n- A AND B = {14,16,18}, A OR B = {2, 4, 6, 8, 10, 12, 14, 15, 16, 17, 18, 19}\n- P(A AND B) = $\\frac{3}{19}$, P(A OR B) = $\\frac{12}{19}$\n- A′ = 1, 3, 5, 7, 9, 11, 13, 15, 17, 19; P(A′) = $\\frac{10}{19}$\n- P(A) + P(A′) = 1 ($\\frac{9}{19}$ + $\\frac{10}{19}$ = 1)\n- P(A|B) = $\\frac{P(A\\text{AND}B)}{P(B)}$ = $\\frac{3}{6}$, P(B|A) = $\\frac{P(A\\text{AND}B)}{P(A)}$ = $\\frac{3}{9}$, No\nTry It\nThe sample space S is all the ordered pairs of two whole numbers, the first from one to three and the second from one to four (Example: (1, 4)).\n- S = _____________________________ Let event A = the sum is even and event B = the first number is prime.\n- A = _____________________, B = _____________________\n- P(A) = _____________, P(B) = ________________\n- A AND B = ____________________, A OR B = ________________\n- P(A AND B) = _________, P(A OR B) = _____________\n- B′ = _____________, P(B′) = _____________\n- P(A) + P(A′) = ____________\n- P(A|B) = ___________, P(B|A) = _____________; are the probabilities equal?\nA fair, six-sided die is rolled. Describe the sample space S, identify each of the following events with a subset of S and compute its probability (an outcome is the number of dots that show up).\n- Event T = the outcome is two.\n- Event A = the outcome is an even number.\n- Event B = the outcome is less than four.\n- The complement of A.\n- A GIVEN B\n- B GIVEN A\n- A AND B\n- A OR B\n- A OR B′\n- Event N = the outcome is a prime number.\n- Event I = the outcome is seven.\n- T = {2}, P(T) = $\\frac{1}{6}$\n- A = {2, 4, 6}, P(A) = $\\frac{1}{2}$\n- B = {1, 2, 3}, P(B) = $\\frac{1}{2}$\n- A′ = {1, 3, 5}, P(A′) = $\\frac{1}{2}$\n- A|B = {2}, P(A|B) = $\\frac{1}{3}$\n- B|A = {2}, P(B|A) = $\\frac{1}{3}$\n- A AND B = {2}, P(A AND B) = $\\frac{1}{6}$\n- A OR B = {1, 2, 3, 4, 6}, P(A OR B) = $\\frac{5}{6}$\n- A OR B′ = {2, 4, 5, 6}, P(A OR B′) = $\\frac{2}{3}$\n- N = {2, 3, 5}, P(N) = $\\frac{1}{2}$\n- A six-sided die does not have seven dots. P(7) = 0.\nTry It\nA number is randomly selected between 1 to 10. Describe the sample space S, identify each of the following events with a subset of S, and compute its probability (an outcome is the number selected).\n- Event F = the outcome is 5.\n- Event A = the number is more than 6.\n- Event B = the number is odd.\n- The complement of B.\n- A GIVEN B.\n- B GIVEN A.\n- A OR B.\n- A’ OR B.\n- Event P = the outcome is a composite number.\n- Event M = the number is a multiple of 3.\n- $F=5,P(F)=\\frac{1}{10}$\n- $A=\\left{ 7,8,9 \\right},P(A)=\\frac{3}{10}$\n- $B=\\left{ 1,3,5,7,9 \\right},P(B)=\\frac{5}{10}$\n- $B'=\\left{ 2,4,6,8,10 \\right},P(B')=\\frac{5}{10}$\n- $A|B=\\left{ 7,9 \\right},P\\left{ A|B \\right}=\\frac{2}{5}$\n- $B|A=\\left{ 7,9 \\right},P(B|A)=\\frac{1}{2}$\n- $AORB=\\left{ 1,3,5,7,8,9,10 \\right},P(AORB)=\\frac{7}{10}$\n- $A'ORB=\\left{ 1,2,3,4,5,6,7,9 \\right},P(A'ORB)=\\frac{4}{5}$\n- $P=\\left{ 4,6,8,9,10 \\right},P(P)=\\frac{1}{2}$\n- $M=\\left{ 3,6,9 \\right},P(M)=\\frac{3}{10}$\nTable describes the distribution of a random sample S of 100 individuals, organized by sex assigned at birth and whether they are right- or left-handed.\nRight-handed | Left-handed\nMales | 43 | 9\nFemales | 44 | 4\nLet’s denote the events M = the subject is male, F = the subject is female, R = the subject is right-handed, L = the subject is left-handed. Compute the following probabilities:\n- P(M)\n- P(F)\n- P(R)\n- P(L)\n- P(M AND R)\n- P(F AND L)\n- P(M OR F)\n- P(M OR R)\n- P(F OR L)\n- P(M')\n- P(R|M)\n- P(F|L)\n- P(L|F)\n- P(M) = 0.52\n- P(F) = 0.48\n- P(R) = 0.87\n- P(L) = 0.13\n- P(M AND R) = 0.43\n- P(F AND L) = 0.04\n- P(M OR F) = 1\n- P(M OR R) = 0.96\n- P(F OR L) = 0.57\n- P(M') = 0.48\n- P(R|M) = 0.8269 (rounded to four decimal places)\n- P(F|L) = 0.3077 (rounded to four decimal places)\n- P(L|F) = 0.0833\nTry It\nThe table describes the distribution of a random sample S of 100 individuals, organized by gender and whether they like tea or coffee.\nTea | Coffee\nMen | 22 | 26\nWomen | 16 | 36\nLet's denote the events M = the subject is a man, W = the subject is a woman, T = the subject likes tea, and C = the subject likes coffee. Compute the following probabilities:\n- P(M)\n- P(W)\n- P(T)\n- P(C)\n- P(M AND T)\n- P(W and C)\n- P(M OR W)\n- P(M OR T)\n- P(W OR C)\n- P(M')\n- P(T|M)\n- P(W|C)\n- P(C|W)\n- $P(M)=0.48$\n- $P(W)=0.52$\n- $P(T)=0.38$\n- $P(C)=0.62$\n- $P(MANDT)=0.22$\n- $P(WandC)=0.36$\n- $P(MORW)=1$\n- $P(MORT)=0.64$\n- $P(WORC)=0.78$\n- $P(M')=0.52$\n- $P(T|M)=0.4583$ (rounded to four decimal places)\n- $P(W|C)=0.5806$ (rounded to four decimal places)\n- $P(C|W)=0.6923$ (rounded to four decimal places)\nReferences\n“Countries List by Continent.” Worldatlas, 2013. Available online at http://www.worldatlas.com/cntycont.htm (accessed May 2, 2013).\nChapter Review\nIn this module we learned the basic terminology of probability. The set of all possible outcomes of an experiment is called the sample space. Events are subsets of the sample space, and they are assigned a probability that is a number between zero and one, inclusive.\nFormula Review\nA and B are events\nP(S) = 1 where S is the sample space\n0 ≤ P(A) ≤ 1\nP(A|B) = $\\frac{P\\text{(}A\\text{AND}B\\text{)}}{P\\text{(}B\\text{)}}$\nIn a particular college class, there are men and women students. Some students have long hair and some students have short hair. Write the symbols for the probabilities of the events for parts a through j. (Note that you cannot find numerical answers here. You were not given enough information to find any probability values yet; concentrate on understanding the symbols.)\n- Let W be the event that a student is a woman.\n- Let M be the event that a student is a man.\n- Let S be the event that a student has short hair.\n- Let L be the event that a student has long hair.\n- The probability that a student does not have long hair.\n- The probability that a student is a man or has short hair.\n- The probability that a student is a woman and has long hair.\n- The probability that a student is a man, given that the student has long hair.\n- The probability that a student has long hair, given that the student is a man.\n- Of all the women students, the probability that a student has short hair.\n- Of all students with long hair, the probability that a student is a woman.\n- The probability that a student is a woman or has long hair.\n- The probability that a randomly selected student is a man student with short hair.\n- The probability that a student is a woman.\n- P(L′) = P(S)\n- P(M OR S)\n- P(F AND L)\n- P(M|L)\n- P(L|M)\n- P(S|F)\n- P(W|L)\n- P(F OR L)\n- P(M AND S)\n- P(F)\nUse the following information to answer the next four exercises. A box is filled with several party favors. It contains 12 hats, 15 noisemakers, ten finger traps, and five bags of confetti. One party favor is chosen from the box at random. Let H = the event of getting a hat. Let N = the event of getting a noisemaker. Let F = the event of getting a finger trap. Let C = the event of getting a bag of confetti.\nFind P(H).\nFind P(N).\nP(N) = $\\frac{15}{42}$ = $\\frac{5}{14}$ = 0.36\nFind P(F).\nFind P(C).\nP(C) = $\\frac{5}{42}$ = 0.12\nUse the following information to answer the next six exercises. A jar of 150 jelly beans contains 22 red jelly beans, 38 yellow, 20 green, 28 purple, 26 blue, and the rest are orange. One jelly bean is chosen from the box at random. Let B = the event of getting a blue jelly bean Let G = the event of getting a green jelly bean. Let O = the event of getting an orange jelly bean. Let P = the event of getting a purple jelly bean. Let R = the event of getting a red jelly bean. Let Y = the event of getting a yellow jelly bean.\nFind P(B).\nFind P(G).\nP(G) = $\\frac{20}{150}$ = $\\frac{2}{15}$ = 0.13\nFind P(P).\nFind P(R).\nP(R) = $\\frac{22}{150}$ = $\\frac{11}{75}$ = 0.15\nFind P(Y).\nFind P(O).\nP(O) = $\\frac{150-22-38-20-28-26}{150}$ = $\\frac{16}{150}$ = $\\frac{8}{75}$ = 0.11\nUse the following information to answer the next six exercises. There are 23 countries in North America, 12 countries in South America, 47 countries in Europe, 44 countries in Asia, 54 countries in Africa, and 14 in Oceania (Pacific Ocean region). Let A = the event that a country is in Asia. Let E = the event that a country is in Europe. Let F = the event that a country is in Africa. Let N = the event that a country is in North America. Let O = the event that a country is in Oceania. Let S = the event that a country is in South America.\nFind P(A).\nFind P(E).\nP(E) = $\\frac{47}{194}$ = 0.24\nFind P(F).\nFind P(N).\nP(N) = $\\frac{23}{194}$ = 0.12\nFind P(O).\nFind P(S).\nP(S) = $\\frac{12}{194}$ = $\\frac{6}{97}$ = 0.06\nWhat is the probability of drawing a red card in a standard deck of 52 cards?\nWhat is the probability of drawing a club in a standard deck of 52 cards?\n$\\frac{13}{52}$ = $\\frac{1}{4}$ = 0.25\nWhat is the probability of rolling an even number of dots with a fair, six-sided die numbered one through six?\nWhat is the probability of rolling a prime number of dots with a fair, six-sided die numbered one through six?\n$\\frac{3}{6}$ = $\\frac{1}{2}$ = 0.5\nUse the following information to answer the next two exercises. You see a game at a local fair. You have to throw a dart at a color wheel. Each section on the color wheel is equal in area.\n[Image: A colorful circular design featuring eight equal segments, alternately colored in shades of pink, light blue, mint green, and pale yellow, creating a vibrant, segmented wheel.]\nLet B = the event of landing on blue. Let R = the event of landing on red. Let G = the event of landing on green. Let Y = the event of landing on yellow.\nIf you land on Y, you get the biggest prize. Find P(Y).\nIf you land on red, you don’t get a prize. What is P(R)?\n$P(R)=\\frac{4}{8}=0.5$\nUse the following information to answer the next ten exercises. On a baseball team, there are infielders and outfielders. Some players are great hitters, and some players are not great hitters. Let I = the event that a player in an infielder. Let O = the event that a player is an outfielder. Let H = the event that a player is a great hitter. Let N = the event that a player is not a great hitter.\nWrite the symbols for the probability that a player is not an outfielder.\nWrite the symbols for the probability that a player is an outfielder or is a great hitter.\nP(O OR H)\nWrite the symbols for the probability that a player is an infielder and is not a great hitter.\nWrite the symbols for the probability that a player is a great hitter, given that the player is an infielder.\nP(H|I)\nWrite the symbols for the probability that a player is an infielder, given that the player is a great hitter.\nWrite the symbols for the probability that of all the outfielders, a player is not a great hitter.\nP(N|O)\nWrite the symbols for the probability that of all the great hitters, a player is an outfielder.\nWrite the symbols for the probability that a player is an infielder or is not a great hitter.\nP(I OR N)\nWrite the symbols for the probability that a player is an outfielder and is a great hitter.\nWrite the symbols for the probability that a player is an infielder.\nP(I)\nWhat is the word for the set of all possible outcomes?\nWhat is conditional probability?\nThe likelihood that an event will occur given that another event has already occurred.\nA shelf holds 12 books. Eight are fiction and the rest are nonfiction. Each is a different book with a unique title. The fiction books are numbered one to eight. The nonfiction books are numbered one to four. Randomly select one book Let F = event that book is fiction Let N = event that book is nonfiction What is the sample space?\nWhat is the sum of the probabilities of an event and its complement?\n1\nUse the following information to answer the next two exercises. You are rolling a fair, six-sided number cube. Let E = the event that it lands on an even number. Let M = the event that it lands on a multiple of three.\nWhat does P(E|M) mean in words?\nWhat does P(E OR M) mean in words?\nthe probability of landing on an even number or a multiple of three\nHomework\n[Image: This is a bar graph with three bars for each category on the x-axis: age groups, gender, and total. The first bar shows the number of people in the category. The second bar shows the percent in the category that approve, and the third bar shows percent in the category that disapprove. The y-axis has intervals of 200 from 0–1200.]\nThe graph in Figure displays the sample sizes and percentages of people in different age and gender groups who were polled concerning their approval of Mayor Ford’s actions in office. The total number in the sample of all the age groups is 1,045.\n- Define three events in the graph.\n- Describe in words what the entry 40 means.\n- Describe in words the complement of the entry in question 2.\n- Describe in words what the entry 30 means.\n- Out of the men and women, what percent are men?\n- Out of the women, what percent disapprove of Mayor Ford?\n- Out of all the age groups, what percent approve of Mayor Ford?\n- Find P(Approve|Men).\n- Out of the age groups, what percent are more than 44 years old?\n- Find P(Approve|Age < 35).\nExplain what is wrong with the following statements. Use complete sentences.\n- If there is a 60% chance of rain on Saturday and a 70% chance of rain on Sunday, then there is a 130% chance of rain over the weekend.\n- The probability that a baseball player hits a home run is greater than the probability that he gets a successful hit.\n- You can't calculate the joint probability knowing the probability of both events occurring, which is not in the information given; the probabilities should be multiplied, not added; and probability is never greater than 100%\n- A home run by definition is a successful hit, so he has to have at least as many successful hits as home runs.\n\nGlossary\nConditional Probability the likelihood that an event will occur given that another event has already occurred\nEqually Likely Each outcome of an experiment has the same probability.\nEvent a subset of the set of all outcomes of an experiment; the set of all outcomes of an experiment is called a sample space and is usually denoted by S. An event is an arbitrary subset in S. It can contain one outcome, two outcomes, no outcomes (empty subset), the entire sample space, and the like. Standard notations for events are capital letters such as A, B, C, and so on.\nExperiment a planned activity carried out under controlled conditions\nOutcome a particular result of an experiment\nProbability a number between zero and one, inclusive, that gives the likelihood that a specific event will occur; the foundation of statistics is given by the following 3 axioms (by A.N. Kolmogorov, 1930’s): Let S denote the sample space and A and B are two events in S. Then:\n- 0 ≤ P(A) ≤ 1\n- If A and B are any two mutually exclusive events, then P(A OR B) = P(A) + P(B).\n- P(S) = 1\nSample Space the set of all possible outcomes of an experiment\nAND Event An outcome is in the event A AND B if the outcome is in both A AND B at the same time.\nComplement Event The complement of event A consists of all outcomes that are NOT in A.\nConditional Probability of A GIVEN B P(A|B) is the probability that event A will occur given that the event B has already occurred.\nOr Event An outcome is in the event A OR B if the outcome is in A or is in B or is in both A and B."}
{"document_id": "openstax-intro-statistics-m46948", "title": "Probability Topics — Independent and Mutually Exclusive Events", "source": "https://openstax.org/books/introductory-statistics-2e/pages/3-2-independent-and-mutually-exclusive-events", "license": "CC-BY-4.0", "text": "Independent and mutually exclusive do not mean the same thing.\nIndependent Events\nTwo events are independent if the following are true:\n- P(A|B) = P(A)\n- P(B|A) = P(B)\n- P(A AND B) = P(A)P(B)\nTwo events A and B are independent events if the knowledge that one occurred does not affect the chance the other occurs. For example, the outcomes of two roles of a fair die are independent events. The outcome of the first roll does not change the probability for the outcome of the second roll. To show two events are independent, you must show only one of the above conditions. If two events are NOT independent, then we say that they are dependent events.\nSampling may be done with replacement or without replacement.\n- With replacement: If each member of a population is replaced after it is picked, then that member has the possibility of being chosen more than once. When sampling is done with replacement, then events are considered to be independent, meaning the result of the first pick will not change the probabilities for the second pick.\n- Without replacement: When sampling is done without replacement, each member of a population may be chosen only once. In this case, the probabilities for the second pick are affected by the result of the first pick. The events are considered to be dependent or not independent.\nIf it is not known whether A and B are independent or dependent, assume they are dependent until you can show otherwise.\nYou have a fair, well-shuffled deck of 52 cards. It consists of four suits. The suits are clubs, diamonds, hearts and spades. There are 13 cards in each suit consisting of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, J (jack), Q (queen), K (king) of that suit.\na. Sampling with replacement: Suppose you pick three cards with replacement. The first card you pick out of the 52 cards is the Q of spades. You put this card back, reshuffle the cards and pick a second card from the 52-card deck. It is the ten of clubs. You put this card back, reshuffle the cards and pick a third card from the 52-card deck. This time, the card is the Q of spades again. Your picks are {Q of spades, ten of clubs, Q of spades}. You have picked the Q of spades twice. You pick each card from the 52-card deck.\nb. Sampling without replacement: Suppose you pick three cards without replacement. The first card you pick out of the 52 cards is the K of hearts. You put this card aside and pick the second card from the 51 cards remaining in the deck. It is the three of diamonds. You put this card aside and pick the third card from the remaining 50 cards in the deck. The third card is the J of spades. Your picks are {K of hearts, three of diamonds, J of spades}. Because you have picked the cards without replacement, you cannot pick the same card twice.\nTry It\nYou have a fair, well-shuffled deck of 52 cards. It consists of four suits. The suits are clubs, diamonds, hearts and spades. There are 13 cards in each suit consisting of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, J (jack), Q (queen), K (king) of that suit. Three cards are picked at random.\n- Suppose you know that the picked cards are Q of spades, K of hearts and Q of spades. Can you decide if the sampling was with or without replacement?\n- Suppose you know that the picked cards are Q of spades, K of hearts, and J of spades. Can you decide if the sampling was with or without replacement?\nYou have a fair, well-shuffled deck of 52 cards. It consists of four suits. The suits are clubs, diamonds, hearts, and spades. There are 13 cards in each suit consisting of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, J (jack), Q (queen), and K (king) of that suit. S = spades, H = Hearts, D = Diamonds, C = Clubs.\n- Suppose you pick four cards, but do not put any cards back into the deck. Your cards are QS, 1D, 1C, QD.\n- Suppose you pick four cards and put each card back before you pick the next card. Your cards are KH, 7D, 6D, KH.\nWhich of a. or b. did you sample with replacement and which did you sample without replacement?\na. Without replacement; b. With replacement\nTry It\nYou have a fair, well-shuffled deck of 52 cards. It consists of four suits. The suits are clubs, diamonds, hearts, and spades. There are 13 cards in each suit consisting of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, J (jack), Q (queen), and K (king) of that suit. S = spades, H = Hearts, D = Diamonds, C = Clubs. Suppose that you sample four cards without replacement. Which of the following outcomes are possible? Answer the same question for sampling with replacement.\n- QS, 1D, 1C, QD\n- KH, 7D, 6D, KH\n- QS, 7D, 6D, KS\nMutually Exclusive Events\nA and B are mutually exclusive events if they cannot occur at the same time. This means that A and B do not share any outcomes and P(A AND B) = 0.\nFor example, suppose the sample space S = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}. Let A = {1, 2, 3, 4, 5}, B = {4, 5, 6, 7, 8}, and C = {7, 9}. A AND B = {4, 5}. P(A AND B) = $\\frac{2}{10}$ and is not equal to zero. Therefore, A and B are not mutually exclusive. A and C do not have any numbers in common so P(A AND C) = 0. Therefore, A and C are mutually exclusive.\nIf it is not known whether A and B are mutually exclusive, assume they are not until you can show otherwise. The following examples illustrate these definitions and terms.\nFlip two fair coins. (This is an experiment.)\nThe sample space is {HH, HT, TH, TT} where T = tails and H = heads. The outcomes are HH, HT, TH, and TT. The outcomes HT and TH are different. The HT means that the first coin showed heads and the second coin showed tails. The TH means that the first coin showed tails and the second coin showed heads.\n- Let A = the event of getting at most one tail. (At most one tail means zero or one tail.) Then A can be written as {HH, HT, TH}. The outcome HH shows zero tails. HT and TH each show one tail.\n- Let B = the event of getting all tails. B can be written as {TT}. B is the complement of A, so B = A′. Also, P(A) + P(B) = P(A) + P(A′) = 1.\n- The probabilities for A and for B are P(A) = $\\frac{3}{4}$ and P(B) = $\\frac{1}{4}$.\n- Let C = the event of getting all heads. C = {HH}. Since B = {TT}, P(B AND C) = 0. B and C are mutually exclusive. (B and C have no members in common because you cannot have all tails and all heads at the same time.)\n- Let D = event of getting more than one tail. D = {TT}. P(D) = $\\frac{1}{4}$\n- Let E = event of getting a head on the first roll. (This implies you can get either a head or tail on the second roll.) E = {HT, HH}. P(E) = $\\frac{2}{4}$\n- Find the probability of getting at least one (one or two) tail in two flips. Let F = event of getting at least one tail in two flips. F = {HT, TH, TT}. P(F) = $\\frac{3}{4}$\nTry It\nDraw two cards from a standard 52-card deck with replacement. Find the probability of getting at least one black card.\nFlip two fair coins. Find the probabilities of the events.\n- Let F = the event of getting at most one tail (zero or one tail).\n- Let G = the event of getting two faces that are the same.\n- Let H = the event of getting a head on the first flip followed by a head or tail on the second flip.\n- Are F and G mutually exclusive?\n- Let J = the event of getting all tails. Are J and H mutually exclusive?\nLook at the sample space in Example.\n- Zero (0) or one (1) tails occur when the outcomes HH, TH, HT show up. P(F) = $\\frac{3}{4}$\n- Two faces are the same if HH or TT show up. P(G) = $\\frac{2}{4}$\n- A head on the first flip followed by a head or tail on the second flip occurs when HH or HT show up. P(H) = $\\frac{2}{4}$\n- F and G share HH so P(F AND G) is not equal to zero (0). F and G are not mutually exclusive.\n- Getting all tails occurs when tails shows up on both coins (TT). H’s outcomes are HH and HT.\nJ and H have nothing in common so P(J AND H) = 0. J and H are mutually exclusive.\nTry It\nA box has two balls, one white and one red. We select one ball, put it back in the box, and select a second ball (sampling with replacement). Find the probability of the following events:\n- Let F = the event of getting the white ball twice.\n- Let G = the event of getting two balls of different colors.\n- Let H = the event of getting white on the first pick.\n- Are F and G mutually exclusive?\n- Are G and H mutually exclusive?\nRoll one fair, six-sided die. The sample space is {1, 2, 3, 4, 5, 6}. Let event A = a face is odd. Then A = {1, 3, 5}. Let event B = a face is even. Then B = {2, 4, 6}.\n- Find the complement of A, A′. The complement of A, A′, is B because A and B together make up the sample space. P(A) + P(B) = P(A) + P(A′) = 1. Also, P(A) = $\\frac{3}{6}$ and P(B) = $\\frac{3}{6}$.\n- Let event C = odd faces larger than two. Then C = {3, 5}. Let event D = all even faces smaller than five. Then D = {2, 4}. P(C AND D) = 0 because you cannot have an odd and even face at the same time. Therefore, C and D are mutually exclusive events.\n- Let event E = all faces less than five. E = {1, 2, 3, 4}.\nAre C and E mutually exclusive events? (Answer yes or no.) Why or why not?\nNo. C = {3, 5} and E = {1, 2, 3, 4}. P(C AND E) = $\\frac{1}{6}$. To be mutually exclusive, P(C AND E) must be zero.\n- Find P(C|A). This is a conditional probability. Recall that the event C is {3, 5} and event A is {1, 3, 5}. To find P(C|A), find the probability of C using the sample space A. You have reduced the sample space from the original sample space {1, 2, 3, 4, 5, 6} to {1, 3, 5}. So, P(C|A) = $\\frac{2}{3}$.\nTry It\nLet event A = learning Spanish. Let event B = learning German. Then A AND B = learning Spanish and German. Suppose P(A) = 0.4 and P(B) = 0.2. P(A AND B) = 0.08. Are events A and B independent? Hint: You must show ONE of the following:\n- P(A|B) = P(A)\n- P(B|A) = P(B)\n- P(A AND B) = P(A)P(B)\nP(A|B) = $\\frac{P(A\\text{AND}B)}{P(B)}\\text{=}\\frac{0.\\text{08}}{0.2}\\text{= 0}\\text{.4 =}P(A)$\nThe events are independent because P(A|B) = P(A).\nLet event G = taking a math class. Let event H = taking a science class. Then, G AND H = taking a math class and a science class. Suppose P(G) = 0.6, P(H) = 0.5, and P(G AND H) = 0.3. Are G and H independent?\nIf G and H are independent, then you must show ONE of the following:\n- P(G|H) = P(G)\n- P(H|G) = P(H)\n- P(G AND H) = P(G)P(H)\nNOTE\nThe choice you make depends on the information you have. You could choose any of the methods here because you have the necessary information.\na. Show that P(G|H) = P(G).\nP(G|H) = $\\frac{P\\text{(}G\\text{AND}H\\text{)}}{P\\text{(}H\\text{)}}$ = $\\frac{\\text{0}\\text{.3}}{\\text{0}\\text{.5}}$ = 0.6 = P(G)\nb. Show P(G AND H) = P(G)P(H).\nP(G)P(H) = (0.6)(0.5) = 0.3 = P(G AND H)\nSince G and H are independent, knowing that a person is taking a science class does not change the chance that they are taking a math class. If the two events had not been independent (that is, they are dependent) then knowing that a person is taking a science class would change the chance they are taking math. For practice, show that P(H|G) = P(H) to show that G and H are independent events.\nTry It\nIn a bag, there are six red marbles and four green marbles. The red marbles are marked with the numbers 1, 2, 3, 4, 5, and 6. The green marbles are marked with the numbers 1, 2, 3, and 4.\n- R = a red marble\n- G = a green marble\n- O = an odd-numbered marble\n- The sample space is S = {R1, R2, R3, R4, R5, R6, G1, G2, G3, G4}.\nS has ten outcomes. What is P(G AND O)?\nLet event C = taking an English class. Let event D = taking a speech class.\nSuppose P(C) = 0.75, P(D) = 0.3, P(C|D) = 0.75 and P(C AND D) = 0.225.\nJustify your answers to the following questions numerically.\n- Are C and D independent?\n- Are C and D mutually exclusive?\n- What is P(D|C)?\n- Yes, because P(C|D) = P(C).\n- No, because P(C AND D) is not equal to zero.\n- P(D|C) = $\\frac{P\\text{(}C\\text{AND}D\\text{)}}{P\\text{(}C\\text{)}}$ = $\\frac{\\text{0}\\text{.225}}{0.75}$ = 0.3\nTry It\nA student goes to the library. Let events B = the student checks out a book and D = the student checks out a DVD. Suppose that P(B) = 0.40, P(D) = 0.30 and P(B AND D) = 0.20.\n- Find P(B|D).\n- Find P(D|B).\n- Are B and D independent?\n- Are B and D mutually exclusive?\nIn a box there are three red cards and five blue cards. The red cards are marked with the numbers 1, 2, and 3, and the blue cards are marked with the numbers 1, 2, 3, 4, and 5. The cards are well-shuffled. You reach into the box (you cannot see into it) and draw one card.\nLet R = red card is drawn, B = blue card is drawn, E = even-numbered card is drawn.\nThe sample space S = R1, R2, R3, B1, B2, B3, B4, B5. S has eight outcomes.\n- P(R) = $\\frac{3}{8}$. P(B) = $\\frac{5}{8}$. P(R AND B) = 0. (You cannot draw one card that is both red and blue.)\n- P(E) = $\\frac{3}{8}$. (There are three even-numbered cards, R2, B2, and B4.)\n- P(E|B) = $\\frac{2}{5}$. (There are five blue cards: B1, B2, B3, B4, and B5. Out of the blue cards, there are two even cards; B2 and B4.)\n- P(B|E) = $\\frac{2}{3}$. (There are three even-numbered cards: R2, B2, and B4. Out of the even-numbered cards, to are blue; B2 and B4.)\n- The events R and B are mutually exclusive because P(R AND B) = 0.\n- Let G = card with a number greater than 3. G = {B4, B5}. P(G) = $\\frac{2}{8}$. Let H = blue card numbered between one and four, inclusive. H = {B1, B2, B3, B4}. P(G|H) = $\\frac{1}{4}$. (The only card in H that has a number greater than three is B4.) Since $\\frac{2}{8}$ = $\\frac{1}{4}$, P(G) = P(G|H), which means that G and H are independent.\nTry It\nIn a basketball arena,\n- 70% of the fans are rooting for the home team.\n- 25% of the fans are wearing blue.\n- 20% of the fans are wearing blue and are rooting for the away team.\n- Of the fans rooting for the away team, 67% are wearing blue.\nLet A be the event that a fan is rooting for the away team. Let B be the event that a fan is wearing blue. Are the events of rooting for the away team and wearing blue independent? Are they mutually exclusive?\nIn a particular college class, 60% of the students are women. Fifty percent of all students in the class have long hair. Forty-five percent of the students are women and have long hair. Of the women students, 75% have long hair. Let W be the event that a student is a women. Let L be the event that a student has long hair. One student is picked randomly. Are the events of being a woman and having long hair independent?\n- The following probabilities are given in this example:\n- P(W) = 0.60; P(L) = 0.50\n- P(W AND L) = 0.45\n- P(L|W) = 0.75\nNOTE\nThe choice you make depends on the information you have. You could use the first or last condition on the list for this example. You do not know P(W|L) yet, so you cannot use the second condition.\n>Check whether P(W AND L) = P(W)P(L). We are given that P(W AND L) = 0.45, but P(W)P(L) = (0.60)(0.50) = 0.30. The events of being a woman and having long hair are not independent because P(W AND L) does not equal P(W)P(L).\nCheck whether P(L|W) equals P(L). We are given that P(L|W) = 0.75, but P(L) = 0.50; they are not equal. The events of being a woman and having long hair are not independent.\nThe events of being a woman and having long hair are not independent; knowing that a student is a woman changes the probability that a student has long hair.\nTry It\nMark is deciding which route to take to work. His choices are I = the Interstate and F = Fifth Street.\n- P(I) = 0.44 and P(F) = 0.56\n- P(I AND F) = 0 because Mark will take only one route to work.\nWhat is the probability of P(I OR F)?\n- Toss one fair coin (the coin has two sides, H and T). The outcomes are ________. Count the outcomes. There are ____ outcomes.\n- Toss one fair, six-sided die (the die has 1, 2, 3, 4, 5 or 6 dots on a side). The outcomes are ________________. Count the outcomes. There are ___ outcomes.\n- Multiply the two numbers of outcomes. The answer is _______.\n- If you flip one fair coin and follow it with the toss of one fair, six-sided die, the answer in part c. is the number of outcomes (size of the sample space). What are the outcomes? (Hint: Two of the outcomes are H1 and T6.)\n- Event A = heads (H) on the coin followed by an even number (2, 4, 6) on the die. A = {_________________}. Find P(A).\n- Event B = heads on the coin followed by a three on the die. B = {________}. Find P(B).\n- Are A and B mutually exclusive? (Hint: What is P(A AND B)? If P(A AND B) = 0, then A and B are mutually exclusive.)\n- Are A and B independent? (Hint: Is P(A AND B) = P(A)P(B)? If P(A AND B) = P(A)P(B), then A and B are independent. If not, then they are dependent).\n- H and T; 2\n- 1, 2, 3, 4, 5, 6; 6\n- 2(6) = 12\n- T1, T2, T3, T4, T5, T6, H1, H2, H3, H4, H5, H6\n- A = {H2, H4, H6}; P(A) = $\\frac{\\text{3}}{12}$\n- B = {H3}; P(B) = $\\frac{\\text{1}}{12}$\n- Yes, because P(A AND B) = 0\n- P(A AND B) = 0.P(A)P(B) = $(\\frac{\\text{3}}{12})$$(\\frac{\\text{1}}{12})$. P(A AND B) does not equal P(A)P(B), so A and B are dependent.\nTry It\nA box has two balls, one white and one red. We select one ball, put it back in the box, and select a second ball (sampling with replacement). Let T be the event of getting the white ball twice, F the event of picking the white ball first, S the event of picking the white ball in the second drawing.\n- Compute P(T).\n- Compute P(T|F).\n- Are T and F independent?.\n- Are F and S mutually exclusive?\n- Are F and S independent?\nReferences\nLopez, Shane, Preety Sidhu. “U.S. Teachers Love Their Lives, but Struggle in the Workplace.” Gallup Wellbeing, 2013. http://www.gallup.com/poll/161516/teachers-love-lives-struggle-workplace.aspx (accessed May 2, 2013).\nData from Gallup. Available online at www.gallup.com/ (accessed May 2, 2013).\nChapter Review\nTwo events A and B are independent if the knowledge that one occurred does not affect the chance the other occurs. If two events are not independent, then we say that they are dependent.\nIn sampling with replacement, each member of a population is replaced after it is picked, so that member has the possibility of being chosen more than once, and the events are considered to be independent. In sampling without replacement, each member of a population may be chosen only once, and the events are considered not to be independent. When events do not share outcomes, they are mutually exclusive of each other.\nFormula Review\nIf A and B are independent, P(A AND B) = P(A)P(B), P(A|B) = P(A) and P(B|A) = P(B).\nIf A and B are mutually exclusive, P(A OR B) = P(A) + P(B) and P(A AND B) = 0.\nE and F are mutually exclusive events. P(E) = 0.4; P(F) = 0.5. Find P(E∣F).\nJ and K are independent events. P(J|K) = 0.3. Find P(J).\nP(J) = 0.3\nU and V are mutually exclusive events. P(U) = 0.26; P(V) = 0.37. Find:\n- P(U AND V) =\n- P(U|V) =\n- P(U OR V) =\nQ and R are independent events. P(Q) = 0.4 and P(Q AND R) = 0.1. Find P(R).\nP(Q AND R) = P(Q)P(R)\n0.1 = (0.4)P(R)\nP(R) = 0.25\nHomework\nUse the following information to answer the next 12 exercises. The graph shown is based on more than 170,000 interviews done by Gallup that took place from January through December in a certain year. The sample consists of employed Americans 18 years of age or older. The Emotional Health Index Scores are the sample space. We randomly sample one Emotional Health Index Score.\n[Image: emotional health index score]\nFind the probability that the selected occupation has an Emotional Health Index Score of 82.7.\nFind the probability that the selected occupation has an Emotional Health Index Score of 81.0.\nFind the probability that the selected occupation has an Emotional Health Index Score more than 81.\nFind the probability that the selected occupation has an Emotional Health Index Score between 80.5 and 82.\nIf we know an occupation has an Emotional Health Index Score of 81.5 or more, what is the probability that it is 82.7?\nWhat is the probability that an occupation has an Emotional Health Index Score of 80.7 or 82.7?\nWhat is the probability that an occupation has an Emotional Health Index Score less than 80.2 given that it is already less than 81?\nWhat occupation has the highest Emotional Health Index Score?\nWhat occupation has the lowest Emotional Health Index Score?\nWhat is the range of the data?\nCompute the average EHIS.\nIf all occupations are equally likely for a certain individual, what is the probability that they will have an occupation with lower than average EHIS?\nBringing It Together\nA previous year, the weights of the members of the San Francisco 49ers and the Dallas Cowboys were published in the San Jose Mercury News. The factual data are compiled into Table.\nShirt# | ≤ 210 | 211–250 | 251–290 | 290≤\n1–33 | 21 | 5 | 0 | 0\n34–66 | 6 | 18 | 7 | 4\n66–99 | 6 | 12 | 22 | 5\nFor the following, suppose that you randomly select one player from the 49ers or Cowboys.\nIf having a shirt number from one to 33 and weighing at most 210 pounds were independent events, then what should be true about P(Shirt# 1–33|≤ 210 pounds)?\nThe probability that a person develops cancer is 0.4567. The probability that a person has at least one false positive test result (meaning the test comes back for cancer when the person does not have it) is 0.51. Some of the following questions do not have enough information for you to answer them. Write “not enough information” for those answers. Let C = a person develops cancer and P = a person has at least one false positive.\n- P(C) = ______\n- P(P|C) = ______\n- P(P|C') = ______\n- If a test comes up positive, based upon numerical values, can you assume that a male has cancer? Justify numerically and explain why or why not.\n- P(C) = 0.4567\n- not enough information\n- not enough information\n- No, because over half (0.51) of men have at least one false positive text\nGiven events G and H: P(G) = 0.43; P(H) = 0.26; P(H AND G) = 0.14\n- Find P(H OR G).\n- Find the probability of the complement of event (H AND G).\n- Find the probability of the complement of event (H OR G).\nGiven events J and K: P(J) = 0.18; P(K) = 0.37; P(J OR K) = 0.45\n- Find P(J AND K).\n- Find the probability of the complement of event (J AND K).\n- Find the probability of the complement of event (J OR K).\n- P(J OR K) = P(J) + P(K) − P(J AND K); 0.45 = 0.18 + 0.37 - P(J AND K); solve to find P(J AND K) = 0.10\n- P(NOT (J AND K)) = 1 - P(J AND K) = 1 - 0.10 = 0.90\n- P(NOT (J OR K)) = 1 - P(J OR K) = 1 - 0.45 = 0.55\n\nGlossary\nDependent Events If two events are NOT independent, then we say that they are dependent.\nConditional Probability of One Event Given Another Event P(A|B) is the probability that event A will occur given that the event B has already occurred."}
{"document_id": "openstax-intro-statistics-m46947", "title": "Probability Topics — Two Basic Rules of Probability", "source": "https://openstax.org/books/introductory-statistics-2e/pages/3-3-two-basic-rules-of-probability", "license": "CC-BY-4.0", "text": "When calculating probability, there are two rules to consider when determining if two events are independent or dependent and if they are mutually exclusive or not.\nThe Multiplication Rule\nIf A and B are two events defined on a sample space, then: P(A AND B) = P(B)P(A|B).\nThis rule may also be written as: P(A|B) = $\\frac{P(A\\text{AND}B)}{P(B)}$\n(The probability of A given B equals the probability of A and B divided by the probability of B.)\nIf A and B are independent, then P(A|B) = P(A). Then P(A AND B) = P(A|B)P(B) becomes P(A AND B) = P(A)P(B).\nThe Addition Rule\nIf A and B are defined on a sample space, then: P(A OR B) = P(A) + P(B) - P(A AND B).\nIf A and B are mutually exclusive, then P(A AND B) = 0. Then P(A OR B) = P(A) + P(B) - P(A AND B) becomes P(A OR B) = P(A) + P(B).\nKlaus is trying to choose where to go on vacation. His two choices are: A = New Zealand and B = Alaska\n- Klaus can only afford one vacation. The probability that he chooses A is P(A) = 0.6 and the probability that he chooses B is P(B) = 0.35.\n- P(A AND B) = 0 because Klaus can only afford to take one vacation\n- Therefore, the probability that he chooses either New Zealand or Alaska is P(A OR B) = P(A) + P(B) = 0.6 + 0.35 = 0.95. Note that the probability that he does not choose to go anywhere on vacation must be 0.05.\nTry It\nAnna has to buy a new car. She has two choices, car A and car B. Anna can afford only one car. The probability that Anna will buy car A is $P(A)=0.25$, and the probability that Anna will buy car B is $P(B)=0.65$. Find:\n- $P(AANDB)$\n- $P(AORB)$\n- $P(AANDB)=0$ because it is given that Anna can afford only one car.\n- Since $P(AANDB)=0$, then $P(AORB)=P(A)+P(B)=0.25+0.65=0.9$. Note that the probability that Anna does not a car must be 0.1.\nCarlos plays college soccer. He makes a goal 65% of the time he shoots. Carlos is going to attempt two goals in a row in the next game. A = the event Carlos is successful on his first attempt. P(A) = 0.65. B = the event Carlos is successful on his second attempt. P(B) = 0.65. Carlos tends to shoot in streaks. The probability that he makes the second goal GIVEN that he made the first goal is 0.90.\na. What is the probability that he makes both goals?\nb. What is the probability that Carlos makes either the first goal or the second goal?\nc. Are A and B independent?\nd. Are A and B mutually exclusive?\na. The problem is asking you to find P(A AND B) = P(B AND A). Since P(B|A) = 0.90: P(B AND A) = P(B|A) P(A) = (0.90)(0.65) = 0.585\nCarlos makes the first and second goals with probability 0.585.\nb. The problem is asking you to find P(A OR B).\nP(A OR B) = P(A) + P(B) - P(A AND B) = 0.65 + 0.65 - 0.585 = 0.715\nCarlos makes either the first goal or the second goal with probability 0.715.\nc. No, they are not, because P(B AND A) = 0.585.\nP(B)P(A) = (0.65)(0.65) = 0.423\n0.423 ≠ 0.585 = P(B AND A)\nSo, P(B AND A) is not equal to P(B)P(A).\nd. No, they are not because P(A and B) = 0.585.\nTo be mutually exclusive, P(A AND B) must equal zero.\nTry It\nHelen plays basketball. For free throws, she makes the shot 75% of the time. Helen must now attempt two free throws. C = the event that Helen makes the first shot. P(C) = 0.75. D = the event Helen makes the second shot. P(D) = 0.75. The probability that Helen makes the second free throw given that she made the first is 0.85. What is the probability that Helen makes both free throws?\nA community swim team has 150 members. Seventy-five of the members are advanced swimmers. Forty-seven of the members are intermediate swimmers. The remainder are novice swimmers. Forty of the advanced swimmers practice four times a week. Thirty of the intermediate swimmers practice four times a week. Ten of the novice swimmers practice four times a week. Suppose one member of the swim team is chosen randomly.\na. What is the probability that the member is a novice swimmer?\nb. What is the probability that the member practices four times a week?\nc. What is the probability that the member is an advanced swimmer and practices four times a week?\nd. What is the probability that a member is an advanced swimmer and an intermediate swimmer? Are being an advanced swimmer and an intermediate swimmer mutually exclusive? Why or why not?\ne. Are being a novice swimmer and practicing four times a week independent events? Why or why not?\na. $\\frac{28}{150}$\nb. $\\frac{80}{150}$\nc. $\\frac{40}{150}$\nd. P(advanced AND intermediate) = 0, so these are mutually exclusive events. A swimmer cannot be an advanced swimmer and an intermediate swimmer at the same time.\ne. No, these are not independent events. P(novice AND practices four times per week) = 0.0667 P(novice)P(practices four times per week) = 0.0996 0.0667 ≠ 0.0996\nTry It\nA school has 200 seniors of whom 140 will be going to college next year. Forty will be going directly to work. The remainder are taking a gap year. Fifty of the seniors going to college play sports. Thirty of the seniors going directly to work play sports. Five of the seniors taking a gap year play sports. What is the probability that a senior is taking a gap year?\nFelicity attends Modesto JC in Modesto, CA. The probability that Felicity enrolls in a math class is 0.2 and the probability that she enrolls in a speech class is 0.65. The probability that she enrolls in a math class GIVEN that she enrolls in speech class is 0.25.\nLet: M = math class, S = speech class, M|S = math given speech\n- What is the probability that Felicity enrolls in math and speech? Find P(M AND S) = P(M|S)P(S).\n- What is the probability that Felicity enrolls in math or speech classes? Find P(M OR S) = P(M) + P(S) - P(M AND S).\n- Are M and S independent? Is P(M|S) = P(M)?\n- Are M and S mutually exclusive? Is P(M AND S) = 0?\na. 0.1625, b. 0.6875, c. No, d. No\nTry It\nA student goes to the library. Let events B = the student checks out a book and D = the student checks out a DVD. Suppose that P(B) = 0.40, P(D) = 0.30 and P(D|B) = 0.5.\n- Find P(B AND D).\n- Find P(B OR D).\nStudies show that about one woman in seven (approximately 14.3%) who live to be 90 will develop breast cancer. Suppose that of those women who develop breast cancer, a test is negative 2% of the time. Also suppose that in the general population of women, the test for breast cancer is negative about 85% of the time. Let B = woman develops breast cancer and let N = tests negative. Suppose one woman is selected at random.\na. What is the probability that the woman develops breast cancer? What is the probability that woman tests negative?\nb. Given that the woman has breast cancer, what is the probability that she tests negative?\nc. What is the probability that the woman has breast cancer AND tests negative?\nd. What is the probability that the woman has breast cancer or tests negative?\ne. Are having breast cancer and testing negative independent events?\nf. Are having breast cancer and testing negative mutually exclusive?\na. P(B) = 0.143; P(N) = 0.85\nb. P(N|B) = 0.02\nc. P(B AND N) = P(B)P(N|B) = (0.143)(0.02) = 0.0029\nd. P(B OR N) = P(B) + P(N) - P(B AND N) = 0.143 + 0.85 - 0.0029 = 0.9901\ne. No. P(N) = 0.85; P(N|B) = 0.02. So, P(N|B) does not equal P(N).\nf. No. P(B AND N) = 0.0029. For B and N to be mutually exclusive, P(B AND N) must be zero.\nTry It\nA school has 200 seniors of whom 140 will be going to college next year. Forty will be going directly to work. The remainder are taking a gap year. Fifty of the seniors going to college play sports. Thirty of the seniors going directly to work play sports. Five of the seniors taking a gap year play sports. What is the probability that a senior is going to college and plays sports?\nRefer to the information in Example. P = tests positive.\n- Given that a woman develops breast cancer, what is the probability that she tests positive. Find P(P|B) = 1 - P(N|B).\n- What is the probability that a woman develops breast cancer and tests positive. Find P(B AND P) = P(P|B)P(B).\n- What is the probability that a woman does not develop breast cancer. Find P(B′) = 1 - P(B).\n- What is the probability that a woman tests positive for breast cancer. Find P(P) = 1 - P(N).\na. 0.98; b. 0.1401; c. 0.857; d. 0.15\nTry It\nA student goes to the library. Let events B = the student checks out a book and D = the student checks out a DVD. Suppose that P(B) = 0.40, P(D) = 0.30 and P(D|B) = 0.5.\n- Find P(B′).\n- Find P(D AND B).\n- Find P(B|D).\n- Find P(D AND B′).\n- Find P(D|B′).\nReferences\nDiCamillo, Mark, Mervin Field. “The File Poll.” Field Research Corporation. Available online at http://www.field.com/fieldpollonline/subscribers/Rls2443.pdf (accessed May 2, 2013).\nRider, David, “Ford support plummeting, poll suggests,” The Star, September 14, 2011. Available online at http://www.thestar.com/news/gta/2011/09/14/ford_support_plummeting_poll_suggests.html (accessed May 2, 2013).\n“Mayor’s Approval Down.” News Release by Forum Research Inc. Available online at http://www.forumresearch.com/forms/News Archives/News Releases/74209_TO_Issues_-_Mayoral_Approval_%28Forum_Research%29%2820130320%29.pdf (accessed May 2, 2013).\n“Roulette.” Wikipedia. Available online at http://en.wikipedia.org/wiki/Roulette (accessed May 2, 2013).\nShin, Hyon B., Robert A. Kominski. “Language Use in the United States: 2007.” United States Census Bureau. Available online at http://www.census.gov/hhes/socdemo/language/data/acs/ACS-12.pdf (accessed May 2, 2013).\nData from the Baseball-Almanac, 2013. Available online at www.baseball-almanac.com (accessed May 2, 2013).\nData from U.S. Census Bureau.\nData from the Wall Street Journal.\nData from The Roper Center: Public Opinion Archives at the University of Connecticut. Available online at http://www.ropercenter.uconn.edu/ (accessed May 2, 2013).\nData from Field Research Corporation. Available online at www.field.com/fieldpollonline (accessed May 2,2 013).\nChapter Review\nThe multiplication rule and the addition rule are used for computing the probability of A and B, as well as the probability of A or B for two given events A, B defined on the sample space. In sampling with replacement each member of a population is replaced after it is picked, so that member has the possibility of being chosen more than once, and the events are considered to be independent. In sampling without replacement, each member of a population may be chosen only once, and the events are considered to be not independent. The events A and B are mutually exclusive events when they do not have any outcomes in common.\nFormula Review\nThe multiplication rule: P(A AND B) = P(A|B)P(B)\nThe addition rule: P(A OR B) = P(A) + P(B) - P(A AND B)\nUse the following information to answer the next ten exercises. A local restaurant knows that the probability that a customer will order a pizza is 87%. The restaurant also knows that the probability that a customer will order a salad is 32%. Of the customers who order pizzas, 55% of them also order a salad.\nIn this problem, let:\n- Z = event that a customer orders a pizza\n- S = event that a customer orders a salad\nSuppose that one customer is randomly selected.\nFind P(Z).\nFind P(S): P(S) = 0.87\nFind P(S).\nFind P(S): P(S) = 0.32\nFind P(S|Z).\nFind P(S | Z): P(S | Z) = 0.55\nIn words, what is S|Z?\nIn words, what is S | Z?: S | Z means, given that the customer has ordered pizza, the person also orders a salad.\nFind $P(ZANDS)$.\nFind $P(ZANDS)$: $P(ZANDS)$= 0.4785\nIn words, what is $ZANDS$?\nIn words, what is $ZANDS$?: $ZANDS$ represents the event that a customer orders a pizza and salad.\nAre P and S independent events? Show why or why not.\nAre P and S independent events? Show why or why not. No, because P(S) does not equal P(S | Z).\nFind $P(ZORS)$.\nFind $P(ZORS)$: $P(ZORS)$= 0.7115\nIn words, what is $ZORS$?\nIn words, what is $ZORS$?$ZORS$ represents the event that a customer orders a pizza or salad.\nAre Z and S mutually exclusive events? Show why or why not.\nAre Z and S mutually exclusive events? Show why or why not. No, because P(S and Z) does not equal 0.\nHomework\nPrior to the 2015 Supreme Court decision legalizing same-sex marriage nationwide, a survey reported that 61% of California registered voters approved of allowing two people of the same gender to marry and have regular marriage laws apply to them. Among 18 to 39 year olds (California registered voters), the approval rating was 78%. Six in ten California registered voters said that the upcoming Supreme Court’s ruling about the constitutionality of California’s Proposition 8 was either very or somewhat important to them. Out of those CA registered voters who support same-sex marriage, 75% say the ruling is important to them.\nIn this problem, let:\n- C = California registered voters who support same-sex marriage.\n- B = California registered voters who say the Supreme Court’s ruling about the constitutionality of California’s Proposition 8 is very or somewhat important to them\n- A = California registered voters who are 18 to 39 years old.\n- Find P(C).\n- Find P(B).\n- Find P(C|A).\n- Find P(B|C).\n- In words, what is C|A?\n- In words, what is B|C?\n- Find P(C AND B).\n- In words, what is C AND B?\n- Find P(C OR B).\n- Are C and B mutually exclusive events? Show why or why not.\nA survey was conducted in a large city to measure the popularity of that city’s mayor. The survey was repeated every year for three years. The survey polled 1,046 people to measure the mayor’s popularity. Everyone polled expressed either approval or disapproval. These are the results the poll produced:\n- In Year 1, 60% of the population approved of the mayor’s actions in office.\n- In Year 2, 57% of the population approved of his actions.\n- In Year 3, the percentage of popular approval was measured at 42%.\n- What is the sample size for this study?\n- What proportion in the poll disapproved of the mayor, according to the results from Year 3?\n- How many people polled responded that they approved the mayor based on results from Year 3?\n- What is the probability that a person supported the mayor, based on the data collected in Year 2?\n- What is the probability that a person supported the mayor, based on the data collected in Year 1?\n- The Forum Research surveyed 1,046 Torontonians.\n- 58%\n- 42% of 1,046 = 439 (rounding to the nearest integer)\n- 0.57\n- 0.60.\nUse the following information to answer the next three exercises. The casino game, roulette, allows the gambler to bet on the probability of a ball, which spins in the roulette wheel, landing on a particular color, number, or range of numbers. The table used to place bets contains of 38 numbers, and each number is assigned to a color and a range.\n[Image: This is an image of a roulette table.]\n(credit: film8ker/wikibooks)\n- List the sample space of the 38 possible outcomes in roulette.\n- You bet on red. Find P(red).\n- You bet on -1st 12- (1st Dozen). Find P(-1st 12-).\n- You bet on an even number. Find P(even number).\n- Is getting an odd number the complement of getting an even number? Why?\n- Find two mutually exclusive events.\n- Are the events Even and 1st Dozen independent?\nCompute the probability of winning the following types of bets:\n- Betting on two lines that touch each other on the table as in 1-2-3-4-5-6\n- Betting on three numbers in a line, as in 1-2-3\n- Betting on one number\n- Betting on four numbers that touch each other to form a square, as in 10-11-13-14\n- Betting on two numbers that touch each other on the table, as in 10-11 or 10-13\n- Betting on 0-00-1-2-3\n- Betting on 0-1-2; or 0-00-2; or 00-2-3\n- P(Betting on two line that touch each other on the table) = $\\frac{6}{38}$\n- P(Betting on three numbers in a line) = $\\frac{3}{38}$\n- P(Bettting on one number) = $\\frac{1}{38}$\n- P(Betting on four number that touch each other to form a square) = $\\frac{4}{38}$\n- P(Betting on two number that touch each other on the table) = $\\frac{2}{38}$\n- P(Betting on 0-00-1-2-3) = $\\frac{5}{38}$\n- P(Betting on 0-1-2; or 0-00-2; or 00-2-3) = $\\frac{3}{38}$\nCompute the probability of winning the following types of bets:\n- Betting on a color\n- Betting on one of the dozen groups\n- Betting on the range of numbers from 1 to 18\n- Betting on the range of numbers 19–36\n- Betting on one of the columns\n- Betting on an even or odd number (excluding zero)\nSuppose that you have eight cards. Five are green and three are yellow. The five green cards are numbered 1, 2, 3, 4, and 5. The three yellow cards are numbered 1, 2, and 3. The cards are well shuffled. You randomly draw one card.\n- G = card drawn is green\n- E = card drawn is even-numbered\n- List the sample space.\n- P(G) = _____\n- P(G|E) = _____\n- P(G AND E) = _____\n- P(G OR E) = _____\n- Are G and E mutually exclusive? Justify your answer numerically.\n- {G1, G2, G3, G4, G5, Y1, Y2, Y3}\n- $\\frac{5}{8}$\n- $\\frac{2}{3}$\n- $\\frac{2}{8}$\n- $\\frac{6}{8}$\n- No, because P(G AND E) does not equal 0.\nRoll two fair dice separately. Each die has six faces.\n- List the sample space.\n- Let A be the event that either a three or four is rolled first, followed by an even number. Find P(A).\n- Let B be the event that the sum of the two rolls is at most seven. Find P(B).\n- In words, explain what “P(A|B)” represents. Find P(A|B).\n- Are A and B mutually exclusive events? Explain your answer in one to three complete sentences, including numerical justification.\n- Are A and B independent events? Explain your answer in one to three complete sentences, including numerical justification.\nA special deck of cards has ten cards. Four are green, three are blue, and three are red. When a card is picked, its color of it is recorded. An experiment consists of first picking a card and then tossing a coin.\n- List the sample space.\n- Let A be the event that a blue card is picked first, followed by landing a head on the coin toss. Find P(A).\n- Let B be the event that a red or green is picked, followed by landing a head on the coin toss. Are the events A and B mutually exclusive? Explain your answer in one to three complete sentences, including numerical justification.\n- Let C be the event that a red or blue is picked, followed by landing a head on the coin toss. Are the events A and C mutually exclusive? Explain your answer in one to three complete sentences, including numerical justification.\nNOTE\nThe coin toss is independent of the card picked first.\n- {(G,H) (G,T) (B,H) (B,T) (R,H) (R,T)}\n- P(A) = P(blue)P(head) = $(\\frac{3}{10})$$(\\frac{1}{2})$ = $\\frac{3}{20}$\n- Yes, A and B are mutually exclusive because they cannot happen at the same time; you cannot pick a card that is both blue and also (red or green). P(A AND B) = 0\n- No, A and C are not mutually exclusive because they can occur at the same time. In fact, C includes all of the outcomes of A; if the card chosen is blue it is also (red or blue). P(A AND C) = P(A) = $\\frac{3}{20}$\nAn experiment consists of first rolling a die and then tossing a coin.\n- List the sample space.\n- Let A be the event that either a three or a four is rolled first, followed by landing a head on the coin toss. Find P(A).\n- Let B be the event that the first and second tosses land on heads. Are the events A and B mutually exclusive? Explain your answer in one to three complete sentences, including numerical justification.\nAn experiment consists of tossing a nickel, a dime, and a quarter. Of interest is the side the coin lands on.\n- List the sample space.\n- Let A be the event that there are at least two tails. Find P(A).\n- Let B be the event that the first and second tosses land on heads. Are the events A and B mutually exclusive? Explain your answer in one to three complete sentences, including justification.\n- S = {(HHH), (HHT), (HTH), (HTT), (THH), (THT), (TTH), (TTT)}\n- $\\frac{4}{8}$\n- Yes, because if A has occurred, it is impossible to obtain two tails. In other words, P(A AND B) = 0.\nConsider the following scenario: Let P(C) = 0.4. Let P(D) = 0.5. Let P(C|D) = 0.6.\n- Find P(C AND D).\n- Are C and D mutually exclusive? Why or why not?\n- Are C and D independent events? Why or why not?\n- Find P(C OR D).\n- Find P(D|C).\nY and Z are independent events.\n- Rewrite the basic Addition Rule P(Y OR Z) = P(Y) + P(Z) - P(Y AND Z) using the information that Y and Z are independent events.\n- Use the rewritten rule to find P(Z) if P(Y OR Z) = 0.71 and P(Y) = 0.42.\n- If Y and Z are independent, then P(Y AND Z) = P(Y)P(Z), so P(Y OR Z) = P(Y) + P(Z) - P(Y)P(Z).\n- 0.5\nG and H are mutually exclusive events. P(G) = 0.5 P(H) = 0.3\n- Explain why the following statement MUST be false: P(H|G) = 0.4.\n- Find P(H OR G).\n- Are G and H independent or dependent events? Explain in a complete sentence.\nAccording to the 2019 U.S. Census, approximately 331,449,281 people live in the United States. Of these people, 67,800,000 speak a language other than English at home. Of those who speak another language at home, 61.6% speak Spanish.\nLet: E = speaks English at home; E′ = speaks another language at home; S = speaks Spanish;\nFinish each probability statement by matching the correct answer.\nProbability Statements | Answers\na. $P(E')=$ | i. 0.7954\nb. $P(E)=$ | ii. 0.616\nc. $P(S\\cap E')=$ | iii. 0.2046\nd. $P(S|E')=$ | iv. 0.1260\n- iii\n- i\n- iv\n- ii\n1994, the U.S. government held a lottery to issue 55,000 Green Cards (permits for non-citizens to work legally in the U.S.). Renate Deutsch, from Germany, was one of approximately 6.5 million people who entered this lottery. Let G = won green card.\n- What was Renate’s chance of winning a Green Card? Write your answer as a probability statement.\n- In the summer of 1994, Renate received a letter stating she was one of 110,000 finalists chosen. Once the finalists were chosen, assuming that each finalist had an equal chance to win, what was Renate’s chance of winning a Green Card? Write your answer as a conditional probability statement. Let F = was a finalist.\n- Are G and F independent or dependent events? Justify your answer numerically and also explain why.\n- Are G and F mutually exclusive events? Justify your answer numerically and explain why.\nThree professors at George Washington University did an experiment to determine if economists are more selfish than other people. They dropped 64 stamped, addressed envelopes with \\$10 cash in different classrooms on the George Washington campus. 44% were returned overall. From the economics classes 56% of the envelopes were returned. From the business, psychology, and history classes 31% were returned.\nLet: R = money returned; E = economics classes; O = other classes\n- Write a probability statement for the overall percent of money returned.\n- Write a probability statement for the percent of money returned out of the economics classes.\n- Write a probability statement for the percent of money returned out of the other classes.\n- Is money being returned independent of the class? Justify your answer numerically and explain it.\n- Based upon this study, do you think that economists are more selfish than other people? Explain why or why not. Include numbers to justify your answer.\n- P(R) = 0.44\n- P(R|E) = 0.56\n- P(R|O) = 0.31\n- No, whether the money is returned is not independent of which class the money was placed in. There are several ways to justify this mathematically, but one is that the money placed in economics classes is not returned at the same overall rate; P(R|E) ≠ P(R).\n- No, this study definitely does not support that notion; in fact, it suggests the opposite. The money placed in the economics classrooms was returned at a higher rate than the money place in all classes collectively; P(R|E) > P(R).\nThe following table of data obtained from www.baseball-almanac.com shows hit information for four players. Suppose that one hit from the table is randomly selected.\nName | Single | Double | Triple | Home Run | Total Hits\nBabe Ruth | 1,517 | 506 | 136 | 714 | 2,873\nJackie Robinson | 1,054 | 273 | 54 | 137 | 1,518\nTy Cobb | 3,053 | 724 | 295 | 117 | 4,189\nHank Aaron | 2,294 | 624 | 98 | 755 | 3,771\nTotal | 7,918 | 2,127 | 583 | 1,723 | 12,351\nAre \"the hit being made by Hank Aaron\" and \"the hit being a double\" independent events?\n- Yes, because P(hit by Hank Aaron|hit is a double) = P(hit by Hank Aaron)\n- No, because P(hit by Hank Aaron|hit is a double) ≠ P(hit is a double)\n- No, because P(hit is by Hank Aaron|hit is a double) ≠ P(hit by Hank Aaron)\n- Yes, because P(hit is by Hank Aaron|hit is a double) = P(hit is a double)\n- P(type O OR Rh-) = P(type O) + P(Rh-) – P(type O AND Rh-)0.38 = 0.45 + 0.07 – P(type O AND Rh-);Solve to find P(type O AND Rh-) = 0.14.14% of people have type O, Rh- blood.\n- P(NOT(type O AND Rh-)) = 1 – P(type O AND Rh-) = 1 – 0.14 = 0.8686% of people do not have type O, Rh- blood.\nAccording to the American Red Cross, a person with type O blood and a negative Rh factor (Rh-) can donate blood to any person with any blood type. Their data show that 45% of people have type O blood and 7% of people have Rh- factor; 38% of people have type O or Rh- factor.\n- Find the probability that a person has both type O blood and the Rh- factor.\n- Find the probability that a person does NOT have both type O blood and the Rh- factor.\n-\nP(type O OR Rh-) = P(type O) + P(Rh-) - P(type O AND Rh-)\n0.52 = 0.43 + 0.15 - P(type O AND Rh-); solve to find P(type O AND Rh-) = 0.06\n6% of people have type O, Rh- blood\n-\nP(NOT(type O AND Rh-)) = 1 - P(type O AND Rh-) = 1 - 0.06 = 0.94\n94% of people do not have type O, Rh- blood\nAt a college, 72% of courses have final exams and 46% of courses require research papers. Suppose that 32% of courses have a research paper and a final exam. Let F be the event that a course has a final exam. Let R be the event that a course requires a research paper.\n- Find the probability that a course has a final exam or a research project.\n- Find the probability that a course has NEITHER of these two requirements.\nIn a box of assorted cookies, 36% contain chocolate and 12% contain nuts. In the box, 8% contain both chocolate and nuts. Sean is allergic to both chocolate and nuts.\n- Find the probability that a cookie contains chocolate or nuts (he can't eat it).\n- Find the probability that a cookie does not contain chocolate or nuts (he can eat it).\n- Let C = be the event that the cookie contains chocolate. Let N = the event that the cookie contains nuts.\n- P(C OR N) = P(C) + P(N) - P(C AND N) = 0.36 + 0.12 - 0.08 = 0.40\n- P(NEITHER chocolate NOR nuts) = 1 - P(C OR N) = 1 - 0.40 = 0.60\nA college finds that 10% of students have taken a distance learning class and that 40% of students are part time students. Of the part time students, 20% have taken a distance learning class. Let D = event that a student takes a distance learning class and E = event that a student is a part time student\n- Find P(D AND E).\n- Find P(E|D).\n- Find P(D OR E).\n- Using an appropriate test, show whether D and E are independent.\n- Using an appropriate test, show whether D and E are mutually exclusive.\n\nGlossary\nIndependent Events The occurrence of one event has no effect on the probability of the occurrence of another event. Events A and B are independent if one of the following is true:\n- P(A|B) = P(A)\n- P(B|A) = P(B)\n- P(A AND B) = P(A)P(B)\nMutually Exclusive Two events are mutually exclusive if the probability that they both happen at the same time is zero. If events A and B are mutually exclusive, then P(A AND B) = 0."}
{"document_id": "openstax-intro-statistics-m46935", "title": "Probability Topics — Contingency Tables", "source": "https://openstax.org/books/introductory-statistics-2e/pages/3-4-contingency-tables", "license": "CC-BY-4.0", "text": "A contingency table provides a way of portraying data that can facilitate calculating probabilities. The table helps in determining conditional probabilities quite easily. The table displays sample values in relation to two different variables that may be dependent or contingent on one another. Later on, we will use contingency tables again, but in another manner.\nSuppose a study of speeding violations and drivers who use cell phones produced the following fictional data:\nSpeeding violation in the last year | No speeding violation in the last year | Total\nUses cell phone while driving | 25 | 280 | 305\nDoes not use cell phone while driving | 45 | 405 | 450\nTotal | 70 | 685 | 755\nThe total number of people in the sample is 755. The row totals are 305 and 450. The column totals are 70 and 685. Notice that 305 + 450 = 755 and 70 + 685 = 755.\nCalculate the following probabilities using the table.\na. Find P(Driver is a cell phone user). b. Find P(driver had no violation in the last year). c. Find P(Driver had no violation in the last year AND was a cell phone user). d. Find P(Driver is a cell phone user OR driver had no violation in the last year). e. Find P(Driver is a cell phone user GIVEN driver had a violation in the last year). f. Find P(Driver had no violation last year GIVEN driver was not a cell phone user)\na. $\\frac{\\text{number of cell phone users}}{\\text{total number in study}}=\\frac{305}{755}$b. $\\frac{\\text{number that had no violation}}{\\text{total number in study}}=\\frac{685}{755}$c. $\\frac{280}{755}$ d. $(\\frac{305}{755}+\\frac{685}{755})-\\frac{280}{755}=\\frac{710}{755}$e. $\\frac{25}{70}$ (The sample space is reduced to the number of drivers who had a violation.)f. $\\frac{405}{450}$ (The sample space is reduced to the number of drivers who were not cell phone users.)\nTry it\nTable shows the number of athletes who stretch before exercising and how many had injuries within the past year.\nInjury in last year | No injury in last year | Total\nStretches | 55 | 295 | 350\nDoes not stretch | 231 | 219 | 450\nTotal | 286 | 514 | 800\n- What is P(athlete stretches before exercising)?\n- What is P(athlete stretches before exercising|no injury in the last year)?\nTable shows a random sample of 100 hikers and the areas of hiking they prefer.\nSex | The Coastline | Near Lakes and Streams | On Mountain Peaks | Total\nWomen | 18 | 16 | 45\nMen | 14 | 55\nTotal | 41\na. Complete the table.\na.\nSex | The Coastline | Near Lakes and Streams | On Mountain Peaks | Total\nWomen | 18 | 16 | 11 | 45\nMen | 16 | 25 | 14 | 55\nTotal | 34 | 41 | 25 | 100\nb. Are the events \"being a woman\" and \"preferring the coastline\" independent events?\nLet F = being a woman and let C = preferring the coastline.\n- Find P(F AND C).\n- Find P(F)P(C)\nAre these two numbers the same? If they are, then F and C are independent. If they are not, then F and C are not independent.\nb.\n- P(F AND C) = $\\frac{18}{100}$ = 0.18\n- P(F)P(C) = $(\\frac{45}{100})(\\frac{34}{100})$ = (0.45)(0.34) = 0.153\nP(F AND C) ≠ P(F)P(C), so the events F and C are not independent.\nc. Find the probability that a person is a man given that the person prefers hiking near lakes and streams. Let M = being a man, and let L = prefers hiking near lakes and streams.\n- What word tells you this is a conditional?\n- Fill in the blanks and calculate the probability: P(___|___) = ___.\n- Is the sample space for this problem all 100 hikers? If not, what is it?\nc.\n- The word 'given' tells you that this is a conditional.\n- P(M|L) = $\\frac{25}{41}$\n- No, the sample space for this problem is the 41 hikers who prefer lakes and streams.\nd. Find the probability that a person is a woman or prefers hiking on mountain peaks. Let F = being a woman, and let P = prefers mountain peaks.\n- Find P(F).\n- Find P(P).\n- Find P(F AND P).\n- Find P(F OR P).\nd.\n- P(F) = $\\frac{45}{100}$\n- P(P) = $\\frac{25}{100}$\n- P(F AND P) = $\\frac{11}{100}$\n- P(F OR P) = $\\frac{45}{100}$ + $\\frac{25}{100}$ - $\\frac{11}{100}$ = $\\frac{59}{100}$\nTry It\nTable shows a random sample of 200 cyclists and the routes they prefer. Let O = older and H = hilly path.\nAge Group | Lake Path | Hilly Path | Wooded Path | Total\nYounger | 45 | 38 | 27 | 110\nOlder | 26 | 52 | 12 | 90\nTotal | 71 | 90 | 39 | 200\n- Out of the older group, what is the probability that the cyclist prefers a hilly path?\n- Are the events “being older” and “preferring the hilly path” independent events?\nMuddy Mouse lives in a cage with three doors. If Muddy goes out the first door, the probability that he gets caught by Alissa the cat is $\\frac{1}{5}$ and the probability he is not caught is $\\frac{4}{5}$. If he goes out the second door, the probability he gets caught by Alissa is $\\frac{1}{4}$ and the probability he is not caught is $\\frac{3}{4}$. The probability that Alissa catches Muddy coming out of the third door is $\\frac{1}{2}$ and the probability she does not catch Muddy is $\\frac{1}{2}$. It is equally likely that Muddy will choose any of the three doors so the probability of choosing each door is $\\frac{1}{3}$.\nCaught or Not | Door One | Door Two | Door Three | Total\nCaught | $\\frac{1}{15}$ | $\\frac{1}{12}$ | $\\frac{1}{6}$\nNot Caught | $\\frac{4}{15}$ | $\\frac{3}{12}$ | $\\frac{1}{6}$\nTotal | 1\n- The first entry $\\frac{1}{15}=(\\frac{1}{5})(\\frac{1}{3})$ is P(Door One AND Caught)\n- The entry $\\frac{4}{15}=(\\frac{4}{5})(\\frac{1}{3})$ is P(Door One AND Not Caught)\nVerify the remaining entries.\na. Complete the probability contingency table. Calculate the entries for the totals. Verify that the lower-right corner entry is 1.\nb. What is the probability that Alissa does not catch Muddy?\nc. What is the probability that Muddy chooses Door One OR Door Two given that Muddy is caught by Alissa?\na.\nCaught or Not | Door One | Door Two | Door Three | Total\nCaught | $\\frac{1}{15}$ | $\\frac{1}{12}$ | $\\frac{1}{6}$ | $\\frac{19}{60}$\nNot Caught | $\\frac{4}{15}$ | $\\frac{3}{12}$ | $\\frac{1}{6}$ | $\\frac{41}{60}$\nTotal | $\\frac{5}{15}$ | $\\frac{4}{12}$ | $\\frac{2}{6}$ | 1\nb. $\\frac{41}{60}$\nc. $\\frac{9}{19}$\nTry It\nAnna has to buy a new car. She has two choices, car A and car B. Anna can afford only one car. The probability that Anna will buy car A is $P(A)=0.25$, and the probability that Anna will buy car B is $P(B)=0.65$. Find:\n- $P(AANDB)$\n- $P(AORB)$\n- $P(AANDB)=0$ because it is given that Anna can afford only one car.\n- Since $P(AANDB)=0$, then $P(AORB)=P(A)+P(B)=0.25+0.65=0.9$. Note that the probability that Anna does not a car must be 0.1.\nTable contains the number of crimes per 100,000 inhabitants in the United States over the span of several years.\nYear | Robbery | Burglary | Vandalism | Vehicle | Total\n1 | 145.7 | 732.1 | 29.7 | 314.7\n2 | 133.1 | 717.7 | 29.1 | 259.2\n3 | 119.3 | 701 | 27.7 | 239.1\n4 | 113.7 | 702.2 | 26.8 | 229.6\nTotal\nTOTAL each column and each row. Total data = 4,520.7\n- Find P(Year 2 AND Robbery).\n- Find P(Year 3 AND Burglary).\n- Find P(Year 3 OR Burglary).\n- Find P(Year 4 | Vandalism).\n- Find P(Vehicle | Year 1).\na. 0.0294, b. 0.1551, c. 0.7165, d. 0.2365, e. 0.2575\nTry It\nTable relates the weights and heights of a group of individuals participating in an observational study.\nWeight/Height | Tall | Medium | Short | Totals\nOverweight | 18 | 28 | 14\nTypical Weight Range | 20 | 51 | 28\nUnderweight | 12 | 25 | 9\nTotals\n- Find the total for each row and column\n- Find the probability that a randomly chosen individual from this group is Tall.\n- Find the probability that a randomly chosen individual from this group is Overweight and Tall.\n- Find the probability that a randomly chosen individual from this group is Tall given that the individual is Overweight.\n- Find the probability that a randomly chosen individual from this group is Overweight given that the individual is Tall.\n- Find the probability a randomly chosen individual from this group is Tall and Underweight.\n- Are the events Overweight and Tall independent?\nReferences\n“Blood Types.” American Red Cross, 2013. Available online at http://www.redcrossblood.org/learn-about-blood/blood-types (accessed May 3, 2013).\nData from the National Center for Health Statistics, part of the United States Department of Health and Human Services.\nData from United States Senate. Available online at www.senate.gov (accessed May 2, 2013).\nHaiman, Christopher A., Daniel O. Stram, Lynn R. Wilkens, Malcom C. Pike, Laurence N. Kolonel, Brien E. Henderson, and Loīc Le Marchand. “Ethnic and Racial Differences in the Smoking-Related Risk of Lung Cancer.” The New England Journal of Medicine, 2013. Available online at http://www.nejm.org/doi/full/10.1056/NEJMoa033250 (accessed May 2, 2013).\n“Human Blood Types.” Unite Blood Services, 2011. Available online at http://www.unitedbloodservices.org/learnMore.aspx (accessed May 2, 2013).\nSamuel, T. M. “Strange Facts about RH Negative Blood.” eHow Health, 2013. Available online at http://www.ehow.com/facts_5552003_strange-rh-negative-blood.html (accessed May 2, 2013).\n“United States: Uniform Crime Report – State Statistics from 1960–2011.” The Disaster Center. Available online at http://www.disastercenter.com/crime/ (accessed May 2, 2013).\nChapter Review\nThere are several tools you can use to help organize and sort data when calculating probabilities. Contingency tables help display data and are particularly useful when calculating probabilites that have multiple dependent variables.\nUse the following information to answer the next four exercises. Table shows a random sample of musicians and how they learned to play their instruments.\nGender | Self-taught | Studied in School | Private Instruction | Total\nWoman | 12 | 38 | 22 | 72\nMan | 19 | 24 | 15 | 58\nTotal | 31 | 62 | 37 | 130\nFind P(musician is a woman).\nFind P(musician is a man AND had private instruction).\nP(musician is a male AND had private instruction) = $\\frac{15}{130}$ = $\\frac{3}{26}$ = 0.12\nFind P(musician is a woman OR is self taught).\nAre the events “being a woman musician” and “learning music in school” mutually exclusive events?\nThe events are not mutually exclusive. It is possible to be a woman musician who learned music in school.\nBringing It Together\nUse the following information to answer the next seven exercises. An article in the New England Journal of Medicine, reported about a study of smokers in California and Hawaii. In one part of the report, the self-reported ethnicity and smoking levels per day were given. Of the people smoking at most ten cigarettes per day, there were 9,886 Black people, 2,745 Native Hawaiian people, 12,831 Hispanic/Latino people, 8,378 Japanese people, and 7,650 White people. Of the people smoking 11 to 20 cigarettes per day, there were 6,514 Black people, 3,062 Native Hawaiian people, 4,932 Hispanic/Latino people, 10,680 Japanese people, and 9,877 White people. Of the people smoking 21 to 30 cigarettes per day, there were 1,671 Black people, 1,419 Native Hawaiian people, 1,406 Hispanic/Latino people, 4,715 Japanese people, and 6,062 White people. Of the people smoking at least 31 cigarettes per day, there were 759 Black people, 788 Native Hawaiian people, 800 Hispanic/Latino people, 2,305 Japanese people, and 3,970 White people.\nComplete the table using the data provided.\nSmoking Level | Black | Native Hawaiian | Hispanic/Latino | Japanese people | White | TOTALS\n1–10\n11–20\n21–30\n31+\nTOTALS\nSuppose that one person from the study is randomly selected. Find the probability that person smoked 11 to 20 cigarettes per day.\n$\\frac{35,065}{100,450}$\nFind the probability that the person was Hispanic/Latino.\nIn words, explain what it means to pick one person from the study who is “Japanese American AND smokes 21 to 30 cigarettes per day.” Also, find the probability.\nTo pick one person from the study who is Japanese American AND smokes 21 to 30 cigarettes per day means that the person has to meet both criteria: both Japanese American and smokes 21 to 30 cigarettes. The sample space should include everyone in the study. The probability is $\\frac{4,715}{100,450}$.\nIn words, explain what it means to pick one person from the study who is “Japanese American OR smokes 21 to 30 cigarettes per day.” Also, find the probability.\nIn words, explain what it means to pick one person from the study who is “Japanese American GIVEN that person smokes 21 to 30 cigarettes per day.” Also, find the probability.\nTo pick one person from the study who is Japanese American given that person smokes 21-30 cigarettes per day, means that the person must fulfill both criteria and the sample space is reduced to those who smoke 21-30 cigarettes per day. The probability is $\\frac{4715}{15,273}$.\nProve that smoking level/day and ethnicity are dependent events.\nHomework\nUse the information in the Table to answer the next eight exercises. The table shows the political party affiliation for various members of the U.S. Senate during two separate years when they are up for reelection.\nUp for reelection: | Democratic Party | Republican Party | Other | Total\nYear A | 20 | 13 | 0\nYear B | 10 | 24 | 0\nTotal\nWhat is the probability that a randomly selected senator has an “Other” affiliation?\n0\nWhat is the probability that a randomly selected senator is up for reelection in Year B?\nWhat is the probability that a randomly selected senator is a Democrat and up for reelection in Year B?\n$\\frac{10}{67}$\nWhat is the probability that a randomly selected senator is a Republican or is up for reelection in Year A?\nSuppose that a member of the U.S. Senate is randomly selected. Given that the randomly selected senator is up for reelection in Year B, what is the probability that this senator is a Democrat?\n$\\frac{10}{34}$\nSuppose that a member of the U.S. Senate is randomly selected. What is the probability that the senator is up for reelection in Year A, knowing that this senator is a Republican?\nThe events “Republican” and “Up for reelection in Year B” are ________\n- mutually exclusive.\n- independent.\n- both mutually exclusive and independent.\n- neither mutually exclusive nor independent.\nd\nThe events “Other” and “Up for reelection in Year B” are ________\n- mutually exclusive.\n- independent.\n- both mutually exclusive and independent.\n- neither mutually exclusive nor independent.\nTable gives the number of participants in the recent National Health Interview Survey who had been treated for cancer in the previous 12 months. The results are sorted by age, race (Black or White), and sex. We are interested in possible relationships between age, race, and sex.\nRace and sex | 15–24 | 25–40 | 41–65 | Over 65 | TOTALS\nWhite, male | 1,165 | 2,036 | 3,703 | 8,395\nWhite, female | 1,076 | 2,242 | 4,060 | 9,129\nBlack, male | 142 | 194 | 384 | 824\nBlack, female | 131 | 290 | 486 | 1,061\nAll others\nTOTALS | 2,792 | 5,279 | 9,354 | 21,081\nDo not include \"all others\" for parts f and g.\n- Fill in the column for cancer treatment for individuals over age 65.\n- Fill in the row for all other races.\n- Find the probability that a randomly selected individual was a White male.\n- Find the probability that a randomly selected individual was a Black female.\n- Find the probability that a randomly selected individual was Black\n- Find the probability that a randomly selected individual was male.\n- Out of the individuals over age 65, find the probability that a randomly selected individual was a Black or White male.\n-\nRace and sex | 1–14 | 15–24 | 25–64 | Over 64 | TOTALS\nWhite, male | 1,165 | 2,036 | 3,703 | 1,491 | 8,395\nWhite, female | 1,076 | 2,242 | 4,060 | 1,751 | 9,129\nBlack, male | 142 | 194 | 384 | 104 | 824\nBlack, female | 131 | 290 | 486 | 154 | 1,061\nAll others | 156\nTOTALS | 2,792 | 5,279 | 9,354 | 3,656 | 21,081\n-\nRace and sex | 1–14 | 15–24 | 25–64 | Over 64 | TOTALS\nWhite, male | 1,165 | 2,036 | 3,703 | 1,491 | 8,395\nWhite, female | 1,076 | 2,242 | 4,060 | 1,751 | 9,129\nBlack, male | 142 | 194 | 384 | 104 | 824\nBlack, female | 131 | 290 | 486 | 154 | 1,061\nAll others | 278 | 517 | 721 | 156 | 1672\nTOTALS | 2,792 | 5,279 | 9,354 | 3,656 | 21,081\n- $\\frac{\\text{8,395}}{\\text{21,081}}\\approx0.3982$\n- $\\frac{\\text{1,061}}{\\text{21,081}}\\approx0.0503$\n- $\\frac{\\text{1,885}}{\\text{21,081}}\\approx0.0894$\n- $\\frac{\\text{9,219}}{\\text{19,409}}\\approx0.475$\n- $\\frac{\\text{1,595}}{\\text{3,500}}\\approx0.456$\nUse the following information to answer the next two exercises. The table of data obtained from www.baseball-almanac.com shows hit information for four well known baseball players. Suppose that one hit from the table is randomly selected.\nNAME | Single | Double | Triple | Home Run | TOTAL HITS\nBabe Ruth | 1,517 | 506 | 136 | 714 | 2,873\nJackie Robinson | 1,054 | 273 | 54 | 137 | 1,518\nTy Cobb | 3,035 | 724 | 295 | 117 | 4,189\nHank Aaron | 2,294 | 624 | 98 | 755 | 3,771\nTOTAL | 7,918 | 2,127 | 583 | 1,723 | 12,351\nFind P(hit was made by Babe Ruth).\n- $\\frac{1518}{2873}$\n- $\\frac{2873}{12351}$\n- $\\frac{583}{12351}$\n- $\\frac{4189}{12351}$\nFind P(hit was made by Ty Cobb|The hit was a Home Run).\n- $\\frac{4189}{12351}$\n- $\\frac{117}{1723}$\n- $\\frac{1723}{4189}$\n- $\\frac{117}{12351}$\nb\nTable identifies a group of children by one of four hair colors, and by type of hair.\nHair Type | Brown | Blond | Black | Red | Totals\nWavy | 20 | 15 | 3 | 43\nStraight | 80 | 15 | 12\nTotals | 20 | 215\n- Complete the table.\n- What is the probability that a randomly selected child will have wavy hair?\n- What is the probability that a randomly selected child will have either brown or blond hair?\n- What is the probability that a randomly selected child will have wavy brown hair?\n- What is the probability that a randomly selected child will have red hair, given that they have straight hair?\n- If B is the event of a child having brown hair, find the probability of the complement of B.\n- In words, what does the complement of B represent?\nIn a previous year, the weights of the members of the San Francisco 49ers and the Dallas Cowboys were published in the San Jose Mercury News. The factual data were compiled into the following table.\nShirt# | ≤ 210 | 211–250 | 251–290 | > 290\n1–33 | 21 | 5 | 0 | 0\n34–66 | 6 | 18 | 7 | 4\n66–99 | 6 | 12 | 22 | 5\nFor the following, suppose that you randomly select one player from the 49ers or Cowboys.\n- Find the probability that his shirt number is from 1 to 33.\n- Find the probability that he weighs at most 210 pounds.\n- Find the probability that his shirt number is from 1 to 33 AND he weighs at most 210 pounds.\n- Find the probability that his shirt number is from 1 to 33 OR he weighs at most 210 pounds.\n- Find the probability that his shirt number is from 1 to 33 GIVEN that he weighs at most 210 pounds.\n- $\\frac{26}{106}$\n- $\\frac{33}{106}$\n- $\\frac{21}{106}$\n- $(\\frac{26}{106})$ + $(\\frac{33}{106})$ - $(\\frac{21}{106})$ = $(\\frac{38}{106})$\n- $\\frac{21}{33}$\n\nGlossary\ncontingency table the method of displaying a frequency distribution as a table with rows and columns to show how two variables may be dependent (contingent) upon each other; the table provides an easy way to calculate conditional probabilities."}
{"document_id": "openstax-intro-statistics-m46944", "title": "Probability Topics — Tree and Venn Diagrams", "source": "https://openstax.org/books/introductory-statistics-2e/pages/3-5-tree-and-venn-diagrams", "license": "CC-BY-4.0", "text": "Sometimes, when the probability problems are complex, it can be helpful to graph the situation. Tree diagrams and Venn diagrams are two tools that can be used to visualize and solve conditional probabilities.\nTree Diagrams\nA tree diagram is a special type of graph used to determine the outcomes of an experiment. It consists of \"branches\" that are labeled with either frequencies or probabilities. Tree diagrams can make some probability problems easier to visualize and solve. The following example illustrates how to use a tree diagram.\nIn an urn, there are 11 balls. Three balls are red (R) and eight balls are blue (B). Draw two balls, one at a time, with replacement. \"With replacement\" means that you put the first ball back in the urn before you select the second ball. The tree diagram using frequencies that show all the possible outcomes follows.\n[Image: This is a tree diagram with branches showing frequencies of each draw. The first branch shows two lines: 8B and 3R. The second branch has a set of two lines (8B and 3R) for each line of the first branch. Multiply along each line to find 64BB, 24BR, 24RB, and 9RR.]\nTotal = 64 + 24 + 24 + 9 = 121\nThe first set of branches represents the first draw. The second set of branches represents the second draw. Each of the outcomes is distinct. In fact, we can list each red ball as R1, R2, and R3 and each blue ball as B1, B2, B3, B4, B5, B6, B7, and B8. Then the nine RR outcomes can be written as:\n- R1R1\n- R1R2\n- R1R3\n- R2R1\n- R2R2\n- R2R3\n- R3R1\n- R3R2\n- R3R3\nThe other outcomes are similar.\nThere are a total of 11 balls in the urn. Draw two balls, one at a time, with replacement. There are 11(11) = 121 outcomes, the size of the sample space.\na. List the 24 BR outcomes: B1R1, B1R2, B1R3,...\nb. Using the tree diagram, calculate P(RR).\nc. Using the tree diagram, calculate P(RB OR BR).\nd. Using the tree diagram, calculate P(R on 1st draw AND B on 2nd draw).\ne. Using the tree diagram, calculate P(R on 2nd draw GIVEN B on 1st draw).\nf. Using the tree diagram, calculate P(BB).\ng. Using the tree diagram, calculate P(B on the 2nd draw given R on the first draw).\na.\n- B1R1\n- B1R2\n- B1R3\n- B2R1\n- B2R2\n- B2R3\n- B3R1\n- B3R2\n- B3R3\n- B4R1\n- B4R2\n- B4R3\n- B5R1\n- B5R2\n- B5R3\n- B6R1\n- B6R2\n- B6R3\n- B7R1\n- B7R2\n- B7R3\n- B8R1\n- B8R2\n- B8R3\nb. P(RR) = $(\\frac{3}{11})(\\frac{3}{11})$ = $\\frac{9}{121}$\nc. P(RB OR BR) = $(\\frac{3}{11})(\\frac{8}{11})$ + $(\\frac{8}{11})(\\frac{3}{11})$ = $\\frac{48}{121}$\nd. P(R on 1st draw AND B on 2nd draw) = P(RB) = $(\\frac{3}{11})(\\frac{8}{11})$ = $\\frac{24}{121}$\ne. P(R on 2nd draw GIVEN B on 1st draw) = P(R on 2nd|B on 1st) = $\\frac{24}{88}$ = $\\frac{3}{11}$\nThis problem is a conditional one. The sample space has been reduced to those outcomes that already have a blue on the first draw. There are 24 + 64 = 88 possible outcomes (24 BR and 64 BB). Twenty-four of the 88 possible outcomes are BR. $\\frac{24}{88}$ = $\\frac{3}{11}$.\nf. P(BB) = $\\frac{64}{121}$\ng. P(B on 2nd draw|R on 1st draw) = $\\frac{8}{11}$\nThere are 9 + 24 outcomes that have R on the first draw (9 RR and 24 RB). The sample space is then 9 + 24 = 33. 24 of the 33 outcomes have B on the second draw. The probability is then $\\frac{24}{33}$.\nTry It\nIn a standard deck, there are 52 cards. 12 cards are face cards (event F) and 40 cards are not face cards (event N). Draw two cards, one at a time, with replacement. All possible outcomes are shown in the tree diagram as frequencies. Using the tree diagram, calculate P(FF).\n[Image: This is a tree diagram with branches showing frequencies of each draw. The first branch shows two lines: 12F and 40N. The second branch has a set of two lines (12F and 40N) for each line of the first branch. Multiply along each line to find 144FF, 480FN, 480NF, and 1,600NN.]\nAn urn has three red marbles and eight blue marbles in it. Draw two marbles, one at a time, this time without replacement, from the urn. \"Without replacement\" means that you do not put the first ball back before you select the second marble. Following is a tree diagram for this situation. The branches are labeled with probabilities instead of frequencies. The numbers at the ends of the branches are calculated by multiplying the numbers on the two corresponding branches, for example, $(\\frac{3}{11})(\\frac{2}{10})=\\frac{6}{110}$.\n[Image: This is a tree diagram with branches showing probabilities of each draw. The first branch shows 2 lines: B 8/11 and R 3/11. The second branch has a set of 2 lines for each first branch line. Below B 8/11 are B 7/10 and R 3/10. Below R 3/11 are B 8/10 and R 2/10. Multiply along each line to find BB 56/110, BR 24/110, RB 24/110, and RR 6/110.]\nTotal = $\\frac{56+24+24+6}{110}=\\frac{110}{110}=1$\nNOTE\nIf you draw a red on the first draw from the three red possibilities, there are two red marbles left to draw on the second draw. You do not put back or replace the first marble after you have drawn it. You draw without replacement, so that on the second draw there are ten marbles left in the urn.\nCalculate the following probabilities using the tree diagram.\na. P(RR) = ________\nb. Fill in the blanks:\nP(RB OR BR) = $(\\frac{3}{11})(\\frac{8}{10})+\\text{(___)(___)}=\\frac{48}{110}$\nc. P(R on 2nd|B on 1st) =\nd. Fill in the blanks.\nP(R on 1st AND B on 2nd) = P(RB) = (___)(___) = $\\frac{24}{110}$\ne. Find P(BB).\nf. Find P(B on 2nd|R on 1st).\na. P(RR) = $(\\frac{3}{11})(\\frac{2}{10})=\\frac{6}{110}$\nb. P(RB OR BR) = $(\\frac{3}{11})(\\frac{8}{10})$ + $(\\frac{8}{11})(\\frac{3}{10})$ = $\\frac{48}{110}$\nc. P(R on 2nd|B on 1st) = $\\frac{3}{10}$\nd. P(R on 1st AND B on 2nd) = P(RB) = $(\\frac{3}{11})(\\frac{8}{10})$ = $\\frac{24}{110}$\ne. P(BB) = $(\\frac{8}{11})(\\frac{7}{10})$\nf. Using the tree diagram, P(B on 2nd|R on 1st) = P(R|B) = $\\frac{8}{10}$.\nIf we are using probabilities, we can label the tree in the following general way.\n- P(R|R) here means P(R on 2nd|R on 1st)\n- P(B|R) here means P(B on 2nd|R on 1st)\n- P(R|B) here means P(R on 2nd|B on 1st)\n- P(B|B) here means P(B on 2nd|B on 1st)\nTry It\nIn a standard deck, there are 52 cards. Twelve cards are face cards (F) and 40 cards are not face cards (N). Draw two cards, one at a time, without replacement. The tree diagram is labeled with all possible probabilities.\n[Image: This is a tree diagram with branches showing frequencies of each draw. The first branch shows 2 lines: F 12/52 and N 40/52. The second branch has a set of 2 lines (F 11/52 and N 40/51) for each line of the first branch. Multiply along each line to find FF 121/2652, FN 480/2652, NF 480/2652, and NN 1560/2652.]\n- Find P(FN OR NF).\n- Find P(N|F).\n- Find P(at most one face card). Hint: \"At most one face card\" means zero or one face card.\n- Find P(at least one face card). Hint: \"At least one face card\" means one or two face cards.\nA litter of kittens available for adoption at the Humane Society has four tabby kittens and five black kittens. A family comes in and randomly selects two kittens (without replacement) for adoption.\n- What is the probability that both kittens are tabby? a.$(\\frac{1}{2})(\\frac{1}{2})$ b.$(\\frac{4}{9})(\\frac{4}{9})$ c.$(\\frac{4}{9})(\\frac{3}{8})$ d.$(\\frac{4}{9})(\\frac{5}{9})$\n- What is the probability that one kitten of each coloring is selected? a.$(\\frac{4}{9})(\\frac{5}{9})$ b.$(\\frac{4}{9})(\\frac{5}{8})$ c.$(\\frac{4}{9})(\\frac{5}{9})+(\\frac{5}{9})(\\frac{4}{9})$ d.$(\\frac{4}{9})(\\frac{5}{8})+(\\frac{5}{9})(\\frac{4}{8})$\n- What is the probability that a tabby is chosen as the second kitten when a black kitten was chosen as the first?\n- What is the probability of choosing two kittens of the same color?\na. c, b. d, c. $\\frac{4}{8}$, d. $\\frac{32}{72}$\nTry It\nSuppose there are four red balls and three yellow balls in a box. Two balls are drawn from the box without replacement. What is the probability that one ball of each coloring is selected?\nVenn Diagram\nA Venn diagram is a picture that represents the outcomes of an experiment. It generally consists of a box that represents the sample space S together with circles or ovals. The circles or ovals represent events.\nSuppose an experiment has the outcomes 1, 2, 3,..., 12 where each outcome has an equal chance of occurring. Let event A = {1, 2, 3, 4, 5, 6} and event B = {6, 7, 8, 9}. Then A AND B = {6} and A OR B = {1, 2, 3, 4, 5, 6, 7, 8, 9}. The Venn diagram is as follows:\n[Image: A Venn diagram. An oval representing set A contains the values 1, 2, 3, 4, 5, and 6. An oval representing set B also contains the 6, along with 7, 8, and 9. The values 10, 11, and 12 are present but not contained in either set.]\nTry It\nSuppose an experiment has outcomes black, white, red, orange, yellow, green, blue, and purple, where each outcome has an equal chance of occurring. Let event C = {green, blue, purple} and event P = {red, yellow, blue}. Then C AND P = {blue} and C OR P = {green, blue, purple, red, yellow}. Draw a Venn diagram representing this situation.\nFlip two fair coins. Let A = tails on the first coin. Let B = tails on the second coin. Then A = {TT, TH} and B = {TT, HT}. Therefore, A AND B = {TT}. A OR B = {TH, TT, HT}.\nThe sample space when you flip two fair coins is X = {HH, HT, TH, TT}. The outcome HH is in NEITHER A NOR B. The Venn diagram is as follows:\n[Image: This is a venn diagram. An oval representing set A contains Tails + Heads and Tails + Tails. An oval representing set B also contains Tails + Tails, along with Heads + Tails. The universe S contains Heads + Heads, but this value is not contained in either set A or B.]\nTry It\nRoll a fair, six-sided die. Let A = a prime number of dots is rolled. Let B = an odd number of dots is rolled. Then A = {2, 3, 5} and B = {1, 3, 5}. Therefore, A AND B = {3, 5}. A OR B = {1, 2, 3, 5}. The sample space for rolling a fair die is S = {1, 2, 3, 4, 5, 6}. Draw a Venn diagram representing this situation.\nForty percent of the students at a local college belong to a club and 50% work part time. Five percent of the students work part time and belong to a club. Draw a Venn diagram showing the relationships. Let C = student belongs to a club and PT = student works part time.\n[Image: This is a venn diagram with one set containing students in clubs and another set containing students working part-time. Both sets share students who are members of clubs and also work part-time. The universe is labeled S.]\nIf a student is selected at random, find\n- the probability that the student belongs to a club. P(C) = 0.40\n- the probability that the student works part time. P(PT) = 0.50\n- the probability that the student belongs to a club AND works part time. P(C AND PT) = 0.05\n- the probability that the student belongs to a club given that the student works part time. $P\\text{(}C\\text{|}PT\\text{)}=\\frac{P\\text{(}C\\text{AND}PT\\text{)}}{P\\text{(}PT\\text{)}}=\\frac{0.05}{0.50}=0.1$\n- the probability that the student belongs to a club OR works part time. P(C OR PT) = P(C) + P(PT) - P(C AND PT) = 0.40 + 0.50 - 0.05 = 0.85\nTry It\nFifty percent of the workers at a factory work a second job, 25% have a spouse who also works, 5% work a second job and have a spouse who also works. Draw a Venn diagram showing the relationships. Let W = works a second job and S = spouse also works.\nA person with type O blood and a negative Rh factor (Rh-) can donate blood to any person with any blood type. Four percent of African Americans have type O blood and a negative RH factor, 5−10% of African Americans have the Rh- factor, and 51% have type O blood.\n[Image: This is an empty Venn diagram showing two overlapping circles. The left circle is labeled O and the right circle is labeled RH-.]\nThe “O” circle represents the African Americans with type O blood. The “Rh-“ oval represents the African Americans with the Rh- factor.\nWe will take the average of 5% and 10% and use 7.5% as the percent of African Americans who have the Rh- factor. Let O = African American with Type O blood and R = African American with Rh- factor.\n- P(O) = ___________\n- P(R) = ___________\n- P(O AND R) = ___________\n- P(O OR R) = ____________\n- In the Venn Diagram, describe the overlapping area using a complete sentence.\n- In the Venn Diagram, describe the area in the rectangle but outside both the circle and the oval using a complete sentence.\na. 0.51; b. 0.075; c. 0.04; d. 0.545; e. The area represents the African Americans that have type O blood and the Rh- factor. f. The area represents the African Americans that have neither type O blood nor the Rh- factor.\nTry It\nIn a bookstore, the probability that the customer buys a novel is 0.6, and the probability that the customer buys a non-fiction book is 0.4. Suppose that the probability that the customer buys both is 0.2.\n- Draw a Venn diagram representing the situation.\n- Find the probability that the customer buys either a novel or a non-fiction book.\n- In the Venn diagram, describe the overlapping area using a complete sentence.\n- Suppose that some customers buy only compact disks. Draw an oval in your Venn diagram representing this event.\nReferences\nData from Clara County Public H.D.\nData from the American Cancer Society.\nData from The Data and Story Library, 1996. Available online at http://lib.stat.cmu.edu/DASL/ (accessed May 2, 2013).\nData from the Federal Highway Administration, part of the United States Department of Transportation.\nData from the United States Census Bureau, part of the United States Department of Commerce.\nData from USA Today.\n“Environment.” The World Bank, 2013. Available online at http://data.worldbank.org/topic/environment (accessed May 2, 2013).\n“Search for Datasets.” Roper Center: Public Opinion Archives, University of Connecticut., 2013. Available online at http://www.ropercenter.uconn.edu/data_access/data/search_for_datasets.html (accessed May 2, 2013).\nChapter Review\nA tree diagram use branches to show the different outcomes of experiments and makes complex probability questions easy to visualize.\nA Venn diagram is a picture that represents the outcomes of an experiment. It generally consists of a box that represents the sample space S together with circles or ovals. The circles or ovals represent events. A Venn diagram is especially helpful for visualizing the OR event, the AND event, and the complement of an event and for understanding conditional probabilities.\nThe probability that a man develops some form of cancer in his lifetime is 0.4567. The probability that a man has at least one false positive test result (meaning the test comes back for cancer when the man does not have it) is 0.51. Let: C = a man develops cancer in his lifetime; P = man has at least one false positive. Construct a tree diagram of the situation.\n[Image: This is a tree diagram with two branches. The first branch, labeled Cancer, shows two lines: 0.4567 C and 0.5433 C'. The second branch is labeled False Positive. From C, there are two lines: 0 P and 1 P'. From C', there are two lines: 0.51 P and 0.49 P'.]\nHomework\nUse the following information to answer the next two exercises. This tree diagram shows the tossing of an unfair coin followed by drawing one bead from a cup containing three red (R), four yellow (Y) and five blue (B) beads. For the coin, P(H) = $\\frac{2}{3}$ and P(T) = $\\frac{1}{3}$ where H is heads and T is tails.\n[Image: Tree diagram with 2 branches. The first branch consists of 2 lines of H=2/3 and T=1/3. The second branch consists of 2 sets of 3 lines each with the both sets containing R=3/12, Y=4/12, and B=5/12.]\nFind P(tossing a Head on the coin AND a Red bead)\n- $\\frac{2}{3}$\n- $\\frac{5}{15}$\n- $\\frac{6}{36}$\n- $\\frac{5}{36}$\nFind P(Blue bead).\n- $\\frac{15}{36}$\n- $\\frac{10}{36}$\n- $\\frac{10}{12}$\n- $\\frac{6}{36}$\na\nA box of cookies contains three chocolate and seven butter cookies. Miguel randomly selects a cookie and eats it. Then he randomly selects another cookie and eats it. (How many cookies did he take?)\n- Draw the tree that represents the possibilities for the cookie selections. Write the probabilities along each branch of the tree.\n- Are the probabilities for the flavor of the SECOND cookie that Miguel selects independent of his first selection? Explain.\n- For each complete path through the tree, write the event it represents and find the probabilities.\n- Let S be the event that both cookies selected were the same flavor. Find P(S).\n- Let T be the event that the cookies selected were different flavors. Find P(T) by two different methods: by using the complement rule and by using the branches of the tree. Your answers should be the same with both methods.\n- Let U be the event that the second cookie selected is a butter cookie. Find P(U).\nBringing It Together\nUse the following information to answer the next two exercises. Suppose that you have eight cards. Five are green and three are yellow. The cards are well shuffled.\nSuppose that you randomly draw two cards, one at a time, with replacement. Let G1 = first card is green Let G2 = second card is green\n- Draw a tree diagram of the situation.\n- Find P(G1 AND G2).\n- Find P(at least one green).\n- Find P(G2|G1).\n- Are G2 and G1 independent events? Explain why or why not.\n-\n[Image: This is a tree diagram with branches showing probabilities of each draw. The first branch shows two lines: 5/8 Green and 3/8 Yellow. The second branch has a set of two lines (5/8 Green and 3/8 Yellow) for each line of the first branch.]\n- P(GG) = $(\\frac{5}{8})(\\frac{5}{8})$ = $\\frac{25}{64}$\n- P(at least one green) = P(GG) + P(GY) + P(YG) = $\\frac{25}{64}$ + $\\frac{15}{64}$ + $\\frac{15}{64}$ = $\\frac{55}{64}$\n- P(G|G) = $\\frac{5}{8}$\n- Yes, they are independent because the first card is placed back in the bag before the second card is drawn; the composition of cards in the bag remains the same from draw one to draw two.\nSuppose that you randomly draw two cards, one at a time, without replacement. G1 = first card is green G2 = second card is green\n- Draw a tree diagram of the situation.\n- Find P(G1 AND G2).\n- Find P(at least one green).\n- Find P(G2|G1).\n- Are G2 and G1 independent events? Explain why or why not.\nUse the following information to answer the next two exercises. The percent of licensed U.S. drivers (from a recent year) that are women is 48.60. Of the women, 5.03% are age 19 and under; 81.36% are age 20–64; 13.61% are age 65 or over. Of the licensed U.S. men drivers, 5.04% are age 19 and under; 81.43% are age 20–64; 13.53% are age 65 or over.\nComplete the following.\n- Construct a table or a tree diagram of the situation.\n- Find P(driver is a woman).\n- Find P(driver is age 65 or over|driver is a woman).\n- Find P(driver is age 65 or over AND a woman).\n- In words, explain the difference between the probabilities in part c and part d.\n- Find P(driver is age 65 or over).\n- Are being age 65 or over and being a woman mutually exclusive events? How do you know?\n-\n<20 | 20–64 | >64 | Totals\nWomen | 0.0244 | 0.3954 | 0.0661 | 0.486\nMen | 0.0259 | 0.4186 | 0.0695 | 0.514\nTotals | 0.0503 | 0.8140 | 0.1356 | 1\n- P(F) = 0.486\n- P(>64|F) = 0.1361\n- P(>64 and F) = P(F) P(>64|F) = (0.486)(0.1361) = 0.0661\n- P(>64|F) is the percentage of women drivers who are 65 or older and P(>64 and F) is the percentage of drivers who are women and 65 or older.\n- P(>64) = P(>64 and F) + P(>64 and M) = 0.1356\n- No, being a woman and 65 or older are not mutually exclusive because they can occur at the same time P(>64 and F) = 0.0661.\nSuppose that 10,000 U.S. licensed drivers are randomly selected.\n- How many would you expect to be men?\n- Using the table or tree diagram, construct a contingency table of gender versus age group.\n- Using the contingency table, find the probability that out of the age 20–64 group, a randomly selected driver is a woman.\nApproximately 86.5% of Americans commute to work by car, truck, or van. Out of that group, 84.6% drive alone and 15.4% drive in a carpool. Approximately 3.9% walk to work and approximately 5.3% take public transportation.\n- Construct a table or a tree diagram of the situation. Include a branch for all other modes of transportation to work.\n- Assuming that the walkers walk alone, what percent of all commuters travel alone to work?\n- Suppose that 1,000 workers are randomly selected. How many would you expect to travel alone to work?\n- Suppose that 1,000 workers are randomly selected. How many would you expect to drive in a carpool?\n-\nCar, Truck or Van | Walk | Public Transportation | Other | Totals\nAlone | 0.7318\nNot Alone | 0.1332\nTotals | 0.8650 | 0.0390 | 0.0530 | 0.0430 | 1\n- If we assume that all walkers are alone and that none from the other two groups travel alone (which is a big assumption) we have: P(Alone) = 0.7318 + 0.0390 = 0.7708.\n- Make the same assumptions as in (b) we have: (0.7708)(1,000) = 771\n- (0.1332)(1,000) = 133\nWhen the Euro coin was introduced in 2002, two math professors had their statistics students test whether the Belgian one Euro coin was a fair coin. They spun the coin rather than tossing it and found that out of 250 spins, 140 showed a head (event H) while 110 showed a tail (event T). On that basis, they claimed that it is not a fair coin.\n- Based on the given data, find P(H) and P(T).\n- Use a tree to find the probabilities of each possible outcome for the experiment of tossing the coin twice.\n- Use the tree to find the probability of obtaining exactly one head in two tosses of the coin.\n- Use the tree to find the probability of obtaining at least one head.\nUse the following information to answer the next two exercises. The following data represent the number of new vehicles purchased over a monthly time period in a certain county, within two age groups: people in their twenties and people in their thirties.\nSedan | SUV | Minivan | Other | Totals\nTwenties | 1,135 | 290 | 583 | 158\nThirties | 1,246 | 463 | 241 | 190\nTotals\nSuppose a person from this county is randomly selected.\n- Find P(Person is in their twenties).\n- Find P(Person purchases minivan).\n- Find P(Person is in their twenties OR purchases an SUV).\n- Find P(Person is in their twenties AND purchases a SEDAN).\n- Find P(Person is in their thirties AND purchases an SUV).\n- Find P(Person is in their twenties GIVEN person purchases a minivan).\nThe completed contingency table is as follows:\nSedan | SUV | Minivan | Other | Totals\nTwenties | 1,135 | 290 | 583 | 158 | 2166\nThirties | 1246 | 463 | 241 | 190 | 2140\nTotals | 2381 | 753 | 824 | 348 | 4306\nSuppose a person from this county is randomly selected.\n- P(Person is in their twenties) = 0.5030\n- P(Person purchases minivan) = 0.1914\n- P(Person is in their twenties OR has purchases an SUV) = 0.6105\n- P(Person is in their twenties AND purchases a SEDAN) = 0.0673\n- P(Person is in their thirties AND has purchases an SUV) = 0.1075\n- P(Person is in their twenties GIVEN person purchases a minivan) = 0.7075\nAnswer these questions using probability rules. Do NOT use the contingency table. A total of 6,481 new vehicles were purchased over a monthly time period in a certain county. These purchases will be our population. Of these purchases, 36% were made by people in their twenties, and 42% were purchases of sedans. 20% of purchases were for sedans purchased by people in their twenties.\n- Find P(Person is in their twenties).\n- Find P(Person purchased a sedan).\n- Find P(Person is in their twenties GIVEN person purchased a sedan)\n- P(Person is in their twenties) = 0.36.\n- P(Person purchased a sedan) = 0.42\n- P(Person is in their twenties a woman GIVEN person purchased a sedan) = 0.4762\n\nGlossary\nTree Diagram the useful visual representation of a sample space and events in the form of a “tree” with branches marked by possible outcomes together with associated probabilities (frequencies, relative frequencies)\nVenn Diagram the visual representation of a sample space and events in the form of circles or ovals showing their intersections"}
{"document_id": "openstax-intro-statistics-m50256", "title": "Probability Topics — Probability Topics", "source": "https://openstax.org/books/introductory-statistics-2e/pages/3-6-probability-topics", "license": "CC-BY-4.0", "text": "Probability Topics\nClass time:\nNames:\nStudent Learning Outcomes\n- The student will use theoretical and empirical methods to estimate probabilities.\n- The student will appraise the differences between the two estimates.\n- The student will demonstrate an understanding of long-term relative frequencies.\nDo the Experiment\nCount out 40 mixed-color M&Ms®, which is approximately one small bag’s worth. Record the number of each color in Table. Use the information from this table to complete Table.\nNext, put the M&Ms in a cup. The experiment is to pick two M&Ms, one at a time. Do not look at them as you pick them. The first time through, replace the first M&M before picking the second one. Record the results in the “With Replacement” column of Table. Do this 12 times.\nThe second time through, after picking the first M&M, do not replace it before picking the second one. Then, pick the second one. Record the results in the “Without Replacement” column section of Table. After you record the pick, put both M&Ms back. Do this a total of 12 times, also.\nUse the data from Table to calculate the empirical probabilities shown in Table.Leave your answers in unreduced fractional form. Do not multiply out any fractions.\nColor | Quantity\nYellow (Y)\nGreen (G)\nBlue (BL)\nBrown (B)\nOrange (O)\nRed (R)\nWith Replacement | Without Replacement\nP(2 reds)\nP(R1B2 OR B1R2)\nP(R1 AND G2)\nP(G2|R1)\nP(no yellows)\nP(doubles)\nP(no doubles)\nNOTE\nG2 = green on second pick; R1 = red on first pick; B1 = brown on first pick; B2 = brown on second pick; doubles = both picks are the same colour.\nWith Replacement | Without Replacement\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\n(__, __) (__, __) | (__, __) (__, __)\nWith Replacement | Without Replacement\nP(2 reds)\nP(R1B2 OR B1R2)\nP(R1 AND G2)\nP(G2|R1)\nP(no yellows)\nP(doubles)\nP(no doubles)\nDiscussion Questions\n- Why are the “With Replacement” and “Without Replacement” probabilities different?\n- Convert P(no yellows) to decimal format for both Theoretical “With Replacement” and for Empirical “With Replacement”. Round to four decimal places.\n- Theoretical “With Replacement”: P(no yellows) = _______\n- Empirical “With Replacement”: P(no yellows) = _______\n- Are the decimal values “close”? Did you expect them to be closer together or farther apart? Why?\n- If you increased the number of times you picked two M&Ms to 240 times, why would empirical probability values change?\n- Would this change (see part 3) cause the empirical probabilities and theoretical probabilities to be closer together or farther apart? How do you know?\n- Explain the differences in what P(G1 AND R2) and P(R1|G2) represent. Hint: Think about the sample space for each probability."}
{"document_id": "openstax-intro-statistics-m46963", "title": "Discrete Random Variables — Probability Distribution Function (PDF) for a Discrete Random Variable", "source": "https://openstax.org/books/introductory-statistics-2e/pages/4-1-probability-distribution-function-pdf-for-a-discrete-random-variable", "license": "CC-BY-4.0", "text": "A discrete probability distribution function has two characteristics:\n- Each probability is between zero and one, inclusive.\n- The sum of the probabilities is one.\nA child psychologist is interested in the number of times a newborn baby's crying wakes its mother after midnight. For a random sample of 50 mothers, the following information was obtained. Let X = the number of times per week a newborn baby's crying wakes its mother after midnight. For this example, x = 0, 1, 2, 3, 4, 5.\nP(x) = probability that X takes on a value x.\nx | P(x)\n0 | P(x = 0) = $\\frac{2}{50}$\n1 | P(x = 1) = $\\frac{11}{50}$\n2 | P(x = 2) = $\\frac{23}{50}$\n3 | P(x = 3) = $\\frac{9}{50}$\n4 | P(x = 4) = $\\frac{4}{50}$\n5 | P(x = 5) = $\\frac{1}{50}$\nX takes on the values 0, 1, 2, 3, 4, 5. This is a discrete PDF because:\n- Each P(x) is between zero and one, inclusive.\n- The sum of the probabilities is one, that is,\n$$\\frac{2}{50}+\\frac{11}{50}+\\frac{23}{50}+\\frac{9}{50}+\\frac{4}{50}+\\frac{1}{50}=1$$\nTry It\nA hospital researcher is interested in the number of times the average post-op patient will ring the nurse during a 12-hour shift. For a random sample of 50 patients, the following information was obtained. Let X = the number of times a patient rings the nurse during a 12-hour shift. For this exercise, x = 0, 1, 2, 3, 4, 5. P(x) = the probability that X takes on value x. Why is this a discrete probability distribution function (two reasons)?\nx | P(x)\n0 | P(x = 0) = $\\frac{4}{50}$\n1 | P(x = 1) = $\\frac{8}{50}$\n2 | P(x = 2) = $\\frac{16}{50}$\n3 | P(x = 3) = $\\frac{14}{50}$\n4 | P(x = 4) = $\\frac{6}{50}$\n5 | P(x = 5) = $\\frac{2}{50}$\nSuppose Nancy has classes three days a week. She attends classes three days a week 80% of the time, two days 15% of the time, one day 4% of the time, and no days 1% of the time. Suppose one week is randomly selected.\na. Let X = the number of days Nancy ____________________.\nb. X takes on what values?\nc. Suppose one week is randomly chosen. Construct a probability distribution table (called a PDF table) like the one in Example. The table should have two columns labeled x and P(x). What does the P(x) column sum to?\na. Let X = the number of days Nancy attends class per week.\nb. 0, 1, 2, and 3\nc.\nx | P(x)\n0 | 0.01\n1 | 0.04\n2 | 0.15\n3 | 0.80\nTry It\nJeremiah has basketball practice two days a week. Ninety percent of the time, he attends both practices. Eight percent of the time, he attends one practice. Two percent of the time, he does not attend either practice. What is X and what values does it take on?\nChapter Review\nThe characteristics of a probability distribution function (PDF) for a discrete random variable are as follows:\n- Each probability is between zero and one, inclusive (inclusive means to include zero and one).\n- The sum of the probabilities is one.\nUse the following information to answer the next five exercises: A company wants to evaluate its attrition rate, in other words, how long new hires stay with the company. Over the years, they have established the following probability distribution.\nLet X = the number of years a new hire will stay with the company.\nLet P(x) = the probability that a new hire will stay with the company x years.\nComplete Table using the data provided.\nx | P(x)\n0 | 0.12\n1 | 0.18\n2 | 0.30\n3 | 0.15\n4\n5 | 0.10\n6 | 0.05\nx | P(x)\n0 | 0.12\n1 | 0.18\n2 | 0.30\n3 | 0.15\n4 | 0.10\n5 | 0.10\n6 | 0.05\nP(x = 4) = _______\nP(x ≥ 5) = _______\n0.10 + 0.05 = 0.15\nOn average, how long would you expect a new hire to stay with the company?\nWhat does the column “P(x)” sum to?\n1\nUse the following information to answer the next six exercises: A baker is deciding how many batches of muffins to make to sell in his bakery. He wants to make enough to sell every one and no fewer. Through observation, the baker has established a probability distribution.\nx | P(x)\n1 | 0.15\n2 | 0.35\n3 | 0.40\n4 | 0.10\nDefine the random variable X.\nWhat is the probability the baker will sell more than one batch? P(x > 1) = _______\n0.35 + 0.40 + 0.10 = 0.85\nWhat is the probability the baker will sell exactly one batch? P(x = 1) = _______\nOn average, how many batches should the baker make?\n1(0.15) + 2(0.35) + 3(0.40) + 4(0.10) = 0.15 + 0.70 + 1.20 + 0.40 = 2.45\nUse the following information to answer the next four exercises: Ellen has music practice three days a week. She practices for all of the three days 85% of the time, two days 8% of the time, one day 4% of the time, and no days 3% of the time. One week is selected at random.\nDefine the random variable X.\nConstruct a probability distribution table for the data.\nx | P(x)\n0 | 0.03\n1 | 0.04\n2 | 0.08\n3 | 0.85\nWe know that for a probability distribution function to be discrete, it must have two characteristics. One is that the sum of the probabilities is one. What is the other characteristic?\nUse the following information to answer the next five exercises: Javier volunteers in community events each month. He does not do more than five events in a month. He attends exactly five events 35% of the time, four events 25% of the time, three events 20% of the time, two events 10% of the time, one event 5% of the time, and no events 5% of the time.\nDefine the random variable X.\nLet X = the number of events Javier volunteers for each month.\nWhat values does x take on?\nConstruct a PDF table.\nx | P(x)\n0 | 0.05\n1 | 0.05\n2 | 0.10\n3 | 0.20\n4 | 0.25\n5 | 0.35\nFind the probability that Javier volunteers for less than three events each month. P(x < 3) = _______\nFind the probability that Javier volunteers for at least one event each month. P(x > 0) = _______\n1 – 0.05 = 0.95\nHomework\nSuppose that the PDF for the number of years it takes to earn a Bachelor of Science (B.S.) degree is given in Table.\nx | P(x)\n3 | 0.05\n4 | 0.40\n5 | 0.30\n6 | 0.15\n7 | 0.10\n- In words, define the random variable X.\n- What does it mean that the values zero, one, and two are not included for x in the PDF?\n\nGlossary\nProbability Distribution Function (PDF) a mathematical description of a discrete random variable (RV), given either in the form of an equation (formula) or in the form of a table listing all the possible outcomes of an experiment and the probability associated with each outcome."}
{"document_id": "openstax-intro-statistics-m46959", "title": "Discrete Random Variables — Mean or Expected Value and Standard Deviation", "source": "https://openstax.org/books/introductory-statistics-2e/pages/4-2-mean-or-expected-value-and-standard-deviation", "license": "CC-BY-4.0", "text": "The expected value is often referred to as the \"long-term\" average or mean. This means that over the long term of doing an experiment over and over, you would expect this average.\nYou toss a coin and record the result. What is the probability that the result is heads? If you flip a coin two times, does probability tell you that these flips will result in one heads and one tail? You might toss a fair coin ten times and record nine heads. As you learned in Probability Topics, probability does not describe the short-term results of an experiment. It gives information about what can be expected in the long term. To demonstrate this, Karl Pearson once tossed a fair coin 24,000 times! He recorded the results of each toss, obtaining heads 12,012 times. In his experiment, Pearson illustrated the Law of Large Numbers.\nThe Law of Large Numbers states that, as the number of trials in a probability experiment increases, the difference between the theoretical probability of an event and the relative frequency approaches zero (the theoretical probability and the relative frequency get closer and closer together). When evaluating the long-term results of statistical experiments, we often want to know the “average” outcome. This “long-term average” is known as the mean or expected value of the experiment and is denoted by the Greek letter μ. In other words, after conducting many trials of an experiment, you would expect this average value.\nThe mean, μ, of a discrete probability function is the expected value.\n$$\\mu=\\sum(x∙P\\left(x \\right))$$\nThe standard deviation, σ, of the PDF is the square root of the variance.\n$$\\sigma=\\sqrt{\\sum[{\\left(x–\\mu \\right)}^{2}∙Ρ\\left(x \\right)]}$$\nWhen all outcomes in the probability distribution are equally likely, these formulas coincide with the mean and standard deviation of the set of possible outcomes.\nNOTE\nTo find the expected value or long term average, μ, simply multiply each value of the random variable by its probability and add the products.\nA soccer team plays soccer zero, one, or two days a week. The probability that they play zero days is 0.2, the probability that they play one day is 0.5, and the probability that they play two days is 0.3. Find the long-term average or expected value, μ, of the number of days per week the soccer team plays soccer.\nTo do the problem, first let the random variable X = the number of days the soccer team plays soccer per week. X takes on the values 0, 1, 2. Construct a PDF table adding a column x*P(x). In this column, you will multiply each x value by its probability.\nx | P(x) | x*P(x)\n0 | 0.2 | (0)(0.2) = 0\n1 | 0.5 | (1)(0.5) = 0.5\n2 | 0.3 | (2)(0.3) = 0.6\nAdd the last column x*P(x) to find the long term average or expected value: (0)(0.2) + (1)(0.5) + (2)(0.3) = 0 + 0.5 + 0.6 = 1.1.\nThe expected value is 1.1. The soccer team would, on the average, expect to play soccer 1.1 days per week. The number 1.1 is the long-term average or expected value if the soccer team plays soccer week after week after week. We say μ = 1.1.\nTry It\nA customer orders 1, 2, or 3 bottles of water. The probability of ordering 1 bottle is 0.6, the probability of ordering 2 bottles is 0.3, and the probability of ordering 3 bottles is 0.1. Find the long-term average or expected value, μ, of the number of bottles a customer will order.\nLet random variable X = the number of bottles of water a customer orders. X can take values 1, 2, 3. Construct a PDF table.\nx | P(x) | $x*P(x)$\n1 | 0.6 | $(1)(0.6)=0.6$\n2 | 0.3 | $(2)(0.3)=0.6$\n3 | 0.1 | $(3)(0.1)=0.3$\nThe total of $x*P(x)$ is obtained as $0.6+0.6+0.3=1.5$. So, the long-term average or expected value is obtained as μ = 1.5.\nFind the expected value of the number of times a newborn baby's crying wakes its parents after midnight. The expected value is the expected number of times per week a newborn baby's crying wakes its parents after midnight. Calculate the standard deviation of the variable as well.\nx | P(x) | x*P(x) | (x – μ)2 ⋅ P(x)\n0 | P(x = 0) = $\\frac{2}{50}$ | (0)$(\\frac{2}{50})$ = 0 | (0 – 2.1)2 ⋅ 0.04 = 0.1764\n1 | P(x = 1) = $(\\frac{11}{50})$ | (1)$(\\frac{11}{50})$ = $\\frac{11}{50}$ | (1 – 2.1)2 ⋅ 0.22 = 0.2662\n2 | P(x = 2) = $\\frac{23}{50}$ | (2)$(\\frac{23}{50})$ = $\\frac{46}{50}$ | (2 – 2.1)2 ⋅ 0.46 = 0.0046\n3 | P(x = 3) = $\\frac{9}{50}$ | (3)$(\\frac{9}{50})$ = $\\frac{27}{50}$ | (3 – 2.1)2 ⋅ 0.18 = 0.1458\n4 | P(x = 4) = $\\frac{4}{50}$ | (4)$(\\frac{4}{50})$ = $\\frac{16}{50}$ | (4 – 2.1)2 ⋅ 0.08 = 0.2888\n5 | P(x = 5) = $\\frac{1}{50}$ | (5)$(\\frac{1}{50})$ = $\\frac{5}{50}$ | (5 – 2.1)2 ⋅ 0.02 = 0.1682\nAdd the values in the third column of the table to find the expected value of X: μ = Expected Value = $\\frac{105}{50}$ = 2.1\nUse μ to complete the table. The fourth column of this table will provide the values you need to calculate the standard deviation. For each value x, multiply the square of its deviation by its probability. (Each deviation has the format x – μ).\nAdd the values in the fourth column of the table:\n0.1764 + 0.2662 + 0.0046 + 0.1458 + 0.2888 + 0.1682 = 1.05\nThe standard deviation of X is the square root of this sum: σ = $\\sqrt{1.05}$ ≈ 1.0247\nTry It\nA hospital researcher is interested in the number of times the average post-op patient will ring the nurse during a 12-hour shift. For a random sample of 50 patients, the following information was obtained. What is the expected value?\nx | P(x)\n0 | P(x = 0) = $\\frac{4}{50}$\n1 | P(x = 1) = $\\frac{8}{50}$\n2 | P(x = 2) = $\\frac{16}{50}$\n3 | P(x = 3) = $\\frac{14}{50}$\n4 | P(x = 4) = $\\frac{6}{50}$\n5 | P(x = 5) = $\\frac{2}{50}$\nSuppose you play a game of chance in which five numbers are chosen from 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. A computer randomly selects five numbers from zero to nine with replacement. You pay \\$2 to play and could profit \\$100,000 if you match all five numbers in order (you get your \\$2 back plus \\$100,000). Over the long term, what is your expected profit of playing the game?\nTo do this problem, set up an expected value table for the amount of money you can profit.\nLet X = the amount of money you profit. The values of x are not 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Since you are interested in your profit (or loss), the values of x are 100,000 dollars and −2 dollars.\nTo win, you must get all five numbers correct, in order. The probability of choosing one correct number is $\\frac{1}{10}$ because there are ten numbers. You may choose a number more than once. The probability of choosing all five numbers correctly and in order is\n$$(\\frac{1}{10})(\\frac{1}{10})(\\frac{1}{10})(\\frac{1}{10})(\\frac{1}{10})=(1)({10}^{-5})=0.00001.$$\nTherefore, the probability of winning is 0.00001 and the probability of losing is\n$$1-0.00001=0.99999.$$\nThe expected value table is as follows:\nx | P(x) | x*P(x)\nLoss | –2 | 0.99999 | (–2)(0.99999) = –1.99998\nProfit | 100,000 | 0.00001 | (100000)(0.00001) = 1\nSince –0.99998 is about –1, you would, on average, expect to lose approximately \\$1 for each game you play. However, each time you play, you either lose \\$2 or profit \\$100,000. The \\$1 is the average or expected LOSS per game after playing this game over and over.\nTry It\nYou are playing a game of chance in which four cards are drawn from a standard deck of 52 cards. You guess the suit of each card before it is drawn. The cards are replaced in the deck on each draw. You pay \\$1 to play. If you guess the right suit every time, you get your money back and \\$256. What is your expected profit of playing the game over the long term?\nSuppose you play a game with a biased coin. You play each game by tossing the coin once. P(heads) = $\\frac{2}{3}$ and P(tails) = $\\frac{1}{3}$. If you toss a head, you pay \\$6. If you toss a tail, you win \\$10. If you play this game many times, will you come out ahead?\na. Define a random variable X.\nb. Complete the following expected value table.\nx\nWIN | 10 | $\\frac{1}{3}$\nLOSE | $\\frac{–12}{3}$\nc. What is the expected value, μ? Do you come out ahead?\na. X = amount of profit\nb.\nx | P(x) | xP(x)\nWIN | 10 | $\\frac{1}{3}$ | $\\frac{10}{3}$\nLOSE | –6 | $\\frac{2}{3}$ | $\\frac{–12}{3}$\nc. Add the last column of the table. The expected value μ = $\\frac{\\text{–}2}{3}$. You lose, on average, about 67 cents each time you play the game so you do not come out ahead.\nTry It\nSuppose you play a game with a spinner. You play each game by spinning the spinner once. P(red) = $\\frac{2}{5}$, P(blue) = $\\frac{2}{5}$, and P(green) = $\\frac{1}{5}$. If you land on red, you pay \\$10. If you land on blue, you don't pay or win anything. If you land on green, you win \\$10. Complete the following expected value table.\nx | P(x)\nRed | $\\text{–}\\frac{20}{5}$\nBlue | $\\frac{2}{5}$\nGreen | 10\nLike data, probability distributions have standard deviations. To calculate the standard deviation (σ) of a probability distribution, find each deviation from its expected value, square it, multiply it by its probability, add the products, and take the square root. To understand how to do the calculation, look at the table for the number of days per week a men's soccer team plays soccer. To find the standard deviation, add the entries in the column labeled (x – μ)2P(x) and take the square root.\nx | P(x) | x*P(x) | (x – μ)2P(x)\n0 | 0.2 | (0)(0.2) = 0 | (0 – 1.1)2(0.2) = 0.242\n1 | 0.5 | (1)(0.5) = 0.5 | (1 – 1.1)2(0.5) = 0.005\n2 | 0.3 | (2)(0.3) = 0.6 | (2 – 1.1)2(0.3) = 0.243\nAdd the last column in the table. 0.242 + 0.005 + 0.243 = 0.490. The standard deviation is the square root of 0.49, or σ = $\\sqrt{0.49}$ = 0.7\nGenerally for probability distributions, we use a calculator or a computer to calculate μ and σ to reduce roundoff error. For some probability distributions, there are short-cut formulas for calculating μ and σ.\nToss a fair, six-sided die twice. Let X = the number of faces that show an even number. Construct a table like Table and calculate the mean μ and standard deviation σ of X.\nTossing one fair six-sided die twice has the same sample space as tossing two fair six-sided dice. The sample space has 36 outcomes:\n(1, 1) | (1, 2) | (1, 3) | (1, 4) | (1, 5) | (1, 6)\n(2, 1) | (2, 2) | (2, 3) | (2, 4) | (2, 5) | (2, 6)\n(3, 1) | (3, 2) | (3, 3) | (3, 4) | (3, 5) | (3, 6)\n(4, 1) | (4, 2) | (4, 3) | (4, 4) | (4, 5) | (4, 6)\n(5, 1) | (5, 2) | (5, 3) | (5, 4) | (5, 5) | (5, 6)\n(6, 1) | (6, 2) | (6, 3) | (6, 4) | (6, 5) | (6, 6)\nUse the sample space to complete the following table:\nx | P(x) | xP(x) | (x – μ)2 $\\cdot$ P(x)\n0 | $\\frac{9}{36}$ | 0 | (0 – 1)2 ⋅ $\\frac{9}{36}$ = $\\frac{9}{36}$\n1 | $\\frac{18}{36}$ | $\\frac{18}{36}$ | (1 – 1)2 ⋅ $\\frac{18}{36}$ = 0\n2 | $\\frac{9}{36}$ | $\\frac{18}{36}$ | (2 – 1)2 ⋅ $\\frac{9}{36}$ = $\\frac{9}{36}$\nAdd the values in the third column to find the expected value: μ = $\\frac{36}{36}$ = 1. Use this value to complete the fourth column.\nAdd the values in the fourth column and take the square root of the sum: σ = $\\sqrt{\\frac{18}{36}}$ ≈ 0.7071.\nTry It\nTwo stacks of cards are placed on a table. Each stack has cards number 1 to 8. One card from each stack is picked up. Let X = number of cards showing an odd number. Construct a table like Table 4.11 and calculate the mean µ and standard deviation σ of X.\nThe sample space has 64 outcomes:\n(1,1) | (1,2) | (1,3) | (1,4) | (1,5) | (1,6) | (1,7) | (1,8)\n(2,1) | (2,2) | (2,3) | (2,4) | (2,5) | (2,6) | (2,7) | (2,8)\n(3,1) | (3,2) | (3,3) | (3,4) | (3,5) | (3,6) | (3,7) | (3,8)\n(4,1) | (4,2) | (4,3) | (4,4) | (4,5) | (4,6) | (4,7) | (4,8)\n(5,1) | (5,2) | (5,3) | (5,4) | (5,5) | (5,6) | (5,7) | (5,8)\n(6,1) | (6,2) | (6,3) | (6,4) | (6,5) | (6,6) | (6,7) | (6,8)\n(7,1) | (7,2) | (7,3) | (7,4) | (7,5) | (7,6) | (7,7) | (7,8)\n(8,1) | (8,2) | (8,3) | (8,4) | (8,5) | (8,6) | (8,7) | (8,8)\nThe sample space is used to complete the following table:\nx | P(x) | x*P(x) | ${\\left(x-\\mu \\right)}^{2}\\cdot P\\left(x \\right)$\n0 | $\\frac{16}{64}$ | 0 | ${(0-1)}^{2}\\cdot\\frac{16}{64}=\\frac{16}{64}$\n1 | $\\frac{32}{64}$ | $\\frac{32}{64}$ | ${(1-1)}^{2}\\cdot\\frac{32}{64}=0$\n2 | $\\frac{16}{64}$ | $\\frac{32}{64}$ | ${(2-1)}^{2}\\cdot\\frac{16}{64}=\\frac{16}{64}$\nThe mean is calculated by adding the values in the third column of P(x), so $\\frac{64}{64}=1$.\nThe square root of the sum of values obtained in the fourth column will give the standard deviation, $\\sigma=\\sqrt{\\frac{32}{64}}=0.7071$.\nOn May 11, 2013 at 9:30 PM, the probability that moderate seismic activity (one moderate earthquake) would occur in the next 48 hours in Iran was about 21.42%. Suppose you make a bet that a moderate earthquake will occur in Iran during this period. If you win the bet, you win \\$50. If you lose the bet, you pay \\$20. Let X = the amount of profit from a bet.\nP(win) = P(one moderate earthquake will occur) = 21.42%\nP(loss) = P(one moderate earthquake will not occur) = 100% – 21.42%\nIf you bet many times, will you come out ahead? Explain your answer in a complete sentence using numbers. What is the standard deviation of X? Construct a table similar to Table and Table to help you answer these questions.\nx | P(x) | x(Px) | (x – μ)2P(x)\nwin | 50 | 0.2142 | 10.71 | [50 – (–5.006)]2(0.2142) = 648.0964\nloss | –20 | 0.7858 | –15.716 | [–20 – (–5.006)]2(0.7858) = 176.6636\nMean = Expected Value = 10.71 + (–15.716) = –5.006.\nIf you make this bet many times under the same conditions, your long term outcome will be an average loss of \\$5.01 per bet.\n$\\text{Standard Deviation =}\\sqrt{648.0964+176.6636}\\approx28.7186$\nTry It\nOn May 11, 2013 at 9:30 PM, the probability that moderate seismic activity (one moderate earthquake) would occur in the next 48 hours in Japan was about 1.08%. As in Example, you bet that a moderate earthquake will occur in Japan during this period. If you win the bet, you win \\$100. If you lose the bet, you pay \\$10. Let X = the amount of profit from a bet. Find the mean and standard deviation of X.\nSome of the more common discrete probability functions are binomial, geometric, hypergeometric, and Poisson. Most elementary courses do not cover the geometric, hypergeometric, and Poisson. Your instructor will let you know if they wish to cover these distributions.\nA probability distribution function is a pattern. You try to fit a probability problem into a pattern or distribution in order to perform the necessary calculations. These distributions are tools to make solving probability problems easier. Each distribution has its own special characteristics. Learning the characteristics enables you to distinguish among the different distributions.\nReferences\nClass Catalogue at the Florida State University. Available online at https://apps.oti.fsu.edu/RegistrarCourseLookup/SearchFormLegacy (accessed May 15, 2013).\n“World Earthquakes: Live Earthquake News and Highlights,” World Earthquakes, 2012. http://www.world-earthquakes.com/index.php?option=ethq_prediction (accessed May 15, 2013).\nChapter Review\nThe expected value, or mean, of a discrete random variable predicts the long-term results of a statistical experiment that has been repeated many times. The standard deviation of a probability distribution is used to measure the variability of possible outcomes.\nFormula Review\nMean or Expected Value: $\\mu={{\\sum}^{\\text{​}}}_{x\\in X}xP(x)$\nStandard Deviation: $\\sigma=\\sqrt{{{\\sum}^{\\text{​}}}_{x\\in X}{(x-\\mu)}^{2}P(x)}$\nComplete the expected value table.\nx | P(x) | x*P(x)\n0 | 0.2\n1 | 0.2\n2 | 0.4\n3 | 0.2\nFind the expected value from the expected value table.\nx | P(x) | x*P(x)\n2 | 0.1 | 2(0.1) = 0.2\n4 | 0.3 | 4(0.3) = 1.2\n6 | 0.4 | 6(0.4) = 2.4\n8 | 0.2 | 8(0.2) = 1.6\n0.2 + 1.2 + 2.4 + 1.6 = 5.4\nFind the standard deviation.\nx | P(x) | x*P(x) | (x – μ)2P(x)\n2 | 0.1 | 2(0.1) = 0.2 | (2–5.4)2(0.1) = 1.156\n4 | 0.3 | 4(0.3) = 1.2 | (4–5.4)2(0.3) = 0.588\n6 | 0.4 | 6(0.4) = 2.4 | (6–5.4)2(0.4) = 0.144\n8 | 0.2 | 8(0.2) = 1.6 | (8–5.4)2(0.2) = 1.352\nIdentify the mistake in the probability distribution table.\nx | P(x) | x*P(x)\n1 | 0.15 | 0.15\n2 | 0.25 | 0.50\n3 | 0.30 | 0.90\n4 | 0.20 | 0.80\n5 | 0.15 | 0.75\nThe values of P(x) do not sum to one.\nIdentify the mistake in the probability distribution table.\nx | P(x) | x*P(x)\n1 | 0.15 | 0.15\n2 | 0.25 | 0.40\n3 | 0.25 | 0.65\n4 | 0.20 | 0.85\n5 | 0.15 | 1\nUse the following information to answer the next five exercises: A physics professor wants to know what percent of physics majors will spend the next several years doing post-graduate research. They have the following probability distribution.\nx | P(x) | x*P(x)\n1 | 0.35\n2 | 0.20\n3 | 0.15\n4\n5 | 0.10\n6 | 0.05\nDefine the random variable X.\nLet X = the number of years a physics major will spend doing post-graduate research.\nDefine P(x), or the probability of x.\nFind the probability that a physics major will do post-graduate research for four years. P(x = 4) = _______\n1 – 0.35 – 0.20 – 0.15 – 0.10 – 0.05 = 0.15\nFInd the probability that a physics major will do post-graduate research for at most three years. P(x ≤ 3) = _______\nOn average, how many years would you expect a physics major to spend doing post-graduate research?\n1(0.35) + 2(0.20) + 3(0.15) + 4(0.15) + 5(0.10) + 6(0.05) = 0.35 + 0.40 + 0.45 + 0.60 + 0.50 + 0.30 = 2.6 years\nUse the following information to answer the next seven exercises: A ballet instructor is interested in knowing what percent of each year's class will continue on to the next, so that she can plan what classes to offer. Over the years, she has established the following probability distribution.\n- Let X = the number of years a student will study ballet with the teacher.\n- Let P(x) = the probability that a student will study ballet x years.\nComplete Table using the data provided.\nx | P(x) | x*P(x)\n1 | 0.10\n2 | 0.05\n3 | 0.10\n4\n5 | 0.30\n6 | 0.20\n7 | 0.10\nIn words, define the random variable X.\nX is the number of years a student studies ballet with the teacher.\nP(x = 4) = _______\nP(x < 4) = _______\n0.10 + 0.05 + 0.10 = 0.25\nOn average, how many years would you expect a child to study ballet with this teacher?\nWhat does the column \"P(x)\" sum to and why?\nThe sum of the probabilities sum to one because it is a probability distribution.\nWhat does the column \"x*P(x)\" sum to and why?\nYou are playing a game by drawing a card from a standard deck and replacing it. If the card is a face card, you win \\$30. If it is not a face card, you pay \\$2. There are 12 face cards in a deck of 52 cards. What is the expected value of playing the game?\n$-2(\\frac{40}{52})+30(\\frac{12}{52})=-1.54+6.92=5.38$\nYou are playing a game by drawing a card from a standard deck and replacing it. If the card is a face card, you win \\$30. If it is not a face card, you pay \\$2. There are 12 face cards in a deck of 52 cards. Should you play the game?\nHOMEWORK\nA theater group holds a fund-raiser. It sells 100 raffle tickets for \\$5 apiece. Suppose you purchase four tickets. The prize is two passes to a Broadway show, worth a total of \\$150.\n- What are you interested in here?\n- In words, define the random variable X.\n- List the values that X may take on.\n- Construct a PDF.\n- If this fund-raiser is repeated often and you always purchase four tickets, what would be your expected average winnings per raffle?\nA game involves selecting a card from a regular 52-card deck and tossing a coin. The coin is a fair coin and is equally likely to land on heads or tails.\n- If the card is a face card, and the coin lands on Heads, you win \\$6\n- If the card is a face card, and the coin lands on Tails, you win \\$2\n- If the card is not a face card, you lose \\$2, no matter what the coin shows.\n- Find the expected value for this game (expected net gain or loss).\n- Explain what your calculations indicate about your long-term average profits and losses on this game.\n- Should you play this game to win money?\nThe variable of interest is X, or the gain or loss, in dollars.\nThe face cards jack, queen, and king. There are (3)(4) = 12 face cards and 52 – 12 = 40 cards that are not face cards.\nWe first need to construct the probability distribution for X. We use the card and coin events to determine the probability for each outcome, but we use the monetary value of X to determine the expected value.\nCard Event | X net gain/loss | P(X)\nFace Card and Heads | 6 | $(\\frac{12}{52})(\\frac{1}{2})=(\\frac{6}{52})$\nFace Card and Tails | 2 | $(\\frac{12}{52})(\\frac{1}{2})=(\\frac{6}{52})$\n(Not Face Card) and (H or T) | –2 | $(\\frac{40}{52})(1)=(\\frac{40}{52})$\n- $\\text{Expected value}=(6)(\\frac{6}{52})+(2)(\\frac{6}{52})+(-2)(\\frac{40}{52})=–\\frac{32}{52}$\n- Expected value = –\\$0.62, rounded to the nearest cent\n- If you play this game repeatedly, over a long string of games, you would expect to lose 62 cents per game, on average.\n- You should not play this game to win money because the expected value indicates an expected average loss.\nYou buy a lottery ticket to a lottery that costs \\$10 per ticket. There are only 100 tickets available to be sold in this lottery. In this lottery there are one \\$500 prize, two \\$100 prizes, and four \\$25 prizes. Find your expected gain or loss.\nComplete the PDF and answer the questions.\nx | P(x) | xP(x)\n0 | 0.3\n1 | 0.2\n2\n3 | 0.4\n- Find the probability that x = 2.\n- Find the expected value.\n- 0.1\n- 1.6\nSuppose that you are offered the following “deal.” You roll a die. If you roll a six, you win \\$10. If you roll a four or five, you win \\$5. If you roll a one, two, or three, you pay \\$6.\n- What are you ultimately interested in here (the value of the roll or the money you win)?\n- In words, define the Random Variable X.\n- List the values that X may take on.\n- Construct a PDF.\n- Over the long run of playing this game, what are your expected average winnings per game?\n- Based on numerical values, should you take the deal? Explain your decision in complete sentences.\nA venture capitalist, willing to invest \\$1,000,000, has three investments to choose from. The first investment, a software company, has a 10% chance of returning \\$5,000,000 profit, a 30% chance of returning \\$1,000,000 profit, and a 60% chance of losing the million dollars. The second company, a hardware company, has a 20% chance of returning \\$3,000,000 profit, a 40% chance of returning \\$1,000,000 profit, and a 40% chance of losing the million dollars. The third company, a biotech firm, has a 10% chance of returning \\$6,000,000 profit, a 70% of no profit or loss, and a 20% chance of losing the million dollars.\n- Construct a PDF for each investment.\n- Find the expected value for each investment.\n- Which is the safest investment? Why do you think so?\n- Which is the riskiest investment? Why do you think so?\n- Which investment has the highest expected return, on average?\n-\nSoftware Company\nx | P(x)\n5,000,000 | 0.10\n1,000,000 | 0.30\n–1,000,000 | 0.60\nHardware Company\nx | P(x)\n3,000,000 | 0.20\n1,000,000 | 0.40\n–1,000,00 | 0.40\nBiotech Firm\nx | P(x)\n6,00,000 | 0.10\n0 | 0.70\n–1,000,000 | 0.20\n- \\$200,000; \\$600,000; \\$400,000\n- third investment because it has the lowest probability of loss\n- first investment because it has the highest probability of loss\n- second investment\nSuppose that 20,000 married adults in the United States were randomly surveyed as to the number of children they have. The results are compiled and are used as theoretical probabilities. Let X = the number of children married people have.\nx | P(x) | xP(x)\n0 | 0.10\n1 | 0.20\n2 | 0.30\n3\n4 | 0.10\n5 | 0.05\n6 (or more) | 0.05\n- Find the probability that a married adult has three children.\n- In words, what does the expected value in this example represent?\n- Find the expected value.\n- Is it more likely that a married adult will have two to three children or four to six children? How do you know?\nSuppose that the PDF for the number of years it takes to earn a Bachelor of Science (B.S.) degree is given as in Table.\nx | P(x)\n3 | 0.05\n4 | 0.40\n5 | 0.30\n6 | 0.15\n7 | 0.10\nOn average, how many years do you expect it to take for an individual to earn a B.S.?\n4.85 years\nPeople visiting video game rental stores often rent more than one game at a time. The probability distribution for game rentals per customer at Game Stop is given in the following table. There is a five-game limit per customer at this store, so nobody ever rents more than five video games.\nx | P(x)\n0 | 0.03\n1 | 0.50\n2 | 0.24\n3\n4 | 0.07\n5 | 0.04\n- Describe the random variable X in words.\n- Find the probability that a customer rents three video games.\n- Find the probability that a customer rents at least four video games.\n- Find the probability that a customer rents at most two video games. Another shop, Games Galore, also rents video games. The probability distribution for video game rentals per customer at this shop is given as follows. Games Galore also has a five-game limit per customer.\nx | P(x)\n0 | 0.35\n1 | 0.25\n2 | 0.20\n3 | 0.10\n4 | 0.05\n5 | 0.05\n- At which store is the expected number of video games rented per customer higher?\n- If Game Stop estimates that they will have 300 customers next week, how many video games do they expect to rent next week? Answer in sentence form.\n- If Game Stop expects 300 customers next week, and Games Galore projects that they will have 420 customers, for which store is the expected number of video game rentals for next week higher? Explain.\n- Which of the two stores experiences more variation in the number of video game per customer? How do you know that?\nA “friend” offers you the following “deal.” For a \\$10 fee, you may pick an envelope from a box containing 100 seemingly identical envelopes. However, each envelope contains a coupon for a free gift.\n- Ten of the coupons are for a free gift worth \\$6.\n- Eighty of the coupons are for a free gift worth \\$8.\n- Six of the coupons are for a free gift worth \\$12.\n- Four of the coupons are for a free gift worth \\$40.\nBased upon the financial gain or loss over the long run, should you play the game?\n- Yes, I expect to come out ahead in money.\n- No, I expect to come out behind in money.\n- It doesn’t matter. I expect to break even.\nb\nFlorida State University has 14 statistics classes scheduled for its summer term. One class has space available for 30 students, eight classes have space for 60 students, one class has space for 70 students, and four classes have space for 100 students.\n- What is the average class size assuming each class is filled to capacity?\n- Space is available for 980 students. Suppose that each class is filled to capacity and select a statistics student at random. Let the random variable X equal the size of the student’s class. Define the PDF for X.\n- Find the mean of X.\n- Find the standard deviation of X.\nIn a lottery, there are 250 prizes of \\$5, 50 prizes of \\$25, and ten prizes of \\$100. Assuming that 10,000 tickets are to be issued and sold, what is a fair price to charge to break even?\nLet X = the amount of money to be won on a ticket. The following table shows the PDF for X.\nx | P(x)\n0 | 0.969\n5 | $\\frac{\\text{250}}{\\text{10,000}}$ = 0.025\n25 | $\\frac{\\text{50}}{\\text{10,000}}$ = 0.005\n100 | $\\frac{\\text{10}}{\\text{10,000}}$ = 0.001\nCalculate the expected value of X.\n0(0.969) + 5(0.025) + 25(0.005) + 100(0.001) = 0.35\nA fair price for a ticket is \\$0.35. Any price over \\$0.35 will enable the lottery to raise money.\n\nGlossary\nExpected Value expected arithmetic average when an experiment is repeated many times; also called the mean. Notations: μ. For a discrete random variable (RV) with probability distribution function P(x),the definition can also be written in the form μ = $\\sum$xP(x).\nMean a number that measures the central tendency; a common name for mean is ‘average.’ The term ‘mean’ is a shortened form of ‘arithmetic mean.’ By definition, the mean for a sample (detonated by $\\overline{x}$) is $\\overline{x}=\\frac{Sumofallvaluesinthesample}{Numberofvaluesinthesample}$ and the mean for a population (denoted by μ) is μ = $\\frac{Sumofallvaluesinthepopulation}{Numberofvaluesinthepopulation}$.\nMean of a Probability Distribution the long-term average of many trials of a statistical experiment\nStandard Deviation of a Probability Distribution a number that measures how far the outcomes of a statistical experiment are from the mean of the distribution $\\sigma=\\sqrt{\\sum[{\\left(x–\\mu \\right)}^{2}∙Ρ\\left(x \\right)]}$\nThe Law of Large Numbers As the number of trials in a probability experiment increases, the difference between the theoretical probability of an event and the relative frequency probability approaches zero."}
{"document_id": "openstax-intro-statistics-m46950", "title": "Discrete Random Variables — Binomial Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/4-3-binomial-distribution", "license": "CC-BY-4.0", "text": "There are three characteristics of a binomial experiment.\n- There are a fixed number of trials. Think of trials as repetitions of an experiment. The letter n denotes the number of trials.\n- There are only two possible outcomes, called \"success\" and \"failure,\" for each trial. The letter p denotes the probability of a success on one trial, and q denotes the probability of a failure on one trial. p + q = 1.\n- The n trials are independent and are repeated using identical conditions. Because the n trials are independent, the outcome of one trial does not help in predicting the outcome of another trial. Another way of saying this is that for each individual trial, the probability, p, of a success and probability, q, of a failure remain the same. For example, randomly guessing at a true-false statistics question has only two outcomes. If a success is guessing correctly, then a failure is guessing incorrectly. Suppose Joe always guesses correctly on any statistics true-false question with probability p = 0.6. Then, q = 0.4. This means that for every true-false statistics question Joe answers, his probability of success (p = 0.6) and his probability of failure (q = 0.4) remain the same.\nThe outcomes of a binomial experiment fit a binomial probability distribution. The random variable X = the number of successes obtained in the n independent trials.\nThe mean, μ, and variance, σ2, for the binomial probability distribution are μ = np and σ2 = npq. The standard deviation, σ, is then σ = $\\sqrt{npq}$.\nAny experiment that has characteristics two and three and where n = 1 is called a Bernoulli Trial (named after Jacob Bernoulli who, in the late 1600s, studied them extensively). A binomial experiment takes place when the number of successes is counted in one or more Bernoulli Trials.\nAt ABC College, the withdrawal rate from an elementary physics course is 30% for any given term. This implies that, for any given term, 70% of the students stay in the class for the entire term. A \"success\" could be defined as an individual who withdrew. The random variable X = the number of students who withdraw from the randomly selected elementary physics class.\nTry It\nThe state health board is concerned about the amount of fruit available in school lunches. Forty-eight percent of schools in the state offer fruit in their lunches every day. This implies that 52% do not. What would a \"success\" be in this case?\nSuppose you play a game that you can only either win or lose. The probability that you win any game is 55%, and the probability that you lose is 45%. Each game you play is independent. If you play the game 20 times, write the function that describes the probability that you win 15 of the 20 times. Here, if you define X as the number of wins, then X takes on the values 0, 1, 2, 3,..., 20. The probability of a success is p = 0.55. The probability of a failure is q = 0.45. The number of trials is n = 20. The probability question can be stated mathematically as P(x = 15).\nTry It\nA trainer is teaching a rescued dolphin to catch live fish before returning it to the wild. The probability that the dolphin successfully catches a fish is 35%, and the probability that the dolphin does not successfully catch the fish is 65%. Out of 20 attempts, you want to find the probability that the dolphin succeeds 12 times. State the probability question mathematically.\nA coin has been altered to weight the outcome from 0.5 to 0.25 and flipped 5 times. Each flip is independent. What is the probability of getting more than 3 heads? Let X = the number of heads in 5 flips of the fair coin. X takes on the values 0, 1, 2, 3, 4, 5. Since the coin is altered to result in p = 0.25, q is 0.75. The number of trials is n = 5. State the probability question mathematically.\nFirst develop fully the probability density function and graph the probability density function. With the fully developed probability density function we can simply read the solution to the question $P\\left(x>3 \\right)$ heads. $P\\left(x>3 \\right)=P\\left(x=4 \\right)+P\\left(x=5 \\right)=0.0146+0.0007=0.0153.$ We have added the two individual probabilities because of the addition rule from Probability Topics.\nFigure also allows us to see the link between the probability density function and probability and area. We also see in Figure the skew of the binomial distribution when p is not equal to 0.5. In Figure the distribution is skewed right as a result of $\\mu=np=1.25$ because $p=0.25$.\n[Image: Histogram of probability density function of the given data.]\n$$\\begin{matrix} P\\left(x={x}_{0} \\right) & = & \\left(\\begin{matrix} n \\\\ x \\end{matrix} \\right){p}^{x}{\\left(1-p \\right)}^{n-x} \\\\  & = & \\left(\\begin{matrix} 5 \\\\ {x}_{0} \\end{matrix} \\right)\\cdot{25}^{{x}_{0}}\\cdot{75}^{5-{x}_{0}} \\\\  &  & etc. \\\\ \\mu & = & np=1.25 \\end{matrix}$$\nTry It\nA fair, six-sided die is rolled ten times. Each roll is independent. You want to find the probability of rolling a one more than three times. State the probability question mathematically.\nApproximately 70% of statistics students do their homework in time for it to be collected and graded. Each student does homework independently. In a statistics class of 50 students, what is the probability that at least 40 will do their homework on time? Students are selected randomly.\na. This is a binomial problem because there is only a success or a __________, there are a fixed number of trials, and the probability of a success is 0.70 for each trial.\nb. If we are interested in the number of students who do their homework on time, then how do we define X?\nc. What values does x take on?\nd. What is a \"failure,\" in words?\ne. If p + q = 1, then what is q?\nf. The words \"at least\" translate as what kind of inequality for the probability question P(x ____ 40).\na. failure\nb. X = the number of statistics students who do their homework on time\nc. 0, 1, 2, …, 50\nd. Failure is defined as a student who does not complete their homework on time.\nThe probability of a success is p = 0.70. The number of trials is n = 50.\ne. q = 0.30\nf. greater than or equal to (≥) The probability question is P(x ≥ 40).\nTry It\nSixty-five percent of people pass the state driver’s exam on the first try. A group of 50 individuals who have taken the driver’s exam is randomly selected. Give two reasons why this is a binomial problem.\nNotation for the Binomial: B = Binomial Probability Distribution Function\nX ~ B(n, p)\nRead this as \"X is a random variable with a binomial distribution.\" The parameters are n and p; n = number of trials, p = probability of a success on each trial.\nIt has been stated that about 41% of adult workers have a high school diploma but do not pursue any further education. If 20 adult workers are randomly selected, find the probability that at most 12 of them have a high school diploma but do not pursue any further education. How many adult workers do you expect to have a high school diploma but do not pursue any further education?\nLet X = the number of workers who have a high school diploma but do not pursue any further education.\nX takes on the values 0, 1, 2,..., 20 where n = 20, p = 0.41, and q = 1 – 0.41 = 0.59. X ~ B(20, 0.41)\nFind P(x ≤ 12). P(x ≤ 12) = 0.9738. (calculator or computer)\nGo into 2nd DISTR. The syntax for the instructions are as follows:\nTo calculate (x = value): binompdf(n, p, number) if \"number\" is left out, the result is the binomial probability table. To calculate P(x ≤ value): binomcdf(n, p, number) if \"number\" is left out, the result is the cumulative binomial probability table. For this problem: After you are in 2nd DISTR, arrow down to binomcdf. Press ENTER. Enter 20,0.41,12). The result is P(x ≤ 12) = 0.9738.\nNOTE\nIf you want to find P(x = 12), use the pdf (binompdf). If you want to find P(x > 12), use 1 - binomcdf(20,0.41,12).\nThe probability that at most 12 workers have a high school diploma but do not pursue any further education is 0.9738.\nThe graph of X ~ B(20, 0.41) is as follows:\n[Image: This histogram shows a binomial probability distribution. It is made up of bars that are fairly normally distributed. The x-axis shows values from 0 to 20. The y-axis shows values from 0 to 0.2 in increments of 0.05.]\nThe y-axis contains the probability of x, where X = the number of workers who have only a high school diploma.\nThe number of adult workers that you expect to have a high school diploma but not pursue any further education is the mean, μ = np = (20)(0.41) = 8.2.\nThe formula for the variance is σ2 = npq. The standard deviation is σ = $\\sqrt{npq}$. σ = $\\sqrt{(20)(0.41)(0.59)}$ = 2.20.\nTry It\nAbout 32% of students participate in a community volunteer program outside of school. If 30 students are selected at random, find the probability that at most 14 of them participate in a community volunteer program outside of school. Use the TI-83+ or TI-84 calculator to find the answer.\nIn the 2013 Jerry’s Artarama art supplies catalog, there are 560 pages. Eight of the pages feature signature artists. Suppose we randomly sample 100 pages. Let X = the number of pages that feature signature artists.\n- What values does x take on?\n- What is the probability distribution? Find the following probabilities:\n- the probability that two pages feature signature artists\n- the probability that at most six pages feature signature artists\n- the probability that more than three pages feature signature artists.\n- Using the formulas, calculate the (i) mean and (ii) standard deviation.\n- x = 0, 1, 2, 3, 4, 5, 6, 7, 8\n- X ~ B$(100,\\frac{8}{560})$\n- P(x = 2) = binompdf$(100,\\frac{8}{560},2)$ = 0.2466\n- P(x ≤ 6) = binomcdf$(100,\\frac{8}{560},6)$ = 0.9994\n- P(x > 3) = 1 – P(x ≤ 3) = 1 – binomcdf$(100,\\frac{8}{560},3)$ = 1 – 0.9443 = 0.0557\n-\n- Mean = np = (100)$(\\frac{8}{560})$ = $\\frac{800}{560}$ ≈ 1.4286\n- Standard Deviation = $\\sqrt{npq}$ = $\\sqrt{(100)(\\frac{8}{560})(\\frac{552}{560})}$ ≈ 1.1867\nTry It\nAccording to a Gallup poll, 60% of American adults prefer saving over spending. Let X = the number of American adults out of a random sample of 50 who prefer saving to spending.\n- What is the probability distribution for X?\n- Use your calculator to find the following probabilities:\n- the probability that 25 adults in the sample prefer saving over spending\n- the probability that at most 20 adults prefer saving\n- the probability that more than 30 adults prefer saving\n- Using the formulas, calculate the (i) mean and (ii) standard deviation of X.\nThe lifetime risk of developing cancer is about one in 67 (1.5%). Suppose we randomly sample 200 people. Let X = the number of people who will develop cancer.\n- What is the probability distribution for X?\n- Using the formulas, calculate the (i) mean and (ii) standard deviation of X.\n- Use your calculator to find the probability that at most eight people develop cancer\n- Is it more likely that five or six people will develop cancer? Justify your answer numerically.\n- $X~B\\left(200,0.015 \\right)$\n- $Mean=np=200\\left(0.015 \\right)=3$$StandardDeviation=\\sqrt{npq}=\\sqrt{200(0.015)(0.985)}=1.719$\n- $P\\left(x\\le8 \\right)=0.9965$\n- The probability that five people develop cancer is 0.1011. The probability that six people develop cancer is 0.0500.\nTry It\nDuring a certain NBA season, a player for the Los Angeles Clippers had the highest field goal completion rate in the league. This player scored with 61.3% of his shots. Suppose you choose a random sample of 80 shots made by this player during the season. Let X = the number of shots that scored points.\n- What is the probability distribution for X?\n- Using the formulas, calculate the (i) mean and (ii) standard deviation of X.\n- Use your calculator to find the probability that this player scored with 60 of these shots.\n- Find the probability that this player scored with more than 50 of these shots.\nThe following example illustrates a problem that is not binomial. It violates the condition of independence. ABC College has a student advisory committee made up of ten staff members and six students. The committee wishes to choose a chairperson and a recorder. What is the probability that the chairperson and recorder are both students? The names of all committee members are put into a box, and two names are drawn without replacement. The first name drawn determines the chairperson and the second name the recorder. There are two trials. However, the trials are not independent because the outcome of the first trial affects the outcome of the second trial. The probability of a student on the first draw is $\\frac{6}{16}$. The probability of a student on the second draw is $\\frac{5}{15}$, when the first draw selects a student. The probability is $\\frac{6}{15}$, when the first draw selects a staff member. The probability of drawing a student's name changes for each of the trials and, therefore, violates the condition of independence.\nTry It\nA lacrosse team is selecting a captain. The names of all the seniors are put into a hat, and the first three that are drawn will be the captains. The names are not replaced once they are drawn (one person cannot be two captains). You want to see if the captains all play the same position. State whether this is binomial or not and state why.\nReferences\n“Access to electricity (% of population),” The World Bank, 2013. Available online at http://data.worldbank.org/indicator/EG.ELC.ACCS.ZS?order=wbapi_data_value_2009%20wbapi_data_value%20wbapi_data_value-first&sort=asc (accessed May 15, 2015).\n“Distance Education.” Wikipedia. Available online at http://en.wikipedia.org/wiki/Distance_education (accessed May 15, 2013).\n“NBA Statistics – 2013,” ESPN NBA, 2013. Available online at http://espn.go.com/nba/statistics/_/seasontype/2 (accessed May 15, 2013).\nNewport, Frank. “Americans Still Enjoy Saving Rather than Spending: Few demographic differences seen in these views other than by income,” GALLUP® Economy, 2013. Available online at http://www.gallup.com/poll/162368/americans-enjoy-saving-rather-spending.aspx (accessed May 15, 2013).\nPryor, John H., Linda DeAngelo, Laura Palucki Blake, Sylvia Hurtado, Serge Tran. The American Freshman: National Norms Fall 2011. Los Angeles: Cooperative Institutional Research Program at the Higher Education Research Institute at UCLA, 2011. Also available online at http://heri.ucla.edu/PDFs/pubs/TFS/Norms/Monographs/TheAmericanFreshman2011.pdf (accessed May 15, 2013).\n“The World FactBook,” Central Intelligence Agency. Available online at https://www.cia.gov/library/publications/the-world-factbook/geos/af.html (accessed May 15, 2013).\n“What are the key statistics about pancreatic cancer?” American Cancer Society, 2013. Available online at http://www.cancer.org/cancer/pancreaticcancer/detailedguide/pancreatic-cancer-key-statistics (accessed May 15, 2013).\nChapter Review\nA statistical experiment can be classified as a binomial experiment if the following conditions are met:\n- There are a fixed number of trials, n.\n- There are only two possible outcomes, called \"success\" and, \"failure\" for each trial. The letter p denotes the probability of a success on one trial and q denotes the probability of a failure on one trial.\n- The n trials are independent and are repeated using identical conditions.\nThe outcomes of a binomial experiment fit a binomial probability distribution. The random variable X = the number of successes obtained in the n independent trials. The mean of X can be calculated using the formula μ = np, and the standard deviation is given by the formula σ = $\\sqrt{npq}$.\nFormula Review\nX ~ B(n, p) means that the discrete random variable X has a binomial probability distribution with n trials and probability of success p.\nX = the number of successes in n independent trials\nn = the number of independent trials\nX takes on the values x = 0, 1, 2, 3,..., n\np = the probability of a success for any trial\nq = the probability of a failure for any trial\np + q = 1\nq = 1 – p\nThe mean of X is μ = np. The standard deviation of X is σ = $\\sqrt{npq}$.\nUse the following information to answer the next eight exercises: The Higher Education Research Institute at UCLA collected data from 203,967 incoming first-time, full-time first-year students from 270 four-year colleges and universities in the U.S. 71.3% of those students replied that, yes, they believe that same-sex couples should have the right to legal marital status. Suppose that you randomly pick eight first-time, full-time first-year students from the survey. You are interested in the number that believes that same sex-couples should have the right to legal marital status.\nIn words, define the random variable X.\nX = the number that reply “yes”\nX ~ _____(_____,_____)\nWhat values does the random variable X take on?\n0, 1, 2, 3, 4, 5, 6, 7, 8\nConstruct the probability distribution function (PDF).\nx | P(x)\nOn average (μ), how many would you expect to answer yes?\n5.7\nWhat is the standard deviation (σ)?\nWhat is the probability that at most five of the first-year students reply “yes”?\n0.4151\nWhat is the probability that at least two of the first-year students reply “yes”?\nHOMEWORK\nAccording to a recent article the average number of babies born with significant hearing loss (deafness) is approximately two per 1,000 babies in a healthy baby nursery. The number climbs to an average of 30 per 1,000 babies in an intensive care nursery.\nSuppose that 1,000 babies from healthy baby nurseries were randomly surveyed. Find the probability that exactly two babies were born deaf.\nUse the following information to answer the next four exercises. Recently, a nurse commented that when a patient calls the medical advice line claiming to have the flu, the chance that they truly have the flu (and not just a nasty cold) is only about 4%. Of the next 25 patients calling in claiming to have the flu, we are interested in how many actually have the flu.\nDefine the random variable and list its possible values.\nX = the number of patients calling in claiming to have the flu, who actually have the flu.\nX = 0, 1, 2,...25\nState the distribution of X.\nFind the probability that at least four of the 25 patients actually have the flu.\n0.0165\nOn average, for every 25 patients calling in, how many do you expect to have the flu?\nPeople visiting a hot dog stand often purchase more than one hot dog. The probability distribution for purchases of number of hot dogs per customer at a hot dog stand is given Table.\nx | P(x)\n0 | 0.03\n1 | 0.50\n2 | 0.24\n3\n4 | 0.07\n5 | 0.04\n- Describe the random variable X in words.\n- Find the probability that a customer purchases three hot dogs.\n- Find the probability that a customer purchases at least four hot dogs.\n- Find the probability that a customer purchases at most two hot dogs.\n- X = the number of hot dogs a person at a hot dog stand eats\n- 0.12\n- 0.11\n- 0.77\nA school newspaper reporter decides to randomly survey 12 students to see if they will attend Tet (Vietnamese New Year) festivities this year. Based on past years, she knows that 18% of students attend Tet festivities. We are interested in the number of students who will attend the festivities.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many of the 12 students do we expect to attend the festivities?\n- Find the probability that at most four students will attend.\n- Find the probability that more than two students will attend.\nUse the following information to answer the next three exercises: The probability that the San Jose Sharks will win any given game is 0.3694 based on a 13-year win history of 382 wins out of 1,034 games played (as of a certain date). An upcoming monthly schedule contains 12 games.\nThe expected number of wins for that upcoming month is:\n- 1.67\n- 12\n- $\\frac{382}{1043}$\n- 4.43\nd. 4.43\nLet X = the number of games won in that upcoming month.\nWhat is the probability that the San Jose Sharks win six games in that upcoming month?\n- 0.1476\n- 0.2336\n- 0.7664\n- 0.8903\nWhat is the probability that the San Jose Sharks win at least five games in that upcoming month\n- 0.3694\n- 0.5266\n- 0.4734\n- 0.2305\nc\nA student takes a ten-question true-false quiz, but did not study and randomly guesses each answer. Find the probability that the student passes the quiz with a grade of at least 70% of the questions correct.\nA student takes a 32-question multiple-choice exam, but did not study and randomly guesses each answer. Each question has three possible choices for the answer. Find the probability that the student guesses more than 75% of the questions correctly.\n- X = number of questions answered correctly\n- X ~ B$(\\text{32,}\\frac{\\text{1}}{\\text{3}})$\n- We are interested in MORE THAN 75% of 32 questions correct. 75% of 32 is 24. We want to find P(x > 24). The event \"more than 24\" is the complement of \"less than or equal to 24.\"\n- Using your calculator's distribution menu: 1 – binomcdf$(\\text{32,}\\frac{\\text{1}}{\\text{3}},\\text{24})$\n- P(x > 24) = 0\n- The probability of getting more than 75% of the 32 questions correct when randomly guessing is very small and practically zero.\nSix different colored dice are rolled. Of interest is the number of dice that show a one.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- On average, how many dice would you expect to show a one?\n- Find the probability that all six dice show a one.\n- Is it more likely that three or that four dice will show a one? Use numbers to justify your answer numerically.\nMore than 96 percent of the very largest colleges and universities (more than 15,000 total enrollments) have some online offerings. Suppose you randomly pick 13 such institutions. We are interested in the number that offer distance learning courses.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- On average, how many schools would you expect to offer such courses?\n- Find the probability that at most ten offer such courses.\n- Is it more likely that 12 or that 13 will offer such courses? Use numbers to justify your answer numerically and answer in a complete sentence.\n- X = the number of college and universities that offer online offerings.\n- 0, 1, 2, …, 13\n- X ~ B(13, 0.96)\n- 12.48\n- 0.0135\n- P(x = 12) = 0.3186 P(x = 13) = 0.5882 More likely to get 13.\nSuppose that about 85% of graduating students attend their graduation. A group of 22 graduating students is randomly chosen.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many are expected to attend their graduation?\n- Find the probability that 17 or 18 attend.\n- Based on numerical values, would you be surprised if all 22 attended graduation? Justify your answer numerically.\nAt The Fencing Center, 60% of the fencers use the foil as their main weapon. We randomly survey 25 fencers at The Fencing Center. We are interested in the number of fencers who do not use the foil as their main weapon.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many are expected to not to use the foil as their main weapon?\n- Find the probability that six do not use the foil as their main weapon.\n- Based on numerical values, would you be surprised if all 25 did not use foil as their main weapon? Justify your answer numerically.\n- X = the number of fencers who do not use the foil as their main weapon\n- 0, 1, 2, 3,... 25\n- X ~ B(25,0.40)\n- 10\n- 0.0442\n- The probability that all 25 not use the foil is almost zero. Therefore, it would be very surprising.\nApproximately 8% of students at a local high school participate in after-school sports all four years of high school. A group of 60 seniors is randomly chosen. Of interest is the number who participated in after-school sports all four years of high school.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many seniors are expected to have participated in after-school sports all four years of high school?\n- Based on numerical values, would you be surprised if none of the seniors participated in after-school sports all four years of high school? Justify your answer numerically.\n- Based upon numerical values, is it more likely that four or that five of the seniors participated in after-school sports all four years of high school? Justify your answer numerically.\nThe chance of an IRS audit for a tax return with over \\$25,000 in income is about 2% per year. We are interested in the expected number of audits a person with that income has in a 20-year period. Assume each year is independent.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many audits are expected in a 20-year period?\n- Find the probability that a person is not audited at all.\n- Find the probability that a person is audited more than twice.\n- X = the number of audits in a 20-year period\n- 0, 1, 2, …, 20\n- X ~ B(20, 0.02)\n- 0.4\n- 0.6676\n- 0.0071\nIt has been estimated that only about 30% of California residents have adequate earthquake supplies. Suppose you randomly survey 11 California residents. We are interested in the number who have adequate earthquake supplies.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- What is the probability that at least eight have adequate earthquake supplies?\n- Is it more likely that none or that all of the residents surveyed will have adequate earthquake supplies? Why?\n- How many residents do you expect will have adequate earthquake supplies?\nThere are two similar games played for Chinese New Year and Vietnamese New Year. In the Chinese version, fair dice with numbers 1, 2, 3, 4, 5, and 6 are used, along with a board with those numbers. In the Vietnamese version, fair dice with pictures of a gourd, fish, rooster, crab, crayfish, and deer are used. The board has those six objects on it, also. We will play with bets being \\$1. The player places a bet on a number or object. The “house” rolls three dice. If none of the dice show the number or object that was bet, the house keeps the \\$1 bet. If one of the dice shows the number or object bet (and the other two do not show it), the player gets back their \\$1 bet, plus \\$1 profit. If two of the dice show the number or object bet (and the third die does not show it), the player gets back their \\$1 bet, plus \\$2 profit. If all three dice show the number or object bet, the player gets back their \\$1 bet, plus \\$3 profit. Let X = number of matches and Y = profit per game.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- List the values that Y may take on. Then, construct one PDF table that includes both X and Y and their probabilities.\n- Calculate the average expected matches over the long run of playing this game for the player.\n- Calculate the average expected earnings over the long run of playing this game for the player.\n- Determine who has the advantage, the player or the house.\n- X = the number of matches\n- 0, 1, 2, 3\n- X ~ B$(3,\\frac{1}{6})$\n- In dollars: −1, 1, 2, 3\n- $\\frac{1}{2}$\n- Multiply each Y value by the corresponding X probability from the PDF table. The answer is −0.0787. You lose about eight cents, on average, per game.\n- The house has the advantage.\nOnly 9% of the population of Niger has access to the internet. Suppose we randomly sample 150 people in Niger. Let X = the number of people who have access to the internet.\n- What is the probability distribution for X?\n- Using the formulas, calculate the mean and standard deviation of X.\n- Use your calculator to find the probability that 15 people in the sample have access to the internet.\n- Find the probability that at most ten people in the sample have access to the internet.\n- Find the probability that more than 25 people in the sample have access to the internet.\nThe literacy rate for a nation measures the proportion of people age 15 and over that can read and write. The literacy rate in a certain country is 28.1%. Suppose you choose 15 people in that country at random. Let X = the number of people who are literate.\n- Sketch a graph of the probability distribution of X.\n- Using the formulas, calculate the (i) mean and (ii) standard deviation of X.\n- Find the probability that more than five people in the sample are literate. Is it is more likely that three people or four people are literate.\n- X ~ B(15, 0.281)\n[Image: This histogram shows a binomial probability distribution. It is made up of bars that are fairly normally distributed. The x-axis shows values from 0 to 15, with bars from 0 to 9. The y-axis shows values from 0 to 0.25 in increments of 0.05.]\n-\n- Mean = μ = np = 15(0.281) = 4.215\n- Standard Deviation = σ = $\\sqrt{npq}$ = $\\sqrt{15(0.281)(0.719)}$ = 1.7409\n- P(x > 5) = 1 – P(x ≤ 5) = 1 – binomcdf(15, 0.281, 5) = 1 – 0.7754 = 0.2246 P(x = 3) = binompdf(15, 0.281, 3) = 0.1927 P(x = 4) = binompdf(15, 0.281, 4) = 0.2259 It is more likely that four people are literate that three people are.\n\nGlossary\nBinomial Experiment a statistical experiment that satisfies the following three conditions:\n- There are a fixed number of trials, n.\n- There are only two possible outcomes, called \"success\" and, \"failure,\" for each trial. The letter p denotes the probability of a success on one trial, and q denotes the probability of a failure on one trial.\n- The n trials are independent and are repeated using identical conditions.\nBernoulli Trials an experiment with the following characteristics:\n- There are only two possible outcomes called “success” and “failure” for each trial.\n- The probability p of a success is the same for any trial (so the probability q = 1 − p of a failure is the same for any trial).\nBinomial Probability Distribution a discrete random variable (RV) that arises from Bernoulli trials; there are a fixed number, n, of independent trials. “Independent” means that the result of any trial (for example, trial one) does not affect the results of the following trials, and all trials are conducted under the same conditions. Under these circumstances the binomial RV X is defined as the number of successes in n trials. The notation is: X ~ B(n, p). The mean is μ = np and the standard deviation is σ = $\\sqrt{npq}$. The probability of exactly x successes in n trials is P(X = x) = $(\\begin{matrix} n \\\\ x \\end{matrix})$pxqn − x."}
{"document_id": "openstax-intro-statistics-m46953", "title": "Discrete Random Variables — Geometric Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/4-4-geometric-distribution", "license": "CC-BY-4.0", "text": "There are four main characteristics of a geometric experiment.\n- A trial is repeated until a success occurs. Think of this as one or more Bernoulli trials with all failures except the last one, which is a success. In other words, you keep repeating what you are doing until the first success. Then you stop. For example, you throw a dart at a bullseye until you hit the bullseye. The first time you hit the bullseye is a \"success,\" so you stop throwing the dart. It might take six tries until you hit the bullseye. You can think of the trials as failure, failure, failure, failure, failure, success, STOP. In theory, the number of trials could go on forever.\n- The repeated trials are independent of each other.\n- The probability, p, of a success and the probability, q, of a failure is the same for each trial. $p+q=1$ and $q=1-p.$ For example, the probability of rolling a three when you throw one fair die is $1/6$. This is true no matter how many times you roll the die. Suppose you want to know the probability of getting the first three on the fifth roll. On rolls one through four, you do not get a face with a three. The probability for each of the rolls is $q=5/6,$ the probability of a failure. The probability of getting a first three on the fifth roll is $(5/6)(5/6)(5/6)(5/6)(1/6)=0.0804$\n- The random variable X represents the number of the trial in which the first success occurs. That is, X = the number of independent trials until the first success.\nThe following are additional attributes of the geometric distribution:\n- The random variable is discrete. The random variable may be defined in two ways depending upon the analyst’s interest. In the example above for throwing a die, the question was “What is the probability that the first success will be on the fifth throw?” Alternatively, the question could be asked as “What is the probability that it takes four failures before a success?” We will see that each way of asking the question will alter the form of the geometric probability density function slightly and will change the mean and standard deviation of the geometric pdf.\n- Implicit in the random variable is that the probability of a success is constant and therefore so is the probability of a failure. For flipping a coin this is obvious, but in experiments that require skill, such as hitting a baseball or throwing a dart, one might consider that learning during the experiment would alter the probability of a success. The geometric distribution cannot capture “learning” thus the historical probability of success is assumed to be constant.\n- The geometric distribution is “memoryless.” There are very few probability density functions that are what is known as “memoryless,” and the Geometric distribution is the only one with a discrete random variable that is memoryless. As an example, historically Major League Baseball player Jones has a record of hitting the ball for at least an advance to first base with a probability of 0.20. Jones has not had a hit in his last 10 times at bat. What is the probability that Jones will get a hit in his third time at bat? The answer ignores his 10 previous failures. All events prior to the events in current time are irrelevant and thus are considered “memoryless.”\nFormally: $P\\left(x=n+k|x\\ge k+1 \\right)=P(x=n),$ where k = number of previous failures\nJones’s probability of a hit begins anew each time he comes to bat. This feature of the geometric distribution results in a curious result: Drawing parts from a manufacturing process to test for parts that are defective, the geometric distribution begins with a clean slate each time the tests begin with no consideration of previous test results. More on this when we get to the exponential probability density function.\nYou play a game of chance that you can either win or lose (there are no other possibilities) until you lose. Your probability of losing is p = 0.57. What is the probability that it takes five games until you lose? Let X = the number of games you play until you lose (includes the losing game). Then X takes on the values 1, 2, 3,... (could go on indefinitely). The probability question is P(x = 5).\nTry It\nYou throw darts at a board until you hit the center area. Your probability of hitting the center area is p = 0.17. You want to find the probability that it takes eight throws until you hit the center. What values does X take on?\nA safety engineer feels that 35% of all industrial accidents in the plant are caused by failure of employees to follow instructions. They decide to look at the accident reports (selected randomly and replaced in the pile after reading) until they find one that shows an accident caused by failure of employees to follow instructions. On average, how many reports would the safety engineer expect to look at until they find a report showing an accident caused by employee failure to follow instructions? What is the probability that the safety engineer will have to examine at least three reports until they find a report showing an accident caused by employee failure to follow instructions?\nLet X = the number of accidents the safety engineer must examine until they find a report showing an accident caused by employee failure to follow instructions. X takes on the values 1, 2, 3,.... The first question asks you to find the expected value or the mean. The second question asks you to find P(x ≥ 3). (\"At least\" translates to a \"greater than or equal to\" symbol).\n- On average, how many reports would the safety engineer expect to review until they find a report showing an accident caused by something other than failure to follow instructions? This question asks you to find the expected value or the mean. This is the average number of failures from something other than following instructions. The formula for the mean of this geometric distribution is:$\\mu=E\\left(x \\right)=\\frac{1}{p}\\approx2.8$Note that the mean does not need to be a whole number although the random variable is discrete and must be a counting number\n- What is the probability that the safety engineer will have to examine at least three reports until they find a report showing an accident caused by employee failure to follow instructions?This question is answered by first defining the random variable. Let X = the number of accidents the safety engineer must examine until they find a report showing an accident caused by employee failure to follow instructions. X can take on the values 1, 2, 3, 4, … ∞. Unlike the binomial distribution with a fixed number of trials, the geometric distribution may have an infinite number of failed trials before a success occurs.This second question asks you to find $P(x\\ge3)$. (\"At least\" translates to a \"greater than or equal to\" symbol.)In a binomial distribution, we saw the solution to questions of “more than” or “less than” would be to calculate each probability individually and add from zero to three. If the probability of interest is “greater than or equal to” (≥) the individual probabilities are added from zero to three and then subtracted from one.$P\\left(x\\ge3 \\right)=1-P(x<3)$Because we cannot add the full range of the geometric distribution random variable because it goes through infinity, an alternative solution is developed. An alternative geometric distribution pair of formulas provides solutions for questions asking for probabilities “more than” and “less than.”If the question is:What is the probability it takes MORE THAN n events to get first success?$P\\left(x>n \\right)={(1-p)}^{n}$What is the probability it takes LESS THAN n event for success?$P\\left(x<n \\right)={1-(1-p)}^{n}$\nTry It\nAn instructor feels that 15% of students get below a C on their final exam. They decide to look at final exams (selected randomly and replaced in the pile after reading) until they find one that shows a grade below a C. We want to know the probability that the instructor will have to examine at least ten exams until they find one with a grade below a C. What is the probability question stated mathematically?\nSuppose that you are looking for a student at your college who lives within five miles of you. You know that 55% of the 25,000 students do live within five miles of you. You randomly contact students from the college until one says they live within five miles of you. What is the probability that you need to contact four people?\nThis is a geometric problem because you may have a number of failures before you have the one success you desire. Also, the probability of a success stays the same each time you ask a student if they live within five miles of you. There is no definite number of trials (number of times you ask a student).\na. Let X = the number of ____________ you must ask ____________ one says yes.\nb. What values does X take on?\nc. What are p and q?\nd. The probability question is P(_______).\na. Let X = the number of students you must ask until one says yes.\nb. 1, 2, 3, …, (total number of students)\nc. p = 0.55; q = 0.45\nd. P(x = 4)\nTry It\nYou need to find a store that carries a special printer ink. You know that of the stores that carry printer ink, 10% of them carry the special ink. You randomly call each store until one has the ink you need. What are p and q?\nNotation for the Geometric: G = Geometric Probability Distribution Function\nX ~ G(p)\nRead this as \"X is a random variable with a geometric distribution.\" The parameter is p; p = the probability of a success for each trial.\nCASE I: Random Variable X Is Event of First Success\nIn this case we ask, “What is the probability that we will have some number x of events of interest to us of failures before a success?”\nThe geometric pdf tells us the probability that the first occurrence of success requires x number of failure independent trials, each with probability $(1-p)$. If the probability of success on each trial is p, then the probability that the xth trial (out of x trials) is the first success is:\n$P\\left(X=x \\right)={(1-p)}^{x-1}p$\nfor $x=1,2,3,....$\nLike the binomial distribution, the geometric distribution has the parameters of the mean and standard deviation. The expected value of X, the mean for Case I, is $\\mu=\\frac{1}{p}.$ This tells us how many failed trials to expect until we get the first success. This count includes in the count of trials the trial that results in success. The above form of the geometric distribution is used for modeling the number of trials until the first success. The number of trials includes the one that is a success: x = all trials including the one that is a success. This can be seen in the form of the formula. If X = number of trials including the success, then we must multiply the probability of failure, $(1-p)$, times the number of failures, that is $x-1$. The standard deviation of Case I of the geometric distribution is:\n$$\\sigma=\\sqrt{\\left(\\frac{1}{p} \\right)\\left(\\frac{1}{p}-1 \\right)}$$\nCASE II: Random Variable X Is Number of Failures BEFORE a Success\nBy contrast to Case I, the following form of the geometric distribution used for modeling number of failures until the first success is:\n$P\\left(X=x \\right)={(1-p)}^{x}p$\nfor $x=0,1,2,3,....$\nIn this case the trial that is the success is not counted as a trial in the formula: x = number of failures. The expected value, the mean, of this distribution is $\\mu=\\frac{1-p}{p}$. This tells us how many failures to expect before we have a success. In either case, the sequence of probabilities is a geometric sequence. In Case II, the standard deviation parameter is: $\\sigma=\\sqrt{\\left(\\frac{1-p}{p} \\right)}.$\n[Image: Bar graph of probability distribution of the given data.]\n$$GEOMETRIC: P=.02,Commonratio=r=.98$$\nThe y-axis in Figure contains the probability of x, and the x-axis is the random number components tested. For example, at $x=1$ the probability it will be found to be defective is 0.0196. With two components tested, the probability the second component is defective is graphed at a probability of 0.0196 at $x=2$ on the x axis. For the probability that the third component is defective we find $P\\left(X=3 \\right)=0.019208.$ (The first two are the same because of rounding in the computations.)\nNotice on Figure that the probabilities decline by the same step down with each change in the value of x. This increment is called the common ratio. This exists for the geometric probability distribution uniquely. The common ratio, called r, can be calculated by dividing any value by the previous value, e.g., $\\frac{P(x=5)}{P(x=4)}=\\frac{0.018447}{0.018823}=0.98.$\nFor this set of data, therefore, the common ratio is 0.98. The common ratio then multiplied by any other probability value will provide the next probability value in the sequence. For example, the probability that the sixth component tested is a failure is 0.018078. Check this using the formula from Case I. Now we have the $P\\left(x=6 \\right)$. Knowing this and the common ratio we can calculate the $P\\left(x=7 \\right)$ by simple multiplication: $P\\left(x=7 \\right)=\\left(0.018078 \\right)*0.98=0.017716,$, the same value we found earlier by using the geometric probability distribution. This common ratio increment is the same ratio between every number and is called a geometric progression and thus the name for this probability density function. Once the common ratio is calculated, any $P\\left(x={x}_{a} \\right)$ one desires to know can be easily found.\nThe number of components that you would expect to test until you find the first defective component is the mean, $\\mu=50$ for this case of defective components. The formula for the mean of the geometric distribution for the random variable defined as number of failures before first success is $\\mu=\\frac{1}{p}=\\frac{1}{0.02}=50$\nSee Example for an example where the geometric random variable is defined as number of trials until first success. The expected value of this formula for the geometric distribution will be different from this version of the distribution. Case II also has a variance, but this is changed from the Case I formula. This formula for the variance is:\n$P\\left(X=x \\right)={(1-p)}^{x-1}p$\nfor $x=1,2,3,....$\nThe formula for the variance is\n$${\\sigma}^{2}=\\left(\\frac{1}{p} \\right)\\left(\\frac{1}{p}-1 \\right)=\\left(\\frac{1}{0.02} \\right)\\left(\\frac{1}{0.02}-1 \\right)=2,450$$\nThe standard deviation is\n$$\\sigma=\\sqrt{\\left(\\frac{1}{p} \\right)\\left(\\frac{1}{p}-1 \\right)}=\\sqrt{\\left(\\frac{1}{0.02} \\right)\\left(\\frac{1}{0.02}-1 \\right)}=49.5$$\nAssume that the probability of a defective computer component is 0.02. Components are randomly selected. Find the probability that the first defect is caused by the seventh component tested. How many components do you expect to test until one is found to be defective?\nLet X = the number of computer components tested until the first defect is found.\nX takes on the values 1, 2, 3,... where p = 0.02.\nFind P(x = 7). P(x = 7) = 0.0177.\nTo find the probability that x = 7,\n- Enter 2nd, DISTR\n- Scroll down and select geometpdf(\n- Press ENTER\n- Enter 0.02, 7); press ENTER to see the result: P(x = 7) = 0.0177\nTo find the probability that x ≤ 7, follow the same instructions EXCEPT select E:geometcdf(as the distribution function.\nThe probability that the seventh component is the first defect is 0.0177.\nThe formula for the variance is σ2 = $(\\frac{1}{p})(\\frac{1}{p}-1)$ = $(\\frac{1}{0.02})(\\frac{1}{0.02}-1)$ = 2,450\nThe standard deviation is σ = $\\sqrt{(\\frac{1}{p})(\\frac{1}{p}-1)}$ = $\\sqrt{(\\frac{1}{0.\\text{02}})(\\frac{1}{0.\\text{02}}-1)}$ = 49.5\nTry It\nThe probability of a defective steel rod is 0.01. Steel rods are selected at random. Find the probability that the first defect occurs on the ninth steel rod. Use the TI-83+ or TI-84 calculator to find the answer.\nThe lifetime risk of developing cancer is about one in 67 (1.5%). Let X = the number of people you ask until one says they have cancer. Then X is a discrete random variable with a geometric distribution: $X~G\\left(\\frac{1}{67} \\right)$ or $X~G(0.015)$\n- What is the probability of that you ask ten people before one says they have cancer?\n- What is the probability that you must ask 20 people?\n- Find the (i) mean and (ii) standard deviation of X.\n- $P(x=10)=geometricpdf(0.015,10)=0.0131$\n- $P(x=20)=geometricpdf(0.015,20)=0.0113$\n- $Mean=\\mu=\\frac{1}{p}=\\frac{1}{0.015}=66.67$$StandardDeviation=\\sigma=\\sqrt{\\frac{1-p}{{p}^{2}}}=\\sqrt{\\frac{1-0.015}{{[0.015]}^{2}}}=66.16$\nTry It\nThe literacy rate for a nation measures the proportion of people age 15 and over who can read and write. The literacy rate for women in Afghanistan is 12%. Let X = the number of Afghani women you ask until one says that she is literate.\n- What is the probability distribution of X?\n- What is the probability that you ask five women before one says she is literate?\n- What is the probability that you must ask ten women?\n- Find the (i) mean and (ii) standard deviation of X.\nReferences\n“Millennials: A Portrait of Generation Next,” PewResearchCenter. Available online at http://www.pewsocialtrends.org/files/2010/10/millennials-confident-connected-open-to-change.pdf (accessed May 15, 2013).\n“Millennials: Confident. Connected. Open to Change.” Executive Summary by PewResearch Social & Demographic Trends, 2013. Available online at http://www.pewsocialtrends.org/2010/02/24/millennials-confident-connected-open-to-change/ (accessed May 15, 2013).\n“Prevalence of HIV, total (% of populations ages 15-49),” The World Bank, 2013. Available online at http://data.worldbank.org/indicator/SH.DYN.AIDS.ZS?order=wbapi_data_value_2011+wbapi_data_value+wbapi_data_value-last&sort=desc (accessed May 15, 2013).\nPryor, John H., Linda DeAngelo, Laura Palucki Blake, Sylvia Hurtado, Serge Tran. The American Freshman: National Norms Fall 2011. Los Angeles: Cooperative Institutional Research Program at the Higher Education Research Institute at UCLA, 2011. Also available online at http://heri.ucla.edu/PDFs/pubs/TFS/Norms/Monographs/TheAmericanFreshman2011.pdf (accessed May 15, 2013).\n“Summary of the National Risk and Vulnerability Assessment 2007/8: A profile of Afghanistan,” The European Union and ICON-Institute. Available online at http://ec.europa.eu/europeaid/where/asia/documents/afgh_brochure_summary_en.pdf (accessed May 15, 2013).\n“The World FactBook,” Central Intelligence Agency. Available online at https://www.cia.gov/library/publications/the-world-factbook/geos/af.html (accessed May 15, 2013).\n“UNICEF reports on Female Literacy Centers in Afghanistan established to teach women and girls basic resading [sic] and writing skills,” UNICEF Television. Video available online at http://www.unicefusa.org/assets/video/afghan-female-literacy-centers.html (accessed May 15, 2013).\nChapter Review\nThere are three characteristics of a geometric experiment:\n- There are one or more Bernoulli trials with all failures except the last one, which is a success.\n- In theory, the number of trials could go on forever. There must be at least one trial.\n- The probability, p, of a success and the probability, q, of a failure are the same for each trial.\nIn a geometric experiment, define the discrete random variable X as the number of independent trials until the first success. We say that X has a geometric distribution and write X ~ G(p) where p is the probability of success in a single trial.\nThe mean of the geometric distribution X ~ G(p) is μ = $\\frac{1}{p}$ and the standard deviation is $\\sigma\\sqrt{\\frac{(\\text{1}-p)}{{p}^{2}}}$ = $\\sqrt{\\frac{1}{p}(\\frac{1}{p}-1)}$.\nFormula Review\nX ~ G(p) means that the discrete random variable X has a geometric probability distribution with probability of success in a single trial p.\nX = the number of independent trials until the first success\nX takes on the values x = 1, 2, 3,...\np = the probability of a success for any trial\nq = the probability of a failure for any trial p + q = 1 q = 1 – p\nThe mean is μ = $\\frac{1}{p}$.\nThe standard deviation is σ = $\\sqrt{\\frac{1–p}{{p}^{2}}}$ = $\\sqrt{\\frac{1}{p}(\\frac{1}{p}-1)}$.\nUse the following information to answer the next six exercises: The Higher Education Research Institute at UCLA collected data from 203,967 incoming first-time, full-time first-year students from 270 four-year colleges and universities in the U.S. 71.3% of those students replied that, yes, they believe that same-sex couples should have the right to legal marital status. Suppose that you randomly select first-year students from the study until you find one who replies “yes.” You are interested in the number of first-year students you must ask.\nIn words, define the random variable X.\nX = the number of first-year students selected from the study until one replied \"yes\" that same-sex couples should have the right to legal marital status.\nX ~ _____(_____,_____)\nWhat values does the random variable X take on?\n1,2,…\nConstruct the probability distribution function (PDF). Stop at x = 6.\nx | P(x)\n1\n2\n3\n4\n5\n6\nOn average (μ), how many first-year students would you expect to have to ask until you found one who replies \"yes?\"\n1.4\nWhat is the probability that you will need to ask fewer than three first-year students?\nHOMEWORK\nA consumer looking to buy a used red Miata car will call dealerships until she finds a dealership that carries the car. She estimates the probability that any independent dealership will have the car will be 28%. We are interested in the number of dealerships she must call.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- On average, how many dealerships would we expect her to have to call until she finds one that has the car?\n- Find the probability that she must call at most four dealerships.\n- Find the probability that she must call three or four dealerships.\nSuppose that the probability that an adult in America will watch the Super Bowl is 40%. Each person is considered independent. We are interested in the number of adults in America we must survey until we find one who will watch the Super Bowl.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many adults in America do you expect to survey until you find one who will watch the Super Bowl?\n- Find the probability that you must ask seven people.\n- Find the probability that you must ask three or four people.\n- X = the number of adults in America who are surveyed until one says they will watch the Super Bowl.\n- X ~ G(0.40)\n- 2.5\n- 0.0187\n- 0.2304\nIt has been estimated that only about 30% of California residents have adequate earthquake supplies. Suppose we are interested in the number of California residents we must survey until we find a resident who does not have adequate earthquake supplies.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- What is the probability that we must survey just one or two residents until we find a California resident who does not have adequate earthquake supplies?\n- What is the probability that we must survey at least three California residents until we find a California resident who does not have adequate earthquake supplies?\n- How many California residents do you expect to need to survey until you find a California resident who does not have adequate earthquake supplies?\n- How many California residents do you expect to need to survey until you find a California resident who does have adequate earthquake supplies?\nIn one of its Spring catalogs, L.L. Bean® advertised footwear on 29 of its 192 catalog pages. Suppose we randomly survey 20 pages. We are interested in the number of pages that advertise footwear. Each page may be picked more than once.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many pages do you expect to advertise footwear on them?\n- Is it probable that all twenty will advertise footwear on them? Why or why not?\n- What is the probability that fewer than ten will advertise footwear on them?\n- Reminder: A page may be picked more than once. We are interested in the number of pages that we must randomly survey until we find one that has footwear advertised on it. Define the random variable X and give its distribution.\n- What is the probability that you only need to survey at most three pages in order to find one that advertises footwear on it?\n- How many pages do you expect to need to survey in order to find one that advertises footwear?\n- X = the number of pages that advertise footwear\n- X takes on the values 0, 1, 2,..., 20\n- X ~ B(20, $\\frac{29}{192}$)\n- 3.02\n- No\n- 0.9997\n- X = the number of pages we must survey until we find one that advertises footwear. X ~ G($\\frac{29}{192}$)\n- 0.3881\n- 6.6207 pages\nSuppose that you are performing the probability experiment of rolling one fair six-sided die. Let F be the event of rolling a four or a five. You are interested in how many times you need to roll the die in order to obtain the first four or five as the outcome.\n- p = probability of success (event F occurs)\n- q = probability of failure (event F does not occur)\n- Write the description of the random variable X.\n- What are the values that X can take on?\n- Find the values of p and q.\n- Find the probability that the first occurrence of event F (rolling a four or five) is on the second trial.\nEmery has music practice three days a week. They practice for all of the three days 85% of the time, two days 8% of the time, one day 4% of the time, and no days 3% of the time. One week is selected at random. What values does X take on?\n0, 1, 2, and 3\nMedical researchers in a certain country have documented that the percentage of people ages 15 to 49 who are infected with a certain respiratory virus is 17.3%. Let X = the number of people you test until you find a person infected with the virus.\n- Sketch a graph of the distribution of the discrete random variable X.\n- What is the probability that you must test 30 people to find one with the virus?\n- What is the probability that you must ask ten people?\n- Find the (i) mean and (ii) standard deviation of the distribution of X.\nAccording to a recent Pew Research poll, 75% of millenials (people born between 1981 and 1995) have a profile on a social networking site. Let X = the number of millenials you ask until you find a person without a profile on a social networking site.\n- Describe the distribution of X.\n- Find the (i) mean and (ii) standard deviation of X.\n- What is the probability that you must ask ten people to find one person without a social networking site?\n- What is the probability that you must ask 20 people to find one person without a social networking site?\n- What is the probability that you must ask at most five people?\n- X ~ G(0.25)\n-\n- Mean = μ = $\\frac{1}{p}$ = $\\frac{1}{0.25}$ = 4\n- Standard Deviation = σ = $\\sqrt{\\frac{1-p}{{p}^{2}}}$ = $\\sqrt{\\frac{1-\\text{0}\\text{.25}}{{0.25}^{2}}}$ ≈ 3.4641\n- P(x = 10) = geometpdf(0.25, 10) = 0.0188\n- P(x = 20) = geometpdf(0.25, 20) = 0.0011\n- P(x ≤ 5) = geometcdf(0.25, 5) = 0.7627\n\nGlossary\nGeometric Distribution a discrete random variable (RV) that arises from the Bernoulli trials; the trials are repeated until the first success. The geometric variable X is defined as the number of trials until the first success. Notation: X ~ G(p). The mean is μ = $\\frac{1}{p}$ and the standard deviation is σ = $\\sqrt{\\frac{1}{p}(\\frac{1}{p}-1)}$. The probability of exactly x failures before the first success is given by the formula: P(X = x) = p(1 – p)x – 1.\nGeometric Experiment a statistical experiment with the following properties:\n- There are one or more Bernoulli trials with all failures except the last one, which is a success.\n- In theory, the number of trials could go on forever. There must be at least one trial.\n- The probability, p, of a success and the probability, q, of a failure do not change from trial to trial."}
{"document_id": "openstax-intro-statistics-m46964", "title": "Discrete Random Variables — Hypergeometric Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/4-5-hypergeometric-distribution", "license": "CC-BY-4.0", "text": "There are five characteristics of a hypergeometric experiment.\n- You take samples from two groups.\n- You are concerned with a group of interest, called the first group.\n- You sample without replacement from the combined groups. For example, you want to choose a softball team from a combined group of 11 men and 13 women. The team consists of ten players.\n- Each pick is not independent, since sampling is without replacement. In the softball example, the probability of picking a woman first is $\\frac{13}{24}$. The probability of picking a man second is $\\frac{11}{23}$ if a woman was picked first. It is $\\frac{10}{23}$ if a man was picked first. The probability of the second pick depends on what happened in the first pick.\n- You are not dealing with Bernoulli Trials.\nThe outcomes of a hypergeometric experiment fit a hypergeometric probability distribution. The random variable X = the number of items from the group of interest.\nA candy dish contains 100 jelly beans and 80 gumdrops. Fifty candies are picked at random. What is the probability that 35 of the 50 are gumdrops? The two groups are jelly beans and gumdrops. Since the probability question asks for the probability of picking gumdrops, the group of interest (first group) is gumdrops. The size of the group of interest (first group) is 80. The size of the second group is 100. The size of the sample is 50 (jelly beans or gumdrops). Let X = the number of gumdrops in the sample of 50. X takes on the values x = 0, 1, 2,..., 50. What is the probability statement written mathematically?\nP(x = 35)\nTry It\nA bag contains letter tiles. Forty-four of the tiles are vowels, and 56 are consonants. Seven tiles are picked at random. You want to know the probability that four of the seven tiles are vowels. What is the group of interest, the size of the group of interest, and the size of the sample?\nSuppose a shipment of 100 laptops is known to have ten defective laptops. An inspector randomly chooses 12 for inspection. He is interested in determining the probability that, among the 12 laptops, at most two are defective. The two groups are the 90 non-defective laptops and the 10 defective laptops. The group of interest (first group) is the defective group because the probability question asks for the probability of at most two defective laptops. The size of the sample is 12 laptops. (They may be non-defective or defective.) Let X = the number of defective laptops in the sample of 12. X takes on the values 0, 1, 2,..., 10. X may not take on the values 11 or 12. The sample size is 12, but there are only 10 defective laptops. Write the probability statement mathematically.\nP(x ≤ 2)\nTry It\nA gross of eggs contains 144 eggs. A particular gross is known to have 12 cracked eggs. An inspector randomly chooses 15 for inspection. She wants to know the probability that, among the 15, at most three are cracked. What is X, and what values does it take on?\nYou are president of an on-campus special events organization. You need a committee of seven students to plan a special birthday party for the president of the college. Your organization consists of 18 women and 15 men. You are interested in the number of men on your committee. If the members of the committee are randomly selected, what is the probability that your committee has more than four men?\nThis is a hypergeometric problem because you are choosing your committee from two groups (men and women).\na. Are you choosing with or without replacement?\nb. What is the group of interest?\nc. How many are in the group of interest?\nd. How many are in the other group?\ne. Let X = _________ on the committee. What values does X take on?\nf. The probability question is P(_______).\na. without\nb. the men\nc. 15 men\nd. 18 women\ne. Let X = the number of men on the committee. x = 0, 1, 2, …, 7.\nf. P(x > 4)\nTry It\nA palette has 200 milk cartons. Of the 200 cartons, it is known that ten of them have leaked and cannot be sold. A stock clerk randomly chooses 18 for inspection. He wants to know the probability that among the 18, no more than two are leaking. Give five reasons why this is a hypergeometric problem.\nNotation for the Hypergeometric: H = Hypergeometric Probability Distribution Function\nX ~ H(r, b, n)\nRead this as \"X is a random variable with a hypergeometric distribution.\" The parameters are r, b, and n; r = the size of the group of interest (first group), b = the size of the second group, n = the size of the chosen sample.\nA school site committee is to be chosen randomly from six men and five women. If the committee consists of four members chosen randomly, what is the probability that two of them are men? How many men do you expect to be on the committee?\nLet X = the number of men on the committee of four. The men are the group of interest (first group).\nX takes on the values 0, 1, 2, 3, 4, where r = 6, b = 5, and n = 4. X ~ H(6, 5, 4)\nFind P(x = 2). P(x = 2) = 0.4545 (calculator or computer)\nNOTE\nCurrently, the TI-83+ and TI-84 do not have hypergeometric probability functions. There are a number of computer packages, including Microsoft Excel, that do.\nThe probability that there are two men on the committee is about 0.45.\nThe graph of X ~ H(6, 5, 4) is:\n[Image: This graph shows a hypergeometric probability distribution. It has five bars that are slightly normally distributed. The x-axis shows values from 0 to 4 in increments of 1, representing the number of men on the four-person committee. The y-axis ranges from 0 to 0.5 in increments of 0.1.]\nThe y-axis contains the probability of X, where X = the number of men on the committee.\nYou would expect m = 2.18 (about two) men on the committee.\nThe formula for the mean is $\\mu=\\frac{nr}{r+b}=\\frac{(4)(6)}{6+5}=2.18$\nTry It\nAn intramural basketball team is to be chosen randomly from 15 boys and 12 girls. The team has ten slots. You want to know the probability that eight of the players will be boys. What is the group of interest and the sample?\nChapter Review\nA hypergeometric experiment is a statistical experiment with the following properties:\n- You take samples from two groups.\n- You are concerned with a group of interest, called the first group.\n- You sample without replacement from the combined groups.\n- Each pick is not independent, since sampling is without replacement.\n- You are not dealing with Bernoulli Trials.\nThe outcomes of a hypergeometric experiment fit a hypergeometric probability distribution. The random variable X = the number of items from the group of interest. The distribution of X is denoted X ~ H(r, b, n), where r = the size of the group of interest (first group), b = the size of the second group, and n = the size of the chosen sample. It follows that n ≤ r + b. The mean of X is μ = $\\frac{nr}{r\\text{+}b}$ and the standard deviation is σ = $\\sqrt{\\frac{rbn(r\\text{+}b\\text{−}n)}{{(r\\text{+}b)}^{2}(r\\text{+}b-\\text{1)}}}$.\nFormula Review\nX ~ H(r, b, n) means that the discrete random variable X has a hypergeometric probability distribution with r = the size of the group of interest (first group), b = the size of the second group, and n = the size of the chosen sample.\nX = the number of items from the group of interest that are in the chosen sample, and X may take on the values x = 0, 1,..., up to the size of the group of interest. (The minimum value for X may be larger than zero in some instances.)\nn ≤ r + b\nThe mean of X is given by the formula μ = $\\frac{nr}{r\\text{+}b}$ and the standard deviation is = $\\sqrt{\\frac{rbn(r\\text{+}b-n)}{{(r\\text{+}b)}^{2}(r\\text{+}b-\\text{1)}}}$.\nUse the following information to answer the next five exercises: Suppose that a group of statistics students is divided into two groups: business majors and non-business majors. There are 16 business majors in the group and seven non-business majors in the group. A random sample of nine students is taken. We are interested in the number of business majors in the sample.\nIn words, define the random variable X.\nX = the number of business majors in the sample.\nX ~ _____(_____,_____)\nWhat values does X take on?\n2, 3, 4, 5, 6, 7, 8, 9\nFind the standard deviation.\nOn average (μ), how many would you expect to be business majors?\n6.26\nHOMEWORK\nA group of Martial Arts students is planning on participating in an upcoming demonstration. Six are students of Tae Kwon Do; seven are students of Shotokan Karate. Suppose that eight students are randomly picked to be in the first demonstration. We are interested in the number of Shotokan Karate students in that first demonstration.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many Shotokan Karate students do we expect to be in that first demonstration?\nIn one of its Spring catalogs, L.L. Bean® advertised footwear on 29 of its 192 catalog pages. Suppose we randomly survey 20 pages. We are interested in the number of pages that advertise footwear. Each page may be picked at most once.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many pages do you expect to advertise footwear on them?\n- Calculate the standard deviation.\n- X = the number of pages that advertise footwear\n- 0, 1, 2, 3,..., 20\n- X ~ H(29, 163, 20); r = 29, b = 163, n = 20\n- 3.03\n- 1.5197\nSuppose that a technology task force is being formed to study technology awareness among instructors. Assume that ten people will be randomly chosen to be on the committee from a group of 28 volunteers, 20 who are technically proficient and eight who are not. We are interested in the number on the committee who are not technically proficient.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many instructors do you expect on the committee who are not technically proficient?\n- Find the probability that at least five on the committee are not technically proficient.\n- Find the probability that at most three on the committee are not technically proficient.\nSuppose that nine Massachusetts athletes are scheduled to appear at a charity benefit. The nine are randomly chosen from eight volunteers from the Boston Celtics and four volunteers from the New England Patriots. We are interested in the number of Patriots picked.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- Are you choosing the nine athletes with or without replacement?\n- X = the number of Patriots picked\n- 0, 1, 2, 3, 4\n- X ~ H(4, 8, 9)\n- Without replacement\nA bridge hand is defined as 13 cards selected at random and without replacement from a deck of 52 cards. In a standard deck of cards, there are 13 cards from each suit: hearts, spades, clubs, and diamonds. What is the probability of being dealt a hand that does not contain a heart?\n- What is the group of interest?\n- How many are in the group of interest?\n- How many are in the other group?\n- Let X = _________. What values does X take on?\n- The probability question is P(_______).\n- Find the probability in question.\n- Find the (i) mean and (ii) standard deviation of X.\n\nGlossary\nHypergeometric Experiment a statistical experiment with the following properties:\n- You take samples from two groups.\n- You are concerned with a group of interest, called the first group.\n- You sample without replacement from the combined groups.\n- Each pick is not independent, since sampling is without replacement.\n- You are not dealing with Bernoulli Trials.\nHypergeometric Probability a discrete random variable (RV) that is characterized by:\n- A fixed number of trials.\n- The probability of success is not the same from trial to trial.\nWe sample from two groups of items when we are interested in only one group. X is defined as the number of successes out of the total number of items chosen. Notation: X ~ H(r, b, n), where r = the number of items in the group of interest, b = the number of items in the group not of interest, and n = the number of items chosen."}
{"document_id": "openstax-intro-statistics-m46961", "title": "Discrete Random Variables — Poisson Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/4-6-poisson-distribution", "license": "CC-BY-4.0", "text": "There are two main characteristics of a Poisson experiment.\n- The Poisson probability distribution gives the probability of a number of events occurring in a fixed interval of time or space if these events happen with a known average rate and independently of the time since the last event. For example, a book editor might be interested in the number of words spelled incorrectly in a particular book. It might be that, on the average, there are five words spelled incorrectly in 100 pages. The interval is the 100 pages.\n- The Poisson distribution may be used to approximate the binomial if the probability of success is \"small\" (such as 0.01) and the number of trials is \"large\" (such as 1,000). You will verify the relationship in the homework exercises. n is the number of trials, and p is the probability of a \"success.\"\nThe random variable X = the number of occurrences in the interval of interest.\nThe average number of loaves of bread put on a shelf in a bakery in a half-hour period is 12. Of interest is the number of loaves of bread put on the shelf in five minutes. The time interval of interest is five minutes. What is the probability that the number of loaves, selected randomly, put on the shelf in five minutes is three?\nLet X = the number of loaves of bread put on the shelf in five minutes. If the average number of loaves put on the shelf in 30 minutes (half-hour) is 12, then the average number of loaves put on the shelf in five minutes is $(\\frac{5}{30})$(12) = 2 loaves of bread.\nThe probability question asks you to find P(x = 3).\nTry It\nThe average number of fish caught in an hour is eight. Of interest is the number of fish caught in 15 minutes. The time interval of interest is 15 minutes. What is the average number of fish caught in 15 minutes?\nA bank expects to receive six bad checks per day, on average. What is the probability of the bank getting fewer than five bad checks on any given day? Of interest is the number of checks the bank receives in one day, so the time interval of interest is one day. Let X = the number of bad checks the bank receives in one day. If the bank expects to receive six bad checks per day then the average is six checks per day. Write a mathematical statement for the probability question.\nP(x < 5)\nTry It\nAn electronics store expects to have ten returns per day on average. The manager wants to know the probability of the store getting fewer than eight returns on any given day. State the probability question mathematically.\nYou notice that a news reporter says \"uh,\" on average, two times per broadcast. What is the probability that the news reporter says \"uh\" more than two times per broadcast.\nThis is a Poisson problem because you are interested in knowing the number of times the news reporter says \"uh\" during a broadcast.\na. What is the interval of interest?\nb. What is the average number of times the news reporter says \"uh\" during one broadcast?\nc. Let X = ____________. What values does X take on?\nd. The probability question is P(______).\na. one broadcast\nb. 2\nc. Let X = the number of times the news reporter says \"uh\" during one broadcast. x = 0, 1, 2, 3,...\nd. P(x > 2)\nTry It\nAn emergency room at a particular hospital gets an average of five patients per hour. A doctor wants to know the probability that the ER gets more than five patients per hour. Give the reason why this would be a Poisson distribution.\nNotation for the Poisson: P = Poisson Probability Distribution Function\nX ~ P(μ)\nRead this as \"X is a random variable with a Poisson distribution.\" The parameter is μ (or λ); μ (or λ) = the mean for the interval of interest. The standard deviation of the Poisson distribution with mean µ is σ=√μ\nLeah receives about six telephone calls between 8 a.m. and 10 a.m. What is the probability that Leah receives more than one call in the next 15 minutes?\nLet X = the number of calls Leah receives in 15 minutes. (The interval of interest is 15 minutes or $\\frac{1}{4}$ hour.)\nx = 0, 1, 2, 3,...\nIf Leah receives, on the average, six telephone calls in two hours, and there are eight 15 minute intervals in two hours, then Leah receives\n$(\\frac{1}{8})$(6) = 0.75 calls in 15 minutes, on average. So, μ = 0.75 for this problem.\n- Press 1 – and then press 2nd DISTR.\n- Arrow down to poissoncdf. Press ENTER.\n- Enter (.75,1).\n- The result is P(x > 1) = 0.1734.\nNOTE\nThe TI calculators use λ (lambda) for the mean.\nThe Poisson distribution is discrete, and thus > 1 includes all whole numbers through infinity. The solution is to subtract the probability less than 1 thus $1-[P(x=0)+P(x=1)]$\n$$P(x)=\\frac{{\\mu}^{x}{e}^{-\\mu}}{x!}$$\n$$P(x>1)=1-P(x\\le1)=1-[P(x=0)+P(x=1)]$$\n$$=1-[\\frac{0.{75}^{0}{e}^{-0.75}}{0!}+\\frac{0.{75}^{1}{e}^{-0.75}}{1!}]$$\n$$=1-[\\frac{(1)(0.4724)}{1}+\\frac{(0.75)(0.4724)}{1}]$$\n$$=1-[0.4724+0.3543]=0.1733$$\n[Image: Histogram of probability density function of the given data.]\nThe y-axis in Figure contains the probability of x where X = the number of calls in 15 minutes.\nTry It\nA customer service center receives about ten emails every half-hour. What is the probability that the customer service center receives more than four emails in the next six minutes?\nAccording to Baydin, an email management company, an email user gets, on average, 147 emails per day. Let X = the number of emails an email user receives per day. The discrete random variable X takes on the values x = 0, 1, 2 …. The random variable X has a Poisson distribution: X ~ P(147). The mean is 147 emails.\n- What is the probability that an email user receives exactly 160 emails per day?\n- What is the probability that an email user receives at most 160 emails per day?\n- What is the standard deviation?\n- P(x = 160) = poissonpdf(147, 160) ≈ 0.0180\n- P(x ≤ 160) = poissoncdf(147, 160) ≈ 0.8666\n- Standard Deviation = $\\sigma=\\sqrt{\\mu}=\\sqrt{147}\\approx12.1244$\nTry It\nAccording to a recent poll by the Pew Internet Project, people between the ages of 14 and 17 send an average of 187 text messages each day. Let X = the number of texts that a girl aged 14 to 17 sends per day. The discrete random variable X takes on the values x = 0, 1, 2 …. The random variable X has a Poisson distribution: X ~ P(187). The mean is 187 text messages.\n- What is the probability that a person sends exactly 175 texts per day?\n- What is the probability that a person sends at most 150 texts per day?\n- What is the standard deviation?\nText message users receive or send an average of 41.5 text messages per day.\n- How many text messages does a text message user receive or send per hour?\n- What is the probability that a text message user receives or sends two messages per hour?\n- What is the probability that a text message user receives or sends more than two messages per hour?\n- Let X = the number of texts that a user sends or receives in one hour. The average number of texts received per hour is $\\frac{41.5}{24}$ ≈ 1.7292.\n- X ~ P(1.7292), so P(x = 2) = poissonpdf(1.7292, 2) ≈ 0.2653\n- P(x > 2) = 1 – P(x ≤ 2) = 1 – poissoncdf(1.7292, 2) ≈ 1 – 0.7495 = 0.2505\nTry It\nAtlanta’s Hartsfield-Jackson International Airport is the busiest airport in the world. On average there are 2,700 arrivals and departures each day.\n- How many airplanes arrive and depart the airport per hour?\n- What is the probability that there are exactly 100 arrivals and departures in one hour?\n- What is the probability that there are at most 100 arrivals and departures in one hour?\nOn a certain day in May starting at 4:30 PM, the probability of low seismic activity for the next 48 hours in Alaska was reported as about 1.02%. Use this information for the next 200 days to find the probability that there will be low seismic activity in ten of the next 200 days. Use both the binomial and Poisson distributions to calculate the probabilities. Are they close?\nLet X = the number of days with low seismic activity.\nUsing the binomial distribution:\n- P(x = 10) = binompdf(200,.0102, 10) ≈ 0.000039\nUsing the Poisson distribution:\n- Calculate μ = np = 200(0.0102) ≈ 2.04\n- P(x = 10) = poissonpdf(2.04, 10) ≈ 0.000045\nWe expect the approximation to be good because n is large (greater than 20) and p is small (less than 0.05). The results are close—both probabilities reported are almost 0.\nTry It\nOn a certain day in May starting at 4:30 PM, the probability of moderate seismic activity for the next 48 hours in the Kuril Islands off the coast of Japan was reported at about 1.43%. Use this information for the next 100 days to find the probability that there will be low seismic activity in five of the next 100 days. Use both the binomial and Poisson distributions to calculate the probabilities. Are they close?\nReferences\n“ATL Fact Sheet,” Department of Aviation at the Hartsfield-Jackson Atlanta International Airport, 2013. Available online at http://www.atl.com/about-atl/atl-factsheet/ (accessed February 18, 2019).\nCenter for Disease Control and Prevention. “Teen Drivers: Fact Sheet,” Injury Prevention & Control: Motor Vehicle Safety, October 2, 2012. Available online at http://www.cdc.gov/Motorvehiclesafety/Teen_Drivers/teendrivers_factsheet.html (accessed May 15, 2013).\n“Children and Childrearing,” Ministry of Health, Labour, and Welfare. Available online at http://www.mhlw.go.jp/english/policy/children/children-childrearing/index.html (accessed May 15, 2013).\n“Eating Disorder Statistics,” South Carolina Department of Mental Health, 2006. Available online at http://www.state.sc.us/dmh/anorexia/statistics.htm (accessed May 15, 2013).\n“Giving Birth in Manila: The maternity ward at the Dr Jose Fabella Memorial Hospital in Manila, the busiest in the Philippines, where there is an average of 60 births a day,” theguardian, 2013. Available online at http://www.theguardian.com/world/gallery/2011/jun/08/philippines-health#/?picture=375471900&index=2 (accessed May 15, 2013).\n“How Americans Use Text Messaging,” Pew Internet, 2013. Available online at http://pewinternet.org/Reports/2011/Cell-Phone-Texting-2011/Main-Report.aspx (accessed May 15, 2013).\nLenhart, Amanda. “Teens, Smartphones & Testing: Texting volum is up while the frequency of voice calling is down. About one in four teens say they own smartphones,” Pew Internet, 2012. Available online at http://www.pewinternet.org/~/media/Files/Reports/2012/PIP_Teens_Smartphones_and_Texting.pdf (accessed May 15, 2013).\n“One born every minute: the maternity unit where mothers are THREE to a bed,” MailOnline. Available online at http://www.dailymail.co.uk/news/article-2001422/Busiest-maternity-ward-planet-averages-60-babies-day-mothers-bed.html (accessed May 15, 2013).\nVanderkam, Laura. “Stop Checking Your Email, Now.” CNNMoney, 2013. Available online at http://management.fortune.cnn.com/2012/10/08/stop-checking-your-email-now/ (accessed May 15, 2013).\n“World Earthquakes: Live Earthquake News and Highlights,” World Earthquakes, 2012. http://www.world-earthquakes.com/index.php?option=ethq_prediction (accessed May 15, 2013).\nChapter Review\nA Poisson probability distribution of a discrete random variable gives the probability of a number of events occurring in a fixed interval of time or space, if these events happen at a known average rate and independently of the time since the last event. The Poisson distribution may be used to approximate the binomial, if the probability of success is \"small\" (less than or equal to 0.05) and the number of trials is \"large\" (greater than or equal to 20).\nFormula Review\nX ~ P(μ) means that X has a Poisson probability distribution where X = the number of occurrences in the interval of interest.\nX takes on the values x = 0, 1, 2, 3,...\nThe mean μ is typically given.\nThe variance is σ2 = μ, and the standard deviation is $\\sigma\\text{=}\\sqrt{\\mu}$.\nThe probability of having exactly $x$ successes in $r$ trials is $P\\left(X=x \\right)=\\left({e}^{-\\mu} \\right)\\frac{{\\mu}^{x}}{x!}$.\nWhen P(μ) is used to approximate a binomial distribution, μ = np where n represents the number of independent trials and p represents the probability of success in a single trial.\nUse the following information to answer the next six exercises: On average, a clothing store gets 120 customers per day.\nAssume the event occurs independently in any given day. Define the random variable X.\nWhat values does X take on?\n0, 1, 2, 3, 4, …\nWhat is the probability of getting 150 customers in one day?\nWhat is the probability of getting 35 customers in the first four hours? Assume the store is open 12 hours each day.\n0.0485\nWhat is the probability that the store will have more than 12 customers in the first hour?\nWhat is the probability that the store will have fewer than 12 customers in the first two hours?\n0.0214\nWhich type of distribution can the Poisson model be used to approximate? When would you do this?\nUse the following information to answer the next six exercises: On average, eight teens in the U.S. die from motor vehicle injuries per day. As a result, states across the country are debating raising the driving age.\nAssume the event occurs independently in any given day. In words, define the random variable X.\nX = the number of U.S. teens who die from motor vehicle injuries per day.\nX ~ _____(_____,_____)\nWhat values does X take on?\n0, 1, 2, 3, 4,...\nFor the given values of the random variable X, fill in the corresponding probabilities.\nIs it likely that there will be no teens killed from motor vehicle injuries on any given day in the U.S? Justify your answer numerically.\nNo\nIs it likely that there will be more than 20 teens killed from motor vehicle injuries on any given day in the U.S.? Justify your answer numerically.\nHOMEWORK\nThe switchboard in a Minneapolis law office gets an average of 5.5 incoming phone calls during the noon hour on Mondays. Experience shows that the existing staff can handle up to six calls in an hour. Let X = the number of calls received at noon.\n- Find the mean and standard deviation of X.\n- What is the probability that the office receives at most six calls at noon on Monday?\n- Find the probability that the law office receives six calls at noon. What does this mean to the law office staff who get, on average, 5.5 incoming phone calls at noon?\n- What is the probability that the office receives more than eight calls at noon?\n- X ~ P(5.5); μ = 5.5; $\\sigma\\text{=}\\sqrt{5.5}$ ≈ 2.3452\n- P(x ≤ 6) = poissoncdf(5.5, 6) ≈ 0.6860\n- There is a 15.7% probability that the law staff will receive more calls than they can handle.\n- P(x > 8) = 1 – P(x ≤ 8) = 1 – poissoncdf(5.5, 8) ≈ 1 – 0.8944 = 0.1056\nThe maternity ward at Dr. Jose Fabella Memorial Hospital in Manila in the Philippines is one of the busiest in the world with an average of 60 births per day. Let X = the number of births in an hour.\n- Find the mean and standard deviation of X.\n- Sketch a graph of the probability distribution of X.\n- What is the probability that the maternity ward will deliver three babies in one hour?\n- What is the probability that the maternity ward will deliver at most three babies in one hour?\n- What is the probability that the maternity ward will deliver more than five babies in one hour?\nA manufacturer of Christmas tree light bulbs knows that 3% of its bulbs are defective. Find the probability that a string of 100 lights contains at most four defective bulbs using both the binomial and Poisson distributions.\nLet X = the number of defective bulbs in a string.\nUsing the Poisson distribution:\n- μ = np = 100(0.03) = 3\n- X ~ P(3)\n- P(x ≤ 4) = poissoncdf(3, 4) ≈ 0.8153\nUsing the binomial distribution:\n- X ~ B(100, 0.03)\n- P(x ≤ 4) = binomcdf(100, 0.03, 4) ≈ 0.8179\nThe Poisson approximation is very good—the difference between the probabilities is only 0.0026.\nThe average number of children a Japanese woman has in her lifetime is 1.37. Suppose that one Japanese woman is randomly chosen.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- Find the probability that she has no children.\n- Find the probability that she has fewer children than the Japanese average.\n- Find the probability that she has more children than the Japanese average.\nThe average number of children a Spanish woman has in her lifetime is 1.47. Suppose that one Spanish woman is randomly chosen.\n- In words, define the Random Variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- Find the probability that she has no children.\n- Find the probability that she has fewer children than the Spanish average.\n- Find the probability that she has more children than the Spanish average.\n- X = the number of children for a Spanish woman\n- 0, 1, 2, 3,...\n- X ~ P(1.47)\n- 0.2299\n- 0.5679\n- 0.4321\nFertile, female cats produce an average of three litters per year. Suppose that one fertile, female cat is randomly chosen. In one year, find the probability she produces:\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _______\n- Find the probability that she has no litters in one year.\n- Find the probability that she has at least two litters in one year.\n- Find the probability that she has exactly three litters in one year.\nThe chance of having an extra fortune in a fortune cookie is about 3%. Given a bag of 144 fortune cookies, we are interested in the number of cookies with an extra fortune. Two distributions may be used to solve this problem, but only use one distribution to solve the problem.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many cookies do we expect to have an extra fortune?\n- Find the probability that none of the cookies have an extra fortune.\n- Find the probability that more than three have an extra fortune.\n- As n increases, what happens involving the probabilities using the two distributions? Explain in complete sentences.\n- X = the number of fortune cookies that have an extra fortune\n- 0, 1, 2, 3,... 144\n- X ~ B(144, 0.03) or P(4.32)\n- 4.32\n- 0.0124 or 0.0133\n- 0.6300 or 0.6264\n- As n gets larger, the probabilities get closer together.\nFor every 200 U.S. kids and teens, the average number who suffer from obsessive compulsive disorder is one. Out of a randomly chosen group of 600 U.S. kids and teens determine the following.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution ofX. X ~ _____(_____,_____)\n- How many are expected to suffer from obsessive compulsive disorder?\n- Find the probability that no one suffers from obsessive compulsive disorder.\n- Find the probability that more than four suffer from obsessive compulsive disorder.\nThe chance of an IRS audit for a tax return with over \\$25,000 in income is about 2% per year. Suppose that 100 people with tax returns over \\$25,000 are randomly picked. We are interested in the number of people audited in one year. Use a Poisson distribution to anwer the following questions.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many are expected to be audited?\n- Find the probability that no one was audited.\n- Find the probability that at least three were audited.\n- X = the number of people audited in one year\n- 0, 1, 2,..., 100\n- X ~ P(2)\n- 2\n- 0.1353\n- 0.3233\nApproximately 8% of students at a local high school participate in after-school sports all four years of high school. A group of 60 seniors is randomly chosen. Of interest is the number that participated in after-school sports all four years of high school.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- How many seniors are expected to have participated in after-school sports all four years of high school?\n- Based on numerical values, would you be surprised if none of the seniors participated in after-school sports all four years of high school? Justify your answer numerically.\n- Based on numerical values, is it more likely that four or that five of the seniors participated in after-school sports all four years of high school? Justify your answer numerically.\nOn average, Pierre, an amateur chef, drops three pieces of egg shell into every two cake batters he makes. Suppose that you buy one of his cakes.\n- In words, define the random variable X.\n- List the values that X may take on.\n- Give the distribution of X. X ~ _____(_____,_____)\n- On average, how many pieces of egg shell do you expect to be in the cake?\n- What is the probability that there will not be any pieces of egg shell in the cake?\n- Let’s say that you buy one of Pierre’s cakes each week for six weeks. What is the probability that there will not be any egg shell in any of the cakes?\n- Based upon the average given for Pierre, is it possible for there to be seven pieces of shell in the cake? Why?\n- X = the number of shell pieces in one cake\n- 0, 1, 2, 3,...\n- X ~ P(1.5)\n- 1.5\n- 0.2231\n- 0.0001\n- Yes\nUse the following information to answer the next two exercises: The average number of times per week that Mrs. Plum’s cats wake her up at night because they want to play is ten. We are interested in the number of times her cats wake her up each week.\nIn words, the random variable X = _________________\n- the number of times Mrs. Plum’s cats wake her up each week.\n- the number of times Mrs. Plum’s cats wake her up each hour.\n- the number of times Mrs. Plum’s cats wake her up each night.\n- the number of times Mrs. Plum’s cats wake her up.\nFind the probability that her cats will wake her up no more than five times next week.\n- 0.5000\n- 0.9329\n- 0.0378\n- 0.0671\nd\n\nGlossary\nPoisson Probability Distribution a discrete random variable (RV) that counts the number of times a certain event will occur in a specific interval; characteristics of the variable:\n- The probability that the event occurs in a given interval is the same for all intervals.\n- The events occur with a known mean and independently of the time since the last event.\nThe distribution is defined by the mean μ of the event in the interval. Notation: X ~ P(μ). The mean is μ = np. The standard deviation is $\\sigma\\text{=}\\sqrt{\\mu}$. The probability of having exactly x successes in r trials is P(X = x) = $({e}^{-\\mu})\\frac{{\\mu}^{x}}{x!}$. The Poisson distribution is often used to approximate the binomial distribution, when n is “large” and p is “small” (a general rule is that n should be greater than or equal to 20 and p should be less than or equal to 0.05)."}
{"document_id": "openstax-intro-statistics-m50257", "title": "Discrete Random Variables — Discrete Distribution (Playing Card Experiment)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/4-7-discrete-distribution-playing-card-experiment", "license": "CC-BY-4.0", "text": "Discrete Distribution (Playing Card Experiment)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will compare empirical data and a theoretical distribution to determine if an everyday experiment fits a discrete distribution.\n- The student will compare technology-generated simulation and a theoretical distribution.\n- The student will demonstrate an understanding of long-term probabilities.\nSupplies\n- One full deck of playing cards\n- One programming calculator\nProcedure\nThe experimental procedure for empirical data is to pick one card from a deck of shuffled cards.\n- The theoretical probability of picking a diamond from a deck is _________.\n- Shuffle a deck of cards.\n- Pick one card from it.\n- Record whether it was a diamond or not a diamond.\n- Put the card back and reshuffle.\n- Do this a total of ten times.\n- Record the number of diamonds picked.\n- Let X = number of diamonds. Theoretically, X ~ B(_____,_____)\nOrganize the Data\n- Record the number of diamonds picked for your class with playing cards in Table. Then calculate the relative frequency.\nx | Frequency | Relative Frequency\n0 | __________\n1 | __________\n2 | __________\n3 | __________\n4 | __________\n5 | __________\n6 | __________\n7 | __________\n8 | __________\n9 | __________\n10 | __________\n- Calculate the following:\n- $\\overline{x}$ = ________\n- s = ________\n- Construct a histogram of the empirical data.\n[Image: This is a blank graph template. The x-axis is labeled Number of diamonds. The y-axis is labeled Relative frequency.]\nTheoretical Distribution\n- Build the theoretical PDF chart based on the distribution in the Procedure section.\nx | P(x)\n0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n- Calculate the following:\n- μ = ____________\n- σ = ____________\n- Construct a histogram of the theoretical distribution.\n[Image: This is a blank graph template. The x-axis is labeled Number of diamonds. The y-axis is labeled Probability.]\nUsing the Data\nNOTE\nRF = relative frequency\nUse the table from the Theoretical Distribution section to calculate the following answers. Round your answers to four decimal places.\n- P(x = 3) = _______________________\n- P(1 < x < 4) = _______________________\n- P(x ≥ 8) = _______________________\nUse the data from the Organize the Data section to calculate the following answers. Round your answers to four decimal places.\n- RF(x = 3) = _______________________\n- RF(1 < x < 4) = _______________________\n- RF(x ≥ 8) = _______________________\nDiscussion Questions\nFor questions 1 and 2, think about the shapes of the two graphs, the probabilities, the relative frequencies, the means, and the standard deviations.\n- Knowing that data vary, describe three similarities between the graphs and distributions of the theoretical, empirical, and simulation distributions. Use complete sentences.\n- Describe the three most significant differences between the graphs or distributions of the theoretical, empirical, and simulation distributions.\n- Using your answers from questions 1 and 2, does it appear that the two sets of data fit the theoretical distribution? In complete sentences, explain why or why not.\n- Suppose that the experiment had been repeated 500 times. Would you expect Discrete Distribution (Playing Card Experiment) or Discrete Distribution (Playing Card Experiment) to change, and how would it change? Why? Why wouldn’t the other table(s) change?"}
{"document_id": "openstax-intro-statistics-m50259", "title": "Discrete Random Variables — Discrete Distribution (Dice Experiment Using Three Regular Dice)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/4-8-discrete-distribution-dice-experiment-using-three-regular-dice", "license": "CC-BY-4.0", "text": "Discrete Distribution (Dice Experiment Using Three Regular Dice)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will compare empirical data and a theoretical distribution to determine if a dice experiment game fits a discrete distribution.\n- The student will demonstrate an understanding of long-term probabilities.\nSupplies\n- Three regular six-sided dice\nProcedure\nRound answers to relative frequency and probability problems to four decimal places.\n- The experimental procedure is to bet on a specific number appearing on the dice. Then, roll three dice and count the number of matches. The number of matches will decide your profit.\n- What is the theoretical probability of one die matching the the specific number?\n- Choose one number to place a bet on. Roll the three dice. Count the number of matches.\n- Let X = number of matches. Theoretically, X ~ B(______,______)\n- Let Y = profit per game.\nOrganize the Data\nIn Table, fill in the y value that corresponds to each x value. Next, record the number of matches picked for your class. Then, calculate the relative frequency.\n- Complete the table.\nx | y | Frequency | Relative Frequency\n0\n1\n2\n3\n- Calculate the following:\n- $\\overline{x}$ = _______\n- sx = ________\n- $\\overline{y}$ = _______\n- sy = _______\n- Explain what $\\overline{x}$ represents.\n- Explain what $\\overline{y}$ represents.\n- Based upon the experiment:\n- What was the average profit per game?\n- Did this represent an average win or loss per game?\n- How do you know? Answer in complete sentences.\n- Construct a histogram of the empirical data.\n[Image: This is a blank graph template. The x-axis is labeled Number of matches. The y-axis is labeled Relative frequency.]\nTheoretical Distribution\nBuild the theoretical PDF chart for x and y based on the distribution from the Procedure section.\n-\nx | y | P(x) = P(y)\n0\n1\n2\n3\n- Calculate the following:\n- μx = _______\n- σx = _______\n- μx = _______\n- Explain what μx represents.\n- Explain what μy represents.\n- Based upon theory:\n- What was the expected profit per game?\n- Did the expected profit represent an average win or loss per game?\n- How do you know? Answer in complete sentences.\n- Construct a histogram of the theoretical distribution.\n[Image: This is a blank graph template. The x-axis is labeled Number of diamonds. The y-axis is labeled Probability.]\nUse the Data\nNOTE\nRF = relative frequency\nUse the data from the Theoretical Distribution section to calculate the following answers. Round your answers to four decimal places.\n- P(x = 3) = _________________\n- P(0 < x < 3) = _________________\n- P(x ≥ 2) = _________________\nUse the data from the Organize the Data section to calculate the following answers. Round your answers to four decimal places.\n- RF(x = 3) = _________________\n- RF(0 < x < 3) = _________________\n- RF(x ≥ 2) = _________________\nDiscussion Question\nFor questions 1 and 2, consider the graphs, the probabilities, the relative frequencies, the means, and the standard deviations.\n- Knowing that data vary, describe three similarities between the graphs and distributions of the theoretical and empirical distributions. Use complete sentences.\n- Describe the three most significant differences between the graphs or distributions of the theoretical and empirical distributions.\n- Thinking about your answers to questions 1 and 2, does it appear that the data fit the theoretical distribution? In complete sentences, explain why or why not.\n- Suppose that the experiment had been repeated 500 times. Would you expect Discrete Distribution (Dice Experiment Using Three Regular Dice) or Discrete Distribution (Dice Experiment Using Three Regular Dice) to change, and how would it change? Why? Why wouldn’t the other table change?"}
{"document_id": "openstax-intro-statistics-m46965", "title": "Continuous Random Variables — Continuous Probability Functions", "source": "https://openstax.org/books/introductory-statistics-2e/pages/5-1-continuous-probability-functions", "license": "CC-BY-4.0", "text": "We begin by defining a continuous probability density function. We use the function notation f(x). Intermediate algebra may have been your first formal introduction to functions. In the study of probability, the functions we study are special. We define the function f(x) so that the area between it and the x-axis is equal to a probability. Since the maximum probability is one, the maximum area is also one. For continuous probability distributions, PROBABILITY = AREA.\nConsider the function f(x) = $\\frac{1}{20}$ for 0 ≤ x ≤ 20. x = a real number. The graph of f(x) = $\\frac{1}{20}$ is a horizontal line. However, since 0 ≤ x ≤ 20, f(x) is restricted to the portion between x = 0 and x = 20, inclusive.\n[Image: This shows the graph of the function f(x) = 1/20. A horiztonal line ranges from the point (0, 1/20) to the point (20, 1/20). A vertical line extends from the x-axis to the end of the line at point (20, 1/20) creating a rectangle.]\nf(x) = $\\frac{1}{20}$ for 0 ≤ x ≤ 20.\nThe graph of f(x) = $\\frac{1}{20}$ is a horizontal line segment when 0 ≤ x ≤ 20.\nThe area between f(x) = $\\frac{1}{20}$ where 0 ≤ x ≤ 20 and the x-axis is the area of a rectangle with base = 20 and height = $\\frac{1}{20}$.\n$$\\text{AREA}=20(\\frac{1}{20})=1$$\nSuppose we want to find the area between f(x) = $\\frac{1}{20}$ and the x-axis where 0 < x < 2.\n[Image: This shows the graph of the function f(x) = 1/20. A horiztonal line ranges from the point (0, 1/20) to the point (20, 1/20). A vertical line extends from the x-axis to the end of the line at point (20, 1/20) creating a rectangle. A region is shaded inside the rectangle from x = 0 to x = 2.]\n$$\\text{AREA}=(2–0)(\\frac{1}{20})=0.1$$\n$$(2–0)=2=\\text{base of a rectangle}$$\nREMINDER\narea of a rectangle = (base)(height).\nThe area corresponds to a probability. The probability that x is between zero and two is 0.1, which can be written mathematically as P(0 < x < 2) = P(x < 2) = 0.1.\nSuppose we want to find the area between f(x) = $\\frac{1}{20}$ and the x-axis where 4 < x < 15.\n[Image: This shows the graph of the function f(x) = 1/20. A horiztonal line ranges from the point (0, 1/20) to the point (20, 1/20). A vertical line extends from the x-axis to the end of the line at point (20, 1/20) creating a rectangle. A region is shaded inside the rectangle from x = 4 to x = 15.]\n$$\\text{AREA}=(15–4)(\\frac{1}{20})=0.55$$\n$$(15–4)=11=\\text{the base of a rectangle}$$\nThe area corresponds to the probability P(4 < x < 15) = 0.55.\nSuppose we want to find P(x = 15). On an x-y graph, x = 15 is a vertical line. A vertical line has no width (or zero width). Therefore, P(x = 15) = (base)(height) = (0)$(\\frac{1}{20})$ = 0\n[Image: This shows the graph of the function f(x) = 1/20. A horiztonal line ranges from the point (0, 1/20) to the point (20, 1/20). A vertical line extends from the x-axis to the end of the line at point (20, 1/20) creating a rectangle. A vertical line extends from the horizontal axis to the graph at x = 15.]\nP(X ≤ x), which can also be written as P(X < x) for continuous distributions, is called the cumulative distribution function or CDF. Notice the \"less than or equal to\" symbol. We can also use the CDF to calculate P(X > x). The CDF gives \"area to the left\" and P(X > x) gives \"area to the right.\" We calculate P(X > x) for continuous distributions as follows: P(X > x) = 1 – P (X < x).\n[Image: This shows the graph of the function f(x) = 1/20. A horiztonal line ranges from the point (0, 1/20) to the point (20, 1/20). A vertical line extends from the x-axis to the end of the line at point (20, 1/20) creating a rectangle. The area to the left of a value, x, is shaded.]\nLabel the graph with f(x) and x. Scale the x and y axes with the maximum x and y values. f(x) = $\\frac{1}{20}$, 0 ≤ x ≤ 20.\nTo calculate the probability that x is between two values, look at the following graph. Shade the region between x = 2.3 and x = 12.7. Then calculate the shaded area of a rectangle.\n[Image: This shows the graph of the function f(x) = 1/20. A horiztonal line ranges from the point (0, 1/20) to the point (20, 1/20). A vertical line extends from the x-axis to the end of the line at point (20, 1/20) creating a rectangle. A region is shaded inside the rectangle from x = 2.3 to x = 12.7]\n$$P(2.3<x<12.7)=(\\text{base})(\\text{height})=(12.7-2.3)(\\frac{1}{20})=0.52$$\nTry It\nConsider the function f(x) = $\\frac{\\text{1}}{8}$ for 0 ≤ x ≤ 8. Draw the graph of f(x) and find P(2.5 < x < 7.5).\nChapter Review\nThe probability density function (pdf) is used to describe probabilities for continuous random variables. The area under the density curve between two points corresponds to the probability that the variable falls between those two values. In other words, the area under the density curve between points a and b is equal to P(a < x < b). The cumulative distribution function (cdf) gives the probability as an area. If X is a continuous random variable, the probability density function (pdf), f(x), is used to draw the graph of the probability distribution. The total area under the graph of f(x) is one. The area under the graph of f(x) and between values a and b gives the probability P(a < x < b).\n[Image: The graph on the left shows a general density curve, y = f(x). The region under the curve and above the x-axis is shaded. The area of the shaded region is equal to 1. This shows that all possible outcomes are represented by the curve. The graph on the right shows the same density curve. Vertical lines x = a and x = b extend from the axis to the curve, and the area between the lines is shaded. The area of the shaded region represents the probabilit ythat a value x falls between a and b.]\nThe cumulative distribution function (cdf) of X is defined by P (X ≤ x). It is a function of x that gives the probability that the random variable is less than or equal to x.\nFormula Review\nProbability density function (pdf) f(x):\n- f(x) ≥ 0\n- The total area under the curve f(x) is one.\nCumulative distribution function (cdf): P(X ≤ x)\nWhich type of distribution does the graph illustrate?\n[Image: The horizontal axis ranges from 0 to 10. The distribution is modeled by a rectangle extending from x = 3 to x =8.]\nUniform Distribution\nWhich type of distribution does the graph illustrate?\n[Image: This graph slopes downward. It begins at a point on the y-axis and approaches the x-axis at the right edge of the graph.]\nWhich type of distribution does the graph illustrate?\n[Image: This graph shows a bell-shaped graph. The symmetric graph reaches maximum height at x = 0 and slopes downward gradually to the x-axis on each side of the peak.]\nNormal Distribution\nWhat does the shaded area represent? P(___< x < ___)\n[Image: This graph shows a uniform distribution. The horizontal axis ranges from 0 to 10. The distribution is modeled by a rectangle extending from x = 1 to x = 8. A region from x = 2 to x = 5 is shaded inside the rectangle.]\nWhat does the shaded area represent? P(___< x < ___)\n[Image: This graph shows an exponential distribution. The graph slopes downward. It begins at a point on the y-axis and approaches the x-axis at the right edge of the graph. The region under the graph from x = 6 to x = 7 is shaded.]\nP(6 < x < 7)\nFor a continuous probablity distribution, 0 ≤ x ≤ 15. What is P(x > 15)?\nWhat is the area under f(x) if the function is a continuous probability density function?\none\nFor a continuous probability distribution, 0 ≤ x ≤ 10. What is P(x = 7)?\nA continuous probability function is restricted to the portion between x = 0 and 7. What is P(x = 10)?\nzero\nf(x) for a continuous probability function is $\\frac{1}{5}$, and the function is restricted to 0 ≤ x ≤ 5. What is P(x < 0)?\nf(x), a continuous probability function, is equal to $\\frac{1}{12}$, and the function is restricted to 0 ≤ x ≤ 12. What is P (0 < x < 12)?\none\nFind the probability that x falls in the shaded area.\n[Image: This shows the graph of the function f(x) = 1 9, the pdf for a uniform distribution. A horizontal line ranges from the point (0, 1/9) to the point (9, 1/9). A vertical line extends from the x-axis to the graph at x = 9 creating a rectangle with the coordinate axes on two sides. A region is shaded inside the rectangle from x = 6 to x = 8.]\nFind the probability that x falls in the shaded area.\n[Image: This shows the graph of the function f(x) = 1/8, the pdf for a uniform distribution. A horizontal line ranges from the point (0, 1/8) to the point (8, 1/8). A vertical line extends from the x-axis to the graph at x = 8 creating a rectangle with the coordinate axes on two sides. A region is shaded inside the rectangle from x = 0 to x = 5.]\n0.625\nFind the probability that x falls in the shaded area.\n[Image: This shows the graph of the function f(x) = 1/10, the pdf for a uniform distribution. A horizontal line ranges from the point (0, 1/10) to the point (10, 1/10). A vertical line extends from the x-axis to the graph at x = 10 creating a rectangle with the coordinate axes on two sides. A region is shaded inside the rectangle from x = 2.5 to x = 5.5.]\nf(x), a continuous probability function, is equal to $\\frac{1}{3}$ and the function is restricted to 1 ≤ x ≤ 4. Describe $P(x>\\frac{3}{2}).$\nThe probability is equal to the area from x = $\\frac{3}{2}$ to x = 4 above the x-axis and up to f(x) = $\\frac{1}{3}$.\nHomework\nFor each probability and percentile problem, draw the picture.\nConsider the following experiment. You are one of 100 people enlisted to take part in a study to determine the percent of nurses in America with an R.N. (registered nurse) degree. You ask nurses if they have an R.N. degree. The nurses answer “yes” or “no.” You then calculate the percentage of nurses with an R.N. degree. You give that percentage to your supervisor.\n- What part of the experiment will yield discrete data?\n- What part of the experiment will yield continuous data?\nWhen age is rounded to the nearest year, do the data stay continuous, or do they become discrete? Why?\nAge is a measurement, regardless of the accuracy used."}
{"document_id": "openstax-intro-statistics-m46972", "title": "Continuous Random Variables — The Uniform Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/5-2-the-uniform-distribution", "license": "CC-BY-4.0", "text": "The uniform distribution is a continuous probability distribution and is concerned with events that are equally likely to occur. When working out problems that have a uniform distribution, be careful to note if the data is inclusive or exclusive of endpoints.\nThe data in Table are 55 smiling times, in seconds, of an eight-week-old baby.\n10.4 | 19.6 | 18.8 | 13.9 | 17.8 | 16.8 | 21.6 | 17.9 | 12.5 | 11.1 | 4.9\n12.8 | 14.8 | 22.8 | 20.0 | 15.9 | 16.3 | 13.4 | 17.1 | 14.5 | 19.0 | 22.8\n1.3 | 0.7 | 8.9 | 11.9 | 10.9 | 7.3 | 5.9 | 3.7 | 17.9 | 19.2 | 9.8\n5.8 | 6.9 | 2.6 | 5.8 | 21.7 | 11.8 | 3.4 | 2.1 | 4.5 | 6.3 | 10.7\n8.9 | 9.4 | 9.4 | 7.6 | 10.0 | 3.3 | 6.7 | 7.8 | 11.6 | 13.8 | 18.6\nThe sample mean = 11.65 and the sample standard deviation = 6.08.\nWe will assume that the smiling times, in seconds, follow a uniform distribution between zero and 23 seconds, inclusive. This means that any smiling time from zero to and including 23 seconds is equally likely. The histogram that could be constructed from the sample is an empirical distribution that closely matches the theoretical uniform distribution.\nLet X = length, in seconds, of an eight-week-old baby's smile.\nThe notation for the uniform distribution is\nX ~ U(a, b) where a = the lowest value of x and b = the highest value of x.\nThe probability density function is f(x) = $\\frac{1}{b-a}$ for a ≤ x ≤ b.\nFor this example, x ~ U(0, 23) and f(x) = $\\frac{1}{23-0}$ for 0 ≤ X ≤ 23.\nFormulas for the theoretical mean and standard deviation are\n$\\mu=\\frac{a+b}{2}$ and $\\sigma=\\sqrt{\\frac{{(b-a)}^{2}}{12}}$\nFor this problem, the theoretical mean and standard deviation are\nμ = $\\frac{0+23}{2}$ = 11.50 seconds and σ = $\\sqrt{\\frac{{(23-0)}^{2}}{12}}$ = 6.64 seconds.\nNotice that the theoretical mean and standard deviation are close to the sample mean and standard deviation in this example.\nTry It\nThe data that follow record the total weight, to the nearest pound, of fish caught by passengers on 35 different charter fishing boats on one summer day. The sample mean = 7.9 and the sample standard deviation = 4.33. The data follow a uniform distribution where all values between and including zero and 14 are equally likely. State the values of a and b. Write the distribution in proper notation, and calculate the theoretical mean and standard deviation.\n1 | 12 | 4 | 10 | 4 | 14 | 11\n7 | 11 | 4 | 13 | 2 | 4 | 6\n3 | 10 | 0 | 12 | 6 | 9 | 10\n5 | 13 | 4 | 10 | 14 | 12 | 11\n6 | 10 | 11 | 0 | 11 | 13 | 2\na. Refer to Example. What is the probability that a randomly chosen eight-week-old baby smiles between two and 18 seconds?\nP(2 < x < 18) = (base)(height) = (18 – 2)$(\\frac{1}{23})$ = $\\frac{16}{23}$.\n[Image: This graph shows a uniform distribution. The horizontal axis ranges from 0 to 15. The distribution is modeled by a rectangle extending from x = 0 to x = 15. A region from x = 2 to x = 18 is shaded inside the rectangle.]\nb. Find the 90th percentile for an eight-week-old baby's smiling time.\nb. Ninety percent of the smiling times fall below the 90th percentile, k, so P(x < k) = 0.90.\n$P(x<k)=0.90$\n$(\\text{base})(\\text{height})=0.90$\n$\\text{(}k-0\\text{)}(\\frac{1}{23})=0.90$\n$k=(23)(0.90)=20.7$\n[Image: This shows the graph of the function f(x) = 1/15. A horiztonal line ranges from the point (0, 1/15) to the point (15, 1/15). A vertical line extends from the x-axis to the end of the line at point (15, 1/15) creating a rectangle. A region is shaded inside the rectangle from x = 0 to x = k. The shaded area represents P(x < k) = 0.90.]\nc. Find the probability that a random eight-week-old baby smiles more than 12 seconds KNOWING that the baby smiles MORE THAN EIGHT SECONDS.\nc. This probability question is a conditional. You are asked to find the probability that an eight-week-old baby smiles more than 12 seconds when you already know the baby has smiled for more than eight seconds.\nFind P(x > 12|x > 8) There are two ways to do the problem. For the first way, use the fact that this is a conditional and changes the sample space. The graph illustrates the new sample space. You already know the baby smiled more than eight seconds.\nWrite a new f(x): f(x) = $\\frac{1}{23-\\text{8}}$ = $\\frac{1}{15}$ for 8 < x < 23\nP(x > 12|x > 8) = (23 − 12)$(\\frac{1}{15})$ = $\\frac{11}{15}$\n[Image: f(X)=1/15 graph displaying a boxed region consisting of a horizontal line extending to the right from point 1/15 on the y-axis, a vertical upward line from points 8 and 23 on the x-axis, and the x-axis. A shaded region from points 12-23 occurs within this area.]\nFor the second way, use the conditional formula from Probability Topics with the original distribution X ~ U (0, 23):\nP(A|B) = $\\frac{P(A\\text{AND}B)}{P(B)}$\nFor this problem, A is (x > 12) and B is (x > 8).\nSo, P(x > 12|x > 8) = $\\frac{P(x>12\\text{AND}x>8)}{P(x>8)}=\\frac{P(x>12)}{P(x>8)}=\\frac{\\frac{11}{23}}{\\frac{15}{23}}=\\frac{11}{15}$\n[Image: This diagram shows a horizontal X axis that intersects a vertical F of x axis at the origin. The X axis runs from 0 to 24 while the Y axis only has the fraction one twenty third located about two thirds of the way to the top. A rectangular box extends horizontally from 0 to 23 on the X axis. The box extends vertically up to the fraction one twenty third on the F of x axis. The area of the box between 8 and 12 on the X axis is lightly shaded. The area of the box between 12 and 23 has darker shading.]\nDarker shaded area represents P(x > 12). Entire shaded area shows P(x > 8).\nTry It\nA distribution is given as X ~ U (0, 20). What is P(2 < x < 18)? Find the 90th percentile.\nThe amount of time, in minutes, that a person must wait for a bus is uniformly distributed between zero and 15 minutes, inclusive.\na. What is the probability that a person waits fewer than 12.5 minutes?\nb. On the average, how long must a person wait? Find the mean, μ, and the standard deviation, σ.\nc. Ninety percent of the time, the time a person must wait falls below what value?\nThis asks for the 90th percentile.\na. Let X = the number of minutes a person must wait for a bus. a = 0 and b = 15. X ~ U(0, 15). Write the probability density function. f (x) = $\\frac{1}{15-0}$ = $\\frac{1}{15}$ for 0 ≤ x ≤ 15.\nFind P (x < 12.5). Draw a graph.\n$P(x<k)=(\\text{base})(\\text{height})=(12.5-0)(\\frac{1}{15})=0.8333$\nThe probability a person waits less than 12.5 minutes is 0.8333.\n[Image: This shows the graph of the function f(x) = 1/15. A horiztonal line ranges from the point (0, 1/15) to the point (15, 1/15). A vertical line extends from the x-axis to the end of the line at point (15, 1/15) creating a rectangle. A region is shaded inside the rectangle from x = 0 to x = 12.5.]\nb. μ = $\\frac{a+b}{2}$ = $\\frac{15+0}{2}$ = 7.5. On the average, a person must wait 7.5 minutes. σ = $\\sqrt{\\frac{(b-a{)}^{2}}{12}}=\\sqrt{\\frac{(15-0{)}^{2}}{12}}$ = 4.3. The Standard deviation is 4.3 minutes.\nc. Find the 90th percentile. Draw a graph. Let k = the 90th percentile. $P(x<k)=(\\text{base})(\\text{height})=(k-0)(\\frac{1}{15})$ $0.90=(k)(\\frac{1}{15})$ $k=(0.90)(15)=13.5$ k is sometimes called a critical value. The 90th percentile is 13.5 minutes. Ninety percent of the time, a person must wait at most 13.5 minutes.\n[Image: f(X)=1/15 graph displaying a boxed region consisting of a horizontal line extending to the right from point 1/15 on the y-axis, a vertical upward line from an arbitrary point on the x-axis, and the x and y-axes. A shaded region from points 0-k occurs within this area. The area of this probability region is equal to 0.90.]\nTry It\nThe total duration of baseball games in the major league in a typical season is uniformly distributed between 447 hours and 521 hours inclusive.\n- Find a and b and describe what they represent.\n- Write the distribution.\n- Find the mean and the standard deviation.\n- What is the probability that the duration of games for a team for a single season is between 480 and 500 hours?\n- What is the 65th percentile for the duration of games for a team in a single season?\nSuppose the time it takes a nine-year old to eat a donut is between 0.5 and 4 minutes, inclusive. Let X = the time, in minutes, it takes a nine-year old child to eat a donut. Then X ~ U (0.5, 4).\na. The probability that a randomly selected nine-year old child eats a donut in at least two minutes is _______.\nb. Find the probability that a different nine-year old child eats a donut in more than two minutes given that the child has already been eating the donut for more than 1.5 minutes.\nThe second question has a conditional probability. You are asked to find the probability that a nine-year old child eats a donut in more than two minutes given that the child has already been eating the donut for more than 1.5 minutes. Solve the problem two different ways (see Example). You must reduce the sample space. First way: Since you know the child has already been eating the donut for more than 1.5 minutes, you are no longer starting at a = 0.5 minutes. Your starting point is 1.5 minutes.\nWrite a new f(x):\nf(x) = $\\frac{1}{4-1.5}$ = $\\frac{2}{5}$ for 1.5 ≤ x ≤ 4.\nFind P(x > 2|x > 1.5). Draw a graph.\n[Image: f(X)=2/5 graph displaying a boxed region consisting of a horizontal line extending to the right from point 2/5 on the y-axis, a vertical upward line from points 1.5 and 4 on the x-axis, and the x-axis. A shaded region from points 2-4 occurs within this area.]\nP(x > 2|x > 1.5) = (base)(new height) = (4 − 2)$(\\frac{2}{5})=\\frac{4}{5}$\na. 0.5714\nb. $\\frac{4}{5}$\nThe probability that a nine-year old child eats a donut in more than two minutes given that the child has already been eating the donut for more than 1.5 minutes is $\\frac{4}{5}$.\nSecond way: Draw the original graph for X ~ U (0.5, 4). Use the conditional formula\nP(x > 2|x > 1.5) = $\\frac{P(x>2\\text{AND}x>1.5)}{P(x>\\text{1}\\text{.5})}=\\frac{P(x>2)}{P(x>1.5)}=\\frac{\\frac{2}{3.5}}{\\frac{2.5}{3.5}}=\\text{0}\\text{.8}=\\frac{4}{5}$\nTry It\nSuppose the time it takes a student to finish a quiz is uniformly distributed between six and 15 minutes, inclusive. Let X = the time, in minutes, it takes a student to finish a quiz. Then X ~ U (6, 15).\nFind the probability that a randomly selected student needs at least eight minutes to complete the quiz. Then find the probability that a different student needs at least eight minutes to finish the quiz given that she has already taken more than seven minutes.\nAce Heating and Air Conditioning Service finds that the amount of time a repair tech needs to fix a furnace is uniformly distributed between 1.5 and four hours. Let x = the time needed to fix a furnace. Then x ~ U (1.5, 4).\n- Find the probability that a randomly selected furnace repair requires more than two hours.\n- Find the probability that a randomly selected furnace repair requires less than three hours.\n- Find the 30th percentile of furnace repair times.\n- The longest 25% of furnace repair times take at least how long? (In other words: find the minimum time for the longest 25% of repair times.) What percentile does this represent?\n- Find the mean and standard deviation\na. To find f(x): f (x) = $\\frac{1}{4-1.5}$ = $\\frac{1}{2.5}$ so f(x) = 0.4\nP(x > 2) = (base)(height) = (4 – 2)(0.4) = 0.8\n[Image: This shows the graph of the function f(x) = 0.4. A horizontal line ranges from the point (1.5, 0.4) to the point (4, 0.4). Vertical lines extend from the x-axis to the graph at x = 1.5 and x = 4 creating a rectangle. A region is shaded inside the rectangle from x = 2 to x = 4.]\nUniform Distribution between 1.5 and four with shaded area between two and four representing the probability that the repair time x is greater than two\nb. P(x < 3) = (base)(height) = (3 – 1.5)(0.4) = 0.6\nThe graph of the rectangle showing the entire distribution would remain the same. However the graph should be shaded between x = 1.5 and x = 3. Note that the shaded area starts at x = 1.5 rather than at x = 0; since X ~ U (1.5, 4), x can not be less than 1.5.\n[Image: This shows the graph of the function f(x) = 0.4. A horizontal line ranges from the point (1.5, 0.4) to the point (4, 0.4). Vertical lines extend from the x-axis to the graph at x = 1.5 and x = 4 creating a rectangle. A region is shaded inside the rectangle from x = 1.5 to x = 3.]\nUniform Distribution between 1.5 and four with shaded area between 1.5 and three representing the probability that the repair time x is less than three\nc.\n[Image: This shows the graph of the function f(x) = 0.4. A horizontal line ranges from the point (1.5, 0.4) to the point (4, 0.4). Vertical lines extend from the x-axis to the graph at x = 1.5 and x = 4 creating a rectangle. A region is shaded inside the rectangle from x = 1.5 to x = k. The shaded area represents P(x < k) = 0.3.]\nUniform Distribution between 1.5 and 4 with an area of 0.30 shaded to the left, representing the shortest 30% of repair times.\nP (x < k) = 0.30 P(x < k) = (base)(height) = (k – 1.5)(0.4) 0.3 = (k – 1.5) (0.4); Solve to find k: 0.75 = k – 1.5, obtained by dividing both sides by 0.4 k = 2.25, obtained by adding 1.5 to both sides The 30th percentile of repair times is 2.25 hours. 30% of repair times are 2.25 hours or less.\nd.\n[Image: This shows the graph of the function f(x) = 0.4, the pdf for a uniform distribution. A horizontal line ranges from the point (1.5, 0.4) to the point (4, 0.4). Vertical lines extend from the x-axis to the graph at x = 1.5 and x = 4 creating a rectangle. A region is shaded inside the rectangle from x = k for 1.5 < k < 4 to x = 4. Text notes that the shaded area represents P(x > k) = 0.25.]\nUniform Distribution between 1.5 and 4 with an area of 0.25 shaded to the right representing the longest 25% of repair times.\nP(x > k) = 0.25 P(x > k) = (base)(height) = (4 – k)(0.4) 0.25 = (4 – k)(0.4); Solve for k: 0.625 = 4 − k, obtained by dividing both sides by 0.4 −3.375 = −k, obtained by subtracting four from both sides: k = 3.375 The longest 25% of furnace repairs take at least 3.375 hours (3.375 hours or longer). Note: Since 25% of repair times are 3.375 hours or longer, that means that 75% of repair times are 3.375 hours or less. 3.375 hours is the 75th percentile of furnace repair times.\ne. $\\mu=\\frac{a+b}{2}$ and $\\sigma=\\sqrt{\\frac{{(b-a)}^{2}}{12}}$ $\\mu=\\frac{1.5+4}{2}=2.75$ hours and $\\sigma=\\sqrt{\\frac{{(4–1.5)}^{2}}{12}}=0.7217$ hours\nTry It\nThe amount of time a service technician needs to change the oil in a car is uniformly distributed between 11 and 21 minutes. Let X = the time needed to change the oil on a car.\n- Write the random variable X in words. X = __________________.\n- Write the distribution.\n- Graph the distribution.\n- Find P (x > 19).\n- Find the 50th percentile.\nChapter Review\nIf X has a uniform distribution where a < x < b or a ≤ x ≤ b, then X takes on values between a and b (may include a and b). All values x are equally likely. We write X ∼ U(a, b). The mean of X is $\\mu=\\frac{a+b}{2}$. The standard deviation of X is $\\sigma=\\sqrt{\\frac{{(b-a)}^{2}}{12}}$. The probability density function of X is $f(x)=\\frac{1}{b-a}$ for a ≤ x ≤ b. The cumulative distribution function of X is P(X ≤ x) = $\\frac{x-a}{b-a}$. X is continuous.\n[Image: The graph shows a rectangle with total area equal to 1. The rectangle extends from x = a to x = b on the x-axis and has a height of 1/(b-a).]\nThe probability P(c < X < d) may be found by computing the area under f(x), between c and d. Since the corresponding area is a rectangle, the area may be found simply by multiplying the width and the height.\nFormula Review\nX = a real number between a and b (in some instances, X can take on the values a and b). a = smallest X; b = largest X\nX ~ U (a, b)\nThe mean is $\\mu=\\frac{a+b}{2}$\nThe standard deviation is $\\sigma=\\sqrt{\\frac{{(b\\text{–}a)}^{2}}{12}}$\nProbability density function: $f(x)=\\frac{1}{b-a}$ for $a\\le X\\le b$\nArea to the Left of x: P(X < x) = (x – a)$(\\frac{1}{b-a})$\nArea to the Right of x: P(X > x) = (b – x)$(\\frac{1}{b-a})$\nArea Between c and d: P(c < x < d) = (base)(height) = (d – c)$(\\frac{1}{b-a})$\nUniform: X ~ U(a, b) where a < x < b\n- pdf: $f(x)=\\frac{1}{b-a}$ for a ≤ x ≤ b\n- cdf: P(X ≤ x) = $\\frac{x-a}{b-a}$\n- mean µ = $\\frac{a+b}{2}$\n- standard deviation σ $=\\sqrt{\\frac{{(b-a)}^{2}}{12}}$\n- P(c < X < d) = (d – c)$(\\frac{1}{b–a})$\nReferences\nMcDougall, John A. The McDougall Program for Maximum Weight Loss. Plume, 1995.\nUse the following information to answer the next ten questions. The data that follow are the square footage (in 1,000 feet squared) of 28 homes.\n1.5 | 2.4 | 3.6 | 2.6 | 1.6 | 2.4 | 2.0\n3.5 | 2.5 | 1.8 | 2.4 | 2.5 | 3.5 | 4.0\n2.6 | 1.6 | 2.2 | 1.8 | 3.8 | 2.5 | 1.5\n2.8 | 1.8 | 4.5 | 1.9 | 1.9 | 3.1 | 1.6\nThe sample mean = 2.50 and the sample standard deviation = 0.8302.\nThe distribution can be written as X ~ U(1.5, 4.5).\nWhat type of distribution is this?\nIn this distribution, outcomes are equally likely. What does this mean?\nIt means that the value of x is just as likely to be any number between 1.5 and 4.5.\nWhat is the height of f(x) for the continuous probability distribution?\nWhat are the constraints for the values of x?\n1.5 ≤ x ≤ 4.5\nGraph P(2 < x < 3).\nWhat is P(2 < x < 3)?\n0.3333\nWhat is P(x < 3.5| x < 4)?\nWhat is P(x = 1.5)?\nzero\nWhat is the 90th percentile of square footage for homes?\nFind the probability that a randomly selected home has more than 3,000 square feet given that you already know the house has more than 2,000 square feet.\n0.6\nUse the following information to answer the next eight exercises. A distribution is given as X ~ U(0, 12).\nWhat is a? What does it represent?\nWhat is b? What does it represent?\nb is 12, and it represents the highest value of x.\nWhat is the probability density function?\nWhat is the theoretical mean?\nsix\nWhat is the theoretical standard deviation?\nDraw the graph of the distribution for P(x > 9).\n[Image: This graph shows a uniform distribution. The horizontal axis ranges from 0 to 12. The distribution is modeled by a rectangle extending from x = 0 to x = 12. A region from x = 9 to x = 12 is shaded inside the rectangle.]\nFind P(x > 9).\nFind the 40th percentile.\n4.8\nUse the following information to answer the next eleven exercises. The age of cars in the staff parking lot of a suburban college is uniformly distributed from six months (0.5 years) to 9.5 years.\nWhat is being measured here?\nIn words, define the random variable X.\nX = The age (in years) of cars in the staff parking lot\nAre the data discrete or continuous?\nThe interval of values for x is ______.\n0.5 to 9.5\nThe distribution for X is ______.\nWrite the probability density function.\nf(x) = $\\frac{1}{9}$ where x is between 0.5 and 9.5, inclusive.\nGraph the probability distribution.\n- Sketch the graph of the probability distribution.\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\n- Identify the following values:\n- Lowest value for $\\overline{x}$: _______\n- Highest value for $\\overline{x}$: _______\n- Height of the rectangle: _______\n- Label for x-axis (words): _______\n- Label for y-axis (words): _______\nFind the average age of the cars in the lot.\nμ = 5\nFind the probability that a randomly chosen car in the lot was less than four years old.\n- Sketch the graph, and shade the area of interest.\n[Image: Blank graph with vertical and horizontal axes.]\n- Find the probability. P(x < 4) = _______\nConsidering only the cars less than 7.5 years old, find the probability that a randomly chosen car in the lot was less than four years old.\n- Sketch the graph, shade the area of interest.\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\n- Find the probability. P(x < 4|x < 7.5) = _______\n- Answers may vary.\n- $\\frac{3.5}{7}$\nWhat has changed in the previous two problems that made the solutions different?\nFind the third quartile of ages of cars in the lot. This means you will have to find the value such that $\\frac{3}{4}$, or 75%, of the cars are at most (less than or equal to) that age.\n- Sketch the graph, and shade the area of interest.\n[Image: Blank graph with vertical and horizontal axes.]\n- Find the value k such that P(x < k) = 0.75.\n- The third quartile is _______\n- Answers may vary.\n- k = 7.25\n- 7.25\nHomework\nFor each probability and percentile problem, draw the picture.\nBirths are approximately uniformly distributed throughout the year. They can be said to follow a uniform distribution from 0 to 52 (spread of 52 weeks).\n- X ~ _________\n- Graph the probability distribution.\n- f(x) = _________\n- μ = _________\n- σ = _________\n- Find the probability that a person is born at the exact moment week 19 ends. That is, find P(x = 19) = _________\n- P(2 < x < 31) = _________\n- Find the probability that a person is born after week 40.\n- P(12 < x|x < 28) = _________\n- Find the 70th percentile.\n- Find the minimum for the upper quarter.\nA random number generator picks a number from one to nine in a uniform manner.\n- X ~ _________\n- Graph the probability distribution.\n- f(x) = _________\n- μ = _________\n- σ = _________\n- P(3.5 < x < 7.25) = _________\n- P(x > 5.67)\n- P(x > 5|x > 3) = _________\n- Find the 90th percentile.\n- X ~ U(1, 9)\n- Answers may vary.\n- $f(x)=\\frac{1}{8}$ where $1\\le x\\le9$\n- five\n- 2.3\n- $\\frac{15}{32}$\n- $\\frac{333}{800}$\n- $\\frac{2}{3}$\n- 8.2\nAccording to a study by Dr. John McDougall of his live-in weight loss program, the people who follow his program lose between six and 15 pounds a month until they approach trim body weight. Let’s suppose that the weight loss is uniformly distributed. We are interested in the weight loss of a randomly selected individual following the program for one month.\n- Define the random variable. X = _________\n- X ~ _________\n- Graph the probability distribution.\n- f(x) = _________\n- μ = _________\n- σ = _________\n- Find the probability that the individual lost more than ten pounds in a month.\n- Suppose it is known that the individual lost more than ten pounds in a month. Find the probability that he lost less than 12 pounds in the month.\n- P(7 < x < 13|x > 9) = __________. State this in a probability question, similarly to parts g and h, draw the picture, and find the probability.\nA subway train arrives every eight minutes during rush hour. We are interested in the length of time a commuter must wait for a train to arrive. The time follows a uniform distribution.\n- Define the random variable. X = _______\n- X ~ _______\n- Graph the probability distribution.\n- f(x) = _______\n- μ = _______\n- σ = _______\n- Find the probability that the commuter waits less than one minute.\n- Find the probability that the commuter waits between three and four minutes.\n- Sixty percent of commuters wait more than how long for the train? State this in a probability question, similarly to parts g and h, draw the picture, and find the probability.\n- X represents the length of time a commuter must wait for a train to arrive on the Red Line.\n- X ~ U(0, 8)\n- Graph the probability distribution.\n- $f(x)=\\frac{1}{8}$ where $0\\le x\\le8$\n- four\n- 2.31\n- $\\frac{1}{8}$\n- $\\frac{1}{8}$\n- 3.2\nThe age of a first grader on September 1 at Garden Elementary School is uniformly distributed from 5.8 to 6.8 years. We randomly select one first grader from the class.\n- Define the random variable. X = _________\n- X ~ _________\n- Graph the probability distribution.\n- f(x) = _________\n- μ = _________\n- σ = _________\n- Find the probability that she is over 6.5 years old.\n- Find the probability that she is between four and six years old.\n- Find the 70th percentile for the age of first graders on September 1 at Garden Elementary School.\nUse the following information to answer the next three exercises. The Sky Train from the terminal to the rental–car and long–term parking center is supposed to arrive every eight minutes. The waiting times for the train are known to follow a uniform distribution.\nWhat is the average waiting time (in minutes)?\n- zero\n- two\n- three\n- four\nd\nFind the 30th percentile for the waiting times (in minutes).\n- two\n- 2.4\n- 2.75\n- three\nThe probability of waiting more than seven minutes given a person has waited more than four minutes is?\n- 0.125\n- 0.25\n- 0.5\n- 0.75\nb\nThe time (in minutes) until the next bus departs a major bus depot follows a distribution with f(x) = $\\frac{1}{20}$ where x goes from 25 to 45 minutes.\n- Define the random variable. X = ________\n- X ~ ________\n- Graph the probability distribution.\n- The distribution is ______________ (name of distribution). It is _____________ (discrete or continuous).\n- μ = ________\n- σ = ________\n- Find the probability that the time is at most 30 minutes. Sketch and label a graph of the distribution. Shade the area of interest. Write the answer in a probability statement.\n- Find the probability that the time is between 30 and 40 minutes. Sketch and label a graph of the distribution. Shade the area of interest. Write the answer in a probability statement.\n- P(25 < x < 55) = _________. State this in a probability statement, similarly to parts g and h, draw the picture, and find the probability.\n- Find the 90th percentile. This means that 90% of the time, the time is less than _____ minutes.\n- Find the 75th percentile. In a complete sentence, state what this means. (See part j.)\n- Find the probability that the time is more than 40 minutes given (or knowing that) it is at least 30 minutes.\nSuppose that the value of a stock varies each day from \\$16 to \\$25 with a uniform distribution.\n- Find the probability that the value of the stock is more than \\$19.\n- Find the probability that the value of the stock is between \\$19 and \\$22.\n- Find the upper quartile - 25% of all days the stock is above what value? Draw the graph.\n- Given that the stock is greater than \\$18, find the probability that the stock is more than \\$21.\n- The probability density function of X is $\\frac{1}{25-16}=\\frac{1}{9}$. P(X > 19) = (25 – 19) $(\\frac{1}{9})$ = $\\frac{6}{9}$ = $\\frac{2}{3}$.\n[Image: This shows the graph of the function f(x) = 1/9, the pdf for a uniform distribution. A horizontal line ranges from the point (16, 1/9) to the point (25, 1.9). Vertical lines extend from the x-axis to the graph at x = 16 and x = 25 creating a rectangle. A region is shaded inside the rectangle from x = 19 to x = 25. Text notes that the shaded area represents P(x > 19) = 2/3.]\n- P(19 < X < 22) = (22 – 19) $(\\frac{1}{9})$ = $\\frac{3}{9}$ = $\\frac{1}{3}$.\n[Image: This shows the graph of the function f(x) = 1/9, the pdf for a uniform distribution. A horizontal line ranges from the point (16, 1/9) to the point (25, 1.9). Vertical lines extend from the x-axis to the graph at x = 16 and x = 25 creating a rectangle. A region is shaded inside the rectangle from x = 19 to x = 22. Text notes that the shaded area represents P(19< x < 22) = 1/3.]\n- The area must be 0.25, and 0.25 = (width)$(\\frac{1}{9})$, so width = (0.25)(9) = 2.25. Thus, the value is 25 – 2.25 = 22.75.\n- This is a conditional probability question. P(x > 21| x > 18). You can do this two ways:\n- Draw the graph where a is now 18 and b is still 25. The height is $\\frac{1}{(25-18)}$ = $\\frac{1}{7}$So, P(x > 21|x > 18) = (25 – 21)$(\\frac{1}{7})$ = 4/7.\n- Use the formula: P(x > 21|x > 18) = $\\frac{P(x>21\\text{AND}x>18)}{P(x>18)}$ = $\\frac{P(x>21)}{P(x>18)}$ = $\\frac{(25-21)}{(25-18)}$ = $\\frac{4}{7}$.\nA fireworks show is designed so that the time between fireworks is between one and five seconds, and follows a uniform distribution.\n- Find the average time between fireworks.\n- Find probability that the time between fireworks is greater than four seconds.\nThe number of miles driven by a truck driver falls between 300 and 700, and follows a uniform distribution.\n- Find the probability that the truck driver goes more than 650 miles in a day.\n- Find the probability that the truck drivers goes between 400 and 650 miles in a day.\n- At least how many miles does the truck driver travel on the furthest 10% of days?\n- P(X > 650) = $\\frac{700-650}{700-300}=\\frac{50}{400}=\\frac{1}{8}$ = 0.125\n- P(400 < X < 650) = $\\frac{650-400}{700-300}=\\frac{250}{400}$ = 0.625\n- 0.10 = $\\frac{\\text{width}}{\\text{700}-\\text{300}}$, so width = 400(0.10) = 40. Since 700 – 40 = 660, the drivers travel at least 660 miles on the furthest 10% of days.\n\nGlossary\nConditional Probability the likelihood that an event will occur given that another event has already occurred."}
{"document_id": "openstax-intro-statistics-m46969", "title": "Continuous Random Variables — The Exponential Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/5-3-the-exponential-distribution", "license": "CC-BY-4.0", "text": "The exponential distribution is often concerned with the amount of time until some specific event occurs. For example, the amount of time (beginning now) until an earthquake occurs has an exponential distribution. Other examples include the length, in minutes, of long distance business telephone calls, and the amount of time, in months, a car battery lasts. It can be shown, too, that the value of the change that you have in your pocket or purse approximately follows an exponential distribution.\nValues for an exponential random variable occur in the following way. There are fewer large values and more small values. For example, the amount of money customers spend in one trip to the supermarket follows an exponential distribution. There are more people who spend small amounts of money and fewer people who spend large amounts of money.\nExponential distributions are commonly used in calculations of product reliability, or the length of time a product lasts.\nLet X = amount of time (in minutes) a postal clerk spends with their customer. The time is known to have an exponential distribution with the average amount of time equal to four minutes.\nX is a continuous random variable since time is measured. It is given that μ = 4 minutes. To do any calculations, you must know m, the decay parameter.\n$m=\\frac{1}{\\mu}$. Therefore, $m=\\frac{1}{4}=0.25.$\nThe standard deviation, σ, is the same as the mean. μ = σ\nThe distribution notation is X ~ Exp(m). Therefore, X ~ Exp(0.25).\nThe probability density function is f(x) = me-mx. The number e = 2.71828182846... It is a number that is used often in mathematics. Scientific calculators have the key \"ex.\" If you enter one for x, the calculator will display the value e.\nThe curve is:\nf(x) = 0.25e–0.25x where x is at least zero and m = 0.25.\nFor example, f(5) = 0.25e(-0.25)(5) = 0.072. The value 0.072 is the height of the curve when x = 5. In Example below, you will learn how to find probabilities using the decay parameter.\nThe graph is as follows:\n[Image: Exponential graph with increments of 2 from 0-20 on the x-axis of μ = 4 and increments of 0.05 from 0.05-0.25 on the y-axis of m = 0.25. The curved line begins at the top at point (0, 0.25) and curves down to point (20, 0). The x-axis is equal to a continuous random variable.]\nNotice the graph is a declining curve. When x = 0,\nf(x) = 0.25e(−0.25)(0) = (0.25)(1) = 0.25 = m. The maximum value on the y-axis is m.\nTry It\nThe amount of time spouses shop for anniversary cards can be modeled by an exponential distribution with the average amount of time equal to eight minutes. Write the distribution, state the probability density function, and graph the distribution.\na. Using the information in Example, find the probability that a clerk spends four to five minutes with a randomly selected customer.\na. Find P(4 < x < 5). The cumulative distribution function (CDF) gives the area to the left. P(x < x) = 1 – e–mx P(x < 5) = 1 – e(−0.25)(5) = 0.7135 and P(x < 4) = 1 – e(–0.25)(4) = 0.6321\n[Image: Exponential graph with the curved line beginning at point (0, 0.25) and curves down towards point (∞, 0). Two vertical upward lines extend from points 4 and 5 to the curved line. The probability is in the area between points 4 and 5.]\nNOTE\nYou can do these calculations easily on a calculator.\nThe probability that a postal clerk spends four to five minutes with a randomly selected customer is P(4 < x < 5) = P(x < 5) – P(x < 4) = 0.7135 − 0.6321 = 0.0814.\nOn the home screen, enter (1 – e^(–0.25*5))–(1–e^(–0.25*4)) or enter e^(–0.25*4) – e^(–0.25*5).\nb. Half of all customers are finished within how long? (Find the 50th percentile)\nb. Find the 50th percentile.\n[Image: Exponential graph with the curved line beginning at point (0, 0.25) and curves down towards point (∞, 0). A vertical upward line extends from point k to the curved line. The probability area from 0-k is equal to 0.50.]\nP(x < k) = 0.50, k = 2.8 minutes (calculator or computer)\nHalf of all customers are finished within 2.8 minutes.\nYou can also do the calculation as follows:\nP(x < k) = 0.50 and P(x < k) = 1 –e–0.25k\nTherefore, 0.50 = 1 − e−0.25k and e−0.25k = 1 − 0.50 = 0.5\nTake natural logs: ln(e–0.25k) = ln(0.50). So, –0.25k = ln(0.50)\nSolve for k:$k=\\frac{ln(0.50)}{-0.25}=2.8$ minutes. The calculator simplifies the calculation for percentile k. See the following two notes.\nNOTE\nA formula for the percentile k is $k=\\frac{ln(1-AreaToTheLeft)}{-m}$ where ln is the natural log.\nOn the home screen, enter ln(1 – 0.50)/–0.25. Press the (-) for the negative.\nc. Which is larger, the mean or the median?\nc. From part b, the median or 50th percentile is 2.8 minutes. The theoretical mean is four minutes. The mean is larger.\nTry It\nThe number of days ahead travelers purchase their airline tickets can be modeled by an exponential distribution with the average amount of time equal to 15 days. Find the probability that a traveler will purchase a ticket fewer than ten days in advance. How many days do half of all travelers wait?\nHave each class member count the change they have in their pocket or purse. Your instructor will record the amounts in dollars and cents. Construct a histogram of the data taken by the class. Use five intervals. Draw a smooth curve through the bars. The graph should look approximately exponential. Then calculate the mean.\nLet X = the amount of money a student in your class has in their pocket or purse.\nThe distribution for X is approximately exponential with mean, μ = _______ and m = _______. The standard deviation, σ = ________.\nDraw the appropriate exponential graph. You should label the x– and y–axes, the decay rate, and the mean. Shade the area that represents the probability that one student has less than \\$.40 in their pocket or purse. (Shade P(x < 0.40)).\nOn the average, a certain computer part lasts ten years. The length of time the computer part lasts is exponentially distributed.\na. What is the probability that a computer part lasts more than 7 years?\na. Let x = the amount of time (in years) a computer part lasts. μ = 10 so $m=\\frac{1}{\\mu}=\\frac{1}{10}=0.1$ Find P(x > 7). Draw the graph. P(x > 7) = 1 – P(x < 7). Since P(X < x) = 1 –e–mx then P(X > x) = 1 –(1 –e–mx) = e-mx P(x > 7) = e(–0.1)(7) = 0.4966. The probability that a computer part lasts more than seven years is 0.4966.\nOn the home screen, enter e^(-.1*7).\n[Image: Exponential graph with the curved line beginning at point (0, 0.1) and curves down towards point (∞, 0). A vertical upward line extends from point 1 to the curved line. The probability area occurs from point 1 to the end of the curve. The x-axis is equal to the amount of time a computer part lasts.]\nb. On the average, how long would five computer parts last if they are used one after another?\nb. On the average, one computer part lasts ten years. Therefore, five computer parts, if they are used one right after the other would last, on the average, (5)(10) = 50 years.\nc. Eighty percent of computer parts last at most how long?\nc. Find the 80th percentile. Draw the graph. Let k = the 80th percentile.\n[Image: Exponential graph with the curved line beginning at point (0, 0.1) and curves down towards point (∞, 0). A vertical upward line extends from point k to the curved line. k is the 80th percentile. The probability area from 0-k is equal to 0.80.]\nSolve for k: $k=\\frac{ln(1–0.80)}{–0.1}=16.1$ years\nEighty percent of the computer parts last at most 16.1 years.\nOn the home screen, enter $\\frac{ln(1–0.80)}{–0.1}$\nd. What is the probability that a computer part lasts between nine and 11 years?\nd. Find P(9 < x < 11). Draw the graph.\n[Image: Exponential graph with the curved line beginning at point (0, 0.1) and curves down towards point (∞, 0). Two vertical upward lines extend from point 9 and 11 to the curved line. The probability area occurs between point 9 and 11.]\nP(9 < x < 11) = P(x < 11) – P(x < 9) = (1 – e(–0.1)(11)) – (1 – e(–0.1)(9)) = 0.6671 – 0.5934 = 0.0737. The probability that a computer part lasts between nine and 11 years is 0.0737.\nOn the home screen, enter e^(–0.1*9) – e^(–0.1*11).\nTry It\nOn average, a pair of running shoes can last 18 months if used every day. The length of time running shoes last is exponentially distributed. What is the probability that a pair of running shoes last more than 15 months? On average, how long would six pairs of running shoes last if they are used one after the other? Eighty percent of running shoes last at most how long if used every day?\nSuppose that the length of a phone call, in minutes, is an exponential random variable with decay parameter $\\frac{1}{12}$. If another person arrives at a public telephone just before you, find the probability that you will have to wait more than five minutes. Let X = the length of a phone call, in minutes.\nWhat is m, μ, and σ? The probability that you must wait more than five minutes is _______.\n- m = $\\frac{1}{12}$\n- μ = 12\n- σ = 12\nP(x > 5) = 0.6592\nTry It\nSuppose that the distance, in miles, that people are willing to commute to work is an exponential random variable with a decay parameter $\\frac{1}{20}$. Let X = the distance people are willing to commute in miles. What is m, μ, and σ? What is the probability that a person is willing to commute more than 25 miles?\nThe time spent waiting between events is often modeled using the exponential distribution. For example, suppose that an average of 30 customers per hour arrive at a store and the time between arrivals is exponentially distributed.\n- On average, how many minutes elapse between two successive arrivals?\n- When the store first opens, how long on average does it take for three customers to arrive?\n- After a customer arrives, find the probability that it takes less than one minute for the next customer to arrive.\n- After a customer arrives, find the probability that it takes more than five minutes for the next customer to arrive.\n- Seventy percent of the customers arrive within how many minutes of the previous customer?\n- Is an exponential distribution reasonable for this situation?\n- Since we expect 30 customers to arrive per hour (60 minutes), we expect on average one customer to arrive every two minutes on average.\n- Since one customer arrives every two minutes on average, it will take six minutes on average for three customers to arrive.\n- Let X = the time between arrivals, in minutes. By part a, μ = 2, so m = $\\frac{1}{2}$ = 0.5. Therefore, X ∼ Exp(0.5). The cumulative distribution function is P(X < x) = 1 – e(-0.5)(x). Therefore P(X < 1) = 1 – e(–0.5)(1) ≈ 0.3935.\n1 - e^(–0.5) ≈ 0.3935\n[Image: Exponential graph with the graph beginning at point (0, 0.5) and curving down towards the horizontal axis which is an asymptote. A vertical line segment extends from the horizontal axis to the curve at x = 1. The area under the curve between the y-axis and this segment is shaded. Text states “Shaded area represents probability 0.3935.”]\n- P(X > 5) = 1 – P(X < 5) = 1 – (1 – e(-0.50)(5)) = e–2.5 ≈ 0.0821.\n[Image: Exponential graph with the graph beginning at point (0, 0.5) and curving down towards the horizontal axis which is an asymptote. A vertical line segment extends from the horizontal axis to the curve at x = 5. The area under the curve to the right of this segment is shaded. Text states “Shaded area represents probability P(x > 5) = 1 – P(x < 5) = 0.0821.”]\n1 – (1 – e^((-0.50)(5))) or e^(– 5*0.5)\n- We want to solve 0.70 = P(X < x) for x. Substituting in the cumulative distribution function gives 0.70 = 1 – e–0.5x, so that e–0.5x = 0.30. Converting this to logarithmic form gives –0.5x = ln(0.30), or $x=\\frac{ln(0.30)}{–0.5}\\approx2.41$ minutes. Thus, seventy percent of customers arrive within 2.41 minutes of the previous customer. You are finding the 70th percentile k so you can use the formula k = $\\frac{ln(1–Area_To_The_Left_Of_k)}{(–m)}$ k = $\\frac{ln(1–0.70)}{(–0.5)}\\approx2.41$ minutes\n[Image: Exponential graph with the graph beginning at point (0, 0.5) and curving down towards the horizontal axis which is an asymptote. A vertical line segment extends from the horizontal axis to the curve at x = 2.41. The area under the curve between the y-axis and this segment is shaded. Text states “Shaded area represents probability 0.70.”]\n- This model assumes that a single customer arrives at a time, which may not be reasonable since people might shop in groups, leading to several customers arriving at the same time. It also assumes that the flow of customers does not change throughout the day, which is not valid if some times of the day are busier than others.\nTry It\nSuppose that on a certain stretch of highway, cars pass at an average rate of five cars per minute. Assume that the duration of time between successive cars follows the exponential distribution.\n- On average, how many seconds elapse between two successive cars?\n- After a car passes by, how long on average will it take for another seven cars to pass by?\n- Find the probability that after a car passes by, the next car will pass within the next 20 seconds.\n- Find the probability that after a car passes by, the next car will not pass for at least another 15 seconds.\nMemorylessness of the Exponential Distribution\nIn Example recall that the amount of time between customers is exponentially distributed with a mean of two minutes (X ~ Exp (0.5)). Suppose that five minutes have elapsed since the last customer arrived. Since an unusually long amount of time has now elapsed, it would seem to be more likely for a customer to arrive within the next minute. With the exponential distribution, this is not the case–the additional time spent waiting for the next customer does not depend on how much time has already elapsed since the last customer. This is referred to as the memoryless property. Specifically, the memoryless property says that\nP (X > r + t | X > r) = P (X > t) for all r ≥ 0 and t ≥ 0\nFor example, if five minutes have elapsed since the last customer arrived, then the probability that more than one minute will elapse before the next customer arrives is computed by using r = 5 and t = 1 in the foregoing equation.\nP(X > 5 + 1 | X > 5) = P(X > 1) = ${e}^{(–0.5)(1)}$ ≈ 0.6065.\nThis is the same probability as that of waiting more than one minute for a customer to arrive after the previous arrival.\nThe exponential distribution is often used to model the longevity of an electrical or mechanical device. In Example, the lifetime of a certain computer part has the exponential distribution with a mean of ten years (X ~ Exp(0.1)). The memoryless property says that knowledge of what has occurred in the past has no effect on future probabilities. In this case it means that an old part is not any more likely to break down at any particular time than a brand new part. In other words, the part stays as good as new until it suddenly breaks. For example, if the part has already lasted ten years, then the probability that it lasts another seven years is P(X > 17|X > 10) = P(X > 7) = 0.4966.\nRefer to Example where the time a postal clerk spends with a customer has an exponential distribution with a mean of four minutes. Suppose a customer has spent four minutes with a postal clerk. What is the probability that the customer will spend at least an additional three minutes with the postal clerk?\nThe decay parameter of X is m = $\\frac{1}{4}$ = 0.25, so X ∼ Exp(0.25).\nThe cumulative distribution function is P(X < x) = 1 – e–0.25x.\nWe want to find P(X > 7|X > 4). The memoryless property says that P(X > 7|X > 4) = P (X > 3), so we just need to find the probability that a customer spends more than three minutes with a postal clerk.\nThis is P(X > 3) = 1 – P (X < 3) = 1 – (1 – e–0.25⋅3) = e–0.75 ≈ 0.4724.\n[Image: This graph shows an exponential distribution. The graph slopes downward. It begins at the point (0, 0.25) on the y-axis and approaches the x-axis at the right edge of the graph. The region under the graph to the right of x = 3 is shaded to represent P(x > 3) = 0.4724.]\n1–(1–e^(–0.25*3)) = e^(–0.25*3).\nTry It\nSuppose that the longevity of a light bulb is exponential with a mean lifetime of eight years. If a bulb has already lasted 12 years, find the probability that it will last a total of over 19 years.\nRelationship between the Poisson and the Exponential Distribution\nThere is an interesting relationship between the exponential distribution and the Poisson distribution. Suppose that the time that elapses between two successive events follows the exponential distribution with a mean of μ units of time. Also assume that these times are independent, meaning that the time between events is not affected by the times between previous events. If these assumptions hold, then the number of events per unit time follows a Poisson distribution with mean λ = 1/μ. Recall from the chapter on Discrete Random Variables that if X has the Poisson distribution with mean λ, then $P(X=k)=\\frac{{λ}^{k}{e}^{-λ}}{k!}$. Conversely, if the number of events per unit time follows a Poisson distribution, then the amount of time between events follows the exponential distribution. (k! = k*(k–1*)(k–2)*(k–3)*…3*2*1)\nSuppose X has the Poisson distribution with mean λ. Compute P(X = k) by entering 2nd, VARS(DISTR), C: poissonpdf(λ, k). To compute P(X ≤ k), enter 2nd, VARS (DISTR), D:poissoncdf(λ, k).\nAt a police station in a large city, calls come in at an average rate of four calls per minute. Assume that the time that elapses from one call to the next has the exponential distribution. Take note that we are concerned only with the rate at which calls come in, and we are ignoring the time spent on the phone. We must also assume that the times spent between calls are independent. This means that a particularly long delay between two calls does not mean that there will be a shorter waiting period for the next call. We may then deduce that the total number of calls received during a time period has the Poisson distribution.\n- Find the average time between two successive calls.\n- Find the probability that after a call is received, the next call occurs in less than ten seconds.\n- Find the probability that exactly five calls occur within a minute.\n- Find the probability that less than five calls occur within a minute.\n- Find the probability that more than 40 calls occur in an eight-minute period.\n- On average there are four calls occur per minute, so 15 seconds, or $\\frac{15}{60}$ = 0.25 minutes occur between successive calls on average.\n- Let T = time elapsed between calls. From part a, μ = 0.25, so m = $\\frac{1}{0.25}$ = 4. Thus, T ∼ Exp(4). The cumulative distribution function is P(T < t) = 1 – e–4t. The probability that the next call occurs in less than ten seconds (ten seconds = 1/6 minute) is $P(T\\text{<}\\frac{1}{6})=1–{e}^{(–4)(\\frac{1}{6})}\\approx0.4866.$\n[Image: This graph shows an exponential distribution. The graph slopes downward. It begins at the point (0, 0.8) on the y-axis and approaches the x-axis at the right edge of the graph. The region under the graph to the left of x = 20 is shaded to represent P(x < 1/6) = 0.4866.]\n- Let X = the number of calls per minute. As previously stated, the number of calls per minute has a Poisson distribution, with a mean of four calls per minute. Therefore, X ∼ Poisson(4), and so P(X = 5) = $\\frac{{4}^{5}{e}^{-4}}{5!}$ ≈ 0.1563. (5! = (5)(4)(3)(2)(1))\npoissonpdf(4, 5) = 0.1563.\n- Keep in mind that X must be a whole number, so P(X < 5) = P(X ≤ 4). To compute this, we could take P(X = 0) + P(X = 1) + P(X = 2) + P(X = 3) + P(X = 4). Using technology, we see that P(X ≤ 4) = 0.6288.\npoisssoncdf(4, 4) = 0.6288\n- Let Y = the number of calls that occur during an eight minute period. Since there is an average of four calls per minute, there is an average of (8)(4) = 32 calls during each eight minute period. Hence, Y ∼ Poisson(32). Therefore, P(Y > 40) = 1 – P (Y ≤ 40) = 1 – 0.9294 = 0.0707.\n1 – poissoncdf(32, 40). = 0.0707\nTry It\nIn a small city, the number of automobile accidents occur with a Poisson distribution at an average of three per week.\n- Calculate the probability that there are at most 2 accidents occur in any given week.\n- What is the probability that there is at least two weeks between any 2 accidents?\nChapter Review\nIf X has an exponential distribution with mean μ, then the decay parameter is m = $\\frac{1}{\\mu}$, and we write X ∼ Exp(m) where x ≥ 0 and m > 0. The probability density function of X is f(x) = me-mx (or equivalently $f(x)=\\frac{1}{\\mu}{e}^{-x/\\mu}$. The cumulative distribution function of X is P(X ≤ x) = 1 – e–mx.\nThe exponential distribution has the memoryless property, which says that future probabilities do not depend on any past information. Mathematically, it says that P(X > x + k|X > x) = P(X > k).\nIf T represents the waiting time between events, and if T ∼ Exp(λ), then the number of events X per unit time follows the Poisson distribution with mean λ. The probability density function of X is $P(X=k)=\\frac{{λ}^{k}{e}^{-k}}{k!}$. This may be computed using a TI-83, 83+, 84, 84+ calculator with the command poissonpdf(λ, k). The cumulative distribution function P(X ≤ k) may be computed using the TI-83, 83+,84, 84+ calculator with the command poissoncdf(λ, k).\nFormula Review\nExponential: X ~ Exp(m) where m = the decay parameter\n- pdf: f(x) = me(–mx) where x ≥ 0 and m > 0\n- cdf: P(X ≤ x) = 1 – e(–mx)\n- mean µ = $\\frac{1}{m}$\n- standard deviation σ = µ\n- percentile k: k = $\\frac{ln(1-AreaToTheLeftOfk)}{(-m)}$\n- Additionally\n- P(X > x) = e(–mx)\n- P(a < X < b) = e(–ma) – e(–mb)\n- Memoryless Property: P(X > x + k|X > x) = P (X > k)\n- Poisson probability: $P(X=k)=\\frac{{λ}^{k}{e}^{-λ}}{k!}$ with mean λ\n- k! = k*(k-1)*(k-2)*(k-3)*…3*2*1\nReferences\nData from the United States Census Bureau.\nData from World Earthquakes, 2013. Available online at http://www.world-earthquakes.com/ (accessed June 11, 2013).\n“No-hitter.” Baseball-Reference.com, 2013. Available online at http://www.baseball-reference.com/bullpen/No-hitter (accessed June 11, 2013).\nZhou, Rick. “Exponential Distribution lecture slides.” Available online at www.public.iastate.edu/~riczw/stat330s11/lecture/lec13.pdf‎ (accessed June 11, 2013).\nUse the following information to answer the next ten exercises. A customer service representative must spend different amounts of time with each customer to resolve various concerns. The amount of time spent with each customer can be modeled by the following distribution: X ~ Exp(0.2)\nWhat type of distribution is this?\nAre outcomes equally likely in this distribution? Why or why not?\nNo, outcomes are not equally likely. In this distribution, more people require a little bit of time, and fewer people require a lot of time, so it is more likely that someone will require less time.\nWhat is m? What does it represent?\nWhat is the mean?\nfive\nWhat is the standard deviation?\nState the probability density function.\nf(x) = 0.2e-0.2x\nGraph the distribution.\nFind P(2 < x < 10).\n0.5350\nFind P(x > 6).\nFind the 70th percentile.\n6.02\nUse the following information to answer the next seven exercises. A distribution is given as X ~ Exp(0.75).\nWhat is m?\nWhat is the probability density function?\nf(x) = 0.75e-0.75x\nWhat is the cumulative distribution function?\nDraw the distribution.\n[Image: This graph shows an exponential distribution. The graph slopes downward. It begins at the point (0, 0.75) on the y-axis and approaches the x-axis at the right edge of the graph. The decay parameter, m, equals 0.75.]\nFind P(x < 4).\nFind the 30th percentile.\n0.4756\nFind the median.\nWhich is larger, the mean or the median?\nThe mean is larger. The mean is $\\frac{1}{m}=\\frac{1}{0.75}\\approx1.33$, which is greater than 0.9242.\nUse the following information to answer the next 16 exercises. Carbon-14 is a radioactive element with a half-life of about 5,730 years. Carbon-14 is said to decay exponentially. The decay rate is 0.000121. We start with one gram of carbon-14. We are interested in the time (years) it takes to decay carbon-14.\nWhat is being measured here?\nAre the data discrete or continuous?\ncontinuous\nIn words, define the random variable X.\nWhat is the decay rate (m)?\nm = 0.000121\nThe distribution for X is ______.\nFind the amount (percent of one gram) of carbon-14 lasting less than 5,730 years. This means, find P(x < 5,730).\n- Sketch the graph, and shade the area of interest.\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\n- Find the probability. P(x < 5,730) = __________\n- Answers may vary.\n- P(x < 5,730) = 0.5001\nFind the percentage of carbon-14 lasting longer than 10,000 years.\n- Sketch the graph, and shade the area of interest.\n[Image: Blank graph with horizontal and vertical axes.]\n- Find the probability. P(x > 10,000) = ________\nThirty percent (30%) of carbon-14 will decay within how many years?\n- Sketch the graph, and shade the area of interest.\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\n- Find the value k such that P(x < k) = 0.30.\n- Answers may vary.\n- k = 2947.73\nHomework\nSuppose that the length of phone calls, measured in minutes, is known to have an exponential distribution with the average length of a call equal to eight minutes.\n- Define the random variable. X = ________________.\n- Is X continuous or discrete?\n- X ~ ________\n- μ = ________\n- σ = ________\n- Draw a graph of the probability distribution. Label the axes.\n- Find the probability that a phone call lasts less than nine minutes.\n- Find the probability that a phone call lasts more than nine minutes.\n- Find the probability that a phone call lasts between seven and nine minutes.\n- If 25 phone calls are made one after another, on average, what would you expect the total to be? Why?\nSuppose that the useful life of a particular car battery, measured in months, decays with parameter 0.025. We are interested in the life of the battery.\n- Define the random variable. X = _________________________________.\n- Is X continuous or discrete?\n- X ~ ________\n- On average, how long would you expect one car battery to last?\n- On average, how long would you expect nine car batteries to last, if they are used one after another?\n- Find the probability that a car battery lasts more than 36 months.\n- Seventy percent of the batteries last at least how long?\n- X = the useful life of a particular car battery, measured in months.\n- X is continuous.\n- X ~ Exp(0.025)\n- 40 months\n- 360 months\n- 0.4066\n- 14.27\nAt one point in time, the percent of persons (ages five and older) in each state who speak a language at home other than English is approximately exponentially distributed with a mean of 9.848. Suppose we randomly pick a state.\n- Define the random variable. X = _________________________________.\n- Is X continuous or discrete?\n- X ~ ________\n- μ = ________\n- σ = ________\n- Draw a graph of the probability distribution. Label the axes.\n- Find the probability that the percent is less than 12.\n- Find the probability that the percent is between eight and 14.\n- The percent of all individuals living in the United States who speak a language at home other than English is 13.8.\n- Why is this number different from 9.848%?\n- What would make this number higher than 9.848%?\nThe time (in years) after reaching age 60 that it takes an individual to retire is approximately exponentially distributed with a mean of about five years. Suppose we randomly pick one retired individual. We are interested in the time after age 60 to retirement.\n- Define the random variable. X = _________________________________.\n- Is X continuous or discrete?\n- X ~ = ________\n- μ = ________\n- σ = ________\n- Draw a graph of the probability distribution. Label the axes.\n- Find the probability that the person retired after age 70.\n- Do more people retire before age 65 or after age 65?\n- In a room of 1,000 people over age 80, how many do you expect will NOT have retired yet?\n- X = the time (in years) after reaching age 60 that it takes an individual to retire\n- X is continuous.\n- X ~ Exp$(\\frac{1}{5})$\n- five\n- five\n- Answers may vary.\n- 0.1353\n- before\n- 18.3\nThe cost of all maintenance for a car during its first year is approximately exponentially distributed with a mean of \\$150.\n- Define the random variable. X = _________________________________.\n- X ~ = ________\n- μ = ________\n- σ = ________\n- Draw a graph of the probability distribution. Label the axes.\n- Find the probability that a car required over \\$300 for maintenance during its first year.\nUse the following information to answer the next three exercises. The average lifetime of a certain new smartphone is three years. The manufacturer will replace any smartphone failing within two years of the date of purchase. The lifetime of these smartphones is known to follow an exponential distribution.\nThe decay rate is:\n- 0.3333\n- 0.5000\n- 2\n- 3\na\nWhat is the probability that a smartphone will fail within two years of the date of purchase?\n- 0.8647\n- 0.4866\n- 0.2212\n- 0.9997\nWhat is the median lifetime of these phones (in years)?\n- 0.1941\n- 1.3863\n- 2.0794\n- 5.5452\nc\nLet X ~ Exp(0.1).\n- decay rate = ________\n- μ = ________\n- Graph the probability distribution function.\n- On the graph, shade the area corresponding to P(x < 6) and find the probability.\n- Sketch a new graph, shade the area corresponding to P(3 < x < 6) and find the probability.\n- Sketch a new graph, shade the area corresponding to P(x < 7) and find the probability.\n- Sketch a new graph, shade the area corresponding to the 40th percentile and find the value.\n- Find the average value of x.\nSuppose that the longevity of a light bulb is exponential with a mean lifetime of eight years.\n- Find the probability that a light bulb lasts less than one year.\n- Find the probability that a light bulb lasts between six and ten years.\n- Seventy percent of all light bulbs last at least how long?\n- A company decides to offer a warranty to give refunds to light bulbs whose lifetime is among the lowest two percent of all bulbs. To the nearest month, what should be the cutoff lifetime for the warranty to take place?\n- If a light bulb has lasted seven years, what is the probability that it fails within the 8th year.\nLet T = the life time of a light bulb.\nThe decay parameter is m = 1/8, and T ∼ Exp(1/8). The cumulative distribution function is $P(T<t)=1-{e}^{-\\frac{t}{8}}$\n- Therefore, P(T < 1) = 1 – e$–\\frac{1}{8}$ ≈ 0.1175.\n- We want to find P(6 < t < 10). To do this, P(6 < t < 10) – P(t < 6) $=(1–{e}^{–\\frac{1}{8}*10})–(1–{e}^{–\\frac{1}{8}*6})$ ≈ 0.7135 – 0.5276 = 0.1859\n[Image: This graph shows an exponential distribution. The graph slopes downward. It begins at the point (0, 1.2) and approaches the horizontal t-axis at the right edge of the graph. The region under the graph from x = 6 to x = 10 is shaded. Text notes that the shaded area represents P(6 < t < 10) = 0.1859.]\n- We want to find 0.70 $=P(T>t)=1–(1–{e}^{-\\frac{t}{8}})={e}^{-\\frac{t}{8}}.$ Solving for t, e$–\\frac{t}{8}$ = 0.70, so $–\\frac{t}{8}$ = ln(0.70), and t = –8ln(0.70) ≈ 2.85 years. Or use t = $\\frac{ln\\text{(area_to_the_right)}}{(–m)}=\\frac{ln\\text{(0}\\text{.70)}}{–\\frac{1}{8}}\\approx2.\\text{85 years}$.\n[Image: This graph shows an exponential distribution. The graph slopes downward. It begins at the point (0, 1.2) and approaches the horizontal t-axis at the right edge of the graph. The region under the graph from x = 2.85 to the edge of the graph is shaded. Text notes that the shaded area represents P(t > 2.85) = 0.70.]\n- We want to find 0.02 = P(T < t) = 1 – e$–\\frac{t}{8}$. Solving for t, e$–\\frac{t}{8}$ = 0.98, so $–\\frac{t}{8}$ = ln(0.98), and t = –8ln(0.98) ≈ 0.1616 years, or roughly two months. The warranty should cover light bulbs that last less than 2 months. Or use $\\frac{ln\\text{(area_to_the_right)}}{\\text{(}–\\text{m)}}=\\frac{ln\\text{(1}–0.2)}{–\\frac{1}{8}}$ = 0.1616.\n- We must find P(T < 8|T > 7). Notice that by the rule of complement events, P(T < 8|T > 7) = 1 – P(T > 8|T > 7). By the memoryless property (P(X > r + t|X > r) = P(X > t)). So P(T > 8|T > 7) = P(T > 1) = $1–(1–{e}^{–\\frac{1}{8}})={e}^{–\\frac{1}{8}}\\approx0.8825$ Therefore, P(T < 8|T > 7) = 1 – 0.8825 = 0.1175.\nAt a 911 call center, calls come in at an average rate of one call every two minutes. Assume that the time that elapses from one call to the next has the exponential distribution.\n- On average, how much time occurs between five consecutive calls?\n- Find the probability that after a call is received, it takes more than three minutes for the next call to occur.\n- Ninety-percent of all calls occur within how many minutes of the previous call?\n- Suppose that two minutes have elapsed since the last call. Find the probability that the next call will occur within the next minute.\n- Find the probability that less than 20 calls occur within an hour.\nIn major league baseball, a no-hitter is a game in which a pitcher, or pitchers, doesn't give up any hits throughout the game. No-hitters occur at a rate of about three per season. Assume that the duration of time between no-hitters is exponential.\n- What is the probability that an entire season elapses with a single no-hitter?\n- If an entire season elapses without any no-hitters, what is the probability that there are no no-hitters in the following season?\n- What is the probability that there are more than 3 no-hitters in a single season?\nLet X = the number of no-hitters throughout a season. Since the duration of time between no-hitters is exponential, the number of no-hitters per season is Poisson with mean λ = 3. Therefore, (X = 0) = $\\frac{{3}^{0}{e}^{–3}}{0\\text{!}}$ = e–3 ≈ 0.0498\nNOTE\nYou could let T = duration of time between no-hitters. Since the time is exponential and there are 3 no-hitters per season, then the time between no-hitters is $\\frac{1}{3}$ season. For the exponential, µ = $\\frac{1}{3}$. Therefore, m = $\\frac{1}{\\mu}$ = 3 and T ∼ Exp(3).\n- The desired probability is P(T > 1) = 1 – P(T < 1) = 1 – (1 – e–3) = e–3 ≈ 0.0498.\n- Let T = duration of time between no-hitters. We find P(T > 2|T > 1), and by the memoryless property this is simply P(T > 1), which we found to be 0.0498 in part a.\n- Let X = the number of no-hitters is a season. Assume that X is Poisson with mean λ = 3. Then P(X > 3) = 1 – P(X ≤ 3) = 0.3528.\nDuring the years 1998–2012, a total of 29 earthquakes of magnitude greater than 6.5 have occurred in Papua New Guinea. Assume that the time spent waiting between earthquakes is exponential.\n- What is the probability that the next earthquake occurs within the next three months?\n- Given that six months has passed without an earthquake in Papua New Guinea, what is the probability that the next three months will be free of earthquakes?\n- What is the probability of zero earthquakes occurring in 2014?\n- What is the probability that at least two earthquakes will occur in 2014?\nAccording to the American Red Cross, about one out of nine people in the U.S. have Type B positive blood. Suppose the blood types of people arriving at a blood drive are independent. In this case, the number of Type B positive blood types that arrive roughly follows the Poisson distribution.\n- If 100 people arrive, how many on average would be expected to have Type B positive blood?\n- What is the probability that over 10 people out of these 100 have type B positive blood?\n- What is the probability that more than 20 people arrive before a person with type B positive blood is found?\n- $\\frac{100}{9}$ = 11.11\n- P(X > 10) = 1 – P(X ≤ 10) = 1 – Poissoncdf(11.11, 10) ≈ 0.5532.\n- The number of people with Type B positive blood encountered roughly follows the Poisson distribution, so the number of people X who arrive between successive Type B positive arrivals is roughly exponential with mean μ = 9 and m = $\\frac{1}{9}$. The cumulative distribution function of X is $P(X<x)=1-{e}^{-\\frac{x}{9}}$. Thus, P(X > 20) = 1 - P(X ≤ 20) = $1-(1-{e}^{-\\frac{20}{9}})\\approx0.1084.$\nNOTE\nWe could also deduce that each person arriving has a 8/9 chance of not having Type B positive blood. So the probability that none of the first 20 people arrive have Type B positive blood is ${(\\frac{8}{9})}^{20}\\approx0.0948$. (The geometric distribution is more appropriate than the exponential because the number of people between Type B positive people is discrete instead of continuous.)\nA web site experiences traffic during normal working hours at a rate of 12 visits per hour. Assume that the duration between visits has the exponential distribution.\n- Find the probability that the duration between two successive visits to the web site is more than ten minutes.\n- The top 25% of durations between visits are at least how long?\n- Suppose that 20 minutes have passed since the last visit to the web site. What is the probability that the next visit will occur within the next 5 minutes?\n- Find the probability that less than 7 visits occur within a one-hour period.\nAt an urgent care facility, patients arrive at an average rate of one patient every seven minutes. Assume that the duration between arrivals is exponentially distributed.\n- Find the probability that the time between two successive visits to the urgent care facility is less than 2 minutes.\n- Find the probability that the time between two successive visits to the urgent care facility is more than 15 minutes.\n- If 10 minutes have passed since the last arrival, what is the probability that the next person will arrive within the next five minutes?\n- Find the probability that more than eight patients arrive during a half-hour period.\nLet T = duration (in minutes) between successive visits. Since patients arrive at a rate of one patient every seven minutes, μ = 7 and the decay constant is m = $\\frac{1}{7}$. The cdf is P(T < t) = $1-{e}^{\\frac{t}{7}}$\n- P(T < 2) = 1 - $1-{e}^{-\\frac{2}{7}}$ ≈ 0.2485.\n- P(T > 15) = $1-P(T<15)=1-(1-{e}^{-\\frac{15}{7}})\\approx{e}^{-\\frac{15}{7}}\\approx0.1173$.\n- P(T > 15|T > 10) = P(T > 5) = $1-(1-{e}^{-\\frac{5}{7}})={e}^{-\\frac{5}{7}}\\approx0.4895$.\n- Let X = # of patients arriving during a half-hour period. Then X has the Poisson distribution with a mean of $\\frac{30}{7}$, X ∼ Poisson$(\\frac{30}{7})$. Find P(X > 8) = 1 – P(X ≤ 8) ≈ 0.0311.\n\nGlossary\ndecay parameter The decay parameter describes the rate at which probabilities decay to zero for increasing values of x. It is the value m in the probability density function f(x) = me(-mx) of an exponential random variable. It is also equal to m = $\\frac{1}{\\mu}$, where μ is the mean of the random variable.\nmemoryless property For an exponential random variable X, the memoryless property is the statement that knowledge of what has occurred in the past has no effect on future probabilities. This means that the probability that X exceeds x + k, given that it has exceeded x, is the same as the probability that X would exceed k if we had no knowledge about it. In symbols we say that P(X > x + k|X > x) = P(X > k).\nPoisson distribution If there is a known average of λ events occurring per unit time, and these events are independent of each other, then the number of events X occurring in one unit of time has the Poisson distribution. The probability of k events occurring in one unit time is equal to $P(X=k)=\\frac{{λ}^{k}{e}^{-λ}}{k!}$."}
{"document_id": "openstax-intro-statistics-m50260", "title": "Continuous Random Variables — Continuous Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/5-4-continuous-distribution", "license": "CC-BY-4.0", "text": "Continuous Distribution\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will compare and contrast empirical data from a random number generator with the uniform distribution.\nCollect the Data\nUse a random number generator to generate 50 values between zero and one (inclusive). List them in Table. Round the numbers to four decimal places or set the calculator MODE to four places.\n- Complete the table.\n- Calculate the following:\n- $\\overline{x}=$ _______\n- s = _______\n- first quartile = _______\n- third quartile = _______\n- median = _______\nOrganize the Data\n- Construct a histogram of the empirical data. Make eight bars.\n[Image: Blank graph with relative frequency on the vertical axis and X on the horizontal axis.]\n- Construct a histogram of the empirical data. Make five bars.\n[Image: Blank graph with relative frequency on the vertical axis and X on the horizontal axis.]\nDescribe the Data\n- In two to three complete sentences, describe the shape of each graph. (Keep it simple. Does the graph go straight across, does it have a V shape, does it have a hump in the middle or at either end, and so on. One way to help you determine a shape is to draw a smooth curve roughly through the top of the bars.)\n- Describe how changing the number of bars might change the shape.\nTheoretical Distribution\n- In words, X = _____________________________________.\n- The theoretical distribution of X is X ~ U(0,1).\n- In theory, based upon the distribution X ~ U(0,1), complete the following.\n- μ = ______\n- σ = ______\n- first quartile = ______\n- third quartile = ______\n- median = __________\n- Are the empirical values (the data) in the section titled Collect the Data close to the corresponding theoretical values? Why or why not?\nPlot the Data\n- Construct a box plot of the data. Be sure to use a ruler to scale accurately and draw straight edges.\n- Do you notice any potential outliers? If so, which values are they? Either way, justify your answer numerically. (Recall that any DATA that are less than Q1 – 1.5(IQR) or more than Q3 + 1.5(IQR) are potential outliers. IQR means interquartile range.)\nCompare the Data\n- For each of the following parts, use a complete sentence to comment on how the value obtained from the data compares to the theoretical value you expected from the distribution in the section titled Theoretical Distribution.\n- minimum value: _______\n- first quartile: _______\n- median: _______\n- third quartile: _______\n- maximum value: _______\n- width of IQR: _______\n- overall shape: _______\n- Based on your comments in the section titled Collect the Data, how does the box plot fit or not fit what you would expect of the distribution in the section titled Theoretical Distribution?\nDiscussion Question\n- Suppose that the number of values generated was 500, not 50. How would that affect what you would expect the empirical data to be and the shape of its graph to look like?"}
{"document_id": "openstax-intro-statistics-m46980", "title": "The Normal Distribution — The Standard Normal Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/6-1-the-standard-normal-distribution", "license": "CC-BY-4.0", "text": "The standard normal distribution is a normal distribution of standardized values called z-scores. A z-score is measured in units of the standard deviation. For example, if the mean of a normal distribution is five and the standard deviation is two, the value 11 is three standard deviations above (or to the right of) the mean. The calculation is as follows:\nx = μ + (z)(σ) = 5 + (3)(2) = 11\nThe z-score is three.\nThe mean for the standard normal distribution is zero, and the standard deviation is one. The transformation z = $\\frac{x-\\mu}{\\sigma}$ produces the distribution Z ~ N(0, 1). The value x in the given equation comes from a normal distribution with mean μ and standard deviation σ.\nZ-Scores\nIf X is a normally distributed random variable and X ~ N(μ, σ), then the z-score is:\n$$z=\\frac{x–\\mu}{\\sigma}$$\nThe z-score tells you how many standard deviations the value x is above (to the right of) or below (to the left of) the mean, μ. Values of x that are larger than the mean have positive z-scores, and values of x that are smaller than the mean have negative z-scores. If x equals the mean, then x has a z-score of zero.\nSuppose X ~ N(5, 6). This says that X is a normally distributed random variable with mean μ = 5 and standard deviation σ = 6. Suppose x = 17. Then:\n$$z=\\frac{x–\\mu}{\\sigma}=\\frac{17–5}{6}=2$$\nThis means that x = 17 is two standard deviations (2σ) above or to the right of the mean μ = 5.\nNotice that: 5 + (2)(6) = 17 (The pattern is μ + zσ = x)\nNow suppose x = 1. Then: z = $\\frac{x–\\mu}{\\sigma}$ = $\\frac{1–5}{6}$ = –0.67 (rounded to two decimal places)\nThis means that x = 1 is 0.67 standard deviations (–0.67σ) below or to the left of the mean μ = 5. Notice that: 5 + (–0.67)(6) is approximately equal to one (This has the pattern μ + (–0.67)σ = 1)\nSummarizing, when z is positive, x is above or to the right of μ and when z is negative, x is to the left of or below μ. Or, when z is positive, x is greater than μ, and when z is negative x is less than μ.\nTry It\nWhat is the z-score of x, when x = 1 and X ~ N(12,3)?\nSome doctors believe that a person can lose five pounds, on the average, in a month by reducing their fat intake and by exercising consistently. Suppose weight loss has a normal distribution. Let X = the amount of weight lost (in pounds) by a person in a month. Use a standard deviation of two pounds. X ~ N(5, 2). Fill in the blanks.\na. Suppose a person lost ten pounds in a month. The z-score when x = 10 pounds is z = 2.5 (verify). This z-score tells you that x = 10 is ________ standard deviations to the ________ (right or left) of the mean _____ (What is the mean?).\na. This z-score tells you that x = 10 is 2.5 standard deviations to the right of the mean five.\nb. Suppose a person gained three pounds (a negative weight loss). Then z = __________. This z-score tells you that x = –3 is ________ standard deviations to the __________ (right or left) of the mean.\nb. z = –4. This z-score tells you that x = –3 is four standard deviations to the left of the mean.\nc. Suppose the random variables X and Y have the following normal distributions: X ~ N(5, 6) and Y ~ N(2, 1). If x = 17, then z = 2. (This was previously shown.) If y = 4, what is z?\nc. z = $\\frac{y-\\mu}{\\sigma}$ = $\\frac{4-2}{1}$ = 2 where µ = 2 and σ = 1.\nThe z-score for y = 4 is z = 2. This means that four is z = 2 standard deviations to the right of the mean. Therefore, x = 17 and y = 4 are both two (of their own) standard deviations to the right of their respective means.\nThe z-score allows us to compare data that are scaled differently. To understand the concept, suppose X ~ N(5, 6) represents weight gains for one group of people who are trying to gain weight in a six week period and Y ~ N(2, 1) measures the same weight gain for a second group of people. A negative weight gain would be a weight loss. Since x = 17 and y = 4 are each two standard deviations to the right of their means, they represent the same, standardized weight gain relative to their means.\nTry It\nFill in the blanks.\nJerome averages 16 points a game with a standard deviation of four points. X ~ N(16,4). Suppose Jerome scores ten points in a game. The z–score when x = 10 is –1.5. This score tells you that x = 10 is _____ standard deviations to the ______(right or left) of the mean______(What is the mean?).\nThe Empirical Rule\nIf X is a random variable and has a normal distribution with mean µ and standard deviation σ, then the Empirical Rule states the following:\n- About 68% of the x values lie between –1σ and +1σ of the mean µ (within one standard deviation of the mean).\n- About 95% of the x values lie between –2σ and +2σ of the mean µ (within two standard deviations of the mean).\n- About 99.7% of the x values lie between –3σ and +3σ of the mean µ (within three standard deviations of the mean). Notice that almost all the x values lie within three standard deviations of the mean.\n- The z-scores for +1σ and –1σ are +1 and –1, respectively.\n- The z-scores for +2σ and –2σ are +2 and –2, respectively.\n- The z-scores for +3σ and –3σ are +3 and –3 respectively.\nThe empirical rule is also known as the 68-95-99.7 rule.\n[Image: This frequency curve illustrates the empirical rule. The normal curve is shown over a horizontal axis. The axis is labeled with points -3s, -2s, -1s, m, 1s, 2s, 3s. Vertical lines connect the axis to the curve at each labeled point. The peak of the curve aligns with the point m.]\nThe mean height of 15 to 18-year-old males from Chile from 2009 to 2010 was 170 cm with a standard deviation of 6.28 cm. Male heights are known to follow a normal distribution. Let X = the height of a 15 to 18-year-old male from Chile in 2009 to 2010. Then X ~ N(170, 6.28).\na. Suppose a 15 to 18-year-old male from Chile was 168 cm tall from 2009 to 2010. The z-score when x = 168 cm is z = _______. This z-score tells you that x = 168 is ________ standard deviations to the ________ (right or left) of the mean _____ (What is the mean?).\nb. Suppose that the height of a 15 to 18-year-old male from Chile from 2009 to 2010 has a z-score of z = 1.27. What is the male’s height? The z-score (z = 1.27) tells you that the male’s height is ________ standard deviations to the __________ (right or left) of the mean.\na. –0.32, 0.32, left, 170\nb. 177.98 cm, 1.27, right\nTry It\nUse the information in Example to answer the following questions.\n- Suppose a 15 to 18-year-old male from Chile was 176 cm tall from 2009 to 2010. The z-score when x = 176 cm is z = _______. This z-score tells you that x = 176 cm is ________ standard deviations to the ________ (right or left) of the mean _____ (What is the mean?).\n- Suppose that the height of a 15 to 18-year-old male from Chile from 2009 to 2010 has a z-score of z = –2. What is the male’s height? The z-score (z = –2) tells you that the male’s height is ________ standard deviations to the __________ (right or left) of the mean.\nFrom 1984 to 1985, the mean height of 15 to 18-year-old males from Chile was 172.36 cm, and the standard deviation was 6.34 cm. Let Y = the height of 15 to 18-year-old males from 1984 to 1985. Then Y ~ N(172.36, 6.34).\nThe mean height of 15 to 18-year-old males from Chile from 2009 to 2010 was 170 cm with a standard deviation of 6.28 cm. Male heights are known to follow a normal distribution. Let X = the height of a 15 to 18-year-old male from Chile in 2009 to 2010. Then X ~ N(170, 6.28).\nFind the z-scores for x = 160.58 cm and y = 162.85 cm. Interpret each z-score. What can you say about x = 160.58 cm and y = 162.85 cm as they compare to their respective means and standard deviations?\nThe z-score for x = -160.58 is z = –1.5. The z-score for y = 162.85 is z = –1.5. Both x = 160.58 and y = 162.85 deviate the same number of standard deviations from their respective means and in the same direction.\nTry It\nIn 2012, 1,664,479 students took the SAT exam. The distribution of scores in the verbal section of the SAT had a mean µ = 496 and a standard deviation σ = 114. Let X = a SAT exam verbal section score in 2012. Then X ~ N(496, 114).\nFind the z-scores for x1 = 325 and x2 = 366.21. Interpret each z-score. What can you say about x1 = 325 and x2 = 366.21 as they compare to their respective means and standard deviations?\nSuppose x has a normal distribution with mean 50 and standard deviation 6.\n- About 68% of the x values lie within one standard deviation of the mean. Therefore, about 68% of the x values lie between –1σ = (–1)(6) = –6 and 1σ = (1)(6) = 6 of the mean 50. The values 50 – 6 = 44 and 50 + 6 = 56 are within one standard deviation from the mean 50. The z-scores are –1 and +1 for 44 and 56, respectively.\n- About 95% of the x values lie within two standard deviations of the mean. Therefore, about 95% of the x values lie between –2σ = (–2)(6) = –12 and 2σ = (2)(6) = 12. The values 50 – 12 = 38 and 50 + 12 = 62 are within two standard deviations from the mean 50. The z-scores are –2 and +2 for 38 and 62, respectively.\n- About 99.7% of the x values lie within three standard deviations of the mean. Therefore, about 99.7% of the x values lie between –3σ = (–3)(6) = –18 and 3σ = (3)(6) = 18 from the mean 50. The values 50 – 18 = 32 and 50 + 18 = 68 are within three standard deviations of the mean 50. The z-scores are –3 and +3 for 32 and 68, respectively.\nTry It\nSuppose X has a normal distribution with mean 25 and standard deviation five. Between what values of x do 68% of the values lie?\nFrom 1984 to 1985, the mean height of 15 to 18-year-old males from Chile was 172.36 cm, and the standard deviation was 6.34 cm. Let Y = the height of 15 to 18-year-old males in 1984 to 1985. Then Y ~ N(172.36, 6.34).\n- About 68% of the y values lie between what two values? These values are ________________. The z-scores are ________________, respectively.\n- About 95% of the y values lie between what two values? These values are ________________. The z-scores are ________________ respectively.\n- About 99.7% of the y values lie between what two values? These values are ________________. The z-scores are ________________, respectively.\n- About 68% of the values lie between 166.02 cm and 178.7 cm. The z-scores are –1 and 1.\n- About 95% of the values lie between 159.68 cm and 185.04 cm. The z-scores are –2 and 2.\n- About 99.7% of the values lie between 153.34 cm and 191.38 cm. The z-scores are –3 and 3.\nTry It\nThe scores on a college entrance exam have an approximate normal distribution with mean, µ = 52 points and a standard deviation, σ = 11 points.\n- About 68% of the y values lie between what two values? These values are ________________. The z-scores are ________________, respectively.\n- About 95% of the y values lie between what two values? These values are ________________. The z-scores are ________________, respectively.\n- About 99.7% of the y values lie between what two values? These values are ________________. The z-scores are ________________, respectively.\nReferences\n“Blood Pressure of Males and Females.” StatCruch, 2013. Available online at http://www.statcrunch.com/5.0/viewreport.php?reportid=11960 (accessed May 14, 2013).\n“The Use of Epidemiological Tools in Conflict-affected populations: Open-access educational resources for policy-makers: Calculation of z-scores.” London School of Hygiene and Tropical Medicine, 2009. Available online at http://conflict.lshtm.ac.uk/page_125.htm (accessed May 14, 2013).\n“2012 College-Bound Seniors Total Group Profile Report.” CollegeBoard, 2012. Available online at http://media.collegeboard.com/digitalServices/pdf/research/TotalGroup-2012.pdf (accessed May 14, 2013).\n“Digest of Education Statistics: ACT score average and standard deviations by sex and race/ethnicity and percentage of ACT test takers, by selected composite score ranges and planned fields of study: Selected years, 1995 through 2009.” National Center for Education Statistics. Available online at http://nces.ed.gov/programs/digest/d09/tables/dt09_147.asp (accessed May 14, 2013).\nData from the San Jose Mercury News.\nData from The World Almanac and Book of Facts.\n“List of stadiums by capacity.” Wikipedia. Available online at https://en.wikipedia.org/wiki/List_of_stadiums_by_capacity (accessed May 14, 2013).\nData from the National Basketball Association. Available online at www.nba.com (accessed May 14, 2013).\nChapter Review\nA z-score is a standardized value. Its distribution is the standard normal, Z ~ N(0, 1). The mean of the z-scores is zero and the standard deviation is one. If z is the z-score for a value x from the normal distribution N(µ, σ) then z tells you how many standard deviations x is above (greater than) or below (less than) µ.\nFormula Review\nz = a standardized value (z-score)\nmean = 0; standard deviation = 1\nTo find the observed value, x, when the z-scores is known:x = μ + (z)σ\nz-score: z = $\\frac{x\\text{–}\\mu}{\\sigma}$\nZ = the random variable for z-scores\nA bottle of water contains 12.05 fluid ounces with a standard deviation of 0.01 ounces. Define the random variable X in words. X = ____________.\nounces of water in a bottle\nA normal distribution has a mean of 61 and a standard deviation of 15. What is the median?\nX ~ N(1, 2)\nσ = _______\n2\nA company manufactures rubber balls. The mean diameter of a ball is 12 cm with a standard deviation of 0.2 cm. Define the random variable X in words. X = ______________.\nX ~ N(–4, 1)\nWhat is the median?\n–4\nX ~ N(3, 5)\nσ = _______\nX ~ N(–2, 1)\nμ = _______\n–2\nWhat does a z-score measure?\nWhat does standardizing a normal distribution do to the mean?\nThe mean becomes zero.\nIs X ~ N(0, 1) a standardized normal distribution? Why or why not?\nWhat is the z-score of x = 12, if it is two standard deviations to the right of the mean?\nz = 2\nWhat is the z-score of x = 9, if it is 1.5 standard deviations to the left of the mean?\nWhat is the z-score of x = –2, if it is 2.78 standard deviations to the right of the mean?\nz = 2.78\nWhat is the z-score of x = 7, if it is 0.133 standard deviations to the left of the mean?\nSuppose X ~ N(2, 6). What value of x has a z-score of three?\nx = 20\nSuppose X ~ N(8, 1). What value of x has a z-score of –2.25?\nSuppose X ~ N(9, 5). What value of x has a z-score of –0.5?\nx = 6.5\nSuppose X ~ N(2, 3). What value of x has a z-score of –0.67?\nSuppose X ~ N(4, 2). What value of x is 1.5 standard deviations to the left of the mean?\nx = 1\nSuppose X ~ N(4, 2). What value of x is two standard deviations to the right of the mean?\nSuppose X ~ N(8, 9). What value of x is 0.67 standard deviations to the left of the mean?\nx = 1.97\nSuppose X ~ N(–1, 2). What is the z-score of x = 2?\nSuppose X ~ N(12, 6). What is the z-score of x = 2?\nz = –1.67\nSuppose X ~ N(9, 3). What is the z-score of x = 9?\nSuppose a normal distribution has a mean of six and a standard deviation of 1.5. What is the z-score of x = 5.5?\nz ≈ –0.33\nIn a normal distribution, x = 5 and z = –1.25. This tells you that x = 5 is ____ standard deviations to the ____ (right or left) of the mean.\nIn a normal distribution, x = 3 and z = 0.67. This tells you that x = 3 is ____ standard deviations to the ____ (right or left) of the mean.\n0.67, right\nIn a normal distribution, x = –2 and z = 6. This tells you that x = –2 is ____ standard deviations to the ____ (right or left) of the mean.\nIn a normal distribution, x = –5 and z = –3.14. This tells you that x = –5 is ____ standard deviations to the ____ (right or left) of the mean.\n3.14, left\nIn a normal distribution, x = 6 and z = –1.7. This tells you that x = 6 is ____ standard deviations to the ____ (right or left) of the mean.\nAbout what percent of x values from a normal distribution lie within one standard deviation (left and right) of the mean of that distribution?\nabout 68%\nAbout what percent of the x values from a normal distribution lie within two standard deviations (left and right) of the mean of that distribution?\nAbout what percent of x values lie between the second and third standard deviations (both sides)?\nabout 4%\nSuppose X ~ N(15, 3). Between what x values does 68.27% of the data lie? The range of x values is centered at the mean of the distribution (i.e., 15).\nSuppose X ~ N(–3, 1). Between what x values does 95.45% of the data lie? The range of x values is centered at the mean of the distribution(i.e., –3).\nbetween –5 and –1\nSuppose X ~ N(–3, 1). Between what x values does 34.14% of the data lie?\nAbout what percent of x values lie between the mean and three standard deviations?\nabout 50%\nAbout what percent of x values lie between the mean and one standard deviation?\nAbout what percent of x values lie between the first and second standard deviations from the mean (both sides)?\nabout 27%\nAbout what percent of x values lie between the first and third standard deviations(both sides)?\nUse the following information to answer the next two exercises: The life of wearable fitness devices is normally distributed with mean of 4.1 years and a standard deviation of 1.3 years. A wearable fitness device is guaranteed for three years. We are interested in the length of time a wearable fitness device lasts.\nDefine the random variable X in words. X = _______________.\nThe lifetime of a wearable fitness device measured in years.\nX ~ _____(_____,_____)\nHomework\nUse the following information to answer the next two exercises: The patient recovery time from a particular surgical procedure is normally distributed with a mean of 5.3 days and a standard deviation of 2.1 days.\nWhat is the median recovery time?\n- 2.7\n- 5.3\n- 7.4\n- 2.1\nWhat is the z-score for a patient who takes ten days to recover?\n- 1.5\n- 0.2\n- 2.2\n- 7.3\nc\nThe length of time to find a parking space at 9 A.M. follows a normal distribution with a mean of five minutes and a standard deviation of two minutes. If the mean is significantly greater than the standard deviation, which of the following statements is true?\n- The data cannot follow the uniform distribution.\n- The data cannot follow the exponential distribution..\n- The data cannot follow the normal distribution.\n- I only\n- II only\n- III only\n- I, II, and III\nThe heights of the 430 National Basketball Association players were listed on team rosters at the start of a recent season. The heights of basketball players have an approximate normal distribution with mean, µ = 79 inches and a standard deviation, σ = 3.89 inches. For each of the following heights, calculate the z-score and interpret it using complete sentences.\n- 77 inches\n- 85 inches\n- If an NBA player reported his height had a z-score of 3.5, would you believe him? Explain your answer.\n- Use the z-score formula. z = –0.5141. The height of 77 inches is 0.5141 standard deviations below the mean. An NBA player whose height is 77 inches is shorter than average.\n- Use the z-score formula. z = 1.5424. The height 85 inches is 1.5424 standard deviations above the mean. An NBA player whose height is 85 inches is taller than average.\n- Height = 79 + 3.5(3.89) = 92.615 inches, which is taller than 7 feet, 8 inches. There are very few NBA players this tall so the answer is no, not likely.\nThe systolic blood pressure (given in millimeters) of males has an approximately normal distribution with mean µ = 125 and standard deviation σ = 14. Systolic blood pressure for males follows a normal distribution.\n- Calculate the z-scores for the male systolic blood pressures 100 and 150 millimeters.\n- If a male friend of yours said he thought his systolic blood pressure was 2.5 standard deviations below the mean, but that he believed his blood pressure was between 100 and 150 millimeters, what would you say to him?\nKyle’s doctor told him that the z-score for his systolic blood pressure is 1.75. Which of the following is the best interpretation of this standardized score? The systolic blood pressure (given in millimeters) of males has an approximately normal distribution with mean µ = 125 and standard deviation σ = 14. If X = a systolic blood pressure score then X ~ N (125, 14).\n- Which answer(s) is/are correct?\n- Kyle’s systolic blood pressure is 175.\n- Kyle’s systolic blood pressure is 1.75 times the average blood pressure of men his age.\n- Kyle’s systolic blood pressure is 1.75 above the average systolic blood pressure of men his age.\n- Kyles’s systolic blood pressure is 1.75 standard deviations above the average systolic blood pressure for men.\n- Calculate Kyle’s blood pressure.\n- iv\n- Kyle’s blood pressure is equal to 125 + (1.75)(14) = 149.5.\nHeight and weight are two measurements used to track a child’s development. The World Health Organization measures child development by comparing the weights of children who are the same height and the same gender. In 2009, weights for all 80 cm girls in the reference population had a mean µ = 10.2 kg and standard deviation σ = 0.8 kg. Weights are normally distributed. X ~ N(10.2, 0.8). Calculate the z-scores that correspond to the following weights and interpret them.\n- 11 kg\n- 7.9 kg\n- 12.2 kg\nDuring a certain year, 1,475,623 students heading to college took the SAT. The distribution of scores in the math section of the SAT follows a normal distribution with mean µ = 520 and standard deviation σ = 115.\n- Calculate the z-score for an SAT score of 720. Interpret it using a complete sentence.\n- What math SAT score is 1.5 standard deviations above the mean? What can you say about this SAT score?\n- During a different year, the SAT math test had a mean of 514 and standard deviation 117. The ACT math test is an alternate to the SAT and is approximately normally distributed with mean 21 and standard deviation 5.3. If one person took the SAT math test and scored 700 and a second person took the ACT math test and scored 30, who did better with respect to the test they took?\nLet X = an SAT math score and Y = an ACT math score. Use the z-score formula.\n- X = 720: $z=\\frac{720-520}{115}=1.74$. The exam score of 720 is 1.74 standard deviations above the mean of 520.\n- z = 1.5 The math SAT score is 520 + 1.5(115) ≈ 692.5. The exam score of 692.5 is 1.5 standard deviations above the mean of 520.\n- $\\frac{X\\text{–}\\mu}{\\text{σ}}$ = $\\frac{\\text{700 – 514}}{\\text{117}}$ ≈ 1.59, the z-score for the SAT. $\\frac{Y\\text{–}\\mu}{\\sigma}$ = $\\frac{30\\text{–}21}{5.3}$ ≈ 1.70, the z-scores for the ACT. With respect to the test they took, the person who took the ACT did better (has the higher z-score).\n\nGlossary\nStandard Normal Distribution a continuous random variable (RV) X ~ N(0, 1); when X follows the standard normal distribution, it is often noted as Z ~ N(0, 1).\nz-score the linear transformation of the form z = $\\frac{x–\\mu}{\\sigma}$; if this transformation is applied to any normal distribution X ~ N(μ, σ) the result is the standard normal distribution Z ~ N(0,1). If this transformation is applied to any specific value x of the RV with mean μ and standard deviation σ, the result is called the z-score of x. The z-score allows us to compare data that are normally distributed but scaled differently."}
{"document_id": "openstax-intro-statistics-m46973", "title": "The Normal Distribution — Using the Normal Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/6-2-using-the-normal-distribution", "license": "CC-BY-4.0", "text": "The shaded area in the following graph indicates the area to the left of x. This area is represented by the probability P(X < x). Normal tables, computers, and calculators provide or calculate the probability P(X < x).\n[Image: This diagram shows a bell-shaped curve with uppercase X at the extreme right end of the X axis. The X axis also contains a lowercase x about one-quarter of the way across the X axis from the right. The area under the bell curve to the right of the lowercase x is shaded. The label states: shaded area represents probability P(X < x).]\nThe area to the right is then P (X > x) = 1 – P (X < x). Remember, P (X < x) = Area to the left of the vertical line through x. P (X > x) = 1 – P (X < x) = Area to the right of the vertical line through x. P (X < x) is the same as P (X ≤ x) and P (X > x) is the same as P (X ≥ x) for continuous distributions.\nCalculations of Probabilities\nProbabilities are calculated using technology. There are instructions given as necessary for the TI-83+ and TI-84 calculators.\nNOTE\nTo calculate the probability, use the probability tables provided in Tables without the use of technology. The tables include instructions for how to use them.\nIf the area to the left is 0.0228, then the area to the right is 1 – 0.0228 = 0.9772.\nTry It\nIf the area to the left of x is 0.012, then what is the area to the right?\nThe final exam scores in a statistics class were normally distributed with a mean of 63 and a standard deviation of five.\na. Find the probability that a randomly selected student scored more than 65 on the exam.\na. Let X = a score on the final exam. X ~ N(63, 5), where μ = 63 and σ = 5.\nDraw a graph.\nThen, find P(x > 65).\nP(x > 65) = 0.3446\n[Image: TThis diagram shows a bell-shaped curve with 63 located at the center of the X axis and 65 located a short distance to the right of 63. The area under the bell curve to the right of 65 is shaded. The label states: shaded area represents probability uppercase P(X > 65) = 0.3446]\nThe probability that any student selected at random scores more than 65 is 0.3446.\nGo into 2nd DISTR. After pressing 2nd DISTR, press 2:normalcdf.\nThe syntax for the instructions are as follows:\nnormalcdf(lower value, upper value, mean, standard deviation) For this problem: normalcdf(65,1E99,63,5) = 0.3446. You get 1E99 (= 1099) by pressing 1, the EE key (a 2nd key) and then 99. Or, you can enter 10^99 instead. The number 1099 is way out in the right tail of the normal curve. We are calculating the area between 65 and 1099. In some instances, the lower number of the area might be –1E99 (= –1099). The number –1099 is way out in the left tail of the normal curve.\nHistorical Note\nThe TI probability program calculates a z-score and then the probability from the z-score. Before technology, the z-score was looked up in a standard normal probability table (because the math involved is too cumbersome) to find the probability. In this example, a standard normal table with area to the left of the z-score was used. You calculate the z-score and look up the area to the left. The probability is the area to the right.\nz = $\\frac{65\\text{– 63}}{5}$ = 0.4\nArea to the left is 0.6554.\nP(x > 65) = P(z > 0.4) = 1 – 0.6554 = 0.3446\nFind the percentile for a student scoring 65:\n*Press 2nd Distr *Press 2:normalcdf(*Enter lower bound, upper bound, mean, standard deviation followed by) *Press ENTER. For this Example, the steps are 2nd Distr 2:normalcdf(65,1,2nd EE,99,63,5) ENTER The probability that a selected student scored more than 65 is 0.3446.To find the probability that a selected student scored more than 65, subtract the percentile from 1.\nb. Find the probability that a randomly selected student scored less than 85.\nb. Draw a graph.\nThen find P(x < 85), and shade the graph.\nUsing a computer or calculator, find P(x < 85) = 1.\nnormalcdf(0,85,63,5) = 1 (rounds to one)\nThe probability that one student scores less than 85 is approximately one (or 100%).\nc. Find the 90th percentile (that is, find the score k that has 90% of the scores below k and 10% of the scores above k).\nc. Find the 90th percentile. For each problem or part of a problem, draw a new graph. Draw the x-axis. Shade the area that corresponds to the 90th percentile.\nLet k = the 90th percentile. The variable k is located on the x-axis. P(x < k) is the area to the left of k. The 90th percentile k separates the exam scores into those that are the same or lower than k and those that are the same or higher. Ninety percent of the test scores are the same or lower than k, and ten percent are the same or higher. The variable k is often called a critical value.\nk = 69.4\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 63 on the horizontal axis. A point, k, is labeled to the right of 63. A vertical line extends from k to the curve. The area under the curve to the left of k is shaded. This represents the probability that x is less than k: P(x < k) = 0.90]\nThe 90th percentile is 69.4. This means that 90% of the test scores fall at or below 69.4 and 10% fall at or above. To get this answer on the calculator, follow this step:\ninvNorm in 2nd DISTR. invNorm(area to the left, mean, standard deviation) For this problem, invNorm(0.90,63,5) = 69.4\nd. Find the 70th percentile (that is, find the score k such that 70% of scores are below k and 30% of the scores are above k).\nd. Find the 70th percentile.\nDraw a new graph and label it appropriately. k = 65.6\nThe 70th percentile is 65.6. This means that 70% of the test scores fall at or below 65.5 and 30% fall at or above.\ninvNorm(0.70,63,5) = 65.6\nTry It\nThe golf scores for a school team were normally distributed with a mean of 68 and a standard deviation of three.\nFind the probability that a randomly selected golfer scored less than 65.\nA personal computer is used for office work at home, research, communication, personal finances, education, entertainment, social networking, and a myriad of other things. Suppose that the average number of hours a household personal computer is used for entertainment is two hours per day. Assume the times for entertainment are normally distributed and the standard deviation for the times is half an hour.\na. Find the probability that a household personal computer is used for entertainment between 1.8 and 2.75 hours per day.\na. Let X = the amount of time (in hours) a household personal computer is used for entertainment. X ~ N(2, 0.5) where μ = 2 and σ = 0.5.\nFind P(1.8 < x < 2.75).\nThe probability for which you are looking is the area between x = 1.8 and x = 2.75. P(1.8 < x < 2.75) = 0.5886\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 2 on the horizontal axis. The values 1.8 and 2.75 are also labeled on the x-axis. Vertical lines extend from 1.8 and 2.75 to the curve. The area between the lines is shaded.]\nnormalcdf(1.8,2.75,2,0.5) = 0.5886\nThe probability that a household personal computer is used between 1.8 and 2.75 hours per day for entertainment is 0.5886.\nb. Find the maximum number of hours per day that the bottom quartile of households uses a personal computer for entertainment.\nb. To find the maximum number of hours per day that the bottom quartile of households uses a personal computer for entertainment, find the 25th percentile, k, where P(x < k) = 0.25.\n[Image: This is a normal distribution curve. The area under the left tail of the curve is shaded. The shaded area shows that the probability that x is less than k is 0.25. It follows that k = 1.67.]\ninvNorm(0.25,2,0.5) = 1.66\nThe maximum number of hours per day that the bottom quartile of households uses a personal computer for entertainment is 1.66 hours.\nTry It\nThe golf scores for a school team were normally distributed with a mean of 68 and a standard deviation of three. Find the probability that a golfer scored between 66 and 70.\nIn the United States the ages 13 to 55+ of smartphone users approximately follow a normal distribution with approximate mean and standard deviation of 36.9 years and 13.9 years, respectively.\na. Determine the probability that a random smartphone user in the age range 13 to 55+ is between 23 and 64.7 years old.\nb. Determine the probability that a randomly selected smartphone user in the age range 13 to 55+ is at most 50.8 years old.\nc. Find the 80th percentile of this distribution, and interpret it in a complete sentence.\na. normalcdf(23,64.7,36.9,13.9) = 0.8186\nb. normalcdf(–1099,50.8,36.9,13.9) = 0.8413\nc.\n- invNorm(0.80,36.9,13.9) = 48.6\n- The 80th percentile is 48.6 years.\n- 80% of the smartphone users in the age range 13 – 55+ are 48.6 years old or less.\nTry It\nUse the information in Example to answer the following questions.\n- Find the 30th percentile, and interpret it in a complete sentence.\n- What is the probability that the age of a randomly selected smartphone user in the range 13 to 55+ is less than 27 years old.\nIn the United States the ages 13 to 55+ of smartphone users approximately follow a normal distribution with approximate mean and standard deviation of 36.9 years and 13.9 years respectively. Using this information, answer the following questions (round answers to one decimal place).\na. Calculate the interquartile range (IQR).\nb. Forty percent of the smartphone users from 13 to 55+ are at least what age?\na.\n- IQR = Q3 – Q1\n- Calculate Q3 = 75th percentile and Q1 = 25th percentile.\n- invNorm(0.75,36.9,13.9) = Q3 = 46.2754\n- invNorm(0.25,36.9,13.9) = Q1 = 27.5246\n- IQR = Q3 – Q1 = 18.8\nb.\n- Find k where P(x ≥ k) = 0.40 (\"At least\" translates to \"greater than or equal to.\")\n- 0.40 = the area to the right.\n- Area to the left = 1 – 0.40 = 0.60.\n- The area to the left of k = 0.60.\n- invNorm(0.60,36.9,13.9) = 40.4215.\n- k = 40.4.\n- Forty percent of the smartphone users from 13 to 55+ are at least 40.4 years.\nTry It\nTwo thousand students took an exam. The scores on the exam have an approximate normal distribution with a mean μ = 81 points and standard deviation σ = 15 points.\n- Calculate the first- and third-quartile scores for this exam.\n- The middle 50% of the exam scores are between what two values?\nA citrus farmer who grows mandarin oranges finds that the diameters of mandarin oranges harvested on his farm follow a normal distribution with a mean diameter of 5.85 cm and a standard deviation of 0.24 cm.\na. Find the probability that a randomly selected mandarin orange from this farm has a diameter larger than 6.0 cm. Sketch the graph.\nb. The middle 20% of mandarin oranges from this farm have diameters between ______ and ______.\nc. Find the 90th percentile for the diameters of mandarin oranges, and interpret it in a complete sentence.\na. normalcdf(6,10^99,5.85,0.24) = 0.2660\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 2 on the horizontal axis. The values 1.8 and 2.75 are also labeled on the x-axis. Vertical lines extend from 1.8 and 2.75 to the curve. The area between the lines is shaded.]\nb.\n- 1 – 0.20 = 0.80\n- The tails of the graph of the normal distribution each have an area of 0.40.\n- Find k1, the 40th percentile, and k2, the 60th percentile (0.40 + 0.20 = 0.60).\n- k1 = invNorm(0.40,5.85,0.24) = 5.79 cm\n- k2 = invNorm(0.60,5.85,0.24) = 5.91 cm\nc. 6.16: Ninety percent of the diameter of the mandarin oranges is at most 6.16 cm.\nTry It\nUsing the information from Using the Normal Distribution, answer the following:\n- The middle 40% of mandarin oranges from this farm are between ______ and ______.\n- Find the 16th percentile and interpret it in a complete sentence.\nReferences\n“Naegele’s rule.” Wikipedia. Available online at http://en.wikipedia.org/wiki/Naegele's_rule (accessed May 14, 2013).\n“403: NUMMI.” Chicago Public Media & Ira Glass, 2013. Available online at http://www.thisamericanlife.org/radio-archives/episode/403/nummi (accessed May 14, 2013).\n“Scratch-Off Lottery Ticket Playing Tips.” WinAtTheLottery.com, 2013. Available online at http://www.winatthelottery.com/public/department40.cfm (accessed May 14, 2013).\n“Smart Phone Users, By The Numbers.” Visual.ly, 2013. Available online at http://visual.ly/smart-phone-users-numbers (accessed May 14, 2013).\n“Facebook Statistics.” Statistics Brain. Available online at http://www.statisticbrain.com/facebook-statistics/(accessed May 14, 2013).\nChapter Review\nThe normal distribution, which is continuous, is the most important of all the probability distributions. Its graph is bell-shaped. This bell-shaped curve is used in almost all disciplines. Since it is a continuous distribution, the total area under the curve is one. The parameters of the normal are the mean µ and the standard deviation σ. A special normal distribution, called the standard normal distribution is the distribution of z-scores. Its mean is zero, and its standard deviation is one.\nFormula Review\nNormal Distribution: X ~ N(µ, σ) where µ is the mean and σ is the standard deviation.\nStandard Normal Distribution: Z ~ N(0, 1).\nCalculator function for probability: normalcdf (lower x value of the area, upper x value of the area, mean, standard deviation)\nCalculator function for the kth percentile: k = invNorm (area to the left of k, mean, standard deviation)\nHow would you represent the area to the left of one in a probability statement?\n[Image: A bell-shaped curve representing a normal distribution is shown, with a vertical line indicating x=1 on the horizontal axis.]\nP(x < 1)\nWhat is the area to the right of one?\n[Image: A bell-shaped curve representing a normal distribution is shown, with a vertical line indicating x=1 on the horizontal axis.]\nIs P(x < 1) equal to P(x ≤ 1)? Why?\nYes, because they are the same in a continuous distribution: P(x = 1) = 0\nHow would you represent the area to the left of three in a probability statement?\n[Image: An illustration of a bell curve, or normal distribution, with a vertical line segment marking the value 3 on the x-axis, which is labeled 'x'.]\nWhat is the area to the right of three?\n[Image: An illustration of a bell curve, or normal distribution, with a vertical line segment marking the value 3 on the x-axis, which is labeled 'x'.]\n1 – P(x < 3) or P(x > 3)\nIf the area to the left of x in a normal distribution is 0.123, what is the area to the right of x?\nIf the area to the right of x in a normal distribution is 0.543, what is the area to the left of x?\n1 – 0.543 = 0.457\nUse the following information to answer the next four exercises:\nX ~ N(54, 8)\nFind the probability that x > 56.\nFind the probability that x < 30.\n0.0013\nFind the 80th percentile.\nFind the 60th percentile.\n56.03\nX ~ N(6, 2)\nFind the probability that x is between three and nine.\nX ~ N(–3, 4)\nFind the probability that x is between one and four.\n0.1186\nX ~ N(4, 5)\nFind the maximum of x in the bottom quartile.\nUse the following information to answer the next three exercise: The life of wearable fitness devices is normally distributed with a mean of 4.1 years and a standard deviation of 1.3 years. A wearable fitness device is guaranteed for three years. We are interested in the length of time a wearable fitness device lasts. Find the probability that a wearable fitness device will break down during the guarantee period.\n- Sketch the situation. Label and scale the axes. Shade the region corresponding to the probability.\n[Image: Empty normal distribution curve.]\n- P(0 < x < ____________) = ___________ (Use zero for the minimum value of x.)\n- Answers may vary.\n- 3, 0.1979\nFind the probability that a wearable fitness device will last between 2.8 and six years.\n- Sketch the situation. Label and scale the axes. Shade the region corresponding to the probability.\n[Image: Empty normal distribution curve.]\n- P(__________ < x < __________) = __________\nFind the 70th percentile of the distribution for the time a wearable fitness device lasts.\n- Sketch the situation. Label and scale the axes. Shade the region corresponding to the lower 70%.\n[Image: Empty normal distribution curve.]\n- P(x < k) = __________ Therefore, k = _________\n- Answers may vary.\n- 0.70, 4.78 years\nHomework\nUse the following information to answer the next two exercises: The patient recovery time from a particular surgical procedure is normally distributed with a mean of 5.3 days and a standard deviation of 2.1 days.\nWhat is the probability of spending more than two days in recovery?\n- 0.0580\n- 0.8447\n- 0.0553\n- 0.9420\nThe 90th percentile for recovery times is?\n- 8.89\n- 7.07\n- 7.99\n- 4.32\nc\nUse the following information to answer the next three exercises: The length of time it takes to find a parking space at 9 A.M. follows a normal distribution with a mean of five minutes and a standard deviation of two minutes.\nBased upon the given information and numerically justified, would you be surprised if it took less than one minute to find a parking space?\n- Yes\n- No\n- Unable to determine\nFind the probability that it takes at least eight minutes to find a parking space.\n- 0.0001\n- 0.9270\n- 0.1862\n- 0.0668\nd\nSeventy percent of the time, it takes more than how many minutes to find a parking space?\n- 1.24\n- 2.41\n- 3.95\n- 6.05\nAccording to a study done by De Anza students, the height for Asian adult males is normally distributed with an average of 66 inches and a standard deviation of 2.5 inches. Suppose one Asian adult male is randomly chosen. Let X = height of the individual.\n- X ~ _____(_____,_____)\n- Find the probability that the person is between 65 and 69 inches. Include a sketch of the graph, and write a probability statement.\n- Would you expect to meet many Asian adult males over 72 inches? Explain why or why not, and justify your answer numerically.\n- X ~ N(66, 2.5)\n- 0.5404\n- No, the probability that an Asian male is over 72 inches tall is 0.0082\nIQ is normally distributed with a mean of 100 and a standard deviation of 15. Suppose one individual is randomly chosen. Let X = IQ of an individual.\n- X ~ _____(_____,_____)\n- Find the probability that the person has an IQ greater than 120. Include a sketch of the graph, and write a probability statement.\n- MENSA is an organization whose members have the top 2% of all IQs. Find the minimum IQ needed to qualify for the MENSA organization. Sketch the graph, and write the probability statement.\n- The middle 50% of IQs fall between what two values? Sketch the graph and write the probability statement.\nThe percent of fat calories that a person in America consumes each day is normally distributed with a mean of about 36 and a standard deviation of 10. Suppose that one individual is randomly chosen. Let X = percent of fat calories.\n- X ~ _____(_____,_____)\n- Find the probability that the percent of fat calories a person consumes is more than 40. Graph the situation. Shade in the area to be determined.\n- Find the maximum number for the lower quarter of percent of fat calories. Sketch the graph and write the probability statement.\n- X ~ N(36, 10)\n- The probability that a person consumes more than 40% of their calories as fat is 0.3446.\n- Approximately 25% of people consume less than 29.26% of their calories as fat.\nSuppose that the distance of fly balls hit to the outfield (in baseball) is normally distributed with a mean of 250 feet and a standard deviation of 50 feet.\n- If X = distance in feet for a fly ball, then X ~ _____(_____,_____)\n- If one fly ball is randomly chosen from this distribution, what is the probability that this ball traveled fewer than 220 feet? Sketch the graph. Scale the horizontal axis X. Shade the region corresponding to the probability. Find the probability.\n- Find the 80th percentile of the distribution of fly balls. Sketch the graph, and write the probability statement.\nIn China, four-year-olds average three hours a day unsupervised. Most of the unsupervised children live in rural areas, considered safe. Suppose that the standard deviation is 1.5 hours and the amount of time spent alone is normally distributed. We randomly select one Chinese four-year-old living in a rural area. We are interested in the amount of time the child spends alone per day.\n- In words, define the random variable X.\n- X ~ _____(_____,_____)\n- Find the probability that the child spends less than one hour per day unsupervised. Sketch the graph, and write the probability statement.\n- What percent of the children spend over ten hours per day unsupervised?\n- Seventy percent of the children spend at least how long per day unsupervised?\n- X = number of hours that a Chinese four-year-old in a rural area is unsupervised during the day.\n- X ~ N(3, 1.5)\n- The probability that the child spends less than one hour a day unsupervised is 0.0918.\n- The probability that a child spends over ten hours a day unsupervised is less than 0.0001.\n- 2.21 hours\nIn a certain presidential election, Alaska’s 40 election districts averaged 1,956.8 votes per district for Candidate A. The standard deviation was 572.3. (There are only 40 election districts in Alaska.) The distribution of the votes per district for Candidate A was bell-shaped. Let X = number of votes for Candidate A for an election district.\n- State the approximate distribution of X.\n- Is 1,956.8 a population mean or a sample mean? How do you know?\n- Find the probability that a randomly selected district had fewer than 1,600 votes for Candidate A. Sketch the graph and write the probability statement.\n- Find the probability that a randomly selected district had between 1,800 and 2,000 votes for Candidate A.\n- Find the third quartile for votes for Candidate A.\nSuppose that the duration of a particular type of criminal trial is known to be normally distributed with a mean of 21 days and a standard deviation of seven days.\n- In words, define the random variable X.\n- X ~ _____(_____,_____)\n- If one of the trials is randomly chosen, find the probability that it lasted at least 24 days. Sketch the graph and write the probability statement.\n- Sixty percent of all trials of this type are completed within how many days?\n- X = the distribution of the number of days a particular type of criminal trial will take\n- X ~ N(21, 7)\n- The probability that a randomly selected trial will last more than 24 days is 0.3336.\n- 22.77\nA motorcycle racer averages 129.71 seconds per 2.5 mile lap (in a seven-lap race) with a standard deviation of 2.28 seconds. The distribution of their race times is normally distributed. We are interested in one of their randomly selected laps.\n- In words, define the random variable X.\n- X ~ _____(_____,_____)\n- Find the percent of the racer's laps that are completed in less than 130 seconds.\n- The fastest 3% of the racer's laps are under _____.\n- The middle 80% of the racer's laps are from _______ seconds to _______ seconds.\nThuy Dau, Ngoc Bui, Sam Su, and Lan Voung conducted a survey as to how long customers at Lucky claimed to wait in the checkout line until their turn. Let X = time in line. Table displays the ordered real data (in minutes):\n0.50 | 4.25 | 5 | 6 | 7.25\n1.75 | 4.25 | 5.25 | 6 | 7.25\n2 | 4.25 | 5.25 | 6.25 | 7.25\n2.25 | 4.25 | 5.5 | 6.25 | 7.75\n2.25 | 4.5 | 5.5 | 6.5 | 8\n2.5 | 4.75 | 5.5 | 6.5 | 8.25\n2.75 | 4.75 | 5.75 | 6.5 | 9.5\n3.25 | 4.75 | 5.75 | 6.75 | 9.5\n3.75 | 5 | 6 | 6.75 | 9.75\n3.75 | 5 | 6 | 6.75 | 10.75\n- Calculate the sample mean and the sample standard deviation.\n- Construct a histogram.\n- Draw a smooth curve through the midpoints of the tops of the bars.\n- In words, describe the shape of your histogram and smooth curve.\n- Let the sample mean approximate μ and the sample standard deviation approximate σ. The distribution of X can then be approximated by X ~ _____(_____,_____)\n- Use the distribution in part e to calculate the probability that a person will wait fewer than 6.1 minutes.\n- Determine the cumulative relative frequency for waiting less than 6.1 minutes.\n- Why aren’t the answers to part f and part g exactly the same?\n- Why are the answers to part f and part g as close as they are?\n- If only ten customers has been surveyed rather than 50, do you think the answers to part f and part g would have been closer together or farther apart? Explain your conclusion.\n- mean = 5.51, s = 2.15\n- Answers may vary.\n- Answers may vary.\n- Answers may vary.\n- X ~ N(5.51, 2.15)\n- 0.6029\n- The cumulative frequency for less than 6.1 minutes is 0.64.\n- The answers to part f and part g are not exactly the same, because the normal distribution is only an approximation to the real one.\n- The answers to part f and part g are close, because a normal distribution is an excellent approximation when the sample size is greater than 30.\n- The approximation would have been less accurate, because the smaller sample size means that the data does not fit normal curve as well.\nSuppose that Ric and Anita attend different colleges. Ric’s GPA is the same as the average GPA at their school. Anita’s GPA is 0.70 standard deviations above her school average. In complete sentences, explain why each of the following statements may be false.\n- Ric’s actual GPA is lower than Anita’s actual GPA.\n- Ric is not passing because their z-score is zero.\n- Anita is in the 70th percentile of students at her college.\nTable shows a sample of the maximum capacity (maximum number of spectators) of sports stadiums. The table does not include horse-racing or motor-racing stadiums.\n40,000 | 40,000 | 45,050 | 45,500 | 46,249 | 48,134\n49,133 | 50,071 | 50,096 | 50,466 | 50,832 | 51,100\n51,500 | 51,900 | 52,000 | 52,132 | 52,200 | 52,530\n52,692 | 53,864 | 54,000 | 55,000 | 55,000 | 55,000\n55,000 | 55,000 | 55,000 | 55,082 | 57,000 | 58,008\n59,680 | 60,000 | 60,000 | 60,492 | 60,580 | 62,380\n62,872 | 64,035 | 65,000 | 65,050 | 65,647 | 66,000\n66,161 | 67,428 | 68,349 | 68,976 | 69,372 | 70,107\n70,585 | 71,594 | 72,000 | 72,922 | 73,379 | 74,500\n75,025 | 76,212 | 78,000 | 80,000 | 80,000 | 82,300\n- Calculate the sample mean and the sample standard deviation for the maximum capacity of sports stadiums (the data).\n- Construct a histogram.\n- Draw a smooth curve through the midpoints of the tops of the bars of the histogram.\n- In words, describe the shape of your histogram and smooth curve.\n- Let the sample mean approximate μ and the sample standard deviation approximate σ. The distribution of X can then be approximated by X ~ _____(_____,_____).\n- Use the distribution in part e to calculate the probability that the maximum capacity of sports stadiums is less than 67,000 spectators.\n- Determine the cumulative relative frequency that the maximum capacity of sports stadiums is less than 67,000 spectators. Hint: Order the data and count the sports stadiums that have a maximum capacity less than 67,000. Divide by the total number of sports stadiums in the sample.\n- Why aren’t the answers to part f and part g exactly the same?\n- mean = 60,136 s = 10,468\n- Answers will vary.\n- Answers will vary.\n- Answers will vary.\n- X ~ N(60136, 10468)\n- 0.7440\n- The cumulative relative frequency is 43/60 = 0.717.\n- The answers for part f and part g are not the same, because the normal distribution is only an approximation.\nAn expert witness for a paternity lawsuit testifies that the length of a pregnancy is normally distributed with a mean of 280 days and a standard deviation of 13 days. The person who is being sued for lack of child support was out of the country from 240 to 306 days before the birth of the child, so the pregnancy would have been less than 240 days or more than 306 days long if he was the biological parent. The birth was uncomplicated, and the child needed no medical intervention. What is the probability that he was NOT the parent? What is the probability that he could be the parent? Calculate the z-scores first, and then use those to calculate the probability.\nAn automotive factory can build an average of 6,000 cars and trucks a week. Generally, 10% of the cars were defective coming off the assembly line. Suppose we draw a random sample of n = 100 cars. Let X represent the number of defective cars in the sample. What can we say about X in regard to the 68-95-99.7 empirical rule (one standard deviation, two standard deviations and three standard deviations from the mean are being referred to)? Assume a normal distribution for the defective cars in the sample.\n- n = 100; p = 0.1; q = 0.9\n- μ = np = (100)(0.10) = 10\n- σ = $\\sqrt{npq}$ = $\\sqrt{\\text{(100)(0}\\text{.1)(0}\\text{.9)}}$ = 3\n- z = ±1: x1 = µ + zσ = 10 + 1(3) = 13 and x2 = µ – zσ = 10 – 1(3) = 7. 68% of the defective cars will fall between seven and 13.\n- z = ±2: x1 = µ + zσ = 10 + 2(3) = 16 and x2 = µ – zσ = 10 – 2(3) = 4. 95 % of the defective cars will fall between four and 16\n- z = ±3: x1 = µ + zσ = 10 + 3(3) = 19 and x2 = µ – zσ = 10 – 3(3) = 1. 99.7% of the defective cars will fall between one and 19.\nWe flip a coin 100 times (n = 100) and note that it only comes up heads 20% (p = 0.20) of the time. The mean and standard deviation for the number of times the coin lands on heads is µ = 20 and σ = 4 (verify the mean and standard deviation). Solve the following:\n- There is about a 68% chance that the number of heads will be somewhere between ___ and ___.\n- There is about a ____chance that the number of heads will be somewhere between 12 and 28.\n- There is about a ____ chance that the number of heads will be somewhere between eight and 32.\nA \\$1 scratch off lotto ticket will be a winner one out of five times. Out of a shipment of n = 190 lotto tickets, find the probability for the lotto tickets that there are\n- somewhere between 34 and 54 prizes.\n- somewhere between 54 and 64 prizes.\n- more than 64 prizes.\n- n = 190; p = $\\frac{1}{5}$ = 0.2; q = 0.8\n- μ = np = (190)(0.2) = 38\n- σ = $\\sqrt{npq}$ = $\\sqrt{\\text{(190)(0}\\text{.2)(0}\\text{.8)}}$ = 5.5136\n- For this problem: P(34 < x < 54) = normalcdf(34,54,48,5.5136) = 0.7641\n- For this problem: P(54 < x < 64) = normalcdf(54,64,48,5.5136) = 0.0018\n- For this problem: P(x > 64) = normalcdf(64,1099,48,5.5136) = 0.0000012 (approximately 0)\nOn average, 28% of 18 to 34 year olds check social media before getting out of bed in the morning. Suppose this percentage follows a normal distribution with a standard deviation of 5%.\n- Find the probability that the percent of 18 to 34-year-olds who check social media before getting out of bed in the morning is at least 30.\n- Find the 95th percentile, and express it in a sentence."}
{"document_id": "openstax-intro-statistics-m50261", "title": "The Normal Distribution — Normal Distribution (Lap Times)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/6-3-normal-distribution-lap-times", "license": "CC-BY-4.0", "text": "Normal Distribution (Lap Times)\nClass Time:\nNames:\nStudent Learning Outcome\n- The student will compare and contrast empirical data and a theoretical distribution to determine if Terry Vogel's lap times fit a continuous distribution.\nDirections\nRound the relative frequencies and probabilities to four decimal places. Carry all other decimal answers to two places.\nCollect the Data\n- Use the data from Appendix C. Use a stratified sampling method by lap (races 1 to 20) and a random number generator to pick six lap times from each stratum. Record the lap times below for laps two to seven.\n- Construct a histogram. Make five to six intervals. Sketch the graph using a ruler and pencil. Scale the axes.\n[Image: Blank graph with relative frequency on the vertical axis and lap time on the horizontal axis.]\n- Calculate the following:\n- $\\overline{x}$ = _______\n- s = _______\n- Draw a smooth curve through the tops of the bars of the histogram. Write one to two complete sentences to describe the general shape of the curve. (Keep it simple. Does the graph go straight across, does it have a v-shape, does it have a hump in the middle or at either end, and so on?)\nAnalyze the Distribution\nUsing your sample mean, sample standard deviation, and histogram to help, what is the approximate theoretical distribution of the data?\n- X ~ _____(_____,_____)\n- How does the histogram help you arrive at the approximate distribution?\nDescribe the Data\nUse the data you collected to complete the following statements.\n- The IQR goes from __________ to __________.\n- IQR = __________. (IQR = Q3 – Q1)\n- The 15th percentile is _______.\n- The 85th percentile is _______.\n- The median is _______.\n- The empirical probability that a randomly chosen lap time is more than 130 seconds is _______.\n- Explain the meaning of the 85th percentile of this data.\nTheoretical Distribution\nUsing the theoretical distribution, complete the following statements. You should use a normal approximation based on your sample data.\n- The IQR goes from __________ to __________.\n- IQR = _______.\n- The 15th percentile is _______.\n- The 85th percentile is _______.\n- The median is _______.\n- The probability that a randomly chosen lap time is more than 130 seconds is _______.\n- Explain the meaning of the 85th percentile of this distribution.\nDiscussion Questions\nDo the data from the section titled Collect the Data give a close approximation to the theoretical distribution in the section titled Analyze the Distribution? In complete sentences and comparing the result in the sections titled Describe the Data and Theoretical Distribution, explain why or why not."}
{"document_id": "openstax-intro-statistics-m50264", "title": "The Normal Distribution — Normal Distribution (Pinkie Length)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/6-4-normal-distribution-pinkie-length", "license": "CC-BY-4.0", "text": "Normal Distribution (Pinkie Length)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will compare empirical data and a theoretical distribution to determine if data from the experiment follow a continuous distribution.\nCollect the Data\nMeasure the length of your pinky finger (in centimeters).\n- Randomly survey 30 adults for their pinky finger lengths. Round the lengths to the nearest 0.5 cm.\n- Construct a histogram. Make five to six intervals. Sketch the graph using a ruler and pencil. Scale the axes.\n[Image: Blank graph with frequency on the vertical axis and length of finger on the horizontal axis.]\n- Calculate the following.\n- $\\overline{x}$ = _______\n- s = _______\n- Draw a smooth curve through the top of the bars of the histogram. Write one to two complete sentences to describe the general shape of the curve. (Keep it simple. Does the graph go straight across, does it have a v-shape, does it have a hump in the middle or at either end, and so on?)\nAnalyze the Distribution\nUsing your sample mean, sample standard deviation, and histogram, what was the approximate theoretical distribution of the data you collected?\n- X ~ _____(_____,_____)\n- How does the histogram help you arrive at the approximate distribution?\nDescribe the Data\nUsing the data you collected complete the following statements. (Hint: order the data)\nRemember\n(IQR = Q3 – Q1)\n- IQR = _______\n- The 15th percentile is _______.\n- The 85th percentile is _______.\n- Median is _______.\n- What is the theoretical probability that a randomly chosen pinky length is more than 6.5 cm?\n- Explain the meaning of the 85th percentile of this data.\nTheoretical Distribution\nUsing the theoretical distribution, complete the following statements. Use a normal approximation based on the sample mean and standard deviation.\n- IQR = _______\n- The 15th percentile is _______.\n- The 85th percentile is _______.\n- Median is _______.\n- What is the theoretical probability that a randomly chosen pinky length is more than 6.5 cm?\n- Explain the meaning of the 85th percentile of this data.\nDiscussion Questions\nDo the data you collected give a close approximation to the theoretical distribution? In complete sentences and comparing the results in the sections titled Describe the Data and Theoretical Distribution, explain why or why not."}
{"document_id": "openstax-intro-statistics-m46994", "title": "The Central Limit Theorem — The Central Limit Theorem for Sample Means (Averages)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/7-1-the-central-limit-theorem-for-sample-means-averages", "license": "CC-BY-4.0", "text": "Suppose X is a random variable with a distribution that may be known or unknown (it can be any distribution). Using a subscript that matches the random variable, suppose:\n- μX = the mean of X\n- σX = the standard deviation of X\nIf you draw random samples of size n, then as n increases, the random variable $\\overline{x}$ which consists of sample means, tends to be normally distributed and\n$$\\overline{X}~N({\\mu}_{x}\\text{,}\\frac{{\\sigma}_{X}}{\\sqrt{n}})$$\nThe central limit theorem for sample means says that if you repeatedly draw samples of a given size (such as repeatedly rolling ten dice) and calculate their means, those means tend to follow a normal distribution (the sampling distribution). As sample sizes increase, the distribution of means more closely follows the normal distribution. The normal distribution has the same mean as the original distribution and a variance that equals the original variance divided by the sample size. Standard deviation is the square root of variance, so the standard deviation of the sampling distribution is the standard deviation of the original distribution divided by the square root of n. The variable n is the number of values that are averaged together, not the number of times the experiment is done.\nTo put it more formally, if you draw random samples of size n, the distribution of the random variable $\\overline{X}$, which consists of sample means, is called the sampling distribution of the mean. The sampling distribution of the mean approaches a normal distribution as n, the sample size, increases.\nThe random variable $\\overline{X}$ has a different z-score associated with it from that of the random variable X. The mean $\\overline{x}$ is the value of $\\overline{X}$ in one sample.\n$$z=\\frac{\\overline{x}-{\\mu}_{x}}{(\\frac{{\\sigma}_{X}}{\\sqrt{n}})}$$\nμX is the average of both X and $\\overline{X}$.\n${\\sigma}_{x}=\\frac{{\\sigma}_{X}}{\\sqrt{n}}=$ standard deviation of $\\overline{X}$ and is called the standard error of the mean.\nTo find probabilities for means on the calculator, follow these steps.\n2nd DISTR2:normalcdf\n$normalcdf(lowervalueofthearea,uppervalueofthearea,mean,\\frac{standarddeviation}{\\sqrt{samplesize}})$\nwhere:\n- mean is the mean of the original distribution\n- standard deviation is the standard deviation of the original distribution\n- sample size = n\nAn unknown distribution has a mean of 90 and a standard deviation of 15. Samples of size n = 25 are drawn randomly from the population.\na. Find the probability that the sample mean is between 85 and 92.\na. Let X = one value from the original unknown population. The probability question asks you to find a probability for the sample mean.\nLet $\\overline{x}$ = the mean of a sample of size 25. Since μX = 90, σX = 15, and n = 25,\n$\\overline{x}$ ~ N$(90\\text{,}\\frac{15}{\\sqrt{25}})$.\nFind P(85 < $\\overline{x}$ < 92). Draw a graph.\nP(85 < $\\overline{x}$ < 92) = 0.6997\nThe probability that the sample mean is between 85 and 92 is 0.6997.\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 90 on the horizontal axis. The points 85 and 92 are labeled on the axis. Vertical lines are drawn from these points to the curve and the area between the lines is shaded. The shaded region represents the probability that 85 < x < 92.]\nnormalcdf(lower value, upper value, mean, standard error of the mean)\nThe parameter list is abbreviated (lower value, upper value, μ, $\\frac{\\sigma}{\\sqrt{n}}$)\nnormalcdf(85,92,90,$\\frac{15}{\\sqrt{25}}$) = 0.6997\nb. Find the value that is two standard deviations above the expected value, 90, of the sample mean.\nb. To find the value that is two standard deviations above the expected value 90, use the formula:\nvalue = μx + (#ofTSDEVs)$(\\frac{{\\sigma}_{x}}{\\sqrt{n}})$\nvalue = 90 + 2 $(\\frac{15}{\\sqrt{25}})$ = 96\nThe value that is two standard deviations above the expected value is 96.\nThe standard error of the mean is $\\frac{{\\sigma}_{x}}{\\sqrt{n}}$ = $\\frac{15}{\\sqrt{25}}$ = 3. Recall that the standard error of the mean is a description of how far (on average) that the sample mean will be from the population mean in repeated simple random samples of size n.\nTry It\nAn unknown distribution has a mean of 45 and a standard deviation of eight. Samples of size n = 30 are drawn randomly from the population. Find the probability that the sample mean is between 42 and 50.\nThe length of time, in hours, it takes an \"over 40\" group of people to play one soccer match is normally distributed with a mean of two hours and a standard deviation of 0.5 hours. A sample of size n = 50 is drawn randomly from the population. Find the probability that the sample mean is between 1.8 hours and 2.3 hours.\nLet X = the time, in hours, it takes to play one soccer match.\nThe probability question asks you to find a probability for the sample mean time, in hours, it takes to play one soccer match.\nLet $\\overline{x}$ = the mean time, in hours, it takes to play one soccer match.\nIf μX = _________, σX = __________, and n = ___________, then $\\overline{X}$ ~ N(______, ______) by the central limit theorem for means.\nμX = 2, σX = 0.5, n = 50, and X ~ N$(\\text{2,}\\frac{0.5}{\\sqrt{50}})$\nFind P(1.8 < $\\overline{x}$ < 2.3). Draw a graph.\nP(1.8 < $\\overline{x}$ < 2.3) = 0.9977\nnormalcdf$(1.\\text{8,2}\\text{.3,2,}\\frac{.5}{\\sqrt{50}})$ = 0.9977\nThe probability that the mean time is between 1.8 hours and 2.3 hours is 0.9977.\nTry It\nThe length of time taken on the SAT for a group of students is normally distributed with a mean of 2.5 hours and a standard deviation of 0.25 hours. A sample size of n = 60 is drawn randomly from the population. Find the probability that the sample mean is between two hours and three hours.\nTo find percentiles for means on the calculator, follow these steps.\n2nd DIStR 3:invNorm\nk = invNorm$(\\text{area to the left of}k\\text{, mean,}\\frac{standarddeviation}{\\sqrt{samplesize}})$\nwhere:\n- k = the kth percentile\n- mean is the mean of the original distribution\n- standard deviation is the standard deviation of the original distribution\n- sample size = n\nIn a recent study, it was reported that the mean age of iPad users is 34 years. Suppose the standard deviation is 15 years. Take a sample of size n = 100.\n- What are the mean and standard deviation for the sample mean ages of iPad users?\n- What does the distribution look like?\n- Find the probability that the sample mean age is more than 30 years (the reported mean age of iPad users in this particular study).\n- Find the 95th percentile for the sample mean age (to one decimal place).\n- Since the sample mean tends to target the population mean, we have μχ = μ = 34. The sample standard deviation is given by σχ = $\\frac{\\sigma}{\\sqrt{n}}$ = $\\frac{15}{\\sqrt{100}}$ = $\\frac{15}{10}$ = 1.5\n- The central limit theorem states that for large sample sizes(n), the sampling distribution will be approximately normal.\n- The probability that the sample mean age is more than 30 is given by $P(\\overline{X}>30)$ = normalcdf(30,E99,34,1.5) = 0.9962\n- Let k = the 95th percentile. k = invNorm$(0.\\text{95,34,}\\frac{15}{\\sqrt{100}})$ = 36.5\nTry It\nIn an article on Flurry Blog, a gaming marketing gap for men between the ages of 30 and 40 is identified. You are researching a startup game targeted at the 35-year-old demographic. Your idea is to develop a strategy game that can be played by men from their late 20s through their late 30s. Based on the article’s data, industry research shows that the average strategy player is 28 years old with a standard deviation of 4.8 years. You take a sample of 100 randomly selected gamers. If your target market is 29- to 35-year-olds, should you continue with your development strategy?\nThe mean number of minutes for app engagement by an iPad user is 8.2 minutes. Suppose the standard deviation is one minute. Take a sample of 60.\n- What are the mean and standard deviation for the sample mean number of minutes for app engagement by an iPad user?\n- What is the standard error of the mean?\n- Find the 90th percentile for the sample mean time of minutes for app engagement by an iPad user. Interpret this value in a complete sentence.\n- Find the probability that the sample mean is between eight minutes and 8.5 minutes.\n- ${\\mu}_{\\overline{x}}=\\mu=8.2{\\sigma}_{\\overline{x}}=\\frac{\\sigma}{\\sqrt{n}}=\\frac{1}{\\sqrt{60}}=0.13$\n- This allows us to calculate the probability of sample means of a particular distance from the mean, in repeated samples of size 60.\n- Let k = the 90th percentile k = invNorm$(0.\\text{90,8}\\text{.2,}\\frac{1}{\\sqrt{60}})$ = 8.37. This values indicates that 90 percent of the average app engagement time for iPad users is less than 8.37 minutes.\n- P(8 < $\\overline{x}$ < 8.5) = normalcdf$(\\text{8,8}\\text{.5,8}\\text{.2,}\\frac{1}{\\sqrt{60}})$ = 0.9293\nTry It\nCans of a cola beverage claim to contain 16 ounces. The amounts in a sample are measured and the statistics are n = 34, $\\overline{x}$ = 16.01 ounces. If the cans are filled so that μ = 16.00 ounces (as labeled) and σ = 0.143 ounces, find the probability that a sample of 34 cans will have an average amount greater than 16.01 ounces. Do the results suggest that cans are filled with an amount greater than 16 ounces?\nReferences\nBaran, Daya. “20 Percent of Americans Have Never Used Email.”WebGuild, 2010. Available online at http://www.webguild.org/20080519/20-percent-of-americans-have-never-used-email (accessed May 17, 2013).\nData from The Flurry Blog, 2013. Available online at http://blog.flurry.com (accessed May 17, 2013).\nData from the United States Department of Agriculture.\nChapter Review\nIn a population whose distribution may be known or unknown, if the size (n) of samples is sufficiently large, the distribution of the sample means will be approximately normal. The mean of the sample means will equal the population mean. The standard deviation of the distribution of the sample means, called the standard error of the mean, is equal to the population standard deviation divided by the square root of the sample size (n).\nFormula Review\nThe Central Limit Theorem for Sample Means: $\\overline{x}$ ~ N$({\\mu}_{x}\\text{,}\\frac{\\sigma x}{\\sqrt{n}})$\nThe Mean $\\overline{X}$: μx\nCentral Limit Theorem for Sample Means z-score and standard error of the mean: $z=\\frac{\\overline{x}-{\\mu}_{x}}{(\\frac{{\\sigma}_{x}}{\\sqrt{n}})}$\nStandard Error of the Mean (Standard Deviation ($\\overline{X}$)): $\\frac{{\\sigma}_{x}}{\\sqrt{n}}$\nUse the following information to answer the next six exercises: Yoonie is a personnel manager in a large corporation. Each month she must review 16 of the employees. From past experience, she has found that the reviews take her approximately four hours each to do with a population standard deviation of 1.2 hours. Let Χ be the random variable representing the time it takes her to complete one review. Assume Χ is normally distributed. Let $\\overline{x}$ be the random variable representing the mean time to complete the 16 reviews. Assume that the 16 reviews represent a random set of reviews.\nWhat is the mean, standard deviation, and sample size?\nmean = 4 hours; standard deviation = 1.2 hours; sample size = 16\nComplete the distributions.\n- X ~ _____(_____,_____)\n- $\\overline{X}$ ~ _____(_____,_____)\nFind the probability that one review will take Yoonie from 3.5 to 4.25 hours. Sketch the graph, labeling and scaling the horizontal axis. Shade the region corresponding to the probability.\n-\n[Image: This is a frequency curve for a normal distribution. It shows a single peak in the center with the curve tapering down to the horizontal axis on each side. The distribution is symmetrical. The horizontal axis represents the random variable X.]\n- P(________ < x < ________) = _______\na. Answers may vary. b. 3.5, 4.25, 0.2441\nFind the probability that the mean of a month’s reviews will take Yoonie from 3.5 to 4.25 hrs. Sketch the graph, labeling and scaling the horizontal axis. Shade the region corresponding to the probability.\n-\n[Image: This is a frequency curve for a normal distribution. It shows a single peak in the center with the curve tapering down to the horizontal axis on each side. The distribution is symmetrical. The horizontal axis represents the random variable X.]\n- P(________________) = _______\nWhat causes the probabilities in Exercise and Exercise to be different?\nThe fact that the two distributions are different accounts for the different probabilities.\nFind the 95th percentile for the mean time to complete one month's reviews. Sketch the graph.\n-\n[Image: This is a frequency curve for a normal distribution. It shows a single peak in the center with the curve tapering down to the horizontal axis on each side. The distribution is symmetrical. The horizontal axis represents the random variable X.]\n- The 95th Percentile =____________\nHomework\nPreviously, De Anza statistics students estimated that the amount of change daytime statistics students carry is exponentially distributed with a mean of \\$0.88. Suppose that we randomly pick 25 daytime statistics students.\n- In words, Χ = ____________\n- Χ ~ _____(_____,_____)\n- In words, $\\overline{X}$ = ____________\n- $\\overline{x}$ ~ ______ (______, ______)\n- Find the probability that an individual had between \\$0.80 and \\$1.00. Graph the situation, and shade in the area to be determined.\n- Find the probability that the average of the 25 students was between \\$0.80 and \\$1.00. Graph the situation, and shade in the area to be determined.\n- Explain why there is a difference in part e and part f.\n- Χ = amount of change a student carries\n- $Exp(\\frac{1}{0.88})orΧ~Exp(1.1364)$\n- $\\overline{x}$ = average amount of change carried by a sample of 25 sstudents.\n- $\\overline{x}$ ~ N(0.88, 0.176)\n- 0.0819\n- 0.4276\n- The distributions are different. Part e asks about the probability for an individual and part f asks about the probability of the mean value for a sample of 25.\nSuppose that the distance of fly balls hit to the outfield (in baseball) is normally distributed with a mean of 250 feet and a standard deviation of 50 feet. We randomly sample 49 fly balls.\n- If $\\overline{x}$ = average distance in feet for 49 fly balls, then $\\overline{x}$ ~ _______(_______,_______)\n- What is the probability that the 49 balls traveled an average of less than 240 feet? Sketch the graph. Scale the horizontal axis for $\\overline{x}$. Shade the region corresponding to the probability. Find the probability.\n- Find the 80th percentile of the distribution of the average of 49 fly balls.\nAccording to the Internal Revenue Service, the average length of time for an individual to complete (keep records for, learn, prepare, copy, assemble, and send) IRS Form 1040 is 10.53 hours (without any attached schedules). The distribution is unknown. Let us assume that the standard deviation is two hours. Suppose we randomly sample 36 taxpayers.\n- In words, Χ = _____________\n- In words, $\\overline{X}$ = _____________\n- $\\overline{X}$ ~ _____(_____,_____)\n- Would you be surprised if the 36 taxpayers finished their Form 1040s in an average of more than 12 hours? Explain why or why not in complete sentences.\n- Would you be surprised if one taxpayer finished their Form 1040 in more than 12 hours? In a complete sentence, explain why.\n- length of time for an individual to complete IRS form 1040, in hours.\n- mean length of time for a sample of 36 taxpayers to complete IRS form 1040, in hours.\n- N$(\\text{10}\\text{.53,}\\frac{1}{3})$\n- Yes. I would be surprised, because the probability is almost 0.\n- No. I would not be totally surprised because the probability is 0.2312\nSuppose that a category of world-class runners are known to run a marathon (26 miles) in an average of 145 minutes with a standard deviation of 14 minutes. Consider 49 of the races. Let $\\overline{x}$ the average of the 49 races.\n- $\\overline{X}$ ~ _____(_____,_____)\n- Find the probability that the runner will average between 142 and 146 minutes in these 49 marathons.\n- Find the 80th percentile for the average of these 49 marathons.\n- Find the median of the average running times.\nThe length of songs in a collector’s Apple Music album collection is uniformly distributed from two to 3.5 minutes. Suppose we randomly pick five albums from the collection. There are a total of 43 songs on the five albums.\n- In words, Χ = _________\n- Χ ~ _____________\n- In words, $\\overline{X}$ = _____________\n- $\\overline{X}$ ~ _____(_____,_____)\n- Find the first quartile for the average song length, $\\overline{X}$.\n- The IQR (interquartile range) for the average song length, $\\overline{X}$, is from ___ - ___.\n- the length of a song, in minutes, in the collection\n- U(2, 3.5)\n- the average length, in minutes, of the songs from a sample of five albums from the collection\n- N(2.75, 0.0660)\n- 2.71 minutes\n- 0.09 minutes\nIn 1940 the average size of a U.S. farm was 174 acres. Let’s say that the standard deviation was 55 acres. Suppose we randomly survey 38 farmers from 1940.\n- In words, Χ = _____________\n- In words, $\\overline{X}$ = _____________\n- $\\overline{X}$ ~ _____(_____,_____)\n- The IQR for $\\overline{x}$ is from _______ acres to _______ acres.\nDetermine which of the following are true and which are false. Then, in complete sentences, justify your answers.\n- When the sample size is large, the mean of $\\overline{X}$ is approximately equal to the mean of Χ.\n- When the sample size is large, $\\overline{x}$ is approximately normally distributed.\n- When the sample size is large, the standard deviation of $\\overline{x}$ is approximately the same as the standard deviation of Χ.\n- True. The mean of a sampling distribution of the means is approximately the mean of the data distribution.\n- True. According to the Central Limit Theorem, the larger the sample, the closer the sampling distribution of the means becomes normal.\n- False. The standard deviation of the sample distribution of the means will decrease as the sample size increases; however, the standard deviation of the sample distribution of the means will not equal the standard deviation of X.\nThe percent of fat calories that a person in America consumes each day is normally distributed with a mean of about 36 and a standard deviation of about ten. Suppose that 16 individuals are randomly chosen. Let $\\overline{x}$ = average percent of fat calories.\n- $\\overline{x}$ ~ ______(______, ______)\n- For the group of 16, find the probability that the average percent of fat calories consumed is more than five. Graph the situation and shade in the area to be determined.\n- Find the first quartile for the average percent of fat calories.\nThe distribution of income in some developing countries is considered wedge shaped (many low income people, very few middle income people, and even fewer high income people). Suppose we pick a country with a wedge shaped distribution. Let the average salary be \\$2,000 per year with a standard deviation of \\$8,000. We randomly survey 1,000 residents of that country.\n- In words, Χ = _____________\n- In words, $\\overline{X}$ = _____________\n- $\\overline{X}$ ~ _____(_____,_____)\n- How is it possible for the standard deviation to be greater than the average?\n- Why is it more likely that the average of the 1,000 residents will be from \\$2,000 to \\$2,100 than from \\$2,100 to \\$2,200?\n- X = the yearly income of someone in a developing country\n- the average salary from samples of 1,000 residents of a developing country\n- $\\overline{X}$ ∼ N$(\\text{2000,}\\frac{\\text{8000}}{\\sqrt{\\text{1000}}})$\n- Very wide differences in data values can have averages smaller than standard deviations.\n- The distribution of the sample mean will have higher probabilities closer to the population mean. P(2000 < $\\overline{x}$ < 2100) = 0.1537 P(2100 < $\\overline{x}$ < 2200) = 0.1317\nWhich of the following is NOT TRUE about the distribution for averages?\n- The mean, median, and mode are equal.\n- The area under the curve is one.\n- The curve never touches the x-axis.\n- The curve is skewed to the right.\nThe cost of unleaded gasoline in the Bay Area once followed an unknown distribution with a mean of \\$4.59 and a standard deviation of \\$0.10. Sixteen gas stations from the Bay Area are randomly chosen. We are interested in the average cost of gasoline for the 16 gas stations. The distribution to use for the average cost of gasoline for the 16 gas stations is:\n- $\\overline{X}$ ~ N(4.59, 0.10)\n- $\\overline{X}$ ~ N$(\\text{4}\\text{.59,}\\frac{0.10}{\\sqrt{16}})$\n- $\\overline{X}$ ~ N$(\\text{4}\\text{.59,}\\frac{16}{0.10})$\n- $\\overline{X}$ ~ N$(\\text{4}\\text{.59,}\\frac{\\sqrt{16}}{0.10})$\nb\n\nGlossary\nAverage a number that describes the central tendency of the data; there are a number of specialized averages, including the arithmetic mean, weighted mean, median, mode, and geometric mean.\nCentral Limit Theorem Given a random variable (RV) with known mean μ and known standard deviation, σ, we are sampling with size n, and we are interested in two new RVs: the sample mean, $\\overline{X}$, and the sample sum, ΣΧ. If the size (n) of the sample is sufficiently large, then $\\overline{X}$ ~ N(μ, $\\frac{\\sigma}{\\sqrt{n}}$) and ΣΧ ~ N(nμ, ($\\sqrt{n}$)(σ)). If the size (n) of the sample is sufficiently large, then the distribution of the sample means and the distribution of the sample sums will approximate a normal distributions regardless of the shape of the population. The mean of the sample means will equal the population mean, and the mean of the sample sums will equal n times the population mean. The standard deviation of the distribution of the sample means, $\\frac{\\sigma}{\\sqrt{n}}$, is called the standard error of the mean.\nNormal Distribution a continuous random variable (RV) with pdf $f(x)\\text{=}\\frac{1}{\\sigma\\sqrt{2\\pi}}{e}^{\\frac{–{\\text{(}x–\\mu)}^{2}}{2{\\sigma}^{2}}}$, where μ is the mean of the distribution and σ is the standard deviation; notation: Χ ~ N(μ, σ). If μ = 0 and σ = 1, the RV is called a standard normal distribution.\nStandard Error of the Mean the standard deviation of the distribution of the sample means, or $\\frac{\\sigma}{\\sqrt{n}}$."}
{"document_id": "openstax-intro-statistics-m46997", "title": "The Central Limit Theorem — The Central Limit Theorem for Sums", "source": "https://openstax.org/books/introductory-statistics-2e/pages/7-2-the-central-limit-theorem-for-sums", "license": "CC-BY-4.0", "text": "Suppose X is a random variable with a distribution that may be known or unknown (it can be any distribution) and suppose:\n- μX = the mean of Χ\n- σΧ = the standard deviation of X\nIf you draw random samples of size n, then as n increases, the random variable ΣX consisting of sums tends to be normally distributed and ΣΧ ~ N((n)(μΧ), ($\\sqrt{n}$)(σΧ)).\nThe central limit theorem for sums says that if you repeatedly draw samples of a given size (such as repeatedly rolling ten dice) and calculate the sum of each sample, these sums tend to follow a normal distribution. As sample sizes increase, the distribution of means more closely follows the normal distribution. The normal distribution has a mean equal to the original mean multiplied by the sample size and a standard deviation equal to the original standard deviation multiplied by the square root of the sample size.\nThe random variable ΣX has the following z-score associated with it:\n- Σx is one sum.\n- $z\\text{=}\\frac{\\Sigma x–(n)({\\mu}_{X})}{(\\sqrt{n})({\\sigma}_{X})}$\n- (n)(μX) = the mean of ΣX\n- $(\\sqrt{n})({\\sigma}_{X})$ = standard deviation of $\\Sigma X$\nTo find probabilities for sums on the calculator, follow these steps.\n2nd DISTR 2:normalcdf normalcdf(lower value of the area, upper value of the area, (n)(mean), ($\\sqrt{n}$)(standard deviation))\nwhere:\n- mean is the mean of the original distribution\n- standard deviation is the standard deviation of the original distribution\n- sample size = n\nAn unknown distribution has a mean of 90 and a standard deviation of 15. A sample of size 80 is drawn randomly from the population.\n- Find the probability that the sum of the 80 values (or the total of the 80 values) is more than 7,500.\n- Find the sum that is 1.5 standard deviations above the mean of the sums.\nLet X = one value from the original unknown population. The probability question asks you to find a probability for the sum (or total of) 80 values.\nΣX = the sum or total of 80 values. Since μX = 90, σX = 15, and n = 80, $\\Sigma X$ ~ N((80)(90), ($\\sqrt{\\text{80}}$)(15))\n- mean of the sums = (n)(μX) = (80)(90) = 7,200\n- standard deviation of the sums = $\\text{(}\\sqrt{n}\\text{)(}{\\sigma}_{X}\\text{) = (}\\sqrt{\\text{80}}\\text{)}$(15)\n- sum of 80 values = Σx = 7,500\na. Find P(Σx > 7,500)\nP(Σx > 7,500) = 0.0127\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 7200 on the horizontal axis. The point 7500 is also labeled. A vertical line extends from point 7500 to the curve. The area to the right of 7500 below the curve is shaded.]\nnormalcdf(lower value, upper value, mean of sums, stdev of sums)\nThe parameter list is abbreviated(lower, upper, (n)(μX, $(\\sqrt{n})$(σX))\nnormalcdf (7500,1E99,(80)(90),$(\\sqrt{80})$(15)) = 0.0127\nREMINDER\n1E99 = 1099.\nPress the EE key for E.\nb. Find Σx where z = 1.5.\nΣx = (n)(μX) + (z)$(\\sqrt{n})$(σΧ) = (80)(90) + (1.5)($\\sqrt{80}$)(15) = 7,401.2\nTry It\nAn unknown distribution has a mean of 45 and a standard deviation of eight. A sample size of 50 is drawn randomly from the population. Find the probability that the sum of the 50 values is more than 2,400.\nTo find percentiles for sums on the calculator, follow these steps.\n2nd DIStR 3:invNorm k = invNorm (area to the left of k, (n)(mean), $\\text{(}\\sqrt{n})$(standard deviation))\nwhere:\n- k is the kth percentile\n- mean is the mean of the original distribution\n- standard deviation is the standard deviation of the original distribution\n- sample size = n\nIn a recent study, it was reported that the mean age of iPad users is 34 years. Suppose the standard deviation is 15 years. The sample of size is 50.\n- What are the mean and standard deviation for the sum of the ages of iPad users? What is the distribution?\n- Find the probability that the sum of the ages is between 1,500 and 1,800 years.\n- Find the 80th percentile for the sum of the 50 ages.\n- μΣx = nμx = 50(34) = 1,700 and σΣx = $\\sqrt{n}$σx = $(\\sqrt{\\text{50}}\\text{)}$(15) = 106.07 The distribution is normal for sums by the central limit theorem.\n- P(1500 < Σx < 1800) = normalcdf (1,500, 1,800, (50)(34), $(\\sqrt{\\text{50}}\\text{)}$(15)) = 0.7974\n- Let k = the 80th percentile. k = invNorm(0.80,(50)(34),$(\\sqrt{\\text{50}}\\text{)}$(15)) = 1,789.3\nTry It\nIn a recent study, it was reported that the mean age of iPad users is 35 years. Suppose the standard deviation is ten years. The sample size is 39.\n- What are the mean and standard deviation for the sum of the ages of iPad users? What is the distribution?\n- Find the probability that the sum of the ages is between 1,400 and 1,500 years.\n- Find the 90th percentile for the sum of the 39 ages.\nThe mean number of minutes for app engagement by a tablet user is 8.2 minutes. Suppose the standard deviation is one minute. Take a sample of size 70.\n- What are the mean and standard deviation for the sums?\n- Find the 95th percentile for the sum of the sample. Interpret this value in a complete sentence.\n- Find the probability that the sum of the sample is at least ten hours.\n- μΣx = nμx = 70(8.2) = 574 minutes and σΣx = $(\\sqrt{n})({\\sigma}_{x})$ = $(\\sqrt{\\text{70}}\\text{)}$(1) = 8.37 minutes\n- Let k = the 95th percentile. k = invNorm (0.95,(70)(8.2),$(\\sqrt{\\text{70}}\\text{)}$(1)) = 587.76 minutes Ninety five percent of the sums of app engagement times are at most 587.76 minutes.\n- ten hours = 600 minutes P(Σx ≥ 600) = normalcdf(600,E99,(70)(8.2),$(\\sqrt{\\text{70}}\\text{)}$(1)) = 0.0009\nThe mean number of minutes for app engagement by a table use is 8.2 minutes. Suppose the standard deviation is one minute. Take a sample size of 70.\n- What is the probability that the sum of the sample is between seven hours and ten hours? What does this mean in context of the problem?\n- Find the 84th and 16th percentiles for the sum of the sample. Interpret these values in context.\nReferences\nFarago, Peter. “The Truth About Cats and Dogs: Smartphone vs Tablet Usage Differences.” The Flurry Blog, 2013. Posted October 29, 2012. Available online at http://blog.flurry.com (accessed May 17, 2013).\nChapter Review\nThe central limit theorem tells us that for a population with any distribution, the distribution of the sums for the sample means approaches a normal distribution as the sample size increases. In other words, if the sample size is large enough, the distribution of the sums can be approximated by a normal distribution even if the original population is not normally distributed. Additionally, if the original population has a mean of μX and a standard deviation of σx, the mean of the sums is nμx and the standard deviation is $(\\sqrt{n})$(σx) where n is the sample size.\nFormula Review\nThe Central Limit Theorem for Sums: ∑X ~ N[(n)(μx),($\\sqrt{n}$)(σx)]\nMean for Sums (∑X): (n)(μx)\nThe Central Limit Theorem for Sums z-score and standard deviation for sums: $z\\text{for the sample mean =}\\frac{\\Sigma x–(n)({\\mu}_{X})}{(\\sqrt{n})({\\sigma}_{X})}$\nStandard deviation for Sums (∑X): $(\\sqrt{n})$(σx)\nUse the following information to answer the next four exercises: An unknown distribution has a mean of 80 and a standard deviation of 12. A sample size of 95 is drawn randomly from the population.\nFind the probability that the sum of the 95 values is greater than 7,650.\n0.3345\nFind the probability that the sum of the 95 values is less than 7,400.\nFind the sum that is two standard deviations above the mean of the sums.\n7,833.92\nFind the sum that is 1.5 standard deviations below the mean of the sums.\nUse the following information to answer the next five exercises: The distribution of results from a cholesterol test has a mean of 180 and a standard deviation of 20. A sample size of 40 is drawn randomly.\nFind the probability that the sum of the 40 values is greater than 7,500.\n0.0089\nFind the probability that the sum of the 40 values is less than 7,000.\nFind the sum that is one standard deviation above the mean of the sums.\n7,326.49\nFind the sum that is 1.5 standard deviations below the mean of the sums.\nFind the percentage of sums between 1.5 standard deviations below the mean of the sums and one standard deviation above the mean of the sums.\n77.45%\nUse the following information to answer the next six exercises: A researcher measures the amount of sugar in several cans of the same soda. The mean is 39.01 with a standard deviation of 0.5. The researcher randomly selects a sample of 100.\nFind the probability that the sum of the 100 values is greater than 3,910.\nFind the probability that the sum of the 100 values is less than 3,900.\n0.4207\nFind the probability that the sum of the 100 values falls between the numbers you found in Exercise and Exercise.\nFind the sum with a z–score of –2.5.\n3,888.5\nFind the sum with a z–score of 0.5.\nFind the probability that the sums will fall between the z-scores –2 and 1.\n0.8186\nUse the following information to answer the next four exercises: An unknown distribution has a mean 12 and a standard deviation of one. A sample size of 25 is taken. Let X = the object of interest.\nWhat is the mean of ΣX?\nWhat is the standard deviation of ΣX?\n5\nWhat is P(Σx = 290)?\nWhat is P(Σx > 290)?\n0.9772\nTrue or False: only the sums of normal distributions are also normal distributions.\nIn order for the sums of a distribution to approach a normal distribution, what must be true?\nThe sample size, n, gets larger.\nWhat three things must you know about a distribution to find the probability of sums?\nAn unknown distribution has a mean of 25 and a standard deviation of six. Let X = one object from this distribution. What is the sample size if the standard deviation of ΣX is 42?\n49\nAn unknown distribution has a mean of 19 and a standard deviation of 20. Let X = the object of interest. What is the sample size if the mean of ΣX is 15,200?\nUse the following information to answer the next three exercises. A market researcher analyzes how many electronics devices customers buy in a single purchase. The distribution has a mean of three with a standard deviation of 0.7. They sample 400 customers.\nWhat is the z-score for Σx = 840?\n26.00\nWhat is the z-score for Σx = 1,186?\nWhat is P(Σx < 1,186)?\n0.1587\nUse the following information to answer the next three exercises: An unknown distribution has a mean of 100, a standard deviation of 100, and a sample size of 100. Let X = one object of interest.\nWhat is the mean of ΣX?\nWhat is the standard deviation of ΣX?\n1,000\nWhat is P(Σx > 9,000)?\nHomework\nWhich of the following is NOT TRUE about the theoretical distribution of sums?\n- The mean, median and mode are equal.\n- The area under the curve is one.\n- The curve never touches the x-axis.\n- The curve is skewed to the right.\nSuppose that the duration of a particular type of criminal trial is known to have a mean of 21 days and a standard deviation of seven days. We randomly sample nine trials.\n- In words, ΣX = ______________\n- ΣX ~ _____(_____,_____)\n- Find the probability that the total length of the nine trials is at least 225 days.\n- Ninety percent of the total of nine of these types of trials will last at least how long?\n- the total length of time for nine criminal trials\n- N(189, 21)\n- 0.0432\n- 162.09; ninety percent of the total nine trials of this type will last 162 days or more.\nSuppose that the weight of open boxes of cereal in a home with children is uniformly distributed from two to six pounds with a mean of four pounds and standard deviation of 1.1547. We randomly survey 64 homes with children.\n- In words, X = _____________\n- The distribution is _______.\n- In words, ΣX = _______________\n- ΣX ~ _____(_____,_____)\n- Find the probability that the total weight of open boxes is less than 250 pounds.\n- Find the 35th percentile for the total weight of open boxes of cereal.\nSalaries for teachers in a particular elementary school district are normally distributed with a mean of \\$44,000 and a standard deviation of \\$6,500. We randomly survey ten teachers from that district.\n- In words, X = ______________\n- X ~ _____(_____,_____)\n- In words, ΣX = _____________\n- ΣX ~ _____(_____,_____)\n- Find the probability that the teachers earn a total of over \\$400,000.\n- Find the 90th percentile for an individual teacher's salary.\n- Find the 90th percentile for the sum of ten teachers' salary.\n- If we surveyed 70 teachers instead of ten, graphically, how would that change the distribution in part d?\n- If each of the 70 teachers received a \\$3,000 raise, graphically, how would that change the distribution in part b?\n- X = the salary of one elementary school teacher in the district\n- X ~ N(44,000, 6,500)\n- ΣX ~ sum of the salaries of ten elementary school teachers in the sample\n- ΣX ~ N(44000, 20554.80)\n- 0.9742\n- \\$52,330.09\n- 466,342.04\n- Sampling 70 teachers instead of ten would cause the distribution to be more spread out. It would be a more symmetrical normal curve.\n- If every teacher received a \\$3,000 raise, the distribution of X would shift to the right by \\$3,000. In other words, it would have a mean of \\$47,000."}
{"document_id": "openstax-intro-statistics-m46992", "title": "The Central Limit Theorem — Using the Central Limit Theorem", "source": "https://openstax.org/books/introductory-statistics-2e/pages/7-3-using-the-central-limit-theorem", "license": "CC-BY-4.0", "text": "It is important for you to understand when to use the central limit theorem. If you are being asked to find the probability of the mean, use the clt for the mean. If you are being asked to find the probability of a sum or total, use the clt for sums. This also applies to percentiles for means and sums.\nNOTE\nIf you are being asked to find the probability of an individual value, do not use the clt. Use the distribution of its random variable.\nExamples of the Central Limit Theorem\nLaw of Large Numbers\nThe law of large numbers says that if you take samples of larger and larger size from any population, then the mean $\\overline{x}$ of the sample tends to get closer and closer to μ. From the central limit theorem, we know that as n gets larger and larger, the sample means follow a normal distribution. The larger n gets, the smaller the standard deviation gets. (Remember that the standard deviation for $\\overline{X}$ is $\\frac{\\sigma}{\\sqrt{n}}$.) This means that the sample mean $\\overline{x}$ must be close to the population mean μ. We can say that μ is the value that the sample means approach as n gets larger. The central limit theorem illustrates the law of large numbers.\nCentral Limit Theorem for the Mean and Sum Examples\nA study involving stress is conducted among the students on a college campus. The stress scores follow a uniform distribution with the lowest stress score equal to one and the highest equal to five. Using a sample of 75 students, find:\n- The probability that the mean stress score for the 75 students is less than two.\n- The 90th percentile for the mean stress score for the 75 students.\n- The probability that the total of the 75 stress scores is less than 200.\n- The 90th percentile for the total stress score for the 75 students.\nLet X = one stress score.\nProblems a and b ask you to find a probability or a percentile for a mean. Problems c and d ask you to find a probability or a percentile for a total or sum. The sample size, n, is equal to 75.\nSince the individual stress scores follow a uniform distribution, X ~ U(1, 5) where a = 1 and b = 5 (See Continuous Random Variables for an explanation on the uniform distribution).\nμX = $\\frac{a+b}{2}$ = $\\frac{\\text{1 + 5}}{2}$ = 3\nσX = $\\sqrt{\\frac{{(b–a)}^{2}}{12}}$ = $\\sqrt{\\frac{{(5–\\text{1)}}^{2}}{12}}=\\sqrt{\\frac{16}{12}}=\\sqrt{\\frac{4}{3}},\\text{or approximately}1.15.$\nFor problems a. and b., let $\\overline{X}$ = the mean stress score for the 75 students. Then,\n$\\overline{X}$ ∼ N $(\\text{3,}\\frac{\\text{1}\\text{.15}}{\\sqrt{\\text{75}}})$\na. Find P($\\overline{x}$ < 2). Draw the graph.\na. P($\\overline{x}$ < 2) = 0\nThe probability that the mean stress score is less than two is about zero.\n[Image: This is a normal distribution curve over a horizontal axis. The peak of the curve coincides with the point 3 on the horizontal axis. A point, 2, is marked at the left edge of the curve.]\nnormalcdf $(\\text{1,2,3,}\\frac{\\text{1}\\text{.15}}{\\sqrt{\\text{75}}})$ = 0\nREMINDER\nThe smallest stress score is one.\nb. Find the 90th percentile for the mean of 75 stress scores. Draw a graph.\nb. Let k = the 90th precentile.\nFind k, where P($\\overline{x}$ < k) = 0.90.\nk = 3.2\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 3 on the horizontal axis. A point, k, is labeled to the right of 3. A vertical line extends from k to the curve. The area under the curve to the left of k is shaded. The shaded area shows that P(x-bar < k) = 0.90.]\nThe 90th percentile for the mean of 75 scores is about 3.2. This tells us that 90% of all the means of 75 stress scores are at most 3.2, and that 10% are at least 3.2.\ninvNorm$(\\text{0}\\text{.90,3,}\\frac{1.15}{\\sqrt{75}})$ = 3.2\nFor problems c and d, let ΣX = the sum of the 75 stress scores. Then, ΣX ~ N[(75)(3),$(\\sqrt{75})$(1.15)]\nc. Find P(Σx < 200). Draw the graph.\nc. The mean of the sum of 75 stress scores is (75)(3) = 225\nThe standard deviation of the sum of 75 stress scores is $\\left(\\sqrt{75} \\right)\\left(\\sqrt{\\frac{4}{3}} \\right)=\\sqrt{\\left(\\frac{75\\times4}{3} \\right)}=\\sqrt{100}=10$\nP(Σx < 200) = –0.0062\n[Image: This is a normal distribution curve over a horizontal axis. The peak of the curve coincides with the point 225 on the horizontal axis. A point, 200, is marked at the left edge of the curve.]\nThe probability that the total of 75 scores is less than 200 is about 0.0062.\nnormalcdf (75,200,225,10).\nREMINDER\nThe smallest total of 75 stress scores is 75, because the smallest single score is one.\nd. Find the 90th percentile for the total of 75 stress scores. Draw a graph.\nd. Let k = the 90th percentile.\nFind k where P(Σx < k) = 0.90.\nk = 237.8\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 225 on the horizontal axis. A point, k, is labeled to the right of 225. A vertical line extends from k to the curve. The area under the curve to the left of k is shaded. The shaded area shows that P(sum of x < k) = 0.90.]\nThe 90th percentile for the sum of 75 scores is about 237.8. This tells us that 90% of all the sums of 75 scores are no more than 237.8 and 10% are no less than 237.8.\ninvNorm(0.90,(75)(3),$(\\sqrt{75})$(1.15)) = 237.8\nTry It\nUse the information in Example, but use a sample size of 55 to answer the following questions.\n- Find P($\\overline{x}$ < 7).\n- Find P(Σx > 170).\n- Find the 80th percentile for the mean of 55 scores.\n- Find the 85th percentile for the sum of 55 scores.\nSuppose that a market research analyst for a cell phone company conducts a study of their customers who exceed the time allowance included on their basic cell phone contract; the analyst finds that for those people who exceed the time included in their basic contract, the excess time used follows an exponential distribution with a mean of 22 minutes.\nConsider a random sample of 80 customers who exceed the time allowance included in their basic cell phone contract.\nLet X = the excess time used by one INDIVIDUAL cell phone customer who exceeds his contracted time allowance.\nX ∼ Exp$(\\frac{1}{22})$. From previous chapters, we know that μ = 22 and σ = 22.\nLet $\\overline{X}$ = the mean excess time used by a sample of n = 80 customers who exceed their contracted time allowance.\n$\\overline{X}$ ~ N$(\\text{22,}\\frac{\\text{22}}{\\sqrt{\\text{80}}})$ by the central limit theorem for sample means\nUsing the clt to find probability\n- Find the probability that the mean excess time used by the 80 customers in the sample is longer than 20 minutes. This is asking us to find P($\\overline{x}$ > 20). Draw the graph.\n- Suppose that one customer who exceeds the time limit for his cell phone contract is randomly selected. Find the probability that this individual customer's excess time is longer than 20 minutes. This is asking us to find P(x > 20).\n- Explain why the probabilities in parts a and b are different.\n-\nFind: P($\\overline{x}$ > 20)\nP($\\overline{x}$ > 20) = 0.79199 using normalcdf$(\\text{20,1E99,22,}\\frac{\\text{22}}{\\sqrt{\\text{80}}})$\nThe probability is 0.7919 that the mean excess time used is more than 20 minutes, for a sample of 80 customers who exceed their contracted time allowance.\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 22 on the horizontal axis. A point, 20, is labeled to the left of 22. A vertical line extends from 20 to the curve. The area under the curve to the right of k is shaded. The shaded area shows that P(x-bar > 20).]\nREMINDER\n1E99 = 1099 and –1E99 = –1099. Press the EE key for E. Or just use 1099 instead of 1E99.\n-\nFind P(x > 20). Remember to use the exponential distribution for an individual: $X~Exp(\\frac{1}{22})$.$P(x>20)\\text{=}{e}^{(-(\\frac{1}{22})(20))}$ or e(–0.04545(20)) = 0.4029\n-\n- P(x > 20) = 0.4029 but P($\\overline{x}$ > 20) = 0.7919\n- The probabilities are not equal because we use different distributions to calculate the probability for individuals and for means.\n- When asked to find the probability of an individual value, use the stated distribution of its random variable; do not use the clt. Use the clt with the normal distribution when you are being asked to find the probability for a mean.\nUsing the clt to find percentiles\nFind the 95th percentile for the sample mean excess time for samples of 80 customers who exceed their basic contract time allowances. Draw a graph.\nLet k = the 95th percentile. Find k where P($\\overline{x}$ < k) = 0.95\nk = 26.0 using invNorm$(\\text{0}\\text{.95,22},\\frac{22}{\\sqrt{80}})$ = 26.0\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 22 on the horizontal axis. A point, k, is labeled to the right of 22. A vertical line extends from k to the curve. The area under the curve to the left of k is shaded. The shaded area shows that P(x-bar < k) = 0.95.]\nThe 95th percentile for the sample mean excess time used is about 26.0 minutes for random samples of 80 customers who exceed their contractual allowed time.\nNinety five percent of such samples would have means under 26 minutes; only five percent of such samples would have means above 26 minutes.\nTry It\nUse the information in Example, but change the sample size to 144.\n- Find P(20 < $\\overline{x}$ < 30).\n- Find P(Σx is at least 3,000).\n- Find the 75th percentile for the sample mean excess time of 144 customers.\n- Find the 85th percentile for the sum of 144 excess times used by customers.\nIn the United States, a robbery occurs every two minutes, on average, according to a number of studies. Suppose the standard deviation is 0.5 minutes and the sample size is 100.\n- Find the median, the first quartile, and the third quartile for the sample mean time of robberies in the United States.\n- Find the median, the first quartile, and the third quartile for the sum of sample times of robberies in the United States.\n- Find the probability that a robbery occurs on the average between 1.75 and 1.85 minutes.\n- Find the value that is two standard deviations above the sample mean.\n- Find the IQR for the sum of the sample times.\n- We have, μx = μ = 2 and σx = $\\frac{\\sigma}{\\sqrt{n}}$ = $\\frac{0.5}{10}$ = 0.05. Therefore:\n- 50th percentile = μx = μ = 2\n- 25th percentile = invNorm(0.25,2,0.05) = 1.97\n- 75th percentile = invNorm(0.75,2,0.05) = 2.03\n- We have μΣx = n(μx) = 100(2) = 200 and σμx = $\\sqrt{n}$(σx) = 10(0.5) = 5. Therefore\n- 50th percentile = μΣx = n(μx) = 100(2) = 200\n- 25th percentile = invNorm(0.25,200,5) = 196.63\n- 75th percentile = invNorm(0.75,200,5) = 203.37\n- P(1.75 < $\\overline{x}$ < 1.85) = normalcdf(1.75,1.85,2,0.05) = 0.0013\n- Using the z-score equation, $z\\text{=}\\frac{\\overline{x}–{\\mu}_{\\overline{x}}}{{\\sigma}_{\\overline{x}}}$, and solving for x, we have x = 2(0.05) + 2 = 2.1\n- The IQR is 75th percentile – 25th percentile = 203.37 – 196.63 = 6.74\nTry It\nBased on data from the National Health Survey, females between the ages of 18 and 24 have an average systolic blood pressures (in mm Hg) of 114.8 with a standard deviation of 13.1. Systolic blood pressure for females between the ages of 18 to 24 follow a normal distribution.\n- If one female from this population is randomly selected, find the probability that their systolic blood pressure is greater than 120.\n- If 40 females from this population are randomly selected, find the probability that their mean systolic blood pressure is greater than 120.\n- If the sample were four females between the ages of 18 to 24 and we did not know the original distribution, could the central limit theorem be used?\nA study was done regarding attendance at Broadway shows in New York City. The age range of the attendees was 14 to 61. The mean age was 30.9 years with a standard deviation of nine years.\n- In a sample of 25 attendees, what is the probability that the mean age is less than 35?\n- Is it likely that the mean age of the sample group could be more than 50 years? Interpret the results.\n- In a sample of 49 attendees, what is the probability that the sum of the ages is no less than 1,600?\n- Is it likely that the sum of the ages of the 49 attendees is at most 1,595? Interpret the results.\n- Find the 95th percentile for the sample mean age of 65 attendees. Interpret the results.\n- Find the 90th percentile for the sum of the ages of 65 attendees. Interpret the results.\n- P($\\overline{x}$ < 35) = normalcdf(-E99,35,30.9,1.8) = 0.9886\n- P($\\overline{x}$ > 50) = normalcdf(50, E99,30.9,1.8) ≈ 0. For this sample group, it is almost impossible for the group’s average age to be more than 50. However, it is still possible for an individual in this group to have an age greater than 50.\n- P(Σx ≥ 1,600) = normalcdf(1600,E99,1514.10,63) = 0.0864\n- P(Σx ≤ 1,595) = normalcdf(-E99,1595,1514.10,63) = 0.9005. This means that there is a 90% chance that the sum of the ages for the sample group n = 49 is at most 1595.\n- The 95th percentile = invNorm(0.95,30.9,1.1) = 32.7. This indicates that 95% of the attendees in the sample of 65 are younger than 32.7 years, on average.\n- The 90th percentile = invNorm(0.90,2008.5,72.56) = 2101.5. This indicates that 90% of the attendees in the sample of 65 have a sum of ages less than 2,101.5 years.\nTry It\nAccording to Boeing data, the 757 airliner carries 200 passengers and has doors with a height of 72 inches. Assume for a certain population of men we have a mean height of 69.0 inches and a standard deviation of 2.8 inches.\n- What doorway height would allow 95% of men to enter the aircraft without bending?\n- Assume that half of the 200 passengers are men. What mean doorway height satisfies the condition that there is a 0.95 probability that this height is greater than the mean height of 100 men?\n- For engineers designing the 757, which result is more relevant: the height from part a or part b? Why?\nHISTORICAL NOTE\nNormal Approximation to the Binomial\nHistorically, being able to compute binomial probabilities was one of the most important applications of the central limit theorem. Binomial probabilities with a small value for n(say, 20) were displayed in a table in a book. To calculate the probabilities with large values of n, you had to use the binomial formula, which could be very complicated. Using the normal approximation to the binomial distribution simplified the process. To compute the normal approximation to the binomial distribution, take a simple random sample from a population. You must meet the conditions for a binomial distribution:\n- there are a certain number n of independent trials\n- the outcomes of any trial are success or failure\n- each trial has the same probability of a success p\nRecall that if X is the binomial random variable, then X ~ B(n, p). The shape of the binomial distribution needs to be similar to the shape of the normal distribution. To ensure this, the quantities np and nq must both be greater than five (np > 5 and nq > 5; the approximation is better if they are both greater than or equal to 10). Then the binomial can be approximated by the normal distribution with mean μ = np and standard deviation σ = $\\sqrt{npq}$. Remember that q = 1 – p. In order to get the best approximation, add 0.5 to x or subtract 0.5 from x (use x + 0.5 or x – 0.5). The number 0.5 is called the continuity correction factor and is used in the following example.\nSuppose in a local Kindergarten through 12th grade (K - 12) school district, 53 percent of the population favor a charter school for grades K through 5. A simple random sample of 300 is surveyed.\n- Find the probability that at least 150 favor a charter school.\n- Find the probability that at most 160 favor a charter school.\n- Find the probability that more than 155 favor a charter school.\n- Find the probability that fewer than 147 favor a charter school.\n- Find the probability that exactly 175 favor a charter school.\nLet X = the number that favor a charter school for grades K trough 5. X ~ B(n, p) where n = 300 and p = 0.53. Since np > 5 and nq > 5, use the normal approximation to the binomial. The formulas for the mean and standard deviation are μ = np and σ = $\\sqrt{npq}$. The mean is 159 and the standard deviation is 8.6447. The random variable for the normal distribution is Y. Y ~ N(159, 8.6447). See The Normal Distribution for help with calculator instructions.\nFor part a, you include 150 so P(X ≥ 150) has normal approximation P(Y ≥ 149.5) = 0.8641.\nnormalcdf(149.5,10^99,159,8.6447) = 0.8641.\nFor part b, you include 160 so P(X ≤ 160) has normal appraximation P(Y ≤ 160.5) = 0.5689.\nnormalcdf(0,160.5,159,8.6447) = 0.5689\nFor part c, you exclude 155 so P(X > 155) has normal approximation P(y > 155.5) = 0.6572.\nnormalcdf(155.5,10^99,159,8.6447) = 0.6572.\nFor part d, you exclude 147 so P(X < 147) has normal approximation P(Y < 146.5) = 0.0741.\nnormalcdf(0,146.5,159,8.6447) = 0.0741\nFor part e,P(X = 175) has normal approximation P(174.5 < Y < 175.5) = 0.0083.\nnormalcdf(174.5,175.5,159,8.6447) = 0.0083\nBecause of calculators and computer software that let you calculate binomial probabilities for large values of n easily, it is not necessary to use the the normal approximation to the binomial distribution, provided that you have access to these technology tools. Most school labs have Microsoft Excel, an example of computer software that calculates binomial probabilities. Many students have access to the TI-83 or 84 series calculators, and they easily calculate probabilities for the binomial distribution. If you type in \"binomial probability distribution calculation\" in an Internet browser, you can find at least one online calculator for the binomial.\nFor Example, the probabilities are calculated using the following binomial distribution: (n = 300 and p = 0.53). Compare the binomial and normal distribution answers. See Discrete Random Variables for help with calculator instructions for the binomial.\nP(X ≥ 150):1 - binomialcdf(300,0.53,149) = 0.8641\nP(X ≤ 160):binomialcdf(300,0.53,160) = 0.5684\nP(X > 155):1 - binomialcdf(300,0.53,155) = 0.6576\nP(X < 147):binomialcdf(300,0.53,146) = 0.0742\nP(X = 175):(You use the binomial pdf.)binomialpdf(300,0.53,175) = 0.0083\nTry It\nIn a city, 46 percent of the population favor the incumbent, Dawn Morgan, for mayor. A simple random sample of 500 is taken. Using the continuity correction factor, find the probability that at least 250 favor Dawn Morgan for mayor.\nReferences\nData from the Wall Street Journal.\n“National Health and Nutrition Examination Survey.” Center for Disease Control and Prevention. Available online at http://www.cdc.gov/nchs/nhanes.htm (accessed May 17, 2013).\nChapter Review\nThe central limit theorem can be used to illustrate the law of large numbers. The law of large numbers states that the larger the sample size you take from a population, the closer the sample mean $\\overline{x}$ gets to μ.\nUse the following information to answer the next ten exercises: A manufacturer produces 25-pound lifting weights. The lowest actual weight is 24 pounds, and the highest is 26 pounds. Each weight is equally likely so the distribution of weights is uniform. A sample of 100 weights is taken.\n- What is the distribution for the weights of one 25-pound lifting weight? What is the mean and standard deivation?\n- What is the distribution for the mean weight of 100 25-pound lifting weights?\n- Find the probability that the mean actual weight for the 100 weights is less than 24.9.\n- U(24, 26), 25, 0.5774\n- N(25, 0.0577)\n- 0.0416\nDraw the graph from Exercise\nFind the probability that the mean actual weight for the 100 weights is greater than 25.2.\n0.0003\nDraw the graph from Exercise\nFind the 90th percentile for the mean weight for the 100 weights.\n25.07\nDraw the graph from Exercise\n- What is the distribution for the sum of the weights of 100 25-pound lifting weights?\n- Find P(Σx < 2,450).\n- N(2,500, 5.7735)\n- 0\nDraw the graph from Exercise\nFind the 90th percentile for the total weight of the 100 weights.\n2,507.40\nDraw the graph from Exercise\nUse the following information to answer the next five exercises: The length of time a particular smartphone's battery lasts follows an exponential distribution with a mean of ten months. A sample of 64 of these smartphones is taken.\n- What is the standard deviation?\n- What is the parameter m?\n- 10\n- $\\frac{1}{10}$\nWhat is the distribution for the length of time one battery lasts?\nWhat is the distribution for the mean length of time 64 batteries last?\nN$(\\text{10,}\\frac{10}{8})$\nWhat is the distribution for the total length of time 64 batteries last?\nFind the probability that the sample mean is between seven and 11.\n0.7799\nFind the 80th percentile for the total length of time 64 batteries last.\nFind the IQR for the mean amount of time 64 batteries last.\n1.69\nFind the middle 80% for the total amount of time 64 batteries last.\nUse the following information to answer the next eight exercises: A uniform distribution has a minimum of six and a maximum of ten. A sample of 50 is taken.\nFind P(Σx > 420).\n0.0072\nFind the 90th percentile for the sums.\nFind the 15th percentile for the sums.\n391.54\nFind the first quartile for the sums.\nFind the third quartile for the sums.\n405.51\nFind the 80th percentile for the sums.\nHomework\nThe attention span of a two-year-old is exponentially distributed with a mean of about eight minutes. Suppose we randomly survey 60 two-year-olds.\n- In words, Χ = _______\n- Χ ~ _____(_____,_____)\n- In words, $\\overline{X}$ = ____________\n- $\\overline{X}$ ~ _____(_____,_____)\n- Before doing any calculations, which do you think will be higher? Explain why.\n- The probability that an individual attention span is less than ten minutes.\n- The probability that the average attention span for the 60 children is less than ten minutes?\n- Calculate the probabilities in part e.\n- Explain why the distribution for $\\overline{X}$ is not exponential.\nThe closing stock prices of 35 U.S. semiconductor manufacturers are given as follows.\n- 8.625\n- 30.25\n- 27.625\n- 46.75\n- 32.875\n- 18.25\n- 5\n- 0.125\n- 2.9375\n- 6.875\n- 28.25\n- 24.25\n- 21\n- 1.5\n- 30.25\n- 71\n- 43.5\n- 49.25\n- 2.5625\n- 31\n- 16.5\n- 9.5\n- 18.5\n- 18\n- 9\n- 10.5\n- 16.625\n- 1.25\n- 18\n- 12.87\n- 7\n- 12.875\n- 2.875\n- 60.25\n- 29.25\n- In words, Χ = ______________\n-\n- $\\overline{x}$ = _____\n- sx = _____\n- n = _____\n- Construct a histogram of the distribution of the averages. Start at x = –0.0005. Use bar widths of ten.\n- In words, describe the distribution of stock prices.\n- Randomly average five stock prices together. (Use a random number generator.) Continue averaging five pieces together until you have ten averages. List those ten averages.\n- Use the ten averages from part e to calculate the following.\n- $\\overline{x}$ = _____\n- sx = _____\n- Construct a histogram of the distribution of the averages. Start at x = -0.0005. Use bar widths of ten.\n- Does this histogram look like the graph in part c?\n- In one or two complete sentences, explain why the graphs either look the same or look different?\n- Based upon the theory of the central limit theorem, $\\overline{X}$ ~ _____(_____,____)\n- X = the closing stock prices for U.S. semiconductor manufacturers\n- i. \\$20.71; ii. \\$17.31; iii. 35\n-\n- Exponential distribution, Χ ~ Exp$(\\frac{1}{20.71})$\n- Answers will vary.\n- i. \\$20.71; ii. \\$11.14\n- Answers will vary.\n- Answers will vary.\n- Answers will vary.\n- N$(\\text{20}\\text{.71,}\\frac{17.31}{\\sqrt{5}})$\nUse the following information to answer the next three exercises: Richard’s Furniture Company delivers furniture from 10 A.M. to 2 P.M. continuously and uniformly. We are interested in how long (in hours) past the 10 A.M. start time that individuals wait for their delivery.\nΧ ~ _____(_____,_____)\n- U(0,4)\n- U(10,2)\n- Eχp(2)\n- N(2,1)\nThe average wait time is:\n- one hour.\n- two hours.\n- two and a half hours.\n- four hours.\nb\nSuppose that it is now past noon on a delivery day. The probability that a person must wait at least one and a half more hours is:\n- $\\frac{1}{4}$\n- $\\frac{1}{2}$\n- $\\frac{3}{4}$\n- $\\frac{3}{8}$\nUse the following information to answer the next two exercises: The time to wait for a particular rural bus is distributed uniformly from zero to 75 minutes. One hundred riders are randomly sampled to learn how long they waited.\nThe 90th percentile sample average wait time (in minutes) for a sample of 100 riders is:\n- 315.0\n- 40.3\n- 38.5\n- 65.2\nb\nWould you be surprised, based upon numerical calculations, if the sample average wait time (in minutes) for 100 riders was less than 30 minutes?\n- yes\n- no\n- There is not enough information.\nUse the following to answer the next two exercises: The cost of unleaded gasoline in the Bay Area once followed an unknown distribution with a mean of \\$4.59 and a standard deviation of \\$0.10. Sixteen gas stations from the Bay Area are randomly chosen. We are interested in the average cost of gasoline for the 16 gas stations.\nWhat's the approximate probability that the average price for 16 gas stations is over \\$4.69?\n- almost zero\n- 0.1587\n- 0.0943\n- unknown\na\nFind the probability that the average price for 30 gas stations is less than \\$4.55.\n- 0.6554\n- 0.3446\n- 0.0142\n- 0.9858\n- 0\nSuppose in a local Kindergarten through 12th grade (K - 12) school district, 53 percent of the population favor a charter school for grades K through five. A simple random sample of 300 is surveyed. Calculate following using the normal approximation to the binomial distribtion.\n- Find the probability that less than 100 favor a charter school for grades K through 5.\n- Find the probability that 170 or more favor a charter school for grades K through 5.\n- Find the probability that no more than 140 favor a charter school for grades K through 5.\n- Find the probability that there are fewer than 130 that favor a charter school for grades K through 5.\n- Find the probability that exactly 150 favor a charter school for grades K through 5.\nIf you have access to an appropriate calculator or computer software, try calculating these probabilities using the technology.\n- 0\n- 0.1123\n- 0.0162\n- 0.0003\n- 0.0268\nFour friends, Janice, Barbara, Kathy and Roberta, decided to carpool together to get to school. Each day the driver would be chosen by randomly selecting one of the four names. They carpool to school for 96 days. Use the normal approximation to the binomial to calculate the following probabilities. Round the standard deviation to four decimal places.\n- Find the probability that Janice is the driver at most 20 days.\n- Find the probability that Roberta is the driver more than 16 days.\n- Find the probability that Barbara drives exactly 24 of those 96 days.\nX ~ N(60, 9). Suppose that you form random samples of 25 from this distribution. Let $\\overline{X}$ be the random variable of averages. Let ΣX be the random variable of sums. For parts c through f, sketch the graph, shade the region, label and scale the horizontal axis for $\\overline{X}$, and find the probability.\n- Sketch the distributions of X and $\\overline{X}$ on the same graph.\n- $\\overline{X}$ ~ _____(_____,_____)\n- P($\\overline{x}$ < 60) = _____\n- Find the 30th percentile for the mean.\n- P(56 < $\\overline{x}$ < 62) = _____\n- P(18 < $\\overline{x}$ < 58) = _____\n- Σx ~ _____(_____,_____)\n- Find the minimum value for the upper quartile for the sum.\n- P(1,400 < Σx < 1,550) = _____\n- Answers may vary.\n- $\\overline{X}$ ~ N$(\\text{60,}\\frac{9}{\\sqrt{25}})$\n- 0.5000\n- 59.06\n- 0.8536\n- 0.1333\n- N(1500, 45)\n- 1530.35\n- 0.6877\nSuppose that the length of research papers is uniformly distributed from ten to 25 pages. We survey a class in which 55 research papers were turned in to a professor. The 55 research papers are considered a random collection of all papers. We are interested in the average length of the research papers.\n- In words, X = _____________\n- X ~ _____(_____,_____)\n- μx = _____\n- σx = _____\n- In words, $\\overline{X}$ = ______________\n- $\\overline{X}$ ~ _____(_____,_____)\n- In words, ΣX = _____________\n- ΣX ~ _____(_____,_____)\n- Without doing any calculations, do you think that it’s likely that the professor will need to read a total of more than 1,050 pages? Why?\n- Calculate the probability that the professor will need to read a total of more than 1,050 pages.\n- Why is it so unlikely that the average length of the papers will be less than 12 pages?\nSalaries for teachers in a particular elementary school district are normally distributed with a mean of \\$44,000 and a standard deviation of \\$6,500. We randomly survey ten teachers from that district.\n- Find the 90th percentile for an individual teacher’s salary.\n- Find the 90th percentile for the average teacher’s salary.\n- \\$52,330\n- \\$46,634\nThe average length of a maternity stay in a U.S. hospital is said to be 2.4 days with a standard deviation of 0.9 days. We randomly survey 80 women who recently bore children in a U.S. hospital.\n- In words, X = _____________\n- In words, $\\overline{X}$ = ___________________\n- $\\overline{X}$ ~ _____(_____,_____)\n- In words, ΣX = _______________\n- ΣX ~ _____(_____,_____)\n- Is it likely that an individual stayed more than five days in the hospital? Why or why not?\n- Is it likely that the average stay for the 80 women was more than five days? Why or why not?\n- Which is more likely:\n- An individual stayed more than five days.\n- the average stay of 80 women was more than five days.\n- If we were to sum up the women’s stays, is it likely that, collectively they spent more than a year in the hospital? Why or why not?\nFor each problem, wherever possible, provide graphs and use the calculator.\nNeverReady batteries has engineered a newer, longer lasting AAA battery. The company claims this battery has an average life span of 17 hours with a standard deviation of 0.8 hours. Your statistics class questions this claim. As a class, you randomly select 30 batteries and find that the sample mean life span is 16.7 hours. If the process is working properly, what is the probability of getting a random sample of 30 batteries in which the sample mean lifetime is 16.7 hours or less? Is the company’s claim reasonable?\n- We have μ = 17, σ = 0.8, $\\overline{x}$ = 16.7, and n = 30. To calculate the probability, we use normalcdf(lower, upper, μ, $\\frac{\\sigma}{\\sqrt{n}}$) = normalcdf$(E–\\text{99,16}\\text{.7,17,}\\frac{0.\\text{8}}{\\sqrt{\\text{30}}})$ = 0.0200.\n- If the process is working properly, then the probability that a sample of 30 batteries would have at most 16.7 lifetime hours is only 2%. Therefore, the class was justified to question the claim.\nMen have an average weight of 172 pounds with a standard deviation of 29 pounds.\n- Find the probability that 20 randomly selected men will have a sum weight greater than 3600 lbs.\n- If 20 men have a sum weight greater than 3500 lbs, then their total weight exceeds the safety limits for water taxis. Based on (a), is this a safety concern? Explain.\nM&M candies large candy bags have a claimed net weight of 396.9 g. The standard deviation for the weight of the individual candies is 0.017 g. The following table is from a stats experiment conducted by a statistics class.\nRed | Orange | Yellow | Brown | Blue | Green\n0.751 | 0.735 | 0.883 | 0.696 | 0.881 | 0.925\n0.841 | 0.895 | 0.769 | 0.876 | 0.863 | 0.914\n0.856 | 0.865 | 0.859 | 0.855 | 0.775 | 0.881\n0.799 | 0.864 | 0.784 | 0.806 | 0.854 | 0.865\n0.966 | 0.852 | 0.824 | 0.840 | 0.810 | 0.865\n0.859 | 0.866 | 0.858 | 0.868 | 0.858 | 1.015\n0.857 | 0.859 | 0.848 | 0.859 | 0.818 | 0.876\n0.942 | 0.838 | 0.851 | 0.982 | 0.868 | 0.809\n0.873 | 0.863 | 0.803 | 0.865\n0.809 | 0.888 | 0.932 | 0.848\n0.890 | 0.925 | 0.842 | 0.940\n0.878 | 0.793 | 0.832 | 0.833\n0.905 | 0.977 | 0.807 | 0.845\n0.850 | 0.841 | 0.852\n0.830 | 0.932 | 0.778\n0.856 | 0.833 | 0.814\n0.842 | 0.881 | 0.791\n0.778 | 0.818 | 0.810\n0.786 | 0.864 | 0.881\n0.853 | 0.825\n0.864 | 0.855\n0.873 | 0.942\n0.880 | 0.825\n0.882 | 0.869\n0.931 | 0.912\n0.887\nThe bag contained 465 candies and he listed weights in the table came from randomly selected candies. Count the weights.\n- Find the mean sample weight and the standard deviation of the sample weights of candies in the table.\n- Find the sum of the sample weights in the table and the standard deviation of the sum of the weights.\n- If 465 M&Ms are randomly selected, find the probability that their weights sum to at least 396.9.\n- Is the Mars Company’s M&M labeling accurate?\n- For the sample, we have n = 100, $\\overline{x}$ = 0.862, s = 0.05\n- $\\Sigma\\overline{x}$ = 85.65, Σs = 5.18\n- normalcdf(396.9,E99,(465)(0.8565),(0.05)($\\sqrt{465}$)) ≈ 1\n- Since the probability of a sample of size 465 having at least a mean sum of 396.9 is appproximately 1, we can conclude that Mars is correctly labeling their M&M packages.\nThe Screw Right Company claims their $\\frac{3}{4}$ inch screws are within ±0.23 of the claimed mean diameter of 0.750 inches with a standard deviation of 0.115 inches. The following data were recorded.\n0.757 | 0.723 | 0.754 | 0.737 | 0.757 | 0.741 | 0.722 | 0.741 | 0.743 | 0.742\n0.740 | 0.758 | 0.724 | 0.739 | 0.736 | 0.735 | 0.760 | 0.750 | 0.759 | 0.754\n0.744 | 0.758 | 0.765 | 0.756 | 0.738 | 0.742 | 0.758 | 0.757 | 0.724 | 0.757\n0.744 | 0.738 | 0.763 | 0.756 | 0.760 | 0.768 | 0.761 | 0.742 | 0.734 | 0.754\n0.758 | 0.735 | 0.740 | 0.743 | 0.737 | 0.737 | 0.725 | 0.761 | 0.758 | 0.756\nThe screws were randomly selected from the local home repair store.\n- Find the mean diameter and standard deviation for the sample\n- Find the probability that 50 randomly selected screws will be within the stated tolerance levels. Is the company’s diameter claim plausible?\nYour company has a contract to perform preventive maintenance on thousands of air-conditioners in a large city. Based on service records from previous years, the time that a technician spends servicing a unit averages one hour with a standard deviation of one hour. In the coming week, your company will service a simple random sample of 70 units in the city. You plan to budget an average of 1.1 hours per technician to complete the work. Will this be enough time?\nUse normalcdf$(E–\\text{99,1}\\text{.1,1,}\\frac{1}{\\sqrt{\\text{70}}})$ = 0.7986. This means that there is an 80% chance that the service time will be less than 1.1 hours. It could be wise to schedule more time since there is an associated 20% chance that the maintenance time will be greater than 1.1 hours.\nA typical adult has an average IQ score of 105 with a standard deviation of 20. If 20 randomly selected adults are given an IQ test, what is the probability that the sample mean scores will be between 85 and 125 points?\nCertain coins have an average weight of 5.201 grams with a standard deviation of 0.065 g. If a vending machine is designed to accept coins whose weights range from 5.111 g to 5.291 g, what is the expected number of rejected coins when 280 randomly selected coins are inserted into the machine?\nWe assume that the weights of coins are normally distributed in the population. Since we have normalcdf$(5.\\text{111,5}\\text{.291,5}\\text{.201,}\\frac{0.\\text{065}}{\\sqrt{\\text{280}}})$ ≈ 0.8338, we expect (1 – 0.8338)280 ≈ 47 coins to be rejected.\n\nGlossary\nExponential Distribution a continuous random variable (RV) that appears when we are interested in the intervals of time between some random events, for example, the length of time between emergency arrivals at a hospital, notation: X ~ Exp(m). The mean is μ = $\\frac{1}{m}$ and the standard deviation is σ = $\\frac{1}{m}$. The probability density function is f(x) = me–mx, x ≥ 0 and the cumulative distribution function is P(X ≤ x) = 1 – e–mx.\nMean a number that measures the central tendency; a common name for mean is \"average.\" The term \"mean\" is a shortened form of \"arithmetic mean.\" By definition, the mean for a sample (denoted by $\\overline{x}$) is $\\overline{x}\\text{=}\\frac{\\text{Sum of all values in the sample}}{\\text{Number of values in the sample}}$, and the mean for a population (denoted by μ) is $\\mu\\text{=}\\frac{\\text{Sum of all values in the population}}{\\text{Number of values in the population}}$.\nNormal Distribution a continuous random variable (RV) with pdf $f(x)\\text{=}\\frac{1}{\\sigma\\sqrt{2\\pi}}{e}^{\\frac{–{\\text{(}x–\\mu)}^{2}}{2{\\sigma}^{2}}}$, where μ is the mean of the distribution and σ is the standard deviation.; notation: X ~ N(μ, σ). If μ = 0 and σ = 1, the RV is called the standard normal distribution.\nUniform Distribution a continuous random variable (RV) that has equally likely outcomes over the domain, a < x < b; often referred as the Rectangular Distribution because the graph of the pdf has the form of a rectangle. Notation: X ~ U(a, b). The mean is $\\mu\\text{=}\\frac{a\\text{+}b}{2}$ and the standard deviation is $\\sigma\\text{=}\\sqrt{\\frac{{(b–\\text{a)}}^{2}}{12}}$. The probability density function is $f(x)\\text{=}\\frac{1}{b–a}$ for a < x < b or a ≤ x ≤ b. The cumulative distribution is P(X ≤ x) = $\\frac{x–\\text{a}}{b–\\text{a}}$."}
{"document_id": "openstax-intro-statistics-m50268", "title": "The Central Limit Theorem — Central Limit Theorem (Pocket Change)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/7-4-central-limit-theorem-pocket-change", "license": "CC-BY-4.0", "text": "Central Limit Theorem (Pocket Change)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will demonstrate and compare properties of the central limit theorem.\nNOTE\nThis lab works best when sampling from several classes and combining data.\nCollect the Data\n- Count the change in your pocket. (Do not include bills.)\n- Randomly survey 30 classmates. Record the values of the change in Table.\n- Construct a histogram. Make five to six intervals. Sketch the graph using a ruler and pencil. Scale the axes.\n[Image: Blank graph template. The horizontal axis is labeled Value of the change and the vertical axis is labeled Frequency.]\n- Calculate the following (n = 1; surveying one person at a time):\n- $\\overline{x}$ = _______\n- s = _______\n- Draw a smooth curve through the tops of the bars of the histogram. Use one to two complete sentences to describe the general shape of the curve.\nCollecting Averages of Pairs\nRepeat steps one through five of the section Collect the Data. with one exception. Instead of recording the change of 30 classmates, record the average change of 30 pairs.\n- Randomly survey 30 pairs of classmates.\n- Record the values of the average of their change in Table.\n- Construct a histogram. Scale the axes using the same scaling you used for the section titled Collect the Data. Sketch the graph using a ruler and a pencil.\n[Image: This is a blank graph template. The horizontal axis is labeled Value of the change and the vertical axis is labeled Frequency.]\n- Calculate the following (n = 2; surveying two people at a time):\n- $\\overline{x}$ = _______\n- s = _______\n- Draw a smooth curve through tops of the bars of the histogram. Use one to two complete sentences to describe the general shape of the curve.\nCollecting Averages of Groups of Five\nRepeat steps one through five (of the section titled Collect the Data) with one exception. Instead of recording the change of 30 classmates, record the average change of 30 groups of five.\n- Randomly survey 30 groups of five classmates.\n- Record the values of the average of their change.\n- Construct a histogram. Scale the axes using the same scaling you used for the section titled Collect the Data. Sketch the graph using a ruler and a pencil.\n[Image: This is a blank graph template. The horizontal axis is labeled Value of the change and the vertical axis is labeled Frequency.]\n- Calculate the following (n = 5; surveying five people at a time):\n- $\\overline{x}$ = _______\n- s = _______\n- Draw a smooth curve through tops of the bars of the histogram. Use one to two complete sentences to describe the general shape of the curve.\nDiscussion Questions\n- Why did the shape of the distribution of the data change, as n changed? Use one to two complete sentences to explain what happened.\n- In the section titled Collect the Data, what was the approximate distribution of the data? X ~ _____(_____,_____)\n- In the section titled Collecting Averages of Groups of Five, what was the approximate distribution of the averages? $\\overline{X}$ ~ _____(_____,_____)\n- In one to two complete sentences, explain any differences in your answers to the previous two questions."}
{"document_id": "openstax-intro-statistics-m50269", "title": "The Central Limit Theorem — Central Limit Theorem (Cookie Recipes)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/7-5-central-limit-theorem-cookie-recipes", "license": "CC-BY-4.0", "text": "Central Limit Theorem (Cookie Recipes)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will demonstrate and compare properties of the central limit theorem.\nGiven\nX = length of time (in days) that a cookie recipe lasted at the Olmstead Homestead. (Assume that each of the different recipes makes the same quantity of cookies.)\nRecipe # | X | Recipe # | X | Recipe # | X | Recipe # | X\n1 | 1 | 16 | 2 | 31 | 3 | 46 | 2\n2 | 5 | 17 | 2 | 32 | 4 | 47 | 2\n3 | 2 | 18 | 4 | 33 | 5 | 48 | 11\n4 | 5 | 19 | 6 | 34 | 6 | 49 | 5\n5 | 6 | 20 | 1 | 35 | 6 | 50 | 5\n6 | 1 | 21 | 6 | 36 | 1 | 51 | 4\n7 | 2 | 22 | 5 | 37 | 1 | 52 | 6\n8 | 6 | 23 | 2 | 38 | 2 | 53 | 5\n9 | 5 | 24 | 5 | 39 | 1 | 54 | 1\n10 | 2 | 25 | 1 | 40 | 6 | 55 | 1\n11 | 5 | 26 | 6 | 41 | 1 | 56 | 2\n12 | 1 | 27 | 4 | 42 | 6 | 57 | 4\n13 | 1 | 28 | 1 | 43 | 2 | 58 | 3\n14 | 3 | 29 | 6 | 44 | 6 | 59 | 6\n15 | 2 | 30 | 2 | 45 | 2 | 60 | 5\nCalculate the following:\n- μx = _______\n- σx = _______\nCollect the Data\nUse a random number generator to randomly select four samples of size n = 5 from the given population. Record your samples in Table. Then, for each sample, calculate the mean to the nearest tenth. Record them in the spaces provided. Record the sample means for the rest of the class.\n- Complete the table:\nSample 1 | Sample 2 | Sample 3 | Sample 4 | Sample means from other groups:\nMeans: | $\\overline{x}$ = ____ | $\\overline{x}$ = ____ | $\\overline{x}$ = ____ | $\\overline{x}$ = ____\n- Calculate the following:\n- $\\overline{x}$ = _______\n- s$\\overline{x}$ = _______\n- Again, use a random number generator to randomly select four samples from the population. This time, make the samples of size n = 10. Record the samples in Table. As before, for each sample, calculate the mean to the nearest tenth. Record them in the spaces provided. Record the sample means for the rest of the class.\nSample 1 | Sample 2 | Sample 3 | Sample 4 | Sample means from other groups\nMeans: | $\\overline{x}$ = ____ | $\\overline{x}$ = ____ | $\\overline{x}$ = ____ | $\\overline{x}$ = ____\n- Calculate the following:\n- $\\overline{x}$ = ______\n- s$\\overline{x}$ = ______\n- For the original population, construct a histogram. Make intervals with a bar width of one day. Sketch the graph using a ruler and pencil. Scale the axes.\n[Image: This is a blank graph template. The horizontal axis is labeled Time (days) and the vertical axis is labeled Frequency.]\n- Draw a smooth curve through the tops of the bars of the histogram. Use one to two complete sentences to describe the general shape of the curve.\nRepeat the Procedure for n = 5\n- For the sample of n = 5 days averaged together, construct a histogram of the averages (your means together with the means of the other groups). Make intervals with bar widths of $\\frac{1}{2}$ a day. Sketch the graph using a ruler and pencil. Scale the axes.\n[Image: This is a blank graph template. The horizontal axis is labeled Time (days) and the vertical axis is labeled Frequency.]\n- Draw a smooth curve through the tops of the bars of the histogram. Use one to two complete sentences to describe the general shape of the curve.\nRepeat the Procedure for n = 10\n- For the sample of n = 10 days averaged together, construct a histogram of the averages (your means together with the means of the other groups). Make intervals with bar widths of $\\frac{1}{2}$ a day. Sketch the graph using a ruler and pencil. Scale the axes.\n[Image: This is a blank graph template. The horizontal axis is labeled Time (days) and the vertical axis is labeled Frequency.]\n- Draw a smooth curve through the tops of the bars of the histogram. Use one to two complete sentences to describe the general shape of the curve.\nDiscussion Questions\n- Compare the three histograms you have made, the one for the population and the two for the sample means. In three to five sentences, describe the similarities and differences.\n- State the theoretical (according to the clt) distributions for the sample means.\n- n = 5: $\\overline{x}$ ~ _____(_____,_____)\n- n = 10: $\\overline{x}$ ~ _____(_____,_____)\n- Are the sample means for n = 5 and n = 10 “close” to the theoretical mean, μx? Explain why or why not.\n- Which of the two distributions of sample means has the smaller standard deviation? Why?\n- As n changed, why did the shape of the distribution of the data change? Use one to two complete sentences to explain what happened."}
{"document_id": "openstax-intro-statistics-m47002", "title": "Confidence Intervals — A Single Population Mean using the Normal Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/8-1-a-single-population-mean-using-the-normal-distribution", "license": "CC-BY-4.0", "text": "A confidence interval for a population mean, when the population standard deviation is known, is based on the conclusion of the Central Limit Theorem that the sampling distribution of the sample means follow an approximately normal distribution. Suppose that our sample has a mean of $\\overline{x}\\text{= 10}$ and we have constructed the 90% confidence interval (5, 15) where EBM = 5.\nCalculating the Confidence Interval\nTo construct a confidence interval for a single unknown population mean μ, where the population standard deviation is known, we need $\\overline{x}$ as an estimate for μ and we need the margin of error. Here, the margin of error (EBM) is called the error bound for a population mean (abbreviated EBM). The sample mean $\\overline{x}$ is the point estimate of the unknown population mean μ.\nThe confidence interval estimate will have the form:\n(point estimate - error bound, point estimate + error bound) or, in symbols,($\\overline{x}–EBM,\\overline{x}\\text{+}EBM$)\nThe margin of error (EBM) depends on the confidence level (abbreviated CL). The confidence level is often considered the probability that the calculated confidence interval estimate will contain the true population parameter. However, it is more accurate to state that the confidence level is the percent of confidence intervals that contain the true population parameter when repeated samples are taken. Most often, it is the choice of the person constructing the confidence interval to choose a confidence level of 90% or higher because that person wants to be reasonably certain of their conclusions.\nThere is another probability called alpha (α). α is related to the confidence level, CL. α is the probability that the interval does not contain the unknown population parameter. Mathematically, α + CL = 1.\n- Suppose we have collected data from a sample. We know the sample mean but we do not know the mean for the entire population.\n- The sample mean is seven, and the error bound for the mean is 2.5.\n$\\overline{x}$ = 7 and EBM = 2.5\nThe confidence interval is (7 – 2.5, 7 + 2.5), and calculating the values gives (4.5, 9.5).\nIf the confidence level (CL) is 95%, then we say that, \"We estimate with 95% confidence that the true value of the population mean is between 4.5 and 9.5.\"\nTry It\nSuppose we have data from a sample. The sample mean is 15, and the error bound for the mean is 3.2.\nWhat is the confidence interval estimate for the population mean?\nA confidence interval for a population mean with a known standard deviation is based on the fact that the sample means follow an approximately normal distribution. Suppose that our sample has a mean of $\\overline{x}$ = 10, and we have constructed the 90% confidence interval (5, 15) where EBM = 5.\nTo get a 90% confidence interval, we must include the central 90% of the probability of the normal distribution. If we include the central 90%, we leave out a total of α = 10% in both tails, or 5% in each tail, of the normal distribution.\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 10 on the horizontal axis. The points 5 and 15 are labeled on the axis. Vertical lines are drawn from these points to the curve, and the region between the lines is shaded. The shaded region has area equal to 0.90.]\n$$\\mu=\\overline{X}\\pm{Z}_{\\alpha}\\left(\\frac{\\sigma}{\\sqrt{n}} \\right) =2\\pm1.96(0.1) =2\\pm0.196 1.804\\le\\mu\\le2.196$$\nTo capture the central 90%, we must go out 1.645 \"standard deviations\" on either side of the calculated sample mean. The value 1.645 is the z-score from a standard normal probability distribution that puts an area of 0.90 in the center, an area of 0.05 in the far left tail, and an area of 0.05 in the far right tail.\nIt is important that the \"standard deviation\" used must be appropriate for the parameter we are estimating, so in this section we need to use the standard deviation that applies to sample means, which is $\\frac{\\sigma}{\\sqrt{n}}$. The fraction $\\frac{\\sigma}{\\sqrt{n}}$, is commonly called the \"standard error of the mean\" in order to distinguish clearly the standard deviation for a mean from the population standard deviation σ.\nIn summary, as a result of the central limit theorem:\n- $\\overline{X}$ is normally distributed, that is, $\\overline{X}$ ~ N$({\\mu}_{X},\\frac{\\sigma}{\\sqrt{n}})$.\n- When the population standard deviation σ is known, we use a normal distribution to calculate the error bound.\nCalculating the Confidence Interval\nTo construct a confidence interval estimate for an unknown population mean, we need data from a random sample. The steps to construct and interpret the confidence interval are:\n- Calculate the sample mean $\\overline{x}$ from the sample data. Remember, in this section we already know the population standard deviation σ.\n- Find the z-score that corresponds to the confidence level.\n- Calculate the error bound EBM.\n- Construct the confidence interval.\n- Write a sentence that interprets the estimate in the context of the situation in the problem. (Explain what the confidence interval means, in the words of the problem.)\nWe will first examine each step in more detail, and then illustrate the process with some examples.\nFinding the z-score for the Stated Confidence Level\nWhen we know the population standard deviation σ, we use a standard normal distribution to calculate the error bound EBM and construct the confidence interval. We need to find the value of z that puts an area equal to the confidence level (in decimal form) in the middle of the standard normal distribution Z ~ N(0, 1).\nThe confidence level, CL, is the area in the middle of the standard normal distribution. CL = 1 – α, so α is the area that is split equally between the two tails. Each of the tails contains an area equal to $\\frac{\\alpha}{2}$.\nThe z-score that has an area to the right of $\\frac{\\alpha}{2}$ is denoted by ${z}_{\\frac{\\alpha}{2}}$.\nFor example, when CL = 0.95, α = 0.05 and $\\frac{\\alpha}{2}$ = 0.025; we write ${z}_{\\frac{\\alpha}{2}}$ = z0.025.\nThe area to the right of z0.025 is 0.025 and the area to the left of z0.025 is 1 – 0.025 = 0.975.\n${z}_{\\frac{\\alpha}{2}}\\text{=}{z}_{0.\\text{025}}\\text{= 1}\\text{.96}$, using a calculator, computer or a standard normal probability table.\ninvNorm(0.975, 0, 1) = 1.96\nNOTE\nRemember to use the area to the LEFT of ${z}_{\\frac{\\alpha}{2}}$; in this chapter the last two inputs in the invNorm command are 0, 1, because you are using a standard normal distribution Z ~ N(0, 1).\nWriting the Interpretation\nThe interpretation should clearly state the confidence level (CL), explain what population parameter is being estimated (here, a population mean), and state the confidence interval (both endpoints). \"We estimate with ___% confidence that the true population mean (include the context of the problem) is between ___ and ___ (include appropriate units).\"\nSuppose scores on exams in statistics are normally distributed with an unknown population mean and a population standard deviation of three points. A random sample of 36 scores is taken and gives a sample mean (sample mean score) of 68. Find a confidence interval estimate for the population mean exam score (the mean score on all exams).\nFind a 90% confidence interval for the true (population) mean of statistics exam scores.\n- You can use technology to calculate the confidence interval directly.\n- The first solution is shown step-by-step.\n- The second solution uses the TI-83, 83+, and 84+ calculators.\n[Image:..]\nThe solution is shown step by step:\nThe formula for a confidence interval for an unknown population mean assuming we know the population standard deviation is:\n$$\\overline{X}-{Z}_{\\alpha}\\left(\\frac{\\sigma}{\\sqrt{n}} \\right)\\le\\mu\\le\\overline{X}+{Z}_{\\alpha}(\\frac{\\sigma}{\\sqrt{n}})$$\nFor a 90% confidence interval, visualize an area of 0.90 centered under the normal curve (See Figure). The remaining area for the two tails of the normal distribution is then 0.10, which indicates that the area in the left tail is one-half of 0.10, which is 0.05. The corresponding z-score that cuts off an area of 0.05 in the left tail is 1.645.\nIn this example we are given that the population standard deviation $\\sigma=3$.\nWe are also given that the sample size n = 36 and the sample mean $\\overline{X}=68$.\nSubstituting these values in the confidence interval formula results in the following:\n$$\\overline{X}-{Z}_{\\alpha}\\left(\\frac{\\sigma}{\\sqrt{n}} \\right)\\le\\mu\\le\\overline{X}+{Z}_{\\alpha}(\\frac{\\sigma}{\\sqrt{n}})$$\n$$68-1.645\\left(\\frac{3}{\\sqrt{36}} \\right)\\le\\mu\\le68+1.645\\left(\\frac{3}{\\sqrt{36}} \\right)$$\n$$68-0.8225\\le\\mu\\le68+0.8225$$\n$$67.1775\\le\\mu\\le68.8225$$\nWe estimate with 90% confidence that the true population mean exam score for all statistics students is between 67.18 and 68.82.\nPress STAT and arrow over to TESTS. Arrow down to 7:ZInterval. Press ENTER. Arrow to Stats and press ENTER. Arrow down and enter three for σ, 68 for $\\overline{x}$, 36 for n, and.90 for C-level. Arrow down to Calculate and press ENTER. The confidence interval is (to three decimal places)(67.178, 68.822).\nExplanation of 90% Confidence Level: Ninety percent of all confidence intervals constructed in this way contain the true mean statistics exam score. For example, if we constructed 100 of these confidence intervals, we would expect 90 of them to contain the true population mean exam score.\nTry It\nSuppose average pizza delivery times are normally distributed with an unknown population mean and a population standard deviation of six minutes. A random sample of 28 pizza delivery restaurants is taken and has a sample mean delivery time of 36 minutes.\nFind a 90% confidence interval estimate for the population mean delivery time.\n(34.1347, 37.8653)\nThe Specific Absorption Rate (SAR) for a cell phone measures the amount of radio frequency (RF) energy absorbed by the user’s body when using the handset. Every cell phone emits RF energy. Different phone models have different SAR measures. To receive certification from the Federal Communications Commission (FCC) for sale in the United States, the SAR level for a cell phone must be no more than 1.6 watts per kilogram. Table shows the highest SAR level for a random selection of cell phone models as measured by the FCC.\nSAR Data for a sample of 30 cell phones\n1.11 | 1.36 | 0.74\n1.48 | 1.34 | 0.5\n1.43 | 1.18 | 0.4\n1.3 | 1.3 | 0.867\n1.09 | 1.26 | 0.68\n0.455 | 1.29 | 0.51\n1.41 | 0.36 | 1.13\n0.82 | 0.52 | 0.3\n0.78 | 1.6 | 1.48\n1.25 | 1.39 | 1.38\nFind a 98% confidence interval for the true (population) mean of the Specific Absorption Rates (SARs) for cell phones. Assume that the population standard deviation is σ = 0.337.\nTo find the confidence interval, start by finding the point estimate: the sample mean.\n$\\overline{x}=1.024$\nNext, find the EBM. Because you are creating a 98% confidence interval, CL = 0.98.\n[Image: This is a normal distribution curve. The point z0.01 is labeled at the right edge of the curve and the region to the right of this point is shaded. The area of this shaded region equals 0.01. The unshaded area equals 0.99.]\nYou need to find z0.01 having the property that the area under the normal density curve to the right of z0.01 is 0.01 and the area to the left is 0.99. Use your calculator, a computer, or a probability table for the standard normal distribution to find z0.01 = 2.326.\n$EBM=({z}_{0.01})\\frac{\\sigma}{\\sqrt{n}}=(2.326)\\frac{0.337}{\\sqrt{30}}=0.1431$\nTo find the 98% confidence interval, find $\\overline{x}\\pm EBM$.\n$\\overline{x}$ – EBM = 1.024 – 0.1431 = 0.8809\n$\\overline{x}$ – EBM = 1.024 – 0.1431 = 1.1671\nWe estimate with 98% confidence that the true SAR mean for the population of cell phones in the United States is between 0.8809 and 1.1671 watts per kilogram.\n- Press STAT and arrow over to TESTS.\n- Arrow down to 7:ZInterval.\n- Press ENTER.\n- Arrow to Stats and press ENTER.\n- Arrow down and enter the following values:\n- σ: 0.337\n- $\\overline{x}:1.024$\n- n: 30\n- C-level: 0.98\n- Arrow down to Calculate and press ENTER.\n- The confidence interval is (to three decimal places) (0.881, 1.167).\nTry It\nTable shows a different random sampling of 20 cell phone models. Use this data to calculate a 93% confidence interval for the true mean SAR for cell phones certified for use in the United States. As previously, assume that the population standard deviation is σ = 0.337.\nSAR Data for a sample of 20 cell phones\n1.48 | 1.53\n0.8 | 0.68\n1.15 | 1.4\n1.36 | 1.24\n0.77 | 0.57\n0.462 | 0.2\n1.36 | 0.51\n1.39 | 0.3\n1.3 | 0.73\n0.7 | 0.869\nNotice the difference in the confidence intervals calculated in Example and the following Try It exercise. These intervals are different for several reasons: they were calculated from different samples, the samples were different sizes, and the intervals were calculated for different levels of confidence. Even though the intervals are different, they do not yield conflicting information. The effects of these kinds of changes are the subject of the next section in this chapter.\nChanging the Confidence Level or Sample Size\nSuppose we change the original problem in Example by using a 95% confidence level. Find a 95% confidence interval for the true (population) mean statistics exam score.\nTo find the confidence interval, you need the sample mean, $\\overline{x}$, and the EBM.\n- $\\overline{x}$ = 68\n- EBM = $({z}_{\\frac{\\alpha}{2}})(\\frac{\\sigma}{\\sqrt{n}})$\n- σ = 3; n = 36; The confidence level is 95% (CL = 0.95).\nCL = 0.95 so α = 1 – CL = 1 – 0.95 = 0.05\n$\\frac{\\alpha}{2}=0.025{z}_{\\frac{\\alpha}{2}}={z}_{0.025}$\nThe area to the right of z0.025 is 0.025 and the area to the left of z0.025 is 1 – 0.025 = 0.975.\n${z}_{\\frac{\\alpha}{2}}={z}_{0.025}=1.96$\nwhen using invnorm(0.975,0,1) on the TI-83, 83+, or 84+ calculators. (This can also be found using appropriate commands on other calculators, using a computer, or using a probability table for the standard normal distribution.)\nEBM = (1.96)$(\\frac{3}{\\sqrt{36}})$ = 0.98\n$\\overline{x}$ – EBM = 68 – 0.98 = 67.02\n$\\overline{x}$ + EBM = 68 + 0.98 = 68.98\nNotice that the EBM is larger for a 95% confidence level in the original problem.\nWe estimate with 95% confidence that the true population mean for all statistics exam scores is between 67.02 and 68.98.\nExplanation of 95% Confidence Level: Ninety-five percent of all confidence intervals constructed in this way contain the true value of the population mean statistics exam score.\nComparing the results: The 90% confidence interval is (67.18, 68.82). The 95% confidence interval is (67.02, 68.98). The 95% confidence interval is wider. If you look at the graphs, because the area 0.95 is larger than the area 0.90, it makes sense that the 95% confidence interval is wider. To be more confident that the confidence interval actually does contain the true value of the population mean for all statistics exam scores, the confidence interval necessarily needs to be wider.\n[Image: A normal distribution diagram illustrating a 95% confidence interval. It shows critical z-values (+/- 1.96) and corresponding data points (66.37 to 69.63) around a mean of 68 (x-bar).]\nSummary: Effect of Changing the Confidence Level\n- Increasing the confidence level increases the error bound, making the confidence interval wider.\n- Decreasing the confidence level decreases the error bound, making the confidence interval narrower.\nTry It\nRefer back to the pizza-delivery Try It exercise. The population standard deviation is six minutes and the sample mean deliver time is 36 minutes. Use a sample size of 20. Find a 95% confidence interval estimate for the true mean pizza delivery time.\nSuppose we change the original problem in Example to see what happens to the error bound if the sample size is changed.\nLeave everything the same except the sample size. Use the original 90% confidence level. What happens to the error bound and the confidence interval if we increase the sample size and use n = 100 instead of n = 36? What happens if we decrease the sample size to n = 25 instead of n = 36?\n- $\\overline{x}$ = 68\n- EBM = $({z}_{\\frac{\\alpha}{2}})(\\frac{\\sigma}{\\sqrt{n}})$\n- σ = 3; The confidence level is 90% (CL=0.90); ${z}_{\\frac{\\alpha}{2}}$ = z0.05 = 1.645.\nIf we increase the sample size n to 100, we decrease the error bound.\nWhen n = 100: EBM = $({z}_{\\frac{\\alpha}{2}})(\\frac{\\sigma}{\\sqrt{n}})$ = (1.645)$(\\frac{3}{\\sqrt{100}})$ = 0.4935.\nIf we decrease the sample size n to 25, we increase the error bound.\nWhen n = 25: EBM = $({z}_{\\frac{\\alpha}{2}})(\\frac{\\sigma}{\\sqrt{n}})$ = (1.645)$(\\frac{3}{\\sqrt{25}})$ = 0.987.\nSummary: Effect of Changing the Sample Size\n- Increasing the sample size causes the error bound to decrease, making the confidence interval narrower.\n- Decreasing the sample size causes the error bound to increase, making the confidence interval wider.\nTry It\nRefer back to the pizza-delivery Try It exercise. The mean delivery time is 36 minutes and the population standard deviation is six minutes. Assume the sample size is changed to 50 restaurants with the same sample mean. Find a 90% confidence interval estimate for the population mean delivery time.\nWorking Backwards to Find the Error Bound or Sample Mean\nWhen we calculate a confidence interval, we find the sample mean, calculate the error bound, and use them to calculate the confidence interval. However, sometimes when we read statistical studies, the study may state the confidence interval only. If we know the confidence interval, we can work backwards to find both the error bound and the sample mean.\nFinding the Error Bound\n- From the upper value for the interval, subtract the sample mean,\n- OR, from the upper value for the interval, subtract the lower value. Then divide the difference by two.\nFinding the Sample Mean\n- Subtract the error bound from the upper value of the confidence interval,\n- OR, average the upper and lower endpoints of the confidence interval.\nNotice that there are two methods to perform each calculation. You can choose the method that is easier to use with the information you know.\nSuppose we know that a confidence interval is (67.18, 68.82) and we want to find the error bound. We may know that the sample mean is 68, or perhaps our source only gave the confidence interval and did not tell us the value of the sample mean.\nCalculate the Error Bound:\n- If we know that the sample mean is 68: EBM = 68.82 – 68 = 0.82.\n- If we don't know the sample mean: EBM = $\\frac{(68.82-67.18)}{2}$ = 0.82.\nCalculate the Sample Mean:\n- If we know the error bound: $\\overline{x}$ = 68.82 – 0.82 = 68\n- If we don't know the error bound: $\\overline{x}$ = $\\frac{(67.18+68.82)}{2}$ = 68.\nTry It\nSuppose we know that a confidence interval is (42.12, 47.88). Find the error bound and the sample mean.\nCalculating the Sample Size n\nIf researchers desire a specific margin of error, then they can use the error bound formula to calculate the required sample size.\nThe error bound formula for a population mean when the population standard deviation is known is EBM = $({z}_{\\frac{\\alpha}{2}})(\\frac{\\sigma}{\\sqrt{n}})$.\nThe formula for sample size is n = $\\frac{{z}^{2}{\\sigma}^{2}}{EB{M}^{2}}$, found by solving the error bound formula for n.\nIn this formula, z is ${z}_{\\frac{\\alpha}{2}}$, corresponding to the desired confidence level. A researcher planning a study who wants a specified confidence level and error bound can use this formula to calculate the size of the sample needed for the study.\nThe population standard deviation for the age of Foothill College students is 15 years. If we want to be 95% confident that the sample mean age is within two years of the true population mean age of Foothill College students, how many randomly selected Foothill College students must be surveyed?\n- From the problem, we know that σ = 15 and EBM = 2.\n- z = z0.025 = 1.96, because the confidence level is 95%.\n- n = $\\frac{{z}^{2}{\\sigma}^{2}}{EB{M}^{2}}$ = $\\frac{{(1.96)}^{2}{(15)}^{2}}{{2}^{2}}$ = 216.09 using the sample size equation.\n- Use n = 217: Always round the answer UP to the next higher integer to ensure that the sample size is large enough.\nTherefore, 217 Foothill College students should be surveyed in order to be 95% confident that we are within two years of the true population mean age of Foothill College students.\nTry It\nThe population standard deviation for the height of high school basketball players is three inches. If we want to be 95% confident that the sample mean height is within one inch of the true population mean height, how many randomly selected students must be surveyed?\nReferences\n“American Fact Finder.” U.S. Census Bureau. Available online at http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xhtml?refresh=t (accessed July 2, 2013).\n“Disclosure Data Catalog: Candidate Summary Report 2012.” U.S. Federal Election Commission. Available online at http://www.fec.gov/data/index.jsp (accessed July 2, 2013).\n“Headcount Enrollment Trends by Student Demographics Ten-Year Fall Trends to Most Recently Completed Fall.” Foothill De Anza Community College District. Available online at http://research.fhda.edu/factbook/FH_Demo_Trends/FoothillDemographicTrends.htm (accessed September 30,2013).\nKuczmarski, Robert J., Cynthia L. Ogden, Shumei S. Guo, Laurence M. Grummer-Strawn, Katherine M. Flegal, Zuguo Mei, Rong Wei, Lester R. Curtin, Alex F. Roche, Clifford L. Johnson. “2000 CDC Growth Charts for the United States: Methods and Development.” Centers for Disease Control and Prevention. Available online at http://www.cdc.gov/growthcharts/2000growthchart-us.pdf (accessed July 2, 2013).\nLa, Lynn, Kent German. \"Cell Phone Radiation Levels.\" c|net part of CBX Interactive Inc. Available online at http://reviews.cnet.com/cell-phone-radiation-levels/ (accessed July 2, 2013).\n“Mean Income in the Past 12 Months (in 2011 Inflaction-Adjusted Dollars): 2011 American Community Survey 1-Year Estimates.” American Fact Finder, U.S. Census Bureau. Available online at http://factfinder2.census.gov/faces/tableservices/jsf/pages/productview.xhtml?pid=ACS_11_1YR_S1902&prodType=table (accessed July 2, 2013).\n“Metadata Description of Candidate Summary File.” U.S. Federal Election Commission. Available online at http://www.fec.gov/finance/disclosure/metadata/metadataforcandidatesummary.shtml (accessed July 2, 2013).\n“National Health and Nutrition Examination Survey.” Centers for Disease Control and Prevention. Available online at http://www.cdc.gov/nchs/nhanes.htm (accessed July 2, 2013).\nChapter Review\nIn this module, we learned how to calculate the confidence interval for a single population mean where the population standard deviation is known. When estimating a population mean, the margin of error is called the error bound for a population mean (EBM). A confidence interval has the general form:\n(lower bound, upper bound) = (point estimate – EBM, point estimate + EBM)\nThe calculation of EBM depends on the size of the sample and the level of confidence desired. The confidence level is the percent of all possible samples that can be expected to include the true population parameter. As the confidence level increases, the corresponding EBM increases as well. As the sample size increases, the EBM decreases. By the central limit theorem,\n$EBM=z\\frac{\\sigma}{\\sqrt{n}}$\nGiven a confidence interval, you can work backwards to find the error bound (EBM) or the sample mean. To find the error bound, find the difference of the upper bound of the interval and the mean. If you do not know the sample mean, you can find the error bound by calculating half the difference of the upper and lower bounds. To find the sample mean given a confidence interval, find the difference of the upper bound and the error bound. If the error bound is unknown, then average the upper and lower bounds of the confidence interval to find the sample mean.\nSometimes researchers know in advance that they want to estimate a population mean within a specific margin of error for a given level of confidence. In that case, solve the EBM formula for n to discover the size of the sample that is needed to achieve this goal:\n$n=\\frac{{z}^{2}{\\sigma}^{2}}{EB{M}^{2}}$\nFormula Review\n$\\overline{X}~N({\\mu}_{X},\\frac{\\sigma}{\\sqrt{n}})$ The distribution of sample means is normally distributed with mean equal to the population mean and standard deviation given by the population standard deviation divided by the square root of the sample size.\nThe general form for a confidence interval for a single population mean, known standard deviation, normal distribution is given by (lower bound, upper bound) = (point estimate – EBM, point estimate + EBM) = $(\\overline{x}-EBM,\\overline{x}+EBM)$ = $(\\overline{x}-z\\frac{\\sigma}{\\sqrt{n}},\\overline{x}+z\\frac{\\sigma}{\\sqrt{n}})$\nEBM = $z\\frac{\\sigma}{\\sqrt{n}}$ = the error bound for the mean, or the margin of error for a single population mean; this formula is used when the population standard deviation is known.\nCL = confidence level, or the proportion of confidence intervals created that are expected to contain the true population parameter\nα = 1 – CL = the proportion of confidence intervals that will not contain the population parameter\n${z}_{\\frac{\\alpha}{2}}$ = the z-score with the property that the area to the right of the z-score is $\\frac{\\propto}{2}$ this is the z-score used in the calculation of \"EBM where α = 1 – CL.\nn = $\\frac{{z}^{2}{\\sigma}^{2}}{EB{M}^{2}}$ = the formula used to determine the sample size (n) needed to achieve a desired margin of error at a given level of confidence\nGeneral form of a confidence interval\n(lower value, upper value) = (point estimate−error bound, point estimate + error bound)\nTo find the error bound when you know the confidence interval\nerror bound = upper value−point estimate OR error bound = $\\frac{\\text{upper value}-\\text{lower value}}{2}$\nSingle Population Mean, Known Standard Deviation, Normal Distribution\nUse the Normal Distribution for Means, Population Standard Deviation is Known EBM = z$\\frac{\\alpha}{2}\\cdot\\frac{\\sigma}{\\sqrt{n}}$\nThe confidence interval has the format ($\\overline{x}$ − EBM, $\\overline{x}$ + EBM).\nUse the following information to answer the next five exercises: The standard deviation of the weights of elephants is known to be approximately 15 pounds. We wish to construct a 95% confidence interval for the mean weight of newborn elephant calves. Fifty newborn elephants are weighed. The sample mean is 244 pounds. The sample standard deviation is 11 pounds.\nIdentify the following:\n- $\\overline{x}$ = _____\n- σ = _____\n- n = _____\n- 244\n- 15\n- 50\nIn words, define the random variables X and $\\overline{X}$.\nWhich distribution should you use for this problem?\n$N(244,\\frac{15}{\\sqrt{50}})$\nConstruct a 95% confidence interval for the population mean weight of newborn elephants. State the confidence interval, sketch the graph, and calculate the error bound.\nWhat will happen to the confidence interval obtained, if 500 newborn elephants are weighed instead of 50? Why?\nAs the sample size increases, there will be less variability in the mean, so the interval size decreases.\nUse the following information to answer the next seven exercises: The U.S. Census Bureau conducts a study to determine the time needed to complete the short form. The Bureau surveys 200 people. The sample mean is 8.2 minutes. There is a known standard deviation of 2.2 minutes. The population distribution is assumed to be normal.\nIdentify the following:\n- $\\overline{x}$ = _____\n- σ = _____\n- n = _____\nIn words, define the random variables X and $\\overline{X}$.\nX is the time in minutes it takes to complete the U.S. Census short form. $\\overline{X}$ is the mean time it took a sample of 200 people to complete the U.S. Census short form.\nWhich distribution should you use for this problem?\nConstruct a 90% confidence interval for the population mean time to complete the forms. State the confidence interval, sketch the graph, and calculate the error bound.\nCI: (7.9441, 8.4559)\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 8.2 on the horizontal axis. A central region is shaded between points 7.94 and 8.46.]\nEBM = 0.26\nIf the Census wants to increase its level of confidence and keep the error bound the same by taking another survey, what changes should it make?\nIf the Census did another survey, kept the error bound the same, and surveyed only 50 people instead of 200, what would happen to the level of confidence? Why?\nThe level of confidence would decrease because decreasing n makes the confidence interval wider, so at the same error bound, the confidence level decreases.\nSuppose the Census needed to be 98% confident of the population mean length of time. Would the Census have to survey more people? Why or why not?\nUse the following information to answer the next ten exercises: A sample of 20 heads of lettuce was selected. Assume that the population distribution of head weight is normal. The weight of each head of lettuce was then recorded. The mean weight was 2.2 pounds with a standard deviation of 0.1 pounds. The population standard deviation is known to be 0.2 pounds.\nIdentify the following:\n- $\\overline{x}$ = ______\n- σ = ______\n- n = ______\n- $\\overline{x}$ = 2.2\n- σ = 0.2\n- n = 20\nIn words, define the random variable X.\nIn words, define the random variable $\\overline{X}$.\n$\\overline{X}$ is the mean weight of a sample of 20 heads of lettuce.\nWhich distribution should you use for this problem?\nConstruct a 90% confidence interval for the population mean weight of the heads of lettuce. State the confidence interval, sketch the graph, and calculate the error bound.\nEBM = 0.07 CI: (2.1264, 2.2736)\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 2.2 on the horizontal axis. A central region is shaded between points 2.13 and 2.27.]\nConstruct a 95% confidence interval for the population mean weight of the heads of lettuce. State the confidence interval, sketch the graph, and calculate the error bound.\nIn complete sentences, explain why the confidence interval in Exercise is wider than in Exercise.\nThe interval is greater because the level of confidence increased. If the only change made in the analysis is a change in confidence level, then all we are doing is changing how much area is being calculated for the normal distribution. Therefore, a larger confidence level results in larger areas and larger intervals.\nIn complete sentences, give an interpretation of what the interval in Exercise means.\nWhat would happen if 40 heads of lettuce were sampled instead of 20, and the error bound remained the same?\nThe confidence level would increase.\nWhat would happen if 40 heads of lettuce were sampled instead of 20, and the confidence level remained the same?\nUse the following information to answer the next 14 exercises: The mean age for all Foothill College students for a recent Fall term was 33.2. The population standard deviation has been pretty consistent at 15. Suppose that twenty-five Winter students were randomly selected. The mean age for the sample was 30.4. We are interested in the true mean age for Winter Foothill College students. Let X = the age of a Winter Foothill College student.\n$\\overline{x}$ = _____\n30.4\nn = _____\n________ = 15\nσ\nIn words, define the random variable $\\overline{X}$.\nWhat is $\\overline{x}$ estimating?\nμ\nIs ${\\sigma}_{x}$ known?\nAs a result of your answer to Exercise, state the exact distribution to use when calculating the confidence interval.\nnormal\nConstruct a 95% Confidence Interval for the true mean age of Winter Foothill College students by working out then answering the next seven exercises.\nHow much area is in both tails (combined)? α =________\nHow much area is in each tail? $\\frac{\\alpha}{2}$ =________\n0.025\nIdentify the following specifications:\n- lower limit\n- upper limit\n- error bound\nThe 95% confidence interval is:__________________.\n(24.52,36.28)\nFill in the blanks on the graph with the areas, upper and lower limits of the confidence interval, and the sample mean.\n[Image: Normal distribution curve with two vertical upward lines from the x-axis to the curve. The confidence interval is between these two lines. The residual areas are on either side.]\nIn one complete sentence, explain what the interval means.\nWe are 95% confident that the true mean age for Winger Foothill College students is between 24.52 and 36.28.\nUsing the same mean, standard deviation, and level of confidence, suppose that n were 69 instead of 25. Would the error bound become larger or smaller? How do you know?\nUsing the same mean, standard deviation, and sample size, how would the error bound change if the confidence level were reduced to 90%? Why?\nThe error bound for the mean would decrease because as the CL decreases, you need less area under the normal curve (which translates into a smaller interval) to capture the true population mean.\nHomework\nAmong various ethnic groups, the standard deviation of heights is known to be approximately three inches. We wish to construct a 95% confidence interval for the mean height of male Swedes. Forty-eight male Swedes are surveyed. The sample mean is 71 inches. The sample standard deviation is 2.8 inches.\n-\n- $\\overline{x}$ =________\n- σ =________\n- n =________\n- In words, define the random variables X and $\\overline{X}$.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population mean height of male Swedes.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- What will happen to the level of confidence obtained if 1,000 male Swedes are surveyed instead of 48? Why?\n-\n- 71\n- 3\n- 48\n- X is the height of a Swiss male, and is the mean height from a sample of 48 Swiss males.\n- Normal. We know the standard deviation for the population, and the sample size is greater than 30.\n-\n- CI: (70.151, 71.49)\n-\n[Image: A normal distribution curve with an area shaded between 70.15 and 71.85 on the x-axis, likely representing a confidence interval for a sample mean.]\n- EBM = 0.849\n- The confidence interval will decrease in size, because the sample size increased. Recall, when all factors remain unchanged, an increase in sample size decreases variability. Thus, we do not need as large an interval to capture the true population mean.\nAnnouncements for 84 upcoming engineering conferences were randomly picked from a stack of IEEE Spectrum magazines. The mean length of the conferences was 3.94 days, with a standard deviation of 1.28 days. Assume the underlying population is normal.\n- In words, define the random variables X and $\\overline{X}$.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population mean length of engineering conferences.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\nSuppose that an accounting firm does a study to determine the time needed to complete one person’s tax forms. It randomly surveys 100 people. The sample mean is 23.6 hours. There is a known standard deviation of 7.0 hours. The population distribution is assumed to be normal.\n-\n- $\\overline{x}$ =________\n- σ =________\n- n =________\n- In words, define the random variables X and $\\overline{X}$.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 90% confidence interval for the population mean time to complete the tax forms.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- If the firm wished to increase its level of confidence and keep the error bound the same by taking another survey, what changes should it make?\n- If the firm did another survey, kept the error bound the same, and only surveyed 49 people, what would happen to the level of confidence? Why?\n- Suppose that the firm decided that it needed to be at least 96% confident of the population mean length of time to within one hour. How would the number of people the firm surveys change? Why?\n-\n- $\\overline{x}$ = 23.6\n- $\\sigma$ = 7\n- n = 100\n- X is the time needed to complete an individual tax form. $\\overline{X}$ is the mean time to complete tax forms from a sample of 100 customers.\n- $N(23.6,\\frac{7}{\\sqrt{100}})$ because we know sigma.\n-\n- (22.228, 24.972)\n-\n[Image: A normal distribution curve showing a shaded region between 22.228 and 24.972 on the x-axis (x-bar), likely representing a confidence interval for the mean.]\n- EBM = 1.372\n- It will need to change the sample size. The firm needs to determine what the confidence level should be, then apply the error bound formula to determine the necessary sample size.\n- The confidence level would increase as a result of a larger interval. Smaller sample sizes result in more variability. To capture the true population mean, we need to have a larger interval.\n- According to the error bound formula, the firm needs to survey 206 people. Since we increase the confidence level, we need to increase either our error bound or the sample size.\nA sample of 16 small bags of the same brand of candies was selected. Assume that the population distribution of bag weights is normal. The weight of each bag was then recorded. The mean weight was two ounces with a standard deviation of 0.12 ounces. The population standard deviation is known to be 0.1 ounce.\n-\n- $\\overline{x}$ =________\n- σ =________\n- sx =________\n- In words, define the random variable X.\n- In words, define the random variable $\\overline{X}$.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 90% confidence interval for the population mean weight of the candies.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- Construct a 98% confidence interval for the population mean weight of the candies.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- In complete sentences, explain why the confidence interval in part f is larger than the confidence interval in part e.\n- In complete sentences, give an interpretation of what the interval in part f means.\nA camp director is interested in the mean number of letters each child sends during their camp session. The population standard deviation is known to be 2.5. A survey of 20 campers is taken. The mean from the sample is 7.9 with a sample standard deviation of 2.8.\n-\n- $\\overline{x}$ =________\n- σ =________\n- n =________\n- Define the random variables X and $\\overline{X}$ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 90% confidence interval for the population mean number of letters campers send home.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- What will happen to the error bound and confidence interval if 500 campers are surveyed? Why?\n-\n- 7.9\n- 2.5\n- 20\n- X is the number of letters a single camper will send home. $\\overline{X}$ is the mean number of letters sent home from a sample of 20 campers.\n-\nN $7.9(\\frac{2.5}{\\sqrt{20}})$\n-\n- CI: (6.98, 8.82)\n-\n[Image: A normal distribution curve with a shaded region between 6.98 and 8.82 on the x-axis, illustrating a probability or a confidence interval.]\n- EBM: 0.92\n- The error bound and confidence interval will decrease.\nWhat is meant by the term “90% confident” when constructing a confidence interval for a mean?\n- If we took repeated samples, approximately 90% of the samples would produce the same confidence interval.\n- If we took repeated samples, approximately 90% of the confidence intervals calculated from those samples would contain the sample mean.\n- If we took repeated samples, approximately 90% of the confidence intervals calculated from those samples would contain the true value of the population mean.\n- If we took repeated samples, the sample mean would equal the population mean in approximately 90% of the samples.\nThe Federal Election Commission collects information about campaign contributions and disbursements for candidates and political committees each election cycle. During a certain campaign season, there were 1,619 candidates for the House of Representatives across the United States who received contributions from individuals. Table shows the total receipts from individuals for a random selection of 40 House candidates rounded to the nearest \\$100. The standard deviation for this data to the nearest hundred is σ = \\$909,200.\n\\$3,600 | \\$1,243,900 | \\$10,900 | \\$385,200 | \\$581,500\n\\$7,400 | \\$2,900 | \\$400 | \\$3,714,500 | \\$632,500\n\\$391,000 | \\$467,400 | \\$56,800 | \\$5,800 | \\$405,200\n\\$733,200 | \\$8,000 | \\$468,700 | \\$75,200 | \\$41,000\n\\$13,300 | \\$9,500 | \\$953,800 | \\$1,113,500 | \\$1,109,300\n\\$353,900 | \\$986,100 | \\$88,600 | \\$378,200 | \\$13,200\n\\$3,800 | \\$745,100 | \\$5,800 | \\$3,072,100 | \\$1,626,700\n\\$512,900 | \\$2,309,200 | \\$6,600 | \\$202,400 | \\$15,800\n- Find the point estimate for the population mean.\n- Using 95% confidence, calculate the error bound.\n- Create a 95% confidence interval for the mean total individual contributions.\n- Interpret the confidence interval in the context of the problem.\n- $\\overline{x}$ = \\$568,873\n- CL = 0.95 α = 1 – 0.95 = 0.05 ${z}_{\\frac{\\alpha}{2}}$ = 1.96 EBM = ${z}_{0.025}\\frac{\\sigma}{\\sqrt{n}}$ = 1.96 $\\frac{909200}{\\sqrt{40}}$ = \\$281,764\n- $\\overline{x}$ − EBM = 568,873 − 281,764 = 287,109 $\\overline{x}$ + EBM = 568,873 + 281,764 = 850,637\nAlternate solution:\n- Press STAT and arrow over to TESTS.\n- Arrow down to 7:ZInterval.\n- Press ENTER.\n- Arrow to Stats and press ENTER.\n- Arrow down and enter the following values:\n- σ: 909,200\n- $\\overline{x}$: 568,873\n- n: 40\n- CL: 0.95\n- Arrow down to Calculate and press ENTER.\n- The confidence interval is (\\$287,114, \\$850,632).\n- Notice the small difference between the two solutions–these differences are simply due to rounding error in the hand calculations.\n- We estimate with 95% confidence that the mean amount of contributions received from all individuals by House candidates is between \\$287,109 and \\$850,637.\nThe American Community Survey (ACS), part of the United States Census Bureau, conducts a yearly census similar to the one taken every ten years, but with a smaller percentage of participants. The recent survey estimates with 90% confidence that the mean household income in the U.S. falls between \\$69,720 and \\$69,922. Find the point estimate for mean U.S. household income and the error bound for mean U.S. household income.\nThe average height of young adult males has a normal distribution with standard deviation of 2.5 inches. You want to estimate the mean height of students at your college or university to within one inch with 93% confidence. How many male students must you measure?\nUse the formula for EBM, solved for n: $n=\\frac{{z}^{2}{\\sigma}^{2}}{EB{M}^{2}}$\nFrom the statement of the problem, you know that σ = 2.5, and you need EBM = 1.\nz = z0.035 = 1.812\n(This is the value of z for which the area under the density curve to the right of z is 0.035.)\n$n=\\frac{{z}^{2}{\\sigma}^{2}}{EB{M}^{2}}=\\frac{{1.812}^{2}{2.5}^{2}}{{1}^{2}}\\approx20.52$\nYou need to measure at least 21 male students to achieve your goal.\n\nGlossary\nConfidence Level (CL) the percent expression for the probability that the confidence interval contains the true population parameter; for example, if the CL = 90%, then in 90 out of 100 samples the interval estimate will enclose the true population parameter.\nError Bound for a Population Mean (EBM) the margin of error; depends on the confidence level, sample size, and known or estimated population standard deviation."}
{"document_id": "openstax-intro-statistics-m47001", "title": "Confidence Intervals — A Single Population Mean using the Student t Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/8-2-a-single-population-mean-using-the-student-t-distribution", "license": "CC-BY-4.0", "text": "In practice, we rarely know the population standard deviation. In the past, when the sample size was large, this did not present a problem to statisticians. They used the sample standard deviation s as an estimate for σ and proceeded as before to calculate a confidence interval with close enough results. However, statisticians ran into problems when the sample size was small. A small sample size caused inaccuracies in the confidence interval.\nWilliam S. Gosset (1876–1937) of the Guinness brewery in Dublin, Ireland ran into this problem. His experiments with hops and barley produced very few samples. Just replacing σ with s did not produce accurate results when he tried to calculate a confidence interval. He realized that he could not use a normal distribution for the calculation; he found that the actual distribution depends on the sample size. This problem led him to \"discover\" what is called the Student's t-distribution. The name comes from the fact that Gosset wrote under the pen name \"Student.\"\nUp until the mid-1970s, some statisticians used the normal distribution approximation for large sample sizes and used the Student's t-distribution only for sample sizes of at most 30. With graphing calculators and computers, the practice now is to use the Student's t-distribution whenever s is used as an estimate for σ.\nIf you draw a simple random sample of size n from a population that has an approximately normal distribution with mean μ and unknown population standard deviation σ and calculate the t-score t = $\\frac{\\overline{x}–\\mu}{(\\frac{s}{\\sqrt{n}})}$, then the t-scores follow a Student's t-distribution with n – 1 degrees of freedom. The t-score has the same interpretation as the z-score. It measures how far $\\overline{x}$ is from its mean μ. For each sample size n, there is a different Student's t-distribution.\nThe degrees of freedom, n – 1, come from the calculation of the sample standard deviation s. This calculation requires n deviations $(x–\\overline{x}\\text{values})$. Because the sum of the deviations is zero, we can find the last deviation once we know the other n – 1 deviations. The other n – 1 deviations can change or vary freely. We call the number n – 1 the degrees of freedom (df).\nProperties of the Student's t-Distribution\n- The graph for the Student's t-distribution is similar to the standard normal curve.\n- The mean for the Student's t-distribution is zero and the distribution is symmetric about zero.\n- The Student's t-distribution has more probability in its tails than the standard normal distribution because the spread of the t-distribution is greater than the spread of the standard normal. So the graph of the Student's t-distribution will be thicker in the tails and shorter in the center than the graph of the standard normal distribution.\n- The exact shape of the Student's t-distribution depends on the degrees of freedom. As the degrees of freedom increases, the graph of Student's t-distribution becomes more like the graph of the standard normal distribution.\n- The underlying population of individual observations is assumed to be normally distributed with unknown population mean μ and unknown population standard deviation σ. The size of the underlying population is generally not relevant unless it is very small. If it is bell shaped (normal) then the assumption is met and doesn't need discussion. Random sampling is assumed, but that is a completely separate assumption from normality.\nCalculators and computers can easily calculate any Student's t-probabilities. The TI-83,83+, and 84+ have a tcdf function to find the probability for given values of t. The grammar for the tcdf command is tcdf(lower bound, upper bound, degrees of freedom). However for confidence intervals, we need to use inverse probability to find the value of t when we know the probability.\nFor the TI-84+ you can use the invT command on the DISTRibution menu. The invT command works similarly to the invnorm. The invT command requires two inputs: invT(area to the left, degrees of freedom) The output is the t-score that corresponds to the area we specified. The TI-83 and 83+ do not have the invT command. (The TI-89 has an inverse T command.)\nA probability table for the Student's t-distribution can also be used. The table gives t-scores that correspond to the confidence level (column) and degrees of freedom (row). (The TI-86 does not have an invT program or command, so if you are using that calculator, you need to use a probability table for the Student's t-Distribution.) When using a t-table, note that some tables are formatted to show the confidence level in the column headings, while the column headings in some tables may show only corresponding area in one or both tails. A Student's t table (See Tables) gives t-scores given the degrees of freedom and the right-tailed probability. The table is very limited. Calculators and computers can easily calculate any Student's t-probabilities.\nThe notation for the Student's t-distribution (using T as the random variable) is:\n- T ~ tdf where df = n – 1.\n- For example, if we have a sample of size n = 20 items, then we calculate the degrees of freedom as df = n - 1 = 20 - 1 = 19 and we write the distribution as T ~ t19.\nIf the population standard deviation is not known, the error bound for a population mean is:\n- $EBM=({t}_{\\frac{\\alpha}{2}})(\\frac{s}{\\sqrt{n}})$,\n- ${t}_{\\frac{\\sigma}{2}}$ is the t-score with area to the right equal to $\\frac{\\alpha}{2}$,\n- use df = n – 1 degrees of freedom, and\n- s = sample standard deviation.\nThe format for the confidence interval is: $(\\overline{x}-EBM,\\overline{x}+EBM)$.\nTo calculate the confidence interval directly: Press STAT. Arrow over to TESTS. Arrow down to 8:TInterval and press ENTER (or just press 8).\nSuppose you do a study of acupuncture to determine how effective it is in relieving pain. You measure sensory rates for 15 subjects with the results given. Use the sample data to construct a 95% confidence interval for the mean sensory rate for the population (assumed normal) from which you took the data. The solution is shown step-by-step and by using the TI-83, 83+, or 84+ calculators.\n- 8.6\n- 9.4\n- 7.9\n- 6.8\n- 8.3\n- 7.3\n- 9.2\n- 9.6\n- 8.7\n- 11.4\n- 10.3\n- 5.4\n- 8.1\n- 5.5\n- 6.9\n- The first solution is step-by-step.\n- The second solution uses the TI-83+ and TI-84 calculators.\nTo find the confidence interval, you need the sample mean, $\\overline{x}$, and the EBM.\n$\\overline{x}$ = 8.2267 s = 1.6722 n = 15\ndf = 15 – 1 = 14 CL so α = 1 – CL = 1 – 0.95 = 0.05\n$\\frac{\\alpha}{2}$ = 0.025 ${t}_{\\frac{\\alpha}{2}}={t}_{0.025}$\nThe area to the right of t0.025 is 0.025, and the area to the left of t0.025 is 1 – 0.025 = 0.975\n${t}_{\\frac{\\alpha}{2}}={t}_{0.025}=2.14$ using invT(.975,14) on the TI-84+ calculator.\n$EBM=({t}_{\\frac{\\alpha}{2}})(\\frac{s}{\\sqrt{n}})$\n$EBM=(2.14)(\\frac{1.6722}{\\sqrt{15}})=0.924$\n$\\overline{x}$ – EBM = 8.2267 – 0.9240 = 7.3\n$\\overline{x}$ + EBM = 8.2267 + 0.9240 = 9.15\nThe 95% confidence interval is (7.30, 9.15).\nWe estimate with 95% confidence that the true population mean sensory rate is between 7.30 and 9.15.\nPress STAT and arrow over to TESTS. Arrow down to 8:TInterval and press ENTER (or you can just press 8). Arrow to Data and press ENTER. Arrow down to List and enter the list name where you put the data. There should be a 1 after Freq. Arrow down to C-level and enter 0.95 Arrow down to Calculate and press ENTER. The 95% confidence interval is (7.3006, 9.1527)\nNOTE\nWhen calculating the error bound, a probability table for the Student's t-distribution can also be used to find the value of t. The table gives t-scores that correspond to the confidence level (column) and degrees of freedom (row); the t-score is found where the row and column intersect in the table.\nTry It\nYou do a study of hypnotherapy to determine how effective it is in increasing the number of hours of sleep subjects get each night. You measure hours of sleep for 12 subjects with the following results. Construct a 95% confidence interval for the mean number of hours slept for the population (assumed normal) from which you took the data.\n8.2; 9.1; 7.7; 8.6; 6.9; 11.2; 10.1; 9.9; 8.9; 9.2; 7.5; 10.5\nThe Human Toxome Project (HTP) is working to understand the scope of industrial pollution in the human body. Industrial chemicals may enter the body through pollution or as ingredients in consumer products. The scientists at HTP tested cord blood samples for 20 newborn infants in the United States. The cord blood of the \"In utero/newborn\" group was tested for 430 industrial compounds, pollutants, and other chemicals, including chemicals linked to brain and nervous system toxicity, immune system toxicity, and reproductive toxicity, and fertility problems. There are health concerns about the effects of some chemicals on the brain and nervous system. Table shows how many of the targeted chemicals were found in each infant’s cord blood.\n79 | 145 | 147 | 160 | 116 | 100 | 159 | 151 | 156 | 126\n137 | 83 | 156 | 94 | 121 | 144 | 123 | 114 | 139 | 99\nUse this sample data to construct a 90% confidence interval for the mean number of targeted industrial chemicals to be found in an in infant’s blood.\nFrom the sample, you can calculate $\\overline{x}$ = 127.45 and s = 25.965. There are 20 infants in the sample, so n = 20, and df = 20 – 1 = 19.\nYou are asked to calculate a 90% confidence interval: CL = 0.90, so α = 1 – CL = 1 – 0.90 = 0.10\n- $\\frac{\\alpha}{2}=0.05, {t}_{\\frac{\\alpha}{2}}={t}_{0.05}$\nBy definition, the area to the right of t0.05 is 0.05 and so the area to the left of t0.05 is 1 – 0.05 = 0.95.\nUse a table, calculator, or computer to find that t0.05 = 1.729.\n$EBM={t}_{\\frac{\\alpha}{2}}(\\frac{s}{\\sqrt{n}})=1.729(\\frac{25.965}{\\sqrt{20}})\\approx10.038$\n$\\overline{x}$ – EBM = 127.45 – 10.038 = 117.412\n$\\overline{x}$ + EBM = 127.45 + 10.038 = 137.488\nWe estimate with 90% confidence that the mean number of all targeted industrial chemicals found in cord blood in the United States is between 117.412 and 137.488.\nEnter the data as a list. Press STAT and arrow over to TESTS. Arrow down to 8:TInterval and press ENTER (or you can just press 8). Arrow to Data and press ENTER. Arrow down to List and enter the list name where you put the data. Arrow down to Freq and enter 1. Arrow down to C-level and enter 0.90 Arrow down to Calculate and press ENTER. The 90% confidence interval is (117.41, 137.49).\nTry It\nA random sample of statistics students were asked to estimate the total number of hours they spend watching television in an average week. The responses are recorded in Table. Use this sample data to construct a 98% confidence interval for the mean number of hours statistics students will spend watching television in one week.\n0 | 3 | 1 | 20 | 9\n5 | 10 | 1 | 10 | 4\n14 | 2 | 4 | 4 | 5\nReferences\n“America’s Best Small Companies.” Forbes, 2013. Available online at http://www.forbes.com/best-small-companies/list/ (accessed July 2, 2013).\nData from Microsoft Bookshelf.\nData from http://www.businessweek.com/.\nData from http://www.forbes.com/.\n“Disclosure Data Catalog: Leadership PAC and Sponsors Report, 2012.” Federal Election Commission. Available online at http://www.fec.gov/data/index.jsp (accessed July 2,2013).\n“Human Toxome Project: Mapping the Pollution in People.” Environmental Working Group. Available online at http://www.ewg.org/sites/humantoxome/participants/participant-group.php?group=in+utero%2Fnewborn (accessed July 2, 2013).\n“Metadata Description of Leadership PAC List.” Federal Election Commission. Available online at http://www.fec.gov/finance/disclosure/metadata/metadataLeadershipPacList.shtml (accessed July 2, 2013).\nChapter Review\nIn many cases, the researcher does not know the population standard deviation, σ, of the measure being studied. In these cases, it is common to use the sample standard deviation, s, as an estimate of σ. The normal distribution creates accurate confidence intervals when σ is known, but it is not as accurate when s is used as an estimate. In this case, the Student’s t-distribution is much better. Define a t-score using the following formula:\n$t=\\frac{\\overline{x}-\\mu}{\\frac{s}{\\sqrt{n}}}$\nThe t-score follows the Student’s t-distribution with n – 1 degrees of freedom. The confidence interval under this distribution is calculated with EBM = $({t}_{\\frac{\\alpha}{2}})\\frac{s}{\\sqrt{n}}$ where ${t}_{\\frac{\\alpha}{2}}$ is the t-score with area to the right equal to $\\frac{\\alpha}{2}$, s is the sample standard deviation, and n is the sample size. Use a table, calculator, or computer to find ${t}_{\\frac{\\alpha}{2}}$ for a given α.\nFormula Review\ns = the standard deviation of sample values.\n$t=\\frac{\\overline{x}-\\mu}{\\frac{s}{\\sqrt{n}}}$ is the formula for the t-score which measures how far away a measure is from the population mean in the Student’s t-distribution\ndf = n - 1; the degrees of freedom for a Student’s t-distribution where n represents the size of the sample\nT~tdf the random variable, T, has a Student’s t-distribution with df degrees of freedom\n$EBM={t}_{\\frac{\\alpha}{2}}\\frac{s}{\\sqrt{n}}$ = the error bound for the population mean when the population standard deviation is unknown\n${t}_{\\frac{\\alpha}{2}}$ is the t-score in the Student’s t-distribution with area to the right equal to $\\frac{\\alpha}{2}$\nThe general form for a confidence interval for a single mean, population standard deviation unknown, Student's t is given by (lower bound, upper bound) = (point estimate – EBM, point estimate + EBM) = $(\\overline{x}–\\frac{ts}{\\sqrt{n}},\\overline{x}\\text{+}\\frac{ts}{\\sqrt{n}})$\nUse the following information to answer the next five exercises. A hospital is trying to cut down on emergency room wait times. It is interested in the amount of time patients must wait before being called back to be examined. An investigation committee randomly surveyed 70 patients. The sample mean was 1.5 hours with a sample standard deviation of 0.5 hours.\nIdentify the following:\n- $\\overline{x}$ =_______\n- ${s}_{x}$ =_______\n- n =_______\n- n – 1 =_______\nDefine the random variables X and $\\overline{X}$ in words.\nX is the number of hours a patient waits in the emergency room before being called back to be examined. $\\overline{X}$ is the mean wait time of 70 patients in the emergency room.\nWhich distribution should you use for this problem?\nConstruct a 95% confidence interval for the population mean time spent waiting. State the confidence interval, sketch the graph, and calculate the error bound.\nCI: (1.3808, 1.6192)\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 1.5 on the horizontal axis. A central region is shaded between points 1.38 and 1.62.]\nEBM = 0.12\nExplain in complete sentences what the confidence interval means.\nUse the following information to answer the next six exercises: One hundred eight Americans were surveyed to determine the number of hours they spend watching television each month. It was revealed that they watched an average of 151 hours each month with a standard deviation of 32 hours. Assume that the underlying population distribution is normal.\nIdentify the following:\n- $\\overline{x}$ =_______\n- ${s}_{x}$ =_______\n- n =_______\n- n – 1 =_______\n- $\\overline{x}$ = 151\n- ${s}_{x}$ = 32\n- n = 108\n- n – 1 = 107\nDefine the random variable X in words.\nDefine the random variable $\\overline{X}$ in words.\n$\\overline{X}$ is the mean number of hours spent watching television per month from a sample of 108 Americans.\nWhich distribution should you use for this problem?\nConstruct a 99% confidence interval for the population mean hours spent watching television per month. (a) State the confidence interval, (b) sketch the graph, and (c) calculate the error bound.\nCI: (142.92, 159.08)\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 151 on the horizontal axis. A central region is shaded between points 142.92 and 159.08.]\nEBM = 8.08\nWhy would the error bound change if the confidence level were lowered to 95%?\nUse the following information to answer the next 13 exercises: The data in Table are the result of a random survey of 39 national flags (with replacement between picks) from various countries. We are interested in finding a confidence interval for the true mean number of colors on a national flag. Let X = the number of colors on a national flag.\nX | Freq.\n1 | 1\n2 | 7\n3 | 18\n4 | 7\n5 | 6\nCalculate the following:\n- $\\overline{x}$ =______\n- ${s}_{x}$ =______\n- n =______\n- 3.26\n- 1.02\n- 39\nDefine the random variable $\\overline{X}$ in words.\nWhat is $\\overline{x}$ estimating?\nμ\nIs ${\\sigma}_{x}$ known?\nAs a result of your answer to Exercise, state the exact distribution to use when calculating the confidence interval.\nt38\nConstruct a 95% confidence interval for the true mean number of colors on national flags.\nHow much area is in both tails (combined)?\nHow much area is in each tail?\n0.025\nCalculate the following:\n- lower limit\n- upper limit\n- error bound\nThe 95% confidence interval is_____.\n(2.93, 3.59)\nFill in the blanks on the graph with the areas, the upper and lower limits of the Confidence Interval and the sample mean.\n[Image: This is a template of a normal distribution curve with the central region shaded to represent a confidence interval. The residual areas are on either side of the shaded region. Blanks indicate that students should label the confidence level, residual areas, and points that define the confidence interval.]\nIn one complete sentence, explain what the interval means.\nWe are 95% confident that the true mean number of colors for national flags is between 2.93 colors and 3.59 colors.\nUsing the same $\\overline{x}$, ${s}_{x}$, and level of confidence, suppose that n were 69 instead of 39. Would the error bound become larger or smaller? How do you know?\nThe error bound would become EBM = 0.245. This error bound decreases because as sample sizes increase, variability decreases and we need less interval length to capture the true mean.\nUsing the same $\\overline{x}$, ${s}_{x}$, and n = 39, how would the error bound change if the confidence level were reduced to 90%? Why?\nHomework\nIn six packages of “The Flintstones® Real Fruit Snacks” there were five Bam-Bam snack pieces. The total number of snack pieces in the six bags was 68. We wish to calculate a 96% confidence interval for the population proportion of Bam-Bam snack pieces.\n- Define the random variables X and P′ in words.\n- Which distribution should you use for this problem? Explain your choice\n- Calculate p′.\n- Construct a 96% confidence interval for the population proportion of Bam-Bam snack pieces per bag.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- Do you think that six packages of fruit snacks yield enough data to give accurate results? Why or why not?\nA random survey of enrollment at 35 community colleges across the United States yielded the following figures: 6,414; 1,550; 2,109; 9,350; 21,828; 4,300; 5,944; 5,722; 2,825; 2,044; 5,481; 5,200; 5,853; 2,750; 10,012; 6,357; 27,000; 9,414; 7,681; 3,200; 17,500; 9,200; 7,380; 18,314; 6,557; 13,713; 17,768; 7,493; 2,771; 2,861; 1,263; 7,285; 28,165; 5,080; 11,622. Assume the underlying population is normal.\n-\n- $\\overline{x}$ = __________\n- ${s}_{x}$ = __________\n- n = __________\n- n – 1 = __________\n- Define the random variables $X$ and $\\overline{X}$ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population mean enrollment at community colleges in the United States.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- What will happen to the error bound and confidence interval if 500 community colleges were surveyed? Why?\n-\n- 8629\n- 6944\n- 35\n- 34\n- ${t}_{34}$\n-\n- CI: (6244, 11,014)\n-\n[Image: A normal distribution curve with a peak at 8629, showing the shaded area representing data points between 6244 and 11014.]\n- EB = 2385\n- It will become smaller\nSuppose that a committee is studying whether or not there is waste of time in our judicial system. It is interested in the mean amount of time individuals waste at the courthouse waiting to be called for jury duty. The committee randomly surveyed 81 people who recently served as jurors. The sample mean wait time was eight hours with a sample standard deviation of four hours.\n-\n- $\\overline{x}$ = __________\n- ${s}_{x}$ = __________\n- n = __________\n- n – 1 = __________\n- Define the random variables $X$ and $\\overline{X}$ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population mean time wasted.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- Explain in a complete sentence what the confidence interval means.\nA pharmaceutical company makes tranquilizers. It is assumed that the distribution for the length of time they last is approximately normal. Researchers in a hospital used the drug on a random sample of nine patients. The effective period of the tranquilizer for each patient (in hours) was as follows: 2.7; 2.8; 3.0; 2.3; 2.3; 2.2; 2.8; 2.1; and 2.4.\n-\n- $\\overline{x}$ = __________\n- ${s}_{x}$ = __________\n- n = __________\n- n – 1 = __________\n- Define the random variable $X$ in words.\n- Define the random variable $\\overline{X}$ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population mean length of time.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- What does it mean to be “95% confident” in this problem?\n-\n- $\\overline{x}$ = 2.51\n- ${s}_{x}$ = 0.318\n- n = 9\n- n - 1 = 8\n- the effective length of time for a tranquilizer\n- the mean effective length of time of tranquilizers from a sample of nine patients\n- We need to use a Student’s-t distribution, because we do not know the population standard deviation.\n-\n- CI: (2.27, 2.76)\n- Answers may vary.\n- EBM: 0.25\n- If we were to sample many groups of nine patients, 95% of the samples would contain the true population mean length of time.\nSuppose that 14 children, who were learning to ride two-wheel bikes, were surveyed to determine how long they had to use training wheels. It was revealed that they used them an average of six months with a sample standard deviation of three months. Assume that the underlying population distribution is normal.\n-\n- $\\overline{x}$ = __________\n- ${s}_{x}$ = __________\n- n = __________\n- n – 1 = __________\n- Define the random variable $X$ in words.\n- Define the random variable$\\overline{X}$ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 99% confidence interval for the population mean length of time using training wheels.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- Why would the error bound change if the confidence level were lowered to 90%?\nThe Federal Election Commission (FEC) collects information about campaign contributions and disbursements for candidates and political committees each election cycle. A political action committee (PAC) is a committee formed to raise money for candidates and campaigns. A Leadership PAC is a PAC formed by a federal politician (senator or representative) to raise money to help other candidates’ campaigns.\nThe FEC has reported financial information for 556 Leadership PACs that operating during a certain election cycle. The following table shows the total receipts during this cycle for a random selection of 30 Leadership PACs.\n\\$46,500.00 | \\$0 | \\$40,966.50 | \\$105,887.20 | \\$5,175.00\n\\$29,050.00 | \\$19,500.00 | \\$181,557.20 | \\$31,500.00 | \\$149,970.80\n\\$2,555,363.20 | \\$12,025.00 | \\$409,000.00 | \\$60,521.70 | \\$18,000.00\n\\$61,810.20 | \\$76,530.80 | \\$119,459.20 | \\$0 | \\$63,520.00\n\\$6,500.00 | \\$502,578.00 | \\$705,061.10 | \\$708,258.90 | \\$135,810.00\n\\$2,000.00 | \\$2,000.00 | \\$0 | \\$1,287,933.80 | \\$219,148.30\n$\\overline{x}=\\$251,854.23$\n$s=\\$521,130.41$\nUse this sample data to construct a 96% confidence interval for the mean amount of money raised by all Leadership PACs during the specific election cycle. Use the Student's t-distribution.\n$\\overline{x}=\\$251,854.23$\n$s=\\$521,130.41$\nNote that we are not given the population standard deviation, only the standard deviation of the sample.\nThere are 30 measures in the sample, so n = 30, and df = 30 - 1 = 29\nCL = 0.96, so α = 1 - CL = 1 - 0.96 = 0.04\n$\\frac{\\alpha}{2}=0.02{t}_{\\frac{\\alpha}{2}}={t}_{0.02}$ = 2.150\n$EBM={t}_{\\frac{\\alpha}{2}}(\\frac{s}{\\sqrt{n}})=2.150(\\frac{521,130.41}{\\sqrt{30}})~\\$204,561.66$\n$\\overline{x}$ - EBM = \\$251,854.23 - \\$204,561.66 = \\$47,292.57\n$\\overline{x}$ + EBM = \\$251,854.23+ \\$204,561.66 = \\$456,415.89\nWe estimate with 96% confidence that the mean amount of money raised by all Leadership PACs during the specific election cycle lies between \\$47,292.57 and \\$456,415.89.\nAlternate Solution\nEnter the data as a list.\nPress STAT and arrow over to TESTS.\nArrow down to 8:TInterval.\nPress ENTER.\nArrow to Data and press ENTER.\nArrow down and enter the name of the list where the data is stored.\nEnter Freq: 1\nEnter C-Level: 0.96\nArrow down to Calculate and press Enter.\nThe 96% confidence interval is (\\$47,262, \\$456,447).\nThe difference between solutions arises from rounding differences.\nForbes magazine published data on the best small firms in a certain year. These were firms that had been publicly traded for at least a year, have a stock price of at least \\$5 per share, and have reported annual revenue between \\$5 million and \\$1 billion. The Table shows the ages of the corporate CEOs for a random sample of these firms.\n48 | 58 | 51 | 61 | 56\n59 | 74 | 63 | 53 | 50\n59 | 60 | 60 | 57 | 46\n55 | 63 | 57 | 47 | 55\n57 | 43 | 61 | 62 | 49\n67 | 67 | 55 | 55 | 49\nUse this sample data to construct a 90% confidence interval for the mean age of CEO’s for these top small firms. Use the Student's t-distribution.\nUnoccupied seats on flights cause airlines to lose revenue. Suppose a large airline wants to estimate its mean number of unoccupied seats per flight over the past year. To accomplish this, the records of 225 flights are randomly selected and the number of unoccupied seats is noted for each of the sampled flights. The sample mean is 11.6 seats and the sample standard deviation is 4.1 seats.\n-\n- $\\overline{x}$ = __________\n- ${s}_{x}$ = __________\n- n = __________\n- n-1 = __________\n- Define the random variables $X$ and $\\overline{X}$ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 92% confidence interval for the population mean number of unoccupied seats per flight.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n-\n- $\\overline{x}$ = 11.6\n- ${s}_{x}$ = 4.1\n- n = 225\n- n - 1 = 224\n- X is the number of unoccupied seats on a single flight. $\\overline{X}$ is the mean number of unoccupied seats from a sample of 225 flights.\n- We will use a Student’s-t distribution, because we do not know the population standard deviation.\n-\n- CI: (11.12, 12.08)\n- Answers may vary.\n- EBM: 0.48\nIn a recent sample of 84 used car sales costs, the sample mean was \\$6,425 with a standard deviation of \\$3,156. Assume the underlying distribution is approximately normal.\n- Which distribution should you use for this problem? Explain your choice.\n- Define the random variable $\\overline{X}$ in words.\n- Construct a 95% confidence interval for the population mean cost of a used car.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- Explain what a “95% confidence interval” means for this study.\nSix different national brands of chocolate chip cookies were randomly selected at the supermarket. The grams of fat per serving are as follows: 8; 8; 10; 7; 9; 9. Assume the underlying distribution is approximately normal.\n- Construct a 90% confidence interval for the population mean grams of fat per serving of chocolate chip cookies sold in supermarkets.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- If you wanted a smaller error bound while keeping the same level of confidence, what should have been changed in the study before it was done?\n- Go to the store and record the grams of fat per serving of six brands of chocolate chip cookies.\n- Calculate the mean.\n- Is the mean within the interval you calculated in part a? Did you expect it to be? Why or why not?\n-\n- CI: (7.64, 9.36)\n-\n[Image: A normal distribution curve with the area between 7.64 and 9.36 highlighted, centered at 8.5.]\n- EBM: 0.86\n- The sample should have been increased.\n- Answers will vary.\n- Answers will vary.\n- Answers will vary.\nA survey of the mean number of cents off that coupons give was conducted by randomly surveying one coupon per page from the coupon sections of a recent San Jose Mercury News. The following data were collected: 20¢; 75¢; 50¢; 65¢; 30¢; 55¢; 40¢; 40¢; 30¢; 55¢; \\$1.50; 40¢; 65¢; 40¢. Assume the underlying distribution is approximately normal.\n-\n- $\\overline{x}$ = __________\n- ${s}_{x}$ = __________\n- n = __________\n- n-1 = __________\n- Define the random variables $X$ and $\\overline{X}$ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population mean worth of coupons.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- If many random samples were taken of size 14, what percent of the confidence intervals constructed should contain the population mean worth of coupons? Explain why.\nUse the following information to answer the next two exercises: A quality control specialist for a restaurant chain takes a random sample of size 12 to check the amount of soda served in the 16 oz. serving size. The sample mean is 13.30 with a sample standard deviation of 1.55. Assume the underlying population is normally distributed.\nFind the 95% Confidence Interval for the true population mean for the amount of soda served.\n- (12.42, 14.18)\n- (12.32, 14.29)\n- (12.50, 14.10)\n- Impossible to determine\nb\nWhat is the error bound?\n- 0.87\n- 1.98\n- 0.99\n- 1.74\n\nGlossary\nDegrees of Freedom (df) the number of objects in a sample that are free to vary\nNormal Distribution a continuous random variable (RV) with pdf $f\\text{(}x\\text{)}=\\frac{1}{\\sigma\\sqrt{2\\pi}}{e}^{–{(x–\\mu)}^{2}/2{\\sigma}^{2}}$, where μ is the mean of the distribution and σ is the standard deviation, notation: X ~ N(μ,σ). If μ = 0 and σ = 1, the RV is called the standard normal distribution.\nStandard Deviation a number that is equal to the square root of the variance and measures how far data values are from their mean; notation: s for sample standard deviation and σ for population standard deviation\nStudent's t-Distribution investigated and reported by William S. Gossett in 1908 and published under the pseudonym Student; the major characteristics of the random variable (RV) are:\n- It is continuous and assumes any real values.\n- The pdf is symmetrical about its mean of zero. However, it is more spread out and flatter at the apex than the normal distribution.\n- It approaches the standard normal distribution as n get larger.\n- There is a \"family\" of t–distributions: each representative of the family is completely defined by the number of degrees of freedom, which is one less than the number of data."}
{"document_id": "openstax-intro-statistics-m46999", "title": "Confidence Intervals — A Population Proportion", "source": "https://openstax.org/books/introductory-statistics-2e/pages/8-3-a-population-proportion", "license": "CC-BY-4.0", "text": "During an election year, we see articles in the newspaper that state confidence intervals in terms of proportions or percentages. For example, a poll for a particular candidate running for president might show that the candidate has 40% of the vote within three percentage points (if the sample is large enough). Often, election polls are calculated with 95% confidence, so, the pollsters would be 95% confident that the true proportion of voters who favored the candidate would be between 0.37 and 0.43: (0.40 – 0.03,0.40 + 0.03).\nInvestors in the stock market are interested in the true proportion of stocks that go up and down each week. Businesses that sell personal computers are interested in the proportion of households in the United States that own personal computers. Confidence intervals can be calculated for the true proportion of stocks that go up or down each week and for the true proportion of households in the United States that own personal computers.\nThe procedure to find the confidence interval, the sample size, the error bound, and the confidence level for a proportion is similar to that for the population mean, but the formulas are different.\nHow do you know you are dealing with a proportion problem? First, the underlying distribution is a binomial distribution. (There is no mention of a mean or average.) If X is a binomial random variable, then X ~ B(n, p) where n is the number of trials and p is the probability of a success. To form a proportion, take X, the random variable for the number of successes and divide it by n, the number of trials (or the sample size). The random variable ${p}^{'}$ (read \"P prime\") is that proportion,\n${P}^{'}=\\frac{X}{n}$\n(Sometimes the random variable is denoted as ${P}^{^}$, read \"P hat\".)\nWhen n is large and p is not close to zero or one, we can use the normal distribution to approximate the binomial.\n$X~N(np,\\sqrt{npq})$\nIf we divide the random variable, the mean, and the standard deviation by n, we get a normal distribution of proportions with ${p}^{'}$, called the estimated proportion, as the random variable. (Recall that a proportion as the number of successes divided by n.)\n$\\frac{X}{n}={P}^{'}\\text{~}N(\\frac{np}{n},\\frac{\\sqrt{npq}}{n})$\nUsing algebra to simplify: $\\frac{\\sqrt{npq}}{n}=\\sqrt{\\frac{pq}{n}}$\n${p}^{'}$ follows a normal distribution for proportions: $\\frac{X}{n}=P'~N(p,\\sqrt{\\frac{pq}{n}})$\nThe confidence interval has the form (${p}^{'}$ – EBP, ${p}^{'}$ + EBP). EBP is error bound for the proportion.\n${p}^{'}$ = $\\frac{x}{n}$\n${p}^{'}$ = the estimated proportion of successes (${p}^{'}$ is a point estimate for p, the true proportion.)\nx = the number of successes\nn = the size of the sample\nThe error bound for a proportion is\n$EBP=({z}_{\\frac{\\alpha}{2}})(\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}})$ where ${q}^{'}$ = 1 – ${p}^{'}$\nThis formula is similar to the error bound formula for a mean, except that the \"appropriate standard deviation\" is different. For a mean, when the population standard deviation is known, the appropriate standard deviation that we use is $\\frac{\\sigma}{\\sqrt{n}}$. For a proportion, the appropriate standard deviation is $\\sqrt{\\frac{pq}{n}}$.\nHowever, in the error bound formula, we use $\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}}$ as the standard deviation, instead of $\\sqrt{\\frac{pq}{n}}$.\nIn the error bound formula, the sample proportions ${p}^{'}$ and ${q}^{'}$ are estimates of the unknown population proportions p and q. The estimated proportions ${p}^{'}$ and ${q}^{'}$ are used because p and q are not known. The sample proportions ${p}^{'}$ and ${q}^{'}$ are calculated from the data: ${p}^{'}$ is the estimated proportion of successes, and ${q}^{'}$ is the estimated proportion of failures.\nThe confidence interval can be used only if the number of successes ${np}^{'}$ and the number of failures ${nq}^{'}$ are both greater than five.\nNOTE\nFor the normal distribution of proportions, the z-score formula is as follows.\nIf ${P}^{'}\\text{~}N(p,\\sqrt{\\frac{pq}{n}})$ then the z-score formula is $z=\\frac{{p}^{'}-p}{\\sqrt{\\frac{pq}{n}}}$\nSuppose that a market research firm is hired to estimate the percent of adults living in a large city who have smartphones. Five hundred randomly selected adult residents in this city are surveyed to determine whether they have smartphones. Of the 500 people surveyed, 421 responded yes - they own smartphones. Using a 95% confidence level, compute a confidence interval estimate for the true proportion of adult residents of this city who have smartphones.\n- The first solution is step-by-step.\n- The second solution uses a function of the TI-83, 83+ or 84 calculators.\nLet X = the number of people in the sample who have cell phones. X is binomial. $X~B(500,\\frac{421}{500})$.\nTo calculate the confidence interval, you must find ${p}^{'}$, ${q}^{'}$, and EBP.\nn = 500\nx = the number of successes = 421\n${p}^{'}=\\frac{x}{n}=\\frac{421}{500}=0.842$\n${p}^{'}=0.842$ is the sample proportion; this is the point estimate of the population proportion.\n${q}^{'}=1-{p}^{'}=1-0.842=0.158$\nSince CL = 0.95, then α = 1 – CL = 1 – 0.95 = 0.05 $(\\frac{\\alpha}{2})$ = 0.025.\nThen ${z}_{\\frac{\\alpha}{2}}={z}_{0.025}=1.96$\nUse the TI-83, 83+, or 84+ calculator command invNorm(0.975,0,1) to find z0.025. Remember that the area to the right of z0.025 is 0.025 and the area to the left of z0.025 is 0.975. This can also be found using appropriate commands on other calculators, using a computer, or using a Standard Normal probability table.\n$EBP=({z}_{\\frac{\\alpha}{2}})\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}}=(1.96)\\sqrt{\\frac{(0.842)(0.158)}{500}}=0.032$\n${p}^{'}–EBP=0.842–0.032=0.81$\n${p}^{'}+EBP=0.842+0.032=0.874$\nThe confidence interval for the true binomial population proportion is $({p}^{'}–EBP,{p}^{'}+EBP)=(0.810,0.874).$\nInterpretation: We estimate with 95% confidence that between 81% and 87.4% of all adult residents of this city have smartphones.\nExplanation of 95% Confidence Level: Ninety-five percent of the confidence intervals constructed in this way would contain the true value for the population proportion of all adult residents of this city who have smartphones.\nPress STAT and arrow over to TESTS. Arrow down to A:1-PropZint. Press ENTER. Arrow down to $x$ and enter 421. Arrow down to $n$ and enter 500. Arrow down to C-Level and enter.95. Arrow down to Calculate and press ENTER. The confidence interval is (0.81003, 0.87397).\nTry It\nSuppose 250 randomly selected people are surveyed to determine if they own a tablet. Of the 250 surveyed, 98 reported owning a tablet. Using a 95% confidence level, compute a confidence interval estimate for the true proportion of people who own tablets.\nFor a class project, a political science student at a large university wants to estimate the percent of students who are registered voters. He surveys 500 students and finds that 300 are registered voters. Compute a 90% confidence interval for the true percent of students who are registered voters, and interpret the confidence interval.\n- The first solution is step-by-step.\n- The second solution uses a function of the TI-83, 83+, or 84 calculators.\nx = 300 and n = 500\n${p}^{'}=\\frac{x}{n}=\\frac{300}{500}=0.600$\n${q}^{'}=1-{p}^{'}=1-0.600=0.400$\nSince CL = 0.90, then α = 1 – CL = 1 – 0.90 = 0.10$(\\frac{\\alpha}{2})$ = 0.05\n${z}_{\\frac{\\alpha}{2}}$ = z0.05 = 1.645\nUse the TI-83, 83+, or 84+ calculator command invNorm(0.95,0,1) to find z0.05. Remember that the area to the right of z0.05 is 0.05 and the area to the left of z0.05 is 0.95. This can also be found using appropriate commands on other calculators, using a computer, or using a standard normal probability table.\n$EBP=({z}_{\\frac{\\alpha}{2}})\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}}=(1.645)\\sqrt{\\frac{(0.60)(0.40)}{500}}=0.036$\n${p}^{'}–EBP=0.60-0.036=0.564$\n${p}^{'}+EBP=0.60+0.036=0.636$\nThe confidence interval for the true binomial population proportion is (${p}^{'}$ – EBP, ${p}^{'}$ + EBP) = (0.564,0.636).\n- Interpretation: We estimate with 90% confidence that the true percent of all students that are registered voters is between 56.4% and 63.6%.\n- Alternate Wording: We estimate with 90% confidence that between 56.4% and 63.6% of ALL students are registered voters.\nExplanation of 90% Confidence Level: Ninety percent of all confidence intervals constructed in this way contain the true value for the population percent of students that are registered voters.\nPress STAT and arrow over to TESTS. Arrow down to A:1-PropZint. Press ENTER. Arrow down to $x$ and enter 300. Arrow down to $n$ and enter 500. Arrow down to C-Level and enter 0.90. Arrow down to Calculate and press ENTER. The confidence interval is (0.564, 0.636).\nTry It\nA student polls their school to see if students in the school district are for or against the new legislation regarding school uniforms. They survey 600 students and finds that 480 are against the new legislation.\na. Compute a 90% confidence interval for the true percent of students who are against the new legislation, and interpret the confidence interval.\nb. In a sample of 300 students, 68% said they own an iPod and a smart phone. Compute a 97% confidence interval for the true percent of students who own an iPod and a smartphone.\n“Plus Four” Confidence Interval for p\nThere is a certain amount of error introduced into the process of calculating a confidence interval for a proportion. Because we do not know the true proportion for the population, we are forced to use point estimates to calculate the appropriate standard deviation of the sampling distribution. Studies have shown that the resulting estimation of the standard deviation can be flawed.\nFortunately, there is a simple adjustment that allows us to produce more accurate confidence intervals. We simply pretend that we have four additional observations. Two of these observations are successes and two are failures. The new sample size, then, is n + 4, and the new count of successes is x + 2.\nComputer studies have demonstrated the effectiveness of this method. It should be used when the confidence level desired is at least 90% and the sample size is at least ten.\nA random sample of 25 statistics students was asked: “Have you smoked a cigarette in the past week?” Six students reported smoking within the past week. Use the “plus-four” method to find a 95% confidence interval for the true proportion of statistics students who smoke.\nSix students out of 25 reported smoking within the past week, so x = 6 and n = 25. Because we are using the “plus-four” method, we will use x = 6 + 2 = 8 and n = 25 + 4 = 29.\n${p}^{'}=\\frac{x}{n}=\\frac{8}{29}\\approx0.276$\n${q}^{'}=1–{p}^{'}=1–0.276=0.724$\nSince CL = 0.95, we know α = 1 – 0.95 = 0.05 and $\\frac{\\alpha}{2}$ = 0.025.\n${z}_{0.025}=1.96$\n$EBP=({z}_{\\frac{\\alpha}{2}})\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}}=(1.96)\\sqrt{\\frac{0.276(0.724)}{29}}\\approx0.163$\n${p}^{'}$ – EBP = 0.276 – 0.163 = 0.113\n${p}^{'}$ + EBP = 0.276 + 0.163 = 0.439\nWe are 95% confident that the true proportion of all statistics students who smoke cigarettes is between 0.113 and 0.439.\nPress STAT and arrow over to TESTS. Arrow down to A:1-PropZint. Press ENTER.\nREMINDER\nRemember that the plus-four method assume an additional four trials: two successes and two failures. You do not need to change the process for calculating the confidence interval; simply update the values of x and n to reflect these additional trials.\nArrow down to x and enter eight. Arrow down to n and enter 29. Arrow down to C-Level and enter 0.95. Arrow down to Calculate and press ENTER. The confidence interval is (0.113, 0.439).\nTry It\nOut of a random sample of 65 first-year students at State University, 31 students have declared a major. Use the “plus-four” method to find a 96% confidence interval for the true proportion of first-year students at State University who have declared a major.\nA marketing research firm conducted a survey regarding the potential purchase of electric vehicles among adults aged 18–29. In a group of 50 adults aged 18–29, 13 of them reported they would consider the purchase of an electric vehicle. Use the “plus four” method to find a 90% confidence interval for the true proportion of adults aged 18–29 who would consider the purchase of an electric vehicle.\nUsing “plus-four,” we have x = 13 + 2 = 15 and n = 50 + 4 = 54.\n${p}^{'}=\\frac{15}{54}\\approx0.278$\n${q}^{'}=1–{p}^{'}=1-0.241=0.722$\nSince CL = 0.90, we know α = 1 – 0.90 = 0.10 and $\\frac{\\alpha}{2}$ = 0.05.\n${z}_{0.05}=1.645$\n$EBP=({z}_{\\frac{\\alpha}{2}})(\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}})=(1.645)(\\sqrt{\\frac{(0.278)(0.722)}{54}})\\approx0.100$\n${p}^{'}$ – EBP = 0.278 – 0.100 = 0.178\n${p}^{'}$ + EBP = 0.278 + 0.100 = 0.378\nWe are 90% confident that between 17.8% and 37.8% of adults aged 18–29 would consider the purchase of an electric vehicle.\nPress STAT and arrow over to TESTS. Arrow down to A:1-PropZint. Press ENTER. Arrow down to x and enter 15. Arrow down to n and enter 54. Arrow down to C-Level and enter 0.90. Arrow down to Calculate and press ENTER. The confidence interval is (0.178, 0.378).\nTry It\nThe survey referenced in Example talked to adults aged 18–29 in smaller focus groups but also interviewed additional individuals over the phone. When the study was complete, 588 adults aged 18–29 had answered the question about their potential purchase of an electric vehicle with 159 saying that they would consider such a purchase. Use the “plus-four” method to find a 90% confidence interval for the true proportion of adults aged 18–29 who would consider the purchase of an electric vehicle based on this larger sample. Compare the results to those in Example.\nCalculating the Sample Size n\nIf researchers desire a specific margin of error, then they can use the error bound formula to calculate the required sample size.\nThe error bound formula for a population proportion is\n- $EBP=({z}_{\\frac{\\alpha}{2}})(\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}})$\n- Solving for n gives you an equation for the sample size.\n- $n=\\frac{{({z}_{\\frac{\\alpha}{2}})}^{2}({p}^{'}{q}^{'})}{EB{P}^{2}}$\nSuppose a mobile phone company wants to determine the current percentage of customers aged 50+ who use text messaging on their cell phones. How many customers aged 50+ should the company survey in order to be 90% confident that the estimated (sample) proportion is within three percentage points of the true population proportion of customers aged 50+ who use text messaging on their cell phones.\nFrom the problem, we know that EBP = 0.03 (3%=0.03) and ${z}_{\\frac{\\alpha}{2}}$ z0.05 = 1.645 because the confidence level is 90%.\nHowever, in order to find n, we need to know the estimated (sample) proportion p′. Remember that q′ = 1 – p′. But, we do not know p′ yet. Since we multiply p′ and q′ together, we make them both equal to 0.5 because p′q′ = (0.5)(0.5) = 0.25 results in the largest possible product. (Try other products: (0.6)(0.4) = 0.24; (0.3)(0.7) = 0.21; (0.2)(0.8) = 0.16 and so on). The largest possible product gives us the largest n. This gives us a large enough sample so that we can be 90% confident that we are within three percentage points of the true population proportion. To calculate the sample size n, use the formula and make the substitutions.\n$n=\\frac{{z}^{2}{p}^{'}{q}^{'}}{EB{P}^{2}}$ gives $n=\\frac{{1.645}^{2}(0.5)(0.5)}{{0.03}^{2}}=751.7$\nRound the answer to the next higher value. The sample size should be 752 cell phone customers aged 50+ in order to be 90% confident that the estimated (sample) proportion is within three percentage points of the true population proportion of all customers aged 50+ who use text messaging on their cell phones.\nTry It\nSuppose an internet marketing company wants to determine the current percentage of customers who click on ads on their smartphones. How many customers should the company survey in order to be 90% confident that the estimated proportion is within five percentage points of the true population proportion of customers who click on ads on their smartphones?\nReferences\nJensen, Tom. “Democrats, Republicans Divided on Opinion of Music Icons.” Public Policy Polling. Available online at http://www.publicpolicypolling.com/Day2MusicPoll.pdf (accessed July 2, 2013).\nMadden, Mary, Amanda Lenhart, Sandra Coresi, Urs Gasser, Maeve Duggan, Aaron Smith, and Meredith Beaton. “Teens, Social Media, and Privacy.” PewInternet, 2013. Available online at http://www.pewinternet.org/Reports/2013/Teens-Social-Media-And-Privacy.aspx (accessed July 2, 2013).\nPrince Survey Research Associates International. “2013 Teen and Privacy Management Survey.” Pew Research Center: Internet and American Life Project. Available online at http://www.pewinternet.org/~/media//Files/Questionnaire/2013/Methods%20and%20Questions_Teens%20and%20Social%20Media.pdf (accessed July 2, 2013).\nSaad, Lydia. “Three in Four U.S. Workers Plan to Work Pas Retirement Age: Slightly more say they will do this by choice rather than necessity.” Gallup® Economy, 2013. Available online at http://www.gallup.com/poll/162758/three-four-workers-plan-work-past-retirement-age.aspx (accessed July 2, 2013).\nThe Field Poll. Available online at http://field.com/fieldpollonline/subscribers/ (accessed July 2, 2013).\nZogby. “New SUNYIT/Zogby Analytics Poll: Few Americans Worry about Emergency Situations Occurring in Their Community; Only one in three have an Emergency Plan; 70% Support Infrastructure ‘Investment’ for National Security.” Zogby Analytics, 2013. Available online at http://www.zogbyanalytics.com/news/299-americans-neither-worried-nor-prepared-in-case-of-a-disaster-sunyit-zogby-analytics-poll (accessed July 2, 2013).\n“52% Say Big-Time College Athletics Corrupt Education Process.” Rasmussen Reports, 2013. Available online at http://www.rasmussenreports.com/public_content/lifestyle/sports/may_2013/52_say_big_time_college_athletics_corrupt_education_process (accessed July 2, 2013).\nChapter Review\nSome statistical measures, like many survey questions, measure qualitative rather than quantitative data. In this case, the population parameter being estimated is a proportion. It is possible to create a confidence interval for the true population proportion following procedures similar to those used in creating confidence intervals for population means. The formulas are slightly different, but they follow the same reasoning.\nLet ${p}^{'}$ represent the sample proportion, x/n, where x represents the number of successes and n represents the sample size. Let ${q}^{'}$ = 1 – ${p}^{'}$. Then the confidence interval for a population proportion is given by the following formula:\n(lower bound, upper bound) $=({p}^{'}–EBP,{p}^{'}+EBP)=({p}^{'}–z\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}},{p}^{'}+z\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}})$\nThe “plus four” method for calculating confidence intervals is an attempt to balance the error introduced by using estimates of the population proportion when calculating the standard deviation of the sampling distribution. Simply imagine four additional trials in the study; two are successes and two are failures. Calculate ${p}^{'}=\\frac{x+2}{n+4}$, and proceed to find the confidence interval. When sample sizes are small, this method has been demonstrated to provide more accurate confidence intervals than the standard formula used for larger samples.\nFormula Review\np′ = x / n where x represents the number of successes and n represents the sample size. The variable p′ is the sample proportion and serves as the point estimate for the true population proportion.\nq′ = 1 – p′\n${p}^{'}~N(p,\\sqrt{\\frac{pq}{n}})$ The variable ${p}^{'}$ has a binomial distribution that can be approximated with the normal distribution shown here.\nEBP = the error bound for a proportion = ${z}_{\\frac{\\alpha}{2}}\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}}$\nConfidence interval for a proportion:\n(lower bound, upper bound) $=({p}^{'}–EBP,{p}^{'}+EBP)=({p}^{'}–z\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}},{p}^{'}+z\\sqrt{\\frac{{p}^{'}{q}^{'}}{n}})$\n$n=\\frac{{z}_{\\frac{\\alpha}{2}}{}^{2}{p}^{'}{q}^{'}}{EB{P}^{2}}$ provides the number of participants needed to estimate the population proportion with confidence 1 - α and margin of error EBP.\nUse the normal distribution for a single population proportion $p'=\\frac{x}{n}$\n$EBP=({z}_{\\frac{\\alpha}{2}})\\sqrt{\\frac{p'q'}{n}}p'+q'=1$\nThe confidence interval has the format (${p}^{'}$ – EBP, ${p}^{'}$ + EBP).\n$\\overline{x}$ is a point estimate for μ\n${p}^{'}$ is a point estimate for ρ\ns is a point estimate for σ\nUse the following information to answer the next two exercises: Marketing companies are interested in knowing the population percent of women who make the majority of household purchasing decisions.\nWhen designing a study to determine this population proportion, what is the minimum number you would need to survey to be 90% confident that the population proportion is estimated to within 0.05?\nIf it were later determined that it was important to be more than 90% confident and a new survey were commissioned, how would it affect the minimum number you need to survey? Why?\nThe sample size needed would increase. As the confidence level increases, $\\alpha$ decreases and ${z}_{(\\frac{a}{2})}$ increases. To maintain the same error bound, the size of the sample needs to increase.\nUse the following information to answer the next five exercises: Suppose the marketing company did do a survey. They randomly surveyed 200 households and found that in 120 of them, the woman made the majority of the purchasing decisions. We are interested in the population proportion of households where women make the majority of the purchasing decisions.\nIdentify the following:\n- x = ______\n- n = ______\n- ${p}^{'}$ = ______\nDefine the random variables X and ${p}^{'}$ in words.\nX is the number of “successes” where the woman makes the majority of the purchasing decisions for the household. P′ is the percentage of households sampled where the woman makes the majority of the purchasing decisions for the household.\nWhich distribution should you use for this problem?\nConstruct a 95% confidence interval for the population proportion of households where the women make the majority of the purchasing decisions. State the confidence interval, sketch the graph, and calculate the error bound.\nCI: (0.5321, 0.6679)\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 0.6 on the horizontal axis. A central region is shaded between points 0.5321 and 0.6679.]\nEBM: 0.0679\nList two difficulties the company might have in obtaining random results, if this survey were done by email.\nUse the following information to answer the next five exercises: Of 1,050 randomly selected adults, 360 identified themselves as manual laborers, 280 identified themselves as non-manual wage earners, 250 identified themselves as mid-level managers, and 160 identified themselves as executives. In the survey, 82% of manual laborers preferred trucks, 62% of non-manual wage earners preferred trucks, 54% of mid-level managers preferred trucks, and 26% of executives preferred trucks.\nWe are interested in finding the 95% confidence interval for the percent of executives who prefer trucks. Define random variables X and P′ in words.\nX is the number of “successes” where an executive prefers a truck. P′ is the percentage of executives sampled who prefer a truck.\nWhich distribution should you use for this problem?\nConstruct a 95% confidence interval. State the confidence interval, sketch the graph, and calculate the error bound.\nCI: (0.19432, 0.33068)\n[Image: This is a normal distribution curve. The peak of the curve coincides with the point 0.26 on the horizontal axis. A central region is shaded between points 0.1943 and 0.3307.]\nEBM: 0.0707\nSuppose we want to lower the sampling error. What is one way to accomplish that?\nThe sampling error given in the survey is ±2%. Explain what the ±2% means.\nThe sampling error means that the true mean can be 2% above or below the sample mean.\nUse the following information to answer the next five exercises: A poll of 1,200 voters asked what the most significant issue was in the upcoming election. Sixty-five percent answered the economy. We are interested in the population proportion of voters who feel the economy is the most important.\nDefine the random variable X in words.\nDefine the random variable P′ in words.\nP′ is the proportion of voters sampled who said the economy is the most important issue in the upcoming election.\nWhich distribution should you use for this problem?\nConstruct a 90% confidence interval, and state the confidence interval and the error bound.\nCI: (0.62735, 0.67265)\nEBM: 0.02265\nWhat would happen to the confidence interval if the level of confidence were 95%?\nUse the following information to answer the next 16 exercises: The Ice Chalet offers dozens of different beginning ice-skating classes. All of the class names are put into a bucket. The 5 P.M., Monday night, ages 8 to 12, beginning ice-skating class was picked. In that class were 64 girls and 16 boys. Suppose that we are interested in the true proportion of girls, ages 8 to 12, in all beginning ice-skating classes at the Ice Chalet. Assume that the children in the selected class are a random sample of the population.\nWhat is being counted?\nThe number of girls, ages 8 to 12, in the 5 P.M. Monday night beginning ice-skating class.\nIn words, define the random variable X.\nCalculate the following:\n- x = _______\n- n = _______\n- p′ = _______\n- x = 64\n- n = 80\n- p′ = 0.8\nState the estimated distribution of X. X~________\nDefine a new random variable P′. What is p′ estimating?\np\nIn words, define the random variable P′.\nState the estimated distribution of P′. Construct a 92% Confidence Interval for the true proportion of girls in the ages 8 to 12 beginning ice-skating classes at the Ice Chalet.\n${P}^{'}~N(0.8,\\sqrt{\\frac{(0.8)(0.2)}{80}})$. (0.72171, 0.87829).\nHow much area is in both tails (combined)?\nHow much area is in each tail?\n0.04\nCalculate the following:\n- lower limit\n- upper limit\n- error bound\nThe 92% confidence interval is _______.\n(0.72; 0.88)\nFill in the blanks on the graph with the areas, upper and lower limits of the confidence interval, and the sample proportion.\n[Image: Normal distribution curve with two vertical upward lines from the x-axis to the curve. The confidence interval is between these two lines. The residual areas are on either side.]\nIn one complete sentence, explain what the interval means.\nWith 92% confidence, we estimate the proportion of girls, ages 8 to 12, in a beginning ice-skating class at the Ice Chalet to be between 72% and 88%.\nUsing the same p′ and level of confidence, suppose that n were increased to 100. Would the error bound become larger or smaller? How do you know?\nUsing the same p′ and n = 80, how would the error bound change if the confidence level were increased to 98%? Why?\nThe error bound would increase. Assuming all other variables are kept constant, as the confidence level increases, the area under the curve corresponding to the confidence level becomes larger, which creates a wider interval and thus a larger error.\nIf you decreased the allowable error bound, why would the minimum sample size increase (keeping the same level of confidence)?\nHomework\nInsurance companies are interested in knowing the population percent of drivers who always buckle up before riding in a car.\n- When designing a study to determine this population proportion, what is the minimum number you would need to survey to be 95% confident that the population proportion is estimated to within 0.03?\n- If it were later determined that it was important to be more than 95% confident and a new survey was commissioned, how would that affect the minimum number you would need to survey? Why?\n- 1,068\n- The sample size would need to be increased since the critical value increases as the confidence level increases.\nSuppose that the insurance companies did do a survey. They randomly surveyed 400 drivers and found that 320 claimed they always buckle up. We are interested in the population proportion of drivers who claim they always buckle up.\n-\n- x = __________\n- n = __________\n- p′ = __________\n- Define the random variables X and P′, in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population proportion who claim they always buckle up.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- If this survey were done by telephone, list three difficulties the companies might have in obtaining random results.\nAccording to a recent survey of 1,200 people, 61% feel that the president is doing an acceptable job. We are interested in the population proportion of people who feel the president is doing an acceptable job.\n- Define the random variables X and P′ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 90% confidence interval for the population proportion of people who feel the president is doing an acceptable job.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n-\nX = the number of people who feel that the president is doing an acceptable job;\nP′ = the proportion of people in a sample who feel that the president is doing an acceptable job.\n- $N(0.61,\\sqrt{\\frac{(0.61)(0.39)}{1200}})$\n-\n- CI: (0.59, 0.63)\n- Answers may vary.\n- EBM: 0.02\nAn article regarding interracial dating and marriage recently appeared in the Washington Post. Of the 1,709 randomly selected adults, 315 identified themselves as Hispanic/Latino, 323 identified themselves as Black, 254 identified themselves as Asian, and 779 identified themselves as White. In this survey, 86% of Black people said that they would welcome a White person into their families. Among Asian people, 77% would welcome a White person into their families, 71% would welcome a Hispanic/Latino person, and 66% would welcome a Black person.\n- We are interested in finding the 95% confidence interval for the percent of all Black adults who would welcome a White person into their families. Define the random variables X and P′, in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\nRefer to the information in Exercise.\n- Construct three 95% confidence intervals.\n- percent of all Asians who would welcome a White person into their families.\n- percent of all Asians who would welcome a Hispanic/Latino into their families.\n- percent of all Asians who would welcome a Black person into their families.\n- Even though the three point estimates are different, do any of the confidence intervals overlap? Which?\n- For any intervals that do overlap, in words, what does this imply about the significance of the differences in the true proportions?\n- For any intervals that do not overlap, in words, what does this imply about the significance of the differences in the true proportions?\n-\n- (0.72, 0.82)\n- (0.65, 0.76)\n- (0.60, 0.72)\n- Yes, the intervals (0.72, 0.82) and (0.65, 0.76) overlap, and the intervals (0.65, 0.76) and (0.60, 0.72) overlap.\n- We can say that there does not appear to be a significant difference between the proportion of Asian adults who say that their families would welcome a White person into their families and the proportion of Asian adults who say that their families would welcome a Hispanic/Latino person into their families.\n- We can say that there is a significant difference between the proportion of Asian adults who say that their families would welcome a White person into their families and the proportion of Asian adults who say that their families would welcome a Black person into their families.\nStanford University conducted a study of whether running is healthy for people over age 50. During the first eight years of the study, 1.5% of the 451 members of the 50-Plus Fitness Association died. We are interested in the proportion of people over 50 who ran and died in the same eight-year period.\n- Define the random variables X and P′ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 97% confidence interval for the population proportion of people over 50 who ran and died in the same eight–year period.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- Explain what a “97% confidence interval” means for this study.\nA telephone poll of 1,000 adult Americans was reported in an issue of Time Magazine. One of the questions asked was “What is the main problem facing the country?” Twenty percent answered “crime.” We are interested in the population proportion of adult Americans who feel that crime is the main problem.\n- Define the random variables X and P′ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population proportion of adult Americans who feel that crime is the main problem.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- Suppose we want to lower the sampling error. What is one way to accomplish that?\n- The sampling error given by Yankelovich Partners, Inc. (which conducted the poll) is ±3%. In one to three complete sentences, explain what the ±3% represents.\n- X = the number of adult Americans who feel that crime is the main problem; ${p}^{'}$ = the proportion of adult Americans who feel that crime is the main problem\n- Since we are estimating a proportion, given ${p}^{'}$ = 0.2 and n = 1000, the distribution we should use is $N(0.2,\\sqrt{\\frac{(0.2)(0.8)}{1000}})$.\n-\n- CI: (0.18, 0.22)\n- Answers may vary.\n- EBM: 0.02\n- One way to lower the sampling error is to increase the sample size.\n- The stated “± 3%” represents the maximum error bound. This means that those doing the study are reporting a maximum error of 3%. Thus, they estimate the percentage of adult Americans who feel that crime is the main problem to be between 18% and 22%.\nRefer to Exercise. Another question in the poll was “[How much are] you worried about the quality of education in our schools?” Sixty-three percent responded “a lot”. We are interested in the population proportion of adult Americans who are worried a lot about the quality of education in our schools.\n- Define the random variables X and P′ in words.\n- Which distribution should you use for this problem? Explain your choice.\n- Construct a 95% confidence interval for the population proportion of adult Americans who are worried a lot about the quality of education in our schools.\n- State the confidence interval.\n- Sketch the graph.\n- Calculate the error bound.\n- The sampling error given by Yankelovich Partners, Inc. (which conducted the poll) is ±3%. In one to three complete sentences, explain what the ±3% represents.\nUse the following information to answer the next three exercises: According to a Field Poll, 79% of Georgia adults (actual results are 400 out of 506 surveyed) feel that “education and our schools” is one of the top issues facing the state. We wish to construct a 90% confidence interval for the true proportion of Georgia adults who feel that education and the schools is one of the top issues facing Georgia.\nA point estimate for the true population proportion is:\n- 0.90\n- 1.27\n- 0.79\n- 400\nc\nA 90% confidence interval for the population proportion is _______.\n- (0.761, 0.820)\n- (0.125, 0.188)\n- (0.755, 0.826)\n- (0.130, 0.183)\nThe error bound is approximately _____.\n- 1.581\n- 0.791\n- 0.059\n- 0.030\nd\nUse the following information to answer the next two exercises: Five hundred and eleven (511) homes in a certain southern California community are randomly surveyed to determine if they meet minimal earthquake preparedness recommendations. One hundred seventy-three (173) of the homes surveyed met the minimum recommendations for earthquake preparedness, and 338 did not.\nFind the confidence interval at the 90% Confidence Level for the true population proportion of southern California community homes meeting at least the minimum recommendations for earthquake preparedness.\n- (0.2975, 0.3796)\n- (0.6270, 0.6959)\n- (0.3041, 0.3730)\n- (0.6204, 0.7025)\nThe point estimate for the population proportion of homes that do not meet the minimum recommendations for earthquake preparedness is ______.\n- 0.6614\n- 0.3386\n- 173\n- 338\na\nIn a specific year, Gallup reported that of the 1,005 people surveyed, 76% of U.S. workers believe that they will continue working past retirement age. The confidence level for this study was reported at 95% with a ±3% margin of error.\n- Determine the estimated proportion from the sample.\n- Determine the sample size.\n- Identify CL and α.\n- Calculate the error bound based on the information provided.\n- Compare the error bound in part d to the margin of error reported by Gallup. Explain any differences between the values.\n- Create a confidence interval for the results of this study.\n- A reporter is covering the release of this study for a local news station. How should she explain the confidence interval to her audience?\nA national survey of 1,000 adults was conducted by Rasmussen Reports. It concluded with 95% confidence that 49% to 55% of Americans believe that big-time college sports programs corrupt the process of higher education.\n- Find the point estimate and the error bound for this confidence interval.\n- Can we (with 95% confidence) conclude that more than half of all American adults believe this?\n- Use the point estimate from part a and n = 1,000 to calculate a 75% confidence interval for the proportion of American adults that believe that major college sports programs corrupt higher education.\n- Can we (with 75% confidence) conclude that at least half of all American adults believe this?\n- ${p}^{'}$ = $\\frac{\\text{(0}\\text{.55 + 0}\\text{.49)}}{\\text{2}}$ = 0.52; EBP = 0.55 - 0.52 = 0.03\n- No, the confidence interval includes values less than or equal to 0.50. It is possible that less than half of the population believe this.\n- CL = 0.75, so α = 1 – 0.75 = 0.25 and $\\frac{\\alpha}{2}=0.125{z}_{\\frac{\\alpha}{2}}=1.150$. (The area to the right of this z is 0.125, so the area to the left is 1 – 0.125 = 0.875.) $EBP=(1.150)\\sqrt{\\frac{0.52(0.48)}{1,000}}\\approx0.018$ (p′ - EBP, p′ + EBP) = (0.52 – 0.018, 0.52 + 0.018) = (0.502, 0.538)\nAlternate Solution\nSTAT TESTS A: 1-PropZinterval with x = (0.52)(1,000), n = 1,000, CL = 0.75.\nAnswer is (0.502, 0.538)\n- Yes – this interval does not fall less than 0.50 so we can conclude that at least half of all American adults believe that major sports programs corrupt education – but we do so with only 75% confidence.\nPublic Policy Polling recently conducted a survey asking adults across the U.S. about music preferences. When asked, 80 of the 571 participants admitted that they have illegally downloaded music.\n- Create a 99% confidence interval for the true proportion of American adults who have illegally downloaded music.\n- This survey was conducted through automated telephone interviews. The error bound of the survey compensates for sampling error, or natural variability among samples. List some factors that could affect the survey’s outcome that are not covered by the margin of error.\n- Without performing any calculations, describe how the confidence interval would change if the confidence level changed from 99% to 90%.\nYou plan to conduct a survey on your college campus to learn about the political awareness of students. You want to estimate the true proportion of college students on your campus who voted in the 2020 presidential election with 95% confidence and a margin of error no greater than five percent. How many students must you interview?\nCL = 0.95 α = 1 – 0.95 = 0.05 $\\frac{\\alpha}{2}$ = 0.025 ${z}_{\\frac{\\alpha}{2}}$ = 1.96. Use p′ = q′ = 0.5.\n$n=\\frac{{z}_{\\frac{\\alpha}{2}}{}^{2}{p}^{'}{q}^{'}}{EB{P}^{2}}=\\frac{{1.96}^{2}(0.5)(0.5)}{{0.05}^{2}}=384.16$\nYou need to interview at least 385 students to estimate the proportion to within 5% at 95% confidence.\nIn a recent Zogby International Poll, nine of 48 respondents rated the likelihood of a terrorist attack in their community as “likely” or “very likely.” Use the “plus four” method to create a 97% confidence interval for the proportion of American adults who believe that a terrorist attack in their community is likely or very likely. Explain what this confidence interval means in the context of the problem.\n\nGlossary\nBinomial Distribution a discrete random variable (RV) which arises from Bernoulli trials; there are a fixed number, n, of independent trials. “Independent” means that the result of any trial (for example, trial 1) does not affect the results of the following trials, and all trials are conducted under the same conditions. Under these circumstances the binomial RV X is defined as the number of successes in n trials. The notation is: X~B(n,p). The mean is μ = np and the standard deviation is σ = $\\sqrt{npq}$. The probability of exactly x successes in n trials is $P(X=x)=\\left(\\frac{n}{x} \\right){p}^{x}{q}^{n-x}$."}
{"document_id": "openstax-intro-statistics-m50270", "title": "Confidence Intervals — Confidence Interval (Home Costs)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/8-4-confidence-interval-home-costs", "license": "CC-BY-4.0", "text": "Confidence Interval (Home Costs)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will calculate the 90% confidence interval for the mean cost of a home in the area in which this school is located.\n- The student will interpret confidence intervals.\n- The student will determine the effects of changing conditions on the confidence interval.\nCollect the Data\nCheck the Real Estate section in your local newspaper. Record the sale prices for 35 randomly selected homes recently listed in the county.\nNOTE\nMany newspapers list them only one day per week. Also, we will assume that homes come up for sale randomly.\n- Complete the table:\nDescribe the Data\n- Compute the following:\n- $\\overline{x}$ = _____\n- ${s}_{x}$ = _____\n- n = _____\n- In words, define the random variable $\\overline{X}$.\n- State the estimated distribution to use. Use both words and symbols.\nFind the Confidence Interval\n- Calculate the confidence interval and the error bound.\n- Confidence Interval: _____\n- Error Bound: _____\n- How much area is in both tails (combined)? α = _____\n- How much area is in each tail? $\\frac{\\alpha}{2}$ = _____\n- Fill in the blanks on the graph with the area in each section. Then, fill in the number line with the upper and lower limits of the confidence interval and the sample mean.\n[Image: Normal distribution curve with two vertical upward lines from the x-axis to the curve. The confidence interval is between these two lines. The residual areas are on either side.]\n- Some students think that a 90% confidence interval contains 90% of the data. Use the list of data on the first page and count how many of the data values lie within the confidence interval. What percent is this? Is this percent close to 90%? Explain why this percent should or should not be close to 90%.\nDescribe the Confidence Interval\n- In two to three complete sentences, explain what a confidence interval means (in general), as if you were talking to someone who has not taken statistics.\n- In one to two complete sentences, explain what this confidence interval means for this particular study.\nUse the Data to Construct Confidence Intervals\n- Using the given information, construct a confidence interval for each confidence level given.\nConfidence level | EBM/Error Bound | Confidence Interval\n50%\n80%\n95%\n99%\n- What happens to the EBM as the confidence level increases? Does the width of the confidence interval increase or decrease? Explain why this happens."}
{"document_id": "openstax-intro-statistics-m50272", "title": "Confidence Intervals — Confidence Interval (Place of Birth)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/8-5-confidence-interval-place-of-birth", "license": "CC-BY-4.0", "text": "Confidence Interval (Place of Birth)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will calculate the 90% confidence interval the proportion of students in this school who were born in this state.\n- The student will interpret confidence intervals.\n- The student will determine the effects of changing conditions on the confidence interval.\nCollect the Data\n- Survey the students in your class, asking them if they were born in this state. Let X = the number that were born in this state.\n- n = ____________\n- x = ____________\n- In words, define the random variable P′.\n- State the estimated distribution to use.\nFind the Confidence Interval and Error Bound\n- Calculate the confidence interval and the error bound.\n- Confidence Interval: _____\n- Error Bound: _____\n- How much area is in both tails (combined)? α = _____\n- How much area is in each tail? $\\frac{\\alpha}{2}$ = _____\n- Fill in the blanks on the graph with the area in each section. Then, fill in the number line with the upper and lower limits of the confidence interval and the sample proportion.\n[Image: Normal distribution curve with two vertical upward lines from the x-axis to the curve. The confidence interval is between these two lines. The residual areas are on either side.]\nDescribe the Confidence Interval\n- In two to three complete sentences, explain what a confidence interval means (in general), as though you were talking to someone who has not taken statistics.\n- In one to two complete sentences, explain what this confidence interval means for this particular study.\n- Construct a confidence interval for each confidence level given.\nConfidence level | EBP/Error Bound | Confidence Interval\n50%\n80%\n95%\n99%\n- What happens to the EBP as the confidence level increases? Does the width of the confidence interval increase or decrease? Explain why this happens."}
{"document_id": "openstax-intro-statistics-m50274", "title": "Confidence Intervals — Confidence Interval (Women's Heights)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/8-6-confidence-interval-women-s-heights", "license": "CC-BY-4.0", "text": "Confidence Interval (Women's Heights)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will calculate a 90% confidence interval using the given data.\n- The student will determine the relationship between the confidence level and the percentage of constructed intervals that contain the population mean.\nGiven:\n59.4 | 71.6 | 69.3 | 65.0 | 62.9 | 66.5 | 61.7 | 55.2\n67.5 | 67.2 | 63.8 | 62.9 | 63.0 | 63.9 | 68.7 | 65.5\n61.9 | 69.6 | 58.7 | 63.4 | 61.8 | 60.6 | 69.8 | 60.0\n64.9 | 66.1 | 66.8 | 60.6 | 65.6 | 63.8 | 61.3 | 59.2\n64.1 | 59.3 | 64.9 | 62.4 | 63.5 | 60.9 | 63.3 | 66.3\n61.5 | 64.3 | 62.9 | 60.6 | 63.8 | 58.8 | 64.9 | 65.7\n62.5 | 70.9 | 62.9 | 63.1 | 62.2 | 58.7 | 64.7 | 66.0\n60.5 | 64.7 | 65.4 | 60.2 | 65.0 | 64.1 | 61.1 | 65.3\n64.6 | 59.2 | 61.4 | 62.0 | 63.5 | 61.4 | 65.5 | 62.3\n65.5 | 64.7 | 58.8 | 66.1 | 64.9 | 66.9 | 57.9 | 69.8\n58.5 | 63.4 | 69.2 | 65.9 | 62.2 | 60.0 | 58.1 | 62.5\n62.4 | 59.1 | 66.4 | 61.2 | 60.4 | 58.7 | 66.7 | 67.5\n63.2 | 56.6 | 67.7 | 62.5\n- Table lists the heights of 100 women. Use a random number generator to select ten data values randomly.\n- Calculate the sample mean and the sample standard deviation. Assume that the population standard deviation is known to be 3.3 inches. With these values, construct a 90% confidence interval for your sample of ten values. Write the confidence interval you obtained in the first space of Table.\n- Now write your confidence interval on the board. As others in the class write their confidence intervals on the board, copy them into Table.\n__________ | __________ | __________ | __________ | __________\n__________ | __________ | __________ | __________ | __________\n__________ | __________ | __________ | __________ | __________\n__________ | __________ | __________ | __________ | __________\n__________ | __________ | __________ | __________ | __________\n__________ | __________ | __________ | __________ | __________\n__________ | __________ | __________ | __________ | __________\n__________ | __________ | __________ | __________ | __________\nDiscussion Questions\n- The actual population mean for the 100 heights given Table is μ = 63.4. Using the class listing of confidence intervals, count how many of them contain the population mean μ; i.e., for how many intervals does the value of μ lie between the endpoints of the confidence interval?\n- Divide this number by the total number of confidence intervals generated by the class to determine the percent of confidence intervals that contains the mean μ. Write this percent here: _____________.\n- Is the percent of confidence intervals that contain the population mean μ close to 90%?\n- Suppose we had generated 100 confidence intervals. What do you think would happen to the percent of confidence intervals that contained the population mean?\n- When we construct a 90% confidence interval, we say that we are 90% confident that the true population mean lies within the confidence interval. Using complete sentences, explain what we mean by this phrase.\n- Some students think that a 90% confidence interval contains 90% of the data. Use the list of data given (the heights of women) and count how many of the data values lie within the confidence interval that you generated based on that data. How many of the 100 data values lie within your confidence interval? What percent is this? Is this percent close to 90%?\n- Explain why it does not make sense to count data values that lie in a confidence interval. Think about the random variable that is being used in the problem.\n- Suppose you obtained the heights of ten women and calculated a confidence interval from this information. Without knowing the population mean μ, would you have any way of knowing for certain if your interval actually contained the value of μ? Explain."}
{"document_id": "openstax-intro-statistics-m47033", "title": "Hypothesis Testing with One Sample — Null and Alternative Hypotheses", "source": "https://openstax.org/books/introductory-statistics-2e/pages/9-1-null-and-alternative-hypotheses", "license": "CC-BY-4.0", "text": "The actual test begins by considering two hypotheses. They are called the null hypothesis and the alternative hypothesis. These hypotheses contain opposing viewpoints.\nH0: The null hypothesis: It is a statement of no difference between the variables—they are not related. This can often be considered the status quo and as a result if you cannot accept the null it requires some action.\nHa: The alternative hypothesis: It is a claim about the population that is contradictory to H0 and what we conclude when we reject H0. This is usually what the researcher is trying to prove.\nSince the null and alternative hypotheses are contradictory, you must examine evidence to decide if you have enough evidence to reject the null hypothesis or not. The evidence is in the form of sample data.\nAfter you have determined which hypothesis the sample supports, you make a decision. There are two options for a decision. They are \"reject H0\" if the sample information favors the alternative hypothesis or \"do not reject H0\" or \"decline to reject H0\" if the sample information is insufficient to reject the null hypothesis.\nMathematical Symbols Used in H0 and Ha:\nH0 | Ha\nequal (=) | not equal (≠) or greater than (>) or less than (<)\ngreater than or equal to (≥) | less than (<)\nless than or equal to (≤) | more than (>)\nNOTE\nH0 always has a symbol with an equal in it. Ha never has a symbol with an equal in it. The choice of symbol depends on the wording of the hypothesis test. However, be aware that many researchers (including one of the co-authors in research work) use = in the null hypothesis, even with > or < as the symbol in the alternative hypothesis. This practice is acceptable because we only make the decision to reject or not reject the null hypothesis.\nH0: No more than 30% of the registered voters in Santa Clara County voted in the primary election. p ≤.30 Ha: More than 30% of the registered voters in Santa Clara County voted in the primary election. p > 30\nTry It\nA medical trial is conducted to test whether or not a new medicine reduces cholesterol by 25%. State the null and alternative hypotheses.\nWe want to test whether the mean GPA of students in American colleges is different from 2.0 (out of 4.0). The null and alternative hypotheses are: H0: μ = 2.0 Ha: μ ≠ 2.0\nTry It\nWe want to test whether the mean height of eighth graders is 66 inches. State the null and alternative hypotheses. Fill in the correct symbol (=, ≠, ≥, <, ≤, >) for the null and alternative hypotheses.\n- H0: μ __ 66\n- Ha: μ __ 66\nWe want to test if college students take less than five years to graduate from college, on the average. The null and alternative hypotheses are: H0: μ ≥ 5 Ha: μ < 5\nTry It\nWe want to test if it takes fewer than 45 minutes to teach a lesson plan. State the null and alternative hypotheses. Fill in the correct symbol (=, ≠, ≥, <, ≤, >) for the null and alternative hypotheses.\n- H0: μ __ 45\n- Ha: μ __ 45\nIn an issue of U. S. News and World Report, an article on school standards stated that about half of all students in France, Germany, and Israel take advanced placement exams and a third pass. The same article stated that 6.6% of U.S. students take advanced placement exams and 4.4% pass. Test if the percentage of U.S. students who take advanced placement exams is more than 6.6%. State the null and alternative hypotheses. H0: p ≤ 0.066 Ha: p > 0.066\nTry It\nOn a state driver’s test, about 40% pass the test on the first try. We want to test if more than 40% pass on the first try. Fill in the correct symbol (=, ≠, ≥, <, ≤, >) for the null and alternative hypotheses.\n- H0: p __ 0.40\n- Ha: p __ 0.40\nBring to class a newspaper, some news magazines, and some Internet articles. In groups, find articles from which your group can write null and alternative hypotheses. Discuss your hypotheses with the rest of the class.\nChapter Review\nIn a hypothesis test, sample data is evaluated in order to arrive at a decision about some type of claim. If certain conditions about the sample are satisfied, then the claim can be evaluated for a population. In a hypothesis test, we:\n- Evaluate the null hypothesis, typically denoted with H0. The null is not rejected unless the hypothesis test shows otherwise. The null statement must always contain some form of equality (=, ≤ or ≥)\n- Always write the alternative hypothesis, typically denoted with Ha or H1, using less than, greater than, or not equals symbols, i.e., (≠, >, or <).\n- If we reject the null hypothesis, then we can assume there is enough evidence to support the alternative hypothesis.\n- Never state that a claim is proven true or false. Keep in mind the underlying fact that hypothesis testing is based on probability laws; therefore, we can talk only in terms of non-absolute certainties.\nFormula Review\nH0 and Ha are contradictory.\nIf Ho has: | equal (=) | greater than or equal to (≥) | less than or equal to (≤)\nthen Ha has: | not equal (≠) or greater than (>) or less than (<) | less than (<) | greater than (>)\nIf α ≤ p-value, then do not reject H0.\nIf α > p-value, then reject H0.\nα is preconceived. Its value is set before the hypothesis test starts. The p-value is calculated from the data.\nYou are testing that the mean speed of your cable Internet connection is more than three Megabits per second. What is the random variable? Describe in words.\nThe random variable is the mean Internet speed in Megabits per second.\nYou are testing that the mean speed of your cable Internet connection is more than three Megabits per second. State the null and alternative hypotheses.\nThe American family has an average of two children. What is the random variable? Describe in words.\nThe random variable is the mean number of children an American family has.\nThe mean entry level salary of an employee at a company is \\$58,000. You believe it is higher for IT professionals in the company. State the null and alternative hypotheses.\nA sociologist claims the probability that a person picked at random in Times Square in New York City is visiting the area is 0.83. You want to test to see if the proportion is actually less. What is the random variable? Describe in words.\nThe random variable is the proportion of people picked at random in Times Square visiting the city.\nA sociologist claims the probability that a person picked at random in Times Square in New York City is visiting the area is 0.83. You want to test to see if the claim is correct. State the null and alternative hypotheses.\nIn a population of fish, approximately 42% are female. A test is conducted to see if, in fact, the proportion is less. State the null and alternative hypotheses.\n- H0: p = 0.42\n- Ha: p < 0.42\nSuppose that a recent article stated that the mean time spent in jail by a first–time convicted burglar is 2.5 years. A study was then done to see if the mean time has increased in the new century. A random sample of 26 first-time convicted burglars in a recent year was picked. The mean length of time in jail from the survey was 3 years with a standard deviation of 1.8 years. Suppose that it is somehow known that the population standard deviation is 1.5. If you were conducting a hypothesis test to determine if the mean length of jail time has increased, what would the null and alternative hypotheses be? The distribution of the population is normal.\n- H0: ________\n- Ha: ________\nA random survey of 75 student loan recipients revealed that the mean length of time in repayment is 17.4 years with a standard deviation of 6.3 years. If you were conducting a hypothesis test to determine if the population mean time in repayment could likely be 15 years, what would the null and alternative hypotheses be?\n- H0: __________\n- Ha: __________\n- H0: μ = 15\n- Ha: μ ≠ 15\nThe National Institute of Mental Health published an article stating that in any one-year period, approximately 9.5% of American adults suffer from depression or a depressive illness. Suppose that in a survey of 100 people in a certain town, seven of them suffered from depression or a depressive illness. If you were conducting a hypothesis test to determine if the true proportion of people in that town suffering from depression or a depressive illness is lower than the percent in the general adult American population, what would the null and alternative hypotheses be?\n- H0: ________\n- Ha: ________\nHomework\nSome of the following statements refer to the null hypothesis, some to the alternate hypothesis.\nState the null hypothesis, H0, and the alternative hypothesis. Ha, in terms of the appropriate parameter (μ or p).\n- The mean number of years Americans work before retiring is 34.\n- At most 60% of Americans vote in presidential elections.\n- The mean starting salary for San Jose State University graduates is at least \\$100,000 per year.\n- Twenty-nine percent of high school seniors get drunk each month.\n- Fewer than 5% of adults ride the bus to work in Los Angeles.\n- The mean number of cars a person owns in her lifetime is not more than ten.\n- About half of Americans prefer to live away from cities, given the choice.\n- Europeans have a mean paid vacation each year of six weeks.\n- The chance of developing breast cancer is under 11% for females.\n- Private universities' mean tuition cost is more than \\$20,000 per year.\n- H0: μ = 34; Ha: μ ≠ 34\n- H0: p ≤ 0.60; Ha: p > 0.60\n- H0: μ ≥ 100,000; Ha: μ < 100,000\n- H0: p = 0.29; Ha: p ≠ 0.29\n- H0: p = 0.05; Ha: p < 0.05\n- H0: μ ≤ 10; Ha: μ > 10\n- H0: p = 0.50; Ha: p ≠ 0.50\n- H0: μ = 6; Ha: μ ≠ 6\n- H0: p ≥ 0.11; Ha: p < 0.11\n- H0: μ ≤ 20,000; Ha: μ > 20,000\nOver the past few decades, public health officials have examined the link between weight concerns and teen girls' smoking. Researchers surveyed a group of 273 randomly selected teen girls living in Massachusetts (between 12 and 15 years old). After four years the girls were surveyed again. Sixty-three said they smoked to stay thin. Is there good evidence that more than 30% of the teen girls smoke to stay thin? The alternative hypothesis is:\n- p < 0.30\n- p ≤ 0.30\n- p ≥ 0.30\n- p > 0.30\nA statistics instructor believes that fewer than 20% of Evergreen Valley College (EVC) students attended the opening night midnight showing of the latest Marvel Universe movie. The instructor surveys 84 students and finds that 11 attended the midnight showing. An appropriate alternative hypothesis is:\n- p = 0.20\n- p > 0.20\n- p < 0.20\n- p ≤ 0.20\nc\nPreviously, an organization reported that teenagers spent 4.5 hours per week, on average, on the phone. The organization thinks that, currently, the mean is higher. Fifteen randomly chosen teenagers were asked how many hours per week they spend on the phone. The sample mean was 4.75 hours with a sample standard deviation of 2.0. Conduct a hypothesis test. The null and alternative hypotheses are:\n- Ho: $\\overline{x}$ = 4.5, Ha: $\\overline{x}$ > 4.5\n- Ho: μ ≥ 4.5, Ha: μ < 4.5\n- Ho: μ = 4.75, Ha: μ > 4.75\n- Ho: μ = 4.5, Ha: μ > 4.5\nReferences\nData from the National Institute of Mental Health. Available online at http://www.nimh.nih.gov/publicat/depression.cfm.\n\nGlossary\nHypothesis a statement about the value of a population parameter, in case of two hypotheses, the statement assumed to be true is called the null hypothesis (notation H0) and the contradictory statement is called the alternative hypothesis (notation Ha)."}
{"document_id": "openstax-intro-statistics-m47029", "title": "Hypothesis Testing with One Sample — Outcomes and the Type I and Type II Errors", "source": "https://openstax.org/books/introductory-statistics-2e/pages/9-2-outcomes-and-the-type-i-and-type-ii-errors", "license": "CC-BY-4.0", "text": "When you perform a hypothesis test, there are four possible outcomes depending on the actual truth (or falseness) of the null hypothesis H0 and the decision to reject or not. The outcomes are summarized in the following table:\nACTION | H0 IS ACTUALLY |...\nTrue | False\nDo not reject H0 | Correct Outcome | Type II error\nReject H0 | Type I Error | Correct Outcome\nThe four possible outcomes in the table are:\n- The decision is not to reject H0 when H0 is true (correct decision).\n- The decision is to reject H0 when H0 is true (incorrect decision known as aType I error).\n- The decision is not to reject H0 when, in fact, H0 is false (incorrect decision known as a Type II error).\n- The decision is to reject H0 when H0 is false (correct decision whose probability is called the Power of the Test).\nEach of the errors occurs with a particular probability. The Greek letters α and β represent the probabilities.\nα = probability of a Type I error = P(Type I error) = probability of rejecting the null hypothesis when the null hypothesis is true.\nβ = probability of a Type II error = P(Type II error) = probability of not rejecting the null hypothesis when the null hypothesis is false.\nα and β should be as small as possible because they are probabilities of errors. They are rarely zero.\nThe Power of the Test is 1 – β. Ideally, we want a high power that is as close to one as possible. Increasing the sample size can increase the Power of the Test.\nThe following are examples of Type I and Type II errors.\nSuppose the null hypothesis, H0, is: Navah's rock climbing equipment is safe.\nType I error: Navah thinks that her rock climbing equipment may not be safe when, in fact, it really is safe. Type II error: Navah thinks that her rock climbing equipment may be safe when, in fact, it is not safe.\nα = probability that Navah thinks her rock climbing equipment may not be safe when, in fact, it really is safe. β = probability that Navah thinks her rock climbing equipment may be safe when, in fact, it is not safe.\nNotice that, in this case, the error with the greater consequence is the Type II error. (If Navah thinks her rock climbing equipment is safe, she will go ahead and use it.)\nTry It\nSuppose the null hypothesis, H0, is: the blood cultures contain no traces of pathogen X. State the Type I and Type II errors.\nSuppose the null hypothesis, H0, is: The victim of an automobile accident is alive when they arrive at the emergency room of a hospital.\nType I error: The emergency crew thinks that the victim is dead when, in fact, the victim is alive. Type II error: The emergency crew does not know if the victim is alive when, in fact, the victim is dead.\nα = probability that the emergency crew thinks the victim is dead when, in fact, the victim is really alive = P(Type I error). β = probability that the emergency crew does not know if the victim is alive when, in fact, the victim is dead = P(Type II error).\nThe error with the greater consequence is the Type I error. (If the emergency crew thinks the victim is dead, they will not treat them.)\nTry It\nSuppose the null hypothesis, H0, is: a patient is not sick. Which type of error has the greater consequence, Type I or Type II?\nA company called Genetic Labs claims to be able to increase the likelihood that a pregnancy will result in a male being born. Statisticians want to test the claim. Suppose that the null hypothesis, H0, is: Genetic Labs has no effect on sex outcome.\nType I error: This results when a true null hypothesis is rejected. In the context of this scenario, we would state that we believe that Genetic Labs influences the sex outcome, when in fact it has no effect. The probability of this error occurring is denoted by the Greek letter alpha, α.\nType II error: This results when we fail to reject a false null hypothesis. In context, we would state that Genetic Labs does not influence the sex outcome of a pregnancy when, in fact, it does. The probability of this error occurring is denoted by the Greek letter beta, β.\nThe error of greater consequence would be the Type I error since people would use the Genetic Labs product in hopes of increasing the chances of having a male.\nTry It\n“Red tide” is a bloom of poison-producing algae–a few different species of a class of plankton called dinoflagellates. When the weather and water conditions cause these blooms, shellfish such as clams living in the area develop dangerous levels of a paralysis-inducing toxin. In Massachusetts, the Division of Marine Fisheries (DMF) monitors levels of the toxin in shellfish by regular sampling of shellfish along the coastline. If the mean level of toxin in clams exceeds 800 μg (micrograms) of toxin per kg of clam meat in any area, clam harvesting is banned there until the bloom is over and levels of toxin in clams subside. Describe both a Type I and a Type II error in this context, and state which error has the greater consequence.\nA certain experimental drug claims a cure rate of at least 75% for males with prostate cancer. Describe both the Type I and Type II errors in context. Which error is the more serious?\nType I: A cancer patient believes the cure rate for the drug is less than 75% when it actually is at least 75%.\nType II: A cancer patient believes the experimental drug has at least a 75% cure rate when it has a cure rate that is less than 75%.\nIn this scenario, the Type II error contains the more severe consequence. If a patient believes the drug works at least 75% of the time, this most likely will influence the patient’s (and doctor’s) choice about whether to use the drug as a treatment option.\nTry It\nDetermine both Type I and Type II errors for the following scenario:\nAssume a null hypothesis, H0, that states the percentage of adults with jobs is at least 88%.\nIdentify the Type I and Type II errors from these four statements.\n- Not to reject the null hypothesis that the percentage of adults who have jobs is at least 88% when that percentage is actually less than 88%\n- Not to reject the null hypothesis that the percentage of adults who have jobs is at least 88% when the percentage is actually at least 88%.\n- Reject the null hypothesis that the percentage of adults who have jobs is at least 88% when the percentage is actually at least 88%.\n- Reject the null hypothesis that the percentage of adults who have jobs is at least 88% when that percentage is actually less than 88%.\nChapter Review\nIn every hypothesis test, the outcomes are dependent on a correct interpretation of the data. Incorrect calculations or misunderstood summary statistics can yield errors that affect the results. A Type I error occurs when a true null hypothesis is rejected. A Type II error occurs when a false null hypothesis is not rejected.\nThe probabilities of these errors are denoted by the Greek letters α and β, for a Type I and a Type II error respectively. The power of the test, 1 – β, quantifies the likelihood that a test will yield the correct result of a true alternative hypothesis being accepted. A high power is desirable.\nFormula Review\nα = probability of a Type I error = P(Type I error) = probability of rejecting the null hypothesis when the null hypothesis is true.\nβ = probability of a Type II error = P(Type II error) = probability of not rejecting the null hypothesis when the null hypothesis is false.\nThe mean price of mid-sized cars in a region is \\$32,000. A test is conducted to see if the claim is true. State the Type I and Type II errors in complete sentences.\nType I: The mean price of mid-sized cars is \\$32,000, but we conclude that it is not \\$32,000.\nType II: The mean price of mid-sized cars is not \\$32,000, but we conclude that it is \\$32,000.\nA sleeping bag is tested to withstand temperatures of –15 °F. You think the bag cannot stand temperatures that low. State the Type I and Type II errors in complete sentences.\nFor Exercise 9.12, what are α and β in words?\nα = the probability that you think the bag cannot withstand -15 degrees F, when in fact it can\nβ = the probability that you think the bag can withstand -15 degrees F, when in fact it cannot\nIn words, describe 1 – β For Exercise 9.12.\nA group of doctors is deciding whether or not to perform an operation. Suppose the null hypothesis, H0, is: the surgical procedure will go well. State the Type I and Type II errors in complete sentences.\nType I: The procedure will go well, but the doctors think it will not.\nType II: The procedure will not go well, but the doctors think it will.\nA group of doctors is deciding whether or not to perform an operation. Suppose the null hypothesis, H0, is: the surgical procedure will go well. Which is the error with the greater consequence?\nThe power of a test is 0.981. What is the probability of a Type II error?\n0.019\nA group of divers is exploring an old sunken ship. Suppose the null hypothesis, H0, is: the sunken ship does not contain buried treasure. State the Type I and Type II errors in complete sentences.\nA microbiologist is testing a water sample for E-coli. Suppose the null hypothesis, H0, is: the sample does not contain E-coli. The probability that the sample does not contain E-coli, but the microbiologist thinks it does is 0.012. The probability that the sample does contain E-coli, but the microbiologist thinks it does not is 0.002. What is the power of this test?\n0.998\nA microbiologist is testing a water sample for E-coli. Suppose the null hypothesis, H0, is: the sample contains E-coli. Which is the error with the greater consequence?\nHomework\nState the Type I and Type II errors in complete sentences given the following statements.\n- The mean number of years Americans work before retiring is 34.\n- At most 60% of Americans vote in presidential elections.\n- The mean starting salary for San Jose State University graduates is at least \\$100,000 per year.\n- Twenty-nine percent of high school seniors get drunk each month.\n- Fewer than 5% of adults ride the bus to work in Los Angeles.\n- The mean number of cars a person owns in their lifetime is not more than ten.\n- About half of Americans prefer to live away from cities, given the choice.\n- Europeans have a mean paid vacation each year of six weeks.\n- The chance of developing breast cancer is under 11% for females.\n- Private universities mean tuition cost is more than \\$20,000 per year.\n- Type I error: We conclude that the mean is not 34 years, when it really is 34 years. Type II error: We conclude that the mean is 34 years, when in fact it really is not 34 years.\n- Type I error: We conclude that more than 60% of Americans vote in presidential elections, when the actual percentage is at most 60%.Type II error: We conclude that at most 60% of Americans vote in presidential elections when, in fact, more than 60% do.\n- Type I error: We conclude that the mean starting salary is less than \\$100,000, when it really is at least \\$100,000. Type II error: We conclude that the mean starting salary is at least \\$100,000 when, in fact, it is less than \\$100,000.\n- Type I error: We conclude that the proportion of high school seniors who get drunk each month is not 29%, when it really is 29%. Type II error: We conclude that the proportion of high school seniors who get drunk each month is 29% when, in fact, it is not 29%.\n- Type I error: We conclude that fewer than 5% of adults ride the bus to work in Los Angeles, when the percentage that do is really 5% or more. Type II error: We conclude that 5% or more adults ride the bus to work in Los Angeles when, in fact, fewer that 5% do.\n- Type I error: We conclude that the mean number of cars a person owns in their lifetime is more than 10, when in reality it is not more than 10. Type II error: We conclude that the mean number of cars a person owns in their lifetime is not more than 10 when, in fact, it is more than 10.\n- Type I error: We conclude that the proportion of Americans who prefer to live away from cities is not about half, though the actual proportion is about half. Type II error: We conclude that the proportion of Americans who prefer to live away from cities is half when, in fact, it is not half.\n- Type I error: We conclude that the duration of paid vacations each year for Europeans is not six weeks, when in fact it is six weeks. Type II error: We conclude that the duration of paid vacations each year for Europeans is six weeks when, in fact, it is not.\n- Type I error: We conclude that the proportion is less than 11%, when it is really at least 11%. Type II error: We conclude that the proportion of females who develop breast cancer is at least 11%, when in fact it is less than 11%.\n- Type I error: We conclude that the average tuition cost at private universities is more than \\$20,000, though in reality it is at most \\$20,000. Type II error: We conclude that the average tuition cost at private universities is at most \\$20,000 when, in fact, it is more than \\$20,000.\nFor statements a-j in Exercise 9.66, answer the following in complete sentences.\n- State a consequence of committing a Type I error.\n- State a consequence of committing a Type II error.\nWhen a new drug is created, the pharmaceutical company must subject it to testing before receiving the necessary permission from the Food and Drug Administration (FDA) to market the drug. Suppose the null hypothesis is “the drug is unsafe.” What is the Type II Error?\n- To conclude the drug is safe when in, fact, it is unsafe.\n- Not to conclude the drug is safe when, in fact, it is safe.\n- To conclude the drug is safe when, in fact, it is safe.\n- Not to conclude the drug is unsafe when, in fact, it is unsafe.\nb\nA statistics instructor believes that fewer than 20% of Evergreen Valley College (EVC) students attended the opening midnight showing of the latest Marvel Universe movie. The instructor surveys 84 students and finds that 11 of them attended the midnight showing. The Type I error is to conclude that the percent of EVC students who attended is ________.\n- at least 20%, when in fact, it is less than 20%.\n- 20%, when in fact, it is 20%.\n- less than 20%, when in fact, it is at least 20%.\n- less than 20%, when in fact, it is less than 20%.\nIt is believed that Lake Tahoe Community College (LTCC) Intermediate Algebra students get less than seven hours of sleep per night, on average. A survey of 22 LTCC Intermediate Algebra students generated a mean of 7.24 hours with a standard deviation of 1.93 hours. At a level of significance of 5%, do LTCC Intermediate Algebra students get less than seven hours of sleep per night, on average?\nThe Type II error is not to reject that the mean number of hours of sleep LTCC students get per night is at least seven when, in fact, the mean number of hours\n- is more than seven hours.\n- is at most seven hours.\n- is at least seven hours.\n- is less than seven hours.\nd\nPreviously, an organization reported that teenagers spent 4.5 hours per week, on average, on the phone. The organization thinks that, currently, the mean is higher. Fifteen randomly chosen teenagers were asked how many hours per week they spend on the phone. The sample mean was 4.75 hours with a sample standard deviation of 2.0. Conduct a hypothesis test, the Type I error is:\n- to conclude that the current mean hours per week is higher than 4.5, when in fact, it is higher\n- to conclude that the current mean hours per week is higher than 4.5, when in fact, it is the same\n- to conclude that the mean hours per week currently is 4.5, when in fact, it is higher\n- to conclude that the mean hours per week currently is no higher than 4.5, when in fact, it is not higher\n\nGlossary\nType I Error The decision is to reject the null hypothesis when, in fact, the null hypothesis is true.\nType II Error The decision is not to reject the null hypothesis when, in fact, the null hypothesis is false."}
{"document_id": "openstax-intro-statistics-m47036", "title": "Hypothesis Testing with One Sample — Probability Distribution Needed for Hypothesis Testing", "source": "https://openstax.org/books/introductory-statistics-2e/pages/9-3-probability-distribution-needed-for-hypothesis-testing", "license": "CC-BY-4.0", "text": "Earlier in the course, we discussed sampling distributions. Particular distributions are associated with various types of hypothesis testing.\nThe following table summarizes various hypothesis tests and corresponding probability distributions that will be used to conduct the test (based on the assumptions shown below):\nType of Hypothesis Test | Population Parameter | Estimated value (point estimate) | Probability Distribution Used\nHypothesis test for the mean, when the population standard deviation is known | Population mean $\\mu$ | Sample mean $\\overline{x}$ | Normal distribution, $\\overline{X}~N({\\mu}_{X},\\frac{{\\sigma}_{X}}{\\sqrt{n}})$\nHypothesis test for the mean, when the population standard deviation is unknown and the distribution of the sample mean is approximately normal | Population mean $\\mu$ | Sample mean $\\overline{x}$ | Student’s t-distribution, ${{t}_{d}}_{f}$\nHypothesis test for proportions | Population proportion $p$ | Sample proportion $p'$ | Normal distribution, $P'~N(p,\\sqrt{\\frac{p\\cdot q}{n}})$\nAssumptions\nWhen you perform a hypothesis test of a single population mean μ using a normal distribution (often called a z-test), you take a simple random sample from the population. The population you are testing is normally distributed, or your sample size is sufficiently large. You know the value of the population standard deviation, which, in reality, is rarely known.\nWhen you perform a hypothesis test of a single population mean μ using a Student's t-distribution (often called a t-test), there are fundamental assumptions that need to be met in order for the test to work properly. Your data should be a simple random sample that comes from a population that is approximately normally distributed. You use the sample standard deviation to approximate the population standard deviation. (Note that if the sample size is sufficiently large, a t-test will work even if the population is not approximately normally distributed).\nWhen you perform a hypothesis test of a single population proportion p, you take a simple random sample from the population. You must meet the conditions for a binomial distribution: there are a certain number n of independent trials, the outcomes of any trial are success or failure, and each trial has the same probability of a success p. The shape of the binomial distribution needs to be similar to the shape of the normal distribution. To ensure this, the quantities np and nq must both be greater than five ($np>5$ and $nq>5$). Then the binomial distribution of a sample (estimated) proportion can be approximated by the normal distribution with $\\mu=p$ and $\\sigma=\\sqrt{\\frac{pq}{n}}$. Remember that $q=1-p$.\nChapter Review\nIn order for a hypothesis test’s results to be generalized to a population, certain requirements must be satisfied.\nWhen testing for a single population mean:\n- A Student's t-test should be used if the data come from a simple, random sample and the population is approximately normally distributed, or the sample size is large, with an unknown standard deviation.\n- The normal test will work if the data come from a simple, random sample and the population is approximately normally distributed, or the sample size is large, with a known standard deviation.\nWhen testing a single population proportion use a normal test for a single population proportion if the data comes from a simple, random sample, fill the requirements for a binomial distribution, and the mean number of successes and the mean number of failures satisfy the conditions: np > 5 and nq > 5 where n is the sample size, p is the probability of a success, and q is the probability of a failure.\nFormula Review\nIf there is no given preconceived α, then use α = 0.05.\nTypes of Hypothesis Tests\n- Single population mean, known population variance (or standard deviation): Normal test.\n- Single population mean, unknown population variance (or standard deviation): Student's t-test.\n- Single population proportion: Normal test.\n- For a single population mean, we may use a normal distribution with the following mean and standard deviation. Means: $\\mu={\\mu}_{\\overline{x}}$ and ${\\sigma}_{\\overline{x}}=\\frac{{\\sigma}_{x}}{\\sqrt{n}}$\n- A single population proportion, we may use a normal distribution with the following mean and standard deviation. Proportions: µ = p and $\\sigma=\\sqrt{\\frac{pq}{n}}$.\nWhich two distributions can you use for hypothesis testing for this chapter?\nA normal distribution or a Student’s t-distribution\nWhich distribution do you use when you are testing a population mean and the population standard deviation is known? Assume a normal distribution, with n ≥ 30.\nWhich distribution do you use when the standard deviation is not known and you are testing one population mean? Assume sample size is large.\nUse a Student’s t-distribution\nA population mean is 13. The sample mean is 12.8, and the sample standard deviation is two. The sample size is 20. What distribution should you use to perform a hypothesis test? Assume the underlying population is normal.\nA population has a mean of 25 and a standard deviation of five. The sample mean is 24, and the sample size is 108. What distribution should you use to perform a hypothesis test?\na normal distribution for a single population mean\nIt is thought that 42% of respondents in a taste test would prefer Brand A. In a particular test of 100 people, 39% preferred Brand A. What distribution should you use to perform a hypothesis test?\nYou are performing a hypothesis test of a single population mean using a Student’s t-distribution. What must you assume about the distribution of the data?\nIt must be approximately normally distributed.\nYou are performing a hypothesis test of a single population mean using a Student’s t-distribution. The data are not from a simple random sample. Can you accurately perform the hypothesis test?\nYou are performing a hypothesis test of a single population proportion. What must be true about the quantities of np and nq?\nThey must both be greater than five.\nYou are performing a hypothesis test of a single population proportion. You find out that np is less than five. What must you do to be able to perform a valid hypothesis test?\nYou are performing a hypothesis test of a single population proportion. The data come from which distribution?\nbinomial distribution\nHomework\nIt is believed that Lake Tahoe Community College (LTCC) Intermediate Algebra students get less than seven hours of sleep per night, on average. A survey of 22 LTCC Intermediate Algebra students generated a mean of 7.24 hours with a standard deviation of 1.93 hours. At a level of significance of 5%, do LTCC Intermediate Algebra students get less than seven hours of sleep per night, on average? The distribution to be used for this test is $\\overline{X}$ ~ ________________\n- $N(7.24,\\frac{1.93}{\\sqrt{22}})$\n- $N(7.24,1.93)$\n- t22\n- t21\nd\n\nGlossary\nBinomial Distribution a discrete random variable (RV) that arises from Bernoulli trials. There are a fixed number, n, of independent trials. “Independent” means that the result of any trial (for example, trial 1) does not affect the results of the following trials, and all trials are conducted under the same conditions. Under these circumstances the binomial RV Χ is defined as the number of successes in n trials. The notation is: X ~ B(n, p) μ = np and the standard deviation is $\\sigma=\\sqrt{npq}$. The probability of exactly x successes in n trials is $P(X=x)=(\\begin{matrix} n \\\\ x \\end{matrix}){p}^{x}{q}^{n-x}$.\nNormal Distribution a continuous random variable (RV) with pdf $f(x)=\\frac{1}{\\sigma\\sqrt{2\\pi}}{e}^{\\frac{-{(x-\\mu)}^{2}}{2{\\sigma}^{2}}}$, where μ is the mean of the distribution, and σ is the standard deviation, notation: X ~ N(μ, σ). If μ = 0 and σ = 1, the RV is called the standard normal distribution.\nStandard Deviation a number that is equal to the square root of the variance and measures how far data values are from their mean; notation: s for sample standard deviation and σ for population standard deviation.\nStudent's t-Distribution investigated and reported by William S. Gossett in 1908 and published under the pseudonym Student. The major characteristics of the random variable (RV) are:\n- It is continuous and assumes any real values.\n- The pdf is symmetrical about its mean of zero. However, it is more spread out and flatter at the apex than the normal distribution.\n- It approaches the standard normal distribution as n gets larger.\n- There is a \"family\" of t distributions: every representative of the family is completely defined by the number of degrees of freedom which is one less than the number of data items."}
{"document_id": "openstax-intro-statistics-m47044", "title": "Hypothesis Testing with One Sample — Rare Events, the Sample, Decision and Conclusion", "source": "https://openstax.org/books/introductory-statistics-2e/pages/9-4-rare-events-the-sample-decision-and-conclusion", "license": "CC-BY-4.0", "text": "Establishing the type of distribution, sample size, and known or unknown standard deviation can help you figure out how to go about a hypothesis test. However, there are several other factors you should consider when working out a hypothesis test.\nRare Events\nSuppose you make an assumption about a property of the population (this assumption is the null hypothesis). Then you gather sample data randomly. If the sample has properties that would be very unlikely to occur if the assumption is true, then you would conclude that your assumption about the population is probably incorrect. (Remember that your assumption is just an assumption—it is not a fact and it may or may not be true. But your sample data are real and the data are showing you a fact that seems to contradict your assumption.)\nFor example, Didi and Ali are at a birthday party of a very wealthy friend. They hurry to be first in line to grab a prize from a tall basket that they cannot see inside because they will be blindfolded. There are 200 plastic bubbles in the basket and Didi and Ali have been told that there is only one with a \\$100 bill. Didi is the first person to reach into the basket and pull out a bubble. Her bubble contains a \\$100 bill. The probability of this happening is $\\frac{1}{200}$ = 0.005. Because this is so unlikely, Ali is hoping that what the two of them were told is wrong and there are more \\$100 bills in the basket. A \"rare event\" has occurred (Didi getting the \\$100 bill) so Ali doubts the assumption about only one \\$100 bill being in the basket.\nUsing the Sample to Test the Null Hypothesis\nUse the sample data to calculate the actual probability of getting the test result, called the p-value. The p-value is the probability that, if the null hypothesis is true, the results from another randomly selected sample will be as extreme or more extreme as the results obtained from the given sample.\nA large p-value calculated from the data indicates that we should not reject the null hypothesis. The smaller the p-value, the more unlikely the outcome, and the stronger the evidence is against the null hypothesis. We would reject the null hypothesis if the evidence is strongly against it.\nDraw a graph that shows the p-value. The hypothesis test is easier to perform if you use a graph because you see the problem more clearly.\nSuppose a baker claims that his bread height is more than 15 cm, on average. Several of his customers do not believe him. To persuade his customers that he is right, the baker decides to do a hypothesis test. He bakes 10 loaves of bread. The mean height of the sample loaves is 17 cm. The baker knows from baking hundreds of loaves of bread that the standard deviation for the height is 0.5 cm. and the distribution of heights is normal.\nThe null hypothesis could be H0: μ ≤ 15 The alternate hypothesis is Ha: μ > 15\nThe words \"is more than\" translates as a \">\" so \"μ > 15\" goes into the alternate hypothesis. The null hypothesis must contradict the alternate hypothesis.\nBy the Central Limit Theorem, the distribution of sample means, for samples of 10 loaves, will be normal with mean μ = 15 and standard deviation $\\frac{\\sigma}{\\sqrt{n}}=\\frac{0.5}{\\sqrt{10}}=0.16$.\nSuppose the null hypothesis is true (the mean height of the loaves is no more than 15 cm). Then is the mean height (17 cm) calculated from the sample unexpectedly large? The hypothesis test works by asking the question how unlikely the sample mean would be if the null hypothesis were true. The graph shows how far out the sample mean is on the normal curve. The p-value is the probability that, if we were to take other samples, any other sample mean would fall at least as far out as 17 cm.\nThe p-value, then, is the probability that a sample mean is the same or greater than 17 cm. when the population mean is, in fact, 15 cm. We can calculate this probability using the normal distribution for means.\n[Image: Normal distribution curve on average bread heights with values 15, as the population mean, and 17, as the point to determine the p-value, on the x-axis.]\np-value= P($\\overline{x}$ > 17) which is approximately zero.\nA p-value of approximately zero tells us that it is highly unlikely that a loaf of bread rises no more than 15 cm, on average. That is, almost 0% of all loaves of bread would be at least as high as 17 cm. purely by CHANCE had the population mean height really been 15 cm. Because the outcome of 17 cm. is so unlikely (meaning it is happening NOT by chance alone), we conclude that the evidence is strongly against the null hypothesis (the mean height is at most 15 cm.). There is sufficient evidence that the true mean height for the population of the baker's loaves of bread is greater than 15 cm.\nTry It\nA normal distribution has a standard deviation of 1. We want to verify a claim that the mean is greater than 12. A sample of 36 is taken with a sample mean of 12.5.\nH0: μ ≤ 12 Ha: μ > 12 The p-value is 0.0013 Draw a graph that shows the p-value.\nDecision and Conclusion\nA systematic way to make a decision of whether to reject or not reject the null hypothesis is to compare the p-value and a preset or preconceived α (also called a \"significance level\"). A preset α is the probability of a Type I error (rejecting the null hypothesis when the null hypothesis is true). It may or may not be given to you at the beginning of the problem.\nWhen you make a decision to reject or not reject H0, do as follows:\n- If α > p-value, reject H0. The results of the sample data are significant. There is sufficient evidence to conclude that H0 is an incorrect belief and that the alternative hypothesis, Ha, may be correct.\n- If α ≤ p-value, do not reject H0. The results of the sample data are not significant.There is not sufficient evidence to conclude that the alternative hypothesis,Ha, may be correct.\n- When you \"do not reject H0\", it does not mean that you should believe that H0 is true. It simply means that the sample data have failed to provide sufficient evidence to cast serious doubt about the truthfulness of Ho.\nConclusion: After you make your decision, write a thoughtful conclusion about the hypotheses in terms of the given problem.\nWhen using the p-value to evaluate a hypothesis test, it is sometimes useful to use the following memory device\nIf the p-value is low, the null must go.\nIf the p-value is high, the null must fly.\nThis memory aid relates a p-value less than the established alpha (the p is low) as rejecting the null hypothesis and, likewise, relates a p-value higher than the established alpha (the p is high) as not rejecting the null hypothesis.\nFill in the blanks.\nReject the null hypothesis when ______________________________________.\nThe results of the sample data _____________________________________.\nDo not reject the null when hypothesis when __________________________________________.\nThe results of the sample data ____________________________________________.\nReject the null hypothesis when the p-value is less than the established alpha value. The results of the sample data support the alternative hypothesis.\nDo not reject the null hypothesis when the p-value is greater than the established alpha value. The results of the sample data do not support the alternative hypothesis.\nTry It\nIt’s a Boy Genetics Labs claim their procedures improve the chances of a boy being born. The results for a test of a single population proportion are as follows:\nH0: p = 0.50, Ha: p > 0.50\nα = 0.01\np-value = 0.025\nInterpret the results and state a conclusion in simple, non-technical terms.\nChapter Review\nWhen the probability of an event occurring is low, and it happens, it is called a rare event. Rare events are important to consider in hypothesis testing because they can inform your willingness not to reject or to reject a null hypothesis. To test a null hypothesis, find the p-value for the sample data and graph the results. When deciding whether or not to reject the null the hypothesis, keep these two parameters in mind:\n- α > p-value, reject the null hypothesis\n- α ≤ p-value, do not reject the null hypothesis\nWhen do you reject the null hypothesis?\nThe probability of winning the grand prize at a particular carnival game is 0.005. Is the outcome of winning very likely or very unlikely?\nThe outcome of winning is very unlikely.\nThe probability of winning the grand prize at a particular carnival game is 0.005. Michele wins the grand prize. Is this considered a rare or common event? Why?\nIt is believed that the mean height of high school students who play basketball on the school team is 73 inches with a standard deviation of 1.8 inches. A random sample of 40 players is chosen. The sample mean was 71 inches, and the sample standard deviation was 1.5 inches. Do the data support the claim that the mean height is less than 73 inches? The p-value is almost zero. State the null and alternative hypotheses and interpret the p-value.\nH0: μ > = 73 Ha: μ < 73 The p-value is almost zero, which means there is sufficient data to conclude that the mean height of high school students who play basketball on the school team is less than 73 inches at the 5% level. The data do support the claim.\nThe mean age of graduate students at a University is at most 31 y ears with a standard deviation of two years. A random sample of 15 graduate students is taken. The sample mean is 32 years and the sample standard deviation is three years. Are the data significant at the 1% level? The p-value is 0.0264. State the null and alternative hypotheses and interpret the p-value.\nDoes the shaded region represent a low or a high p-value compared to a level of significance of 1%?\n[Image: A normal distribution curve with its peak around 15, illustrating a p-value that is approximately 0. The small, shaded tail region to the right of 17 represents this very low p-value.]\nThe shaded region shows a low p-value.\nWhat should you do when α > p-value?\nWhat should you do if α = p-value?\nDo not reject H0.\nIf you do not reject the null hypothesis, then it must be true. Is this statement correct? State why or why not in complete sentences.\nUse the following information to answer the next seven exercises: Suppose that a recent article stated that the mean time spent in jail by a first-time convicted burglar is 2.5 years. A study was then done to see if the mean time has increased in the new century. A random sample of 26 first-time convicted burglars in a recent year was picked. The mean length of time in jail from the survey was three years with a standard deviation of 1.8 years. Suppose that it is somehow known that the population standard deviation is 1.5. Conduct a hypothesis test to determine if the mean length of jail time has increased. Assume the distribution of the jail times is approximately normal.\nIs this a test of means or proportions?\nmeans\nWhat symbol represents the random variable for this test?\nIn words, define the random variable for this test.\nthe mean time spent in jail for 26 first time convicted burglars\nIs σ known and, if so, what is it?\nCalculate the following:\n- $\\overline{x}$ _______\n- σ _______\n- sx _______\n- n _______\n- 3\n- 1.5\n- 1.8\n- 26\nSince both σ and ${s}_{x}$ are given, which should be used? In one to two complete sentences, explain why.\nState the distribution to use for the hypothesis test.\n$\\overline{X}~N(2.5,\\frac{1.5}{\\sqrt{26}})$\nA random survey of 75 student loan recipients revealed that the mean length of time in repayment is 17.4 years with a standard deviation of 6.3 years. Conduct a hypothesis test to determine if the population mean time in repayment could likely be 15 years.\n- Is this a test of one mean or proportion?\n- State the null and alternative hypotheses. H0: ____________________ Ha: ____________________\n- Is this a right-tailed, left-tailed, or two-tailed test?\n- What symbol represents the random variable for this test?\n- In words, define the random variable for this test.\n- Is the population standard deviation known and, if so, what is it?\n- Calculate the following:\n- $\\overline{x}$ = _____________\n- s = ____________\n- n = ____________\n- Which test should be used?\n- State the distribution to use for the hypothesis test.\n- Find the p-value.\n- At a pre-conceived α = 0.05, what is your:\n- Decision:\n- Reason for the decision:\n- Conclusion (write out in a complete sentence):\nHomework\nThe National Institute of Mental Health published an article stating that in any one-year period, approximately 9.5% of American adults suffer from depression or a depressive illness. Suppose that in a survey of 100 people in a certain town, seven of them suffered from depression or a depressive illness. Conduct a hypothesis test to determine if the true proportion of people in that town suffering from depression or a depressive illness is lower than the percent in the general adult American population.\n- Is this a test of one mean or proportion?\n- State the null and alternative hypotheses. H0: ____________________ Ha: ____________________\n- Is this a right-tailed, left-tailed, or two-tailed test?\n- What symbol represents the random variable for this test?\n- In words, define the random variable for this test.\n- Calculate the following:\n- x = ________________\n- n = ________________\n- ${p}^{'}$ = _____________\n- Calculate σx = __________. Show the formula set-up.\n- State the distribution to use for the hypothesis test.\n- Find the p-value.\n- At a pre-conceived α = 0.05, what is your:\n- Decision:\n- Reason for the decision:\n- Conclusion (write out in a complete sentence):\n\nGlossary\nLevel of Significance of the Test probability of a Type I error (reject the null hypothesis when it is true). Notation: α. In hypothesis testing, the Level of Significance is called the preconceived α or the preset α.\np-value the probability that an event will happen purely by chance assuming the null hypothesis is true. The smaller the p-value, the stronger the evidence is against the null hypothesis."}
{"document_id": "openstax-intro-statistics-m47019", "title": "Hypothesis Testing with One Sample — Additional Information and Full Hypothesis Test Examples", "source": "https://openstax.org/books/introductory-statistics-2e/pages/9-5-additional-information-and-full-hypothesis-test-examples", "license": "CC-BY-4.0", "text": "- In a hypothesis test problem, you may see words such as \"the level of significance is 1%.\" The \"1%\" is the preconceived or preset α.\n- The statistician setting up the hypothesis test selects the value of α to use before collecting the sample data.\n- If no level of significance is given, a common standard to use is α = 0.05.\n- When you calculate the p-value and draw the picture, the p-value is the area in the left tail, the right tail, or split evenly between the two tails. For this reason, we call the hypothesis test left, right, or two tailed.\n- The alternative hypothesis, ${H}_{a}$, tells you if the test is left, right, or two-tailed. It is the key to conducting the appropriate test.\n- Ha never has a symbol that contains an equal sign.\n- Thinking about the meaning of the p-value: A data analyst (and anyone else) should have more confidence that he made the correct decision to reject the null hypothesis with a smaller p-value (for example, 0.001 as opposed to 0.04) even if using the 0.05 level for alpha. Similarly, for a large p-value such as 0.4, as opposed to a p-value of 0.056 (alpha = 0.05 is less than either number), a data analyst should have more confidence that she made the correct decision in not rejecting the null hypothesis. This makes the data analyst use judgment rather than mindlessly applying rules.\nThe following examples illustrate a left-, right-, and two-tailed test.\nHo: μ = 5, Ha: μ < 5\nTest of a single population mean. Ha tells you the test is left-tailed. The picture of the p-value is as follows:\n[Image: Normal distribution curve of a single population mean with a value of 5 on the x-axis and the p-value points to the area on the left tail of the curve.]\nTry It\nH0: μ = 10, Ha: μ < 10\nAssume the p-value is 0.0935. What type of test is this? Draw the picture of the p-value.\nH0: p ≤ 0.2 Ha: p > 0.2\nThis is a test of a single population proportion. Ha tells you the test is right-tailed. The picture of the p-value is as follows:\n[Image: Normal distribution curve of a single population proportion with the value of 0.2 on the x-axis. The p-value points to the area on the right tail of the curve.]\nTry It\nH0: μ ≤ 1, Ha: μ > 1\nAssume the p-value is 0.1243. What type of test is this? Draw the picture of the p-value.\nH0: p = 50 Ha: p ≠ 50\nThis is a test of a single population mean. Ha tells you the test is two-tailed. The picture of the p-value is as follows.\n[Image: Normal distribution curve of a single population mean with a value of 50 on the x-axis. The p-value formulas, 1/2(p-value), for a two-tailed test is shown for the areas on the left and right tails of the curve.]\nTry It\nH0: p = 0.5, Ha: p ≠ 0.5\nAssume the p-value is 0.2564. What type of test is this? Draw the picture of the p-value.\nFull Hypothesis Test Examples\nJeffrey, as an eight-year old, established a mean time of 16.43 seconds for swimming the 25-yard freestyle, with a standard deviation of 0.8 seconds. His dad, Frank, thought that Jeffrey could swim the 25-yard freestyle faster using goggles. Frank bought Jeffrey a new pair of expensive goggles and timed Jeffrey for 15 25-yard freestyle swims. For the 15 swims, Jeffrey's mean time was 16 seconds. Frank thought that the goggles helped Jeffrey to swim faster than the 16.43 seconds. Conduct a hypothesis test using a preset α = 0.05. Assume that the swim times for the 25-yard freestyle are normal.\nSet up the Hypothesis Test:\nSince the problem is about a mean, this is a test of a single population mean.\nH0: μ = 16.43 Ha: μ < 16.43\nFor Jeffrey to swim faster, his time will be less than 16.43 seconds. The \"<\" tells you this is left-tailed.\nDetermine the distribution needed:\nRandom variable: $\\overline{X}$ = the mean time to swim the 25-yard freestyle.\nDistribution for the test: $\\overline{X}$ is normal (population standard deviation is known: σ = 0.8)\n$\\overline{X}~N(\\mu,\\frac{{\\sigma}_{X}}{\\sqrt{n}})$ Therefore, $\\overline{X}~N(16.43,\\frac{0.8}{\\sqrt{15}})$\nμ = 16.43 comes from H0 and not the data. σ = 0.8, and n = 15.\nCalculate the p-value using the normal distribution for a mean:\np-value = P($\\overline{x}$ < 16) = 0.0187 where the sample mean in the problem is given as 16.\np-value = 0.0187 (This is called the actual level of significance.) The p-value is the area to the left of the sample mean is given as 16.\nGraph:\n[Image: Normal distribution curve for the average time to swim the 25-yard freestyle with values 16, as the sample mean, and 16.43 on the x-axis. A vertical upward line extends from 16 on the x-axis to the curve. An arrow points to the left tail of the curve.]\nμ = 16.43 comes from H0. Our assumption is μ = 16.43.\nInterpretation of the p-value: If H0 is true, there is a 0.0187 probability (1.87%)that Jeffrey's mean time to swim the 25-yard freestyle is 16 seconds or less. Because a 1.87% chance is small, the mean time of 16 seconds or less is unlikely to have happened randomly. It is a rare event.\nCompare α and the p-value:\nα = 0.05 p-value = 0.0187 α > p-value\nMake a decision: Since $\\alpha>$p-value, reject H0.\nThis indicates that you reject the null hypothesis that the mean time to swim the 25-yard freestyle is at least 16.43 seconds.\nConclusion: At the 5% significance level, there is sufficient evidence that Jeffrey's mean time to swim the 25-yard freestyle is less than 16.43 seconds. Thus, based on the sample data, we conclude that Jeffrey swims faster using the new goggles.\nThe Type I and Type II errors for this problem are as follows:The Type I error is to conclude that Jeffrey swims the 25-yard freestyle, on average, in less than 16.43 seconds when, in fact, he actually swims the 25-yard freestyle, on average, in at least 16.43 seconds. (Reject the null hypothesis when the null hypothesis is true.)\nThe Type II error is that there is not evidence to conclude that Jeffrey swims the 25-yard freestyle, on average, in less than 16.43 seconds when, in fact, he actually does swim the 25-yard free-style, on average, in less than 16.43 seconds. (Do not reject the null hypothesis when the null hypothesis is false.)\nPress STAT and arrow over to TESTS. Press 1:Z-Test. Arrow over to Stats and press ENTER. Arrow down and enter 16.43 for μ0 (null hypothesis),.8 for σ, 16 for the sample mean, and 15 for n. Arrow down to μ: (alternate hypothesis) and arrow over to < μ0. Press ENTER. Arrow down to Calculate and press ENTER. The calculator not only calculates the p-value (p = 0.0187) but it also calculates the test statistic (z-score) for the sample mean. μ < 16.43 is the alternative hypothesis. Do this set of instructions again except arrow to Draw(instead of Calculate). Press ENTER. A shaded graph appears with z = -2.08 (test statistic) and p = 0.0187 (p-value). Make sure when you use Draw that no other equations are highlighted in Y = and the plots are turned off.\nTry It\nThe mean throwing distance of a football for Marco, a high school quarterback, is 40 yards, with a standard deviation of two yards. The team coach tells Marco to adjust his grip to get more distance. The coach records the distances for 20 throws. For the 20 throws, Marco’s mean distance was 45 yards. The coach thought the different grip helped Marco throw farther than 40 yards. Conduct a hypothesis test using a preset α = 0.05. Assume the throw distances for footballs are normal.\nFirst, determine what type of test this is, set up the hypothesis test, find the p-value, sketch the graph, and state your conclusion.\nPress STAT and arrow over to TESTS. Press 1:Z-Test. Arrow over to Stats and press ENTER. Arrow down and enter 40 for μ0 (null hypothesis), 2 for σ, 45 for the sample mean, and 20 for n. Arrow down to μ: (alternative hypothesis) and set it either as <, ≠, or >. Press ENTER. Arrow down to Calculate and press ENTER. The calculator not only calculates the p-value but it also calculates the test statistic (z-score) for the sample mean. Select <, ≠, or > for the alternative hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate). Press ENTER. A shaded graph appears with test statistic and p-value. Make sure when you use Draw that no other equations are highlighted in Y = and the plots are turned off.\nHistorical Note ()\nThe traditional way to compare the two probabilities, α and the p-value, is to compare the critical value (z-score from α) to the test statistic (z-score from data). The calculated test statistic for the p-value is –2.08. (From the Central Limit Theorem, the test statistic formula is $z=\\frac{\\overline{x}-{\\mu}_{X}}{(\\frac{{\\sigma}_{X}}{\\sqrt{n}})}$. For this problem, $\\overline{x}$ = 16, μX = 16.43 from the null hypothes is, σX = 0.8, and n = 15.) You can find the critical value for α = 0.05 in the normal table (see 15.Tables in the Table of Contents). The z-score for an area to the left equal to 0.05 is midway between –1.65 and –1.64 (0.05 is midway between 0.0505 and 0.0495). The z-score is –1.645. Since –1.645 > –2.08 (which demonstrates that α > p-value), reject H0. Traditionally, the decision to reject or not reject was done in this way. Today, comparing the two probabilities α and the p-value is very common. For this problem, the p-value, 0.0187 is considerably smaller than α, 0.05. You can be confident about your decision to reject. The graph shows α, the p-value, and the test statistic and the critical value.\n[Image: Distribution curve comparing the α to the p-value. Values of -2.15 and -1.645 are on the x-axis. Vertical upward lines extend from both of these values to the curve. The p-value is equal to 0.0158 and points to the area to the left of -2.15. α is equal to 0.05 and points to the area between the values of -2.15 and -1.645.]\nA college football coach records the mean weight that the players can bench press as 275 pounds, with a standard deviation of 55 pounds. Three of the players thought that the mean weight was more than that amount. They asked 30 of their teammates for their estimated maximum lift on the bench press exercise. The data ranged from 205 pounds to 385 pounds. The actual different weights were (frequencies are in parentheses)\n- 205(3)\n- 215(3)\n- 225(1)\n- 241(2)\n- 252(2)\n- 265(2)\n- 275(2)\n- 313(2)\n- 316(5)\n- 338(2)\n- 341(1)\n- 345(2)\n- 368(2)\n- 385(1)\n.\nConduct a hypothesis test using a 2.5% level of significance to determine if the bench press mean is more than 275 pounds.\nSet up the Hypothesis Test:\nSince the problem is about a mean weight, this is a test of a single population mean.\nH0: μ = 275Ha: μ > 275This is a right-tailed test.\nCalculating the distribution needed:\nRandom variable: $\\overline{X}$ = the mean weight, in pounds, lifted by the football players.\nDistribution for the test: It is normal because σ is known.\n$\\overline{X}~N(275,\\frac{55}{\\sqrt{30}})$\n$\\overline{x}=286.2$ pounds (from the data).\nσ = 55 pounds (Always use σ if you know it.) We assume μ = 275 pounds unless our data shows us otherwise.\nCalculate the p-value using the normal distribution for a mean and using the sample mean as input (see NOTEs for the TI-83, 83+, 84, 84+ Calculators for using the data as input):\n$p\\text{-value}=P(\\overline{x}>286.2)=0.1323$.\nInterpretation of the p-value: If H0 is true, then there is a 0.1331 probability (13.23%) that the football players can lift a mean weight of 286.2 pounds or more. Because a 13.23% chance is large enough, a mean weight lift of 286.2 pounds or more is not a rare event.\n[Image: Normal distribution curve of the average weight lifted by football players with values of 275 and 286.2 on the x-axis. A vertical upward line extends from 286.2 to the curve. The p-value points to the area to the right of 286.2.]\nCompare α and the p-value:\nα = 0.025 p-value = 0.1323\nMake a decision: Since α <p-value, do not reject H0.\nConclusion: At the 2.5% level of significance, from the sample data, there is not sufficient evidence to conclude that the true mean weight lifted is more than 275 pounds.\nPut the data and frequencies into lists. Press STAT and arrow over to TESTS. Press 1:Z-Test. Arrow over to Data and press ENTER. Arrow down and enter 275 for μ0, 55 for σ, the name of the list where you put the data, and the name of the list where you put the frequencies. Arrow down to μ: and arrow over to > μ0. Press ENTER. Arrow down to Calculate and press ENTER. The calculator not only calculates the p-value (p = 0.1331, a little different from the previous calculation - in it we used the sample mean rounded to one decimal place instead of the data) but it also calculates the test statistic (z-score) for the sample mean, the sample mean, and the sample standard deviation. μ > 275 is the alternative hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate). Press ENTER. A shaded graph appears with z = 1.112 (test statistic) and p = 0.1331 (p-value). Make sure when you use Draw that no other equations are highlighted in Y = and the plots are turned off.\nTry It\nA company records the mean time of employees working in a day. The mean comes out to be 475 minutes, with a standard deviation of 45 minutes. A manager recorded times of 20 employees. The times of working were (frequencies are in parentheses) 460(3); 465(2); 470(3); 475(1); 480(6); 485(3); 490(2).\nConduct a hypothesis test using a 2.5% level of significance to determine if the mean time is more than 475.\nSet up the Hypothesis Test:\n$${H}_{0}:\\mu=475$$\n$${H}_{0}:\\mu>475$$\nThis is a right-tailed test. The random variable $X$ is the mean time of employees working in a day.\nDistribution for the test: $\\sigma$ is known.\n$$X~N\\left(475,\\frac{45}{\\sqrt{20}} \\right)$$\n$\\overline{x}=475.5$ minutes (from the data).\n$\\sigma=45$ minutes. We assume $\\mu=475$ minutes unless our data shows otherwise.\nThe p-value is calculated: p-value = $P(\\overline{x}>475.5)=0.5044$\nInterpretation of p-value: If ${H}_{0}$ is true, then there is a 0.5044, or 50.44%, chance that the mean time of employees working is 475.5 minutes or more. Since a 50.44% chance is large enough, the mean time of 475.5 is not a rare event.\nCompare $\\alpha$ and p values:\n$\\alpha=0.025$ and $p=0.5044$\nMake a decision: Since $\\alpha<p$ value, do not reject ${H}_{0}$.\nConclusion: At the 2.5% level of significance, from the sample data, there is not sufficient evidence to conclude that the true mean time of employees is more than 475 minutes.\nStatistics students believe that the mean score on the first statistics test is 65. A statistics instructor thinks the mean score is higher than 65. He samples ten statistics students and obtains the scores\n- 65\n- 65\n- 70\n- 67\n- 66\n- 63\n- 63\n- 68\n- 72\n- 71\n. He performs a hypothesis test using a 5% level of significance. The data are assumed to be from a normal distribution.\nSet up the hypothesis test:\nA 5% level of significance means that α = 0.05. This is a test of a single population mean.\nH0: μ = 65 Ha: μ > 65\nSince the instructor thinks the average score is higher, use a \">\". The \">\" means the test is right-tailed.\nDetermine the distribution needed:\nRandom variable: $\\overline{X}$ = average score on the first statistics test.\nDistribution for the test: If you read the problem carefully, you will notice that there is no population standard deviation given. You are only given n = 10 sample data values. Notice also that the data come from a normal distribution. This means that the distribution for the test is a student's t.\nUse tdf. Therefore, the distribution for the test is t9 where n = 10 and df = 10 - 1 = 9.\nCalculate the p-value using the Student's t-distribution:\np-value = P($\\overline{x}$ > 67) = 0.0396 where the sample mean and sample standard deviation are calculated as 67 and 3.1972 from the data.\nInterpretation of the p-value: If the null hypothesis is true, then there is a 0.0396 probability (3.96%) that the sample mean is 67 or more.\n[Image: Normal distribution curve of average scores on the first statistic tests with 65 and 67 values on the x-axis. A vertical upward line extends from 67 to the curve. The p-value points to the area to the right of 67.]\nCompare α and the p-value:\nSince α = 0.05 and p-value = 0.0396. α > p-value.\nMake a decision: Since α > p-value, reject H0.\nThis means you reject μ = 65. In other words, you believe the average test score is greater than 65.\nConclusion: At a 5% level of significance, the sample data show sufficient evidence that the mean (average) test score is greater than 65, just as the math instructor thinks.\nPut the data into a list. Press STAT and arrow over to TESTS. Press 2:T-Test. Arrow over to Data and press ENTER. Arrow down and enter 65 for μ0, the name of the list where you put the data, and 1 for Freq:. Arrow down to μ: and arrow over to > μ0. Press ENTER. Arrow down to Calculate and press ENTER. The calculator not only calculates the p-value (p = 0.0396) but it also calculates the test statistic (t-score) for the sample mean, the sample mean, and the sample standard deviation. μ > 65 is the alternative hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate). Press ENTER. A shaded graph appears with t = 1.9781 (test statistic) and p = 0.0396 (p-value). Make sure when you use Draw that no other equations are highlighted in Y = and the plots are turned off.\nTry It\nIt is believed that a stock price for a particular company will grow at a rate of \\$5 per week with a standard deviation of \\$1. An investor believes the stock won’t grow as quickly. The changes in stock price is recorded for ten weeks and are as follows: \\$4, \\$3, \\$2, \\$3, \\$1, \\$7, \\$2, \\$1, \\$1, \\$2. Perform a hypothesis test using a 5% level of significance. State the null and alternative hypotheses, find the p-value, state your conclusion, and identify the Type I and Type II errors.\nJoon believes that 50% of first-time brides in the United States are younger than their grooms. She performs a hypothesis test to determine if the percentage is the same or different from 50%. Joon samples 100 first-time brides and 53 reply that they are younger than their grooms. For the hypothesis test, she uses a 1% level of significance.\nSet up the hypothesis test:\nThe 1% level of significance means that α = 0.01. This is a test of a single population proportion.\nH0: p = 0.50 Ha: p ≠ 0.50\nThe words \"is the same or different from\" tell you this is a two-tailed test.\nCalculate the distribution needed:\nRandom variable: P′ = the percent of of first-time brides who are younger than their grooms.\nDistribution for the test: The problem contains no mention of a mean. The information is given in terms of percentages. Use the distribution for P′, the estimated proportion.\n${P}^{'}~N(p,\\sqrt{\\frac{p\\cdot q}{n}})$ Therefore, ${P}^{'}~N(0.5,\\sqrt{\\frac{0.5\\cdot0.5}{100}})$\nwhere p = 0.50, q = 1−p = 0.50, and n = 100\nCalculate the p-value using the normal distribution for proportions:\np-value = P (p′ < 0.47 or p′ > 0.53) = 0.5485\nwhere x = 53, p′ = $\\frac{x}{n}\\text{=}\\frac{\\text{53}}{\\text{100}}$ = 0.53.\nInterpretation of the p-value: If the null hypothesis is true, there is 0.5485 probability (54.85%) that the sample (estimated) proportion $p'$ is 0.53 or more OR 0.47 or less (see the graph in Figure).\n[Image: Normal distribution curve of the percent of first time brides who are younger than the groom with values of 0.47, 0.50, and 0.53 on the x-axis. Vertical upward lines extend from 0.47 and 0.53 to the curve. 1/2(p-values) are calculated for the areas on outsides of 0.47 and 0.53.]\nμ = p = 0.50 comes from H0, the null hypothesis.\np′ = 0.53. Since the curve is symmetrical and the test is two-tailed, the p′ for the left tail is equal to 0.50 – 0.03 = 0.47 where μ = p = 0.50. (0.03 is the difference between 0.53 and 0.50.)\nCompare α and the p-value:\nSince α = 0.01 and p-value = 0.5485. α < p-value.\nMake a decision: Since α < p-value, you cannot reject H0.\nConclusion: At the 1% level of significance, the sample data do not show sufficient evidence that the percentage of first-time brides who are younger than their grooms is different from 50%.\nPress STAT and arrow over to TESTS. Press 5:1-PropZTest. Enter.5 for p0, 53 for x and 100 for n. Arrow down to Prop and arrow to not equals p0. Press ENTER. Arrow down to Calculate and press ENTER. The calculator calculates the p-value (p = 0.5485) and the test statistic (z-score). Prop not equals.5 is the alternate hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate). Press ENTER. A shaded graph appears with z = 0.6 (test statistic) and p = 0.5485 (p-value). Make sure when you use Draw that no other equations are highlighted in Y = and the plots are turned off.\nThe Type I and Type II errors are as follows:\nThe Type I error is to conclude that the proportion of first-time brides who are younger than their grooms is different from 50% when, in fact, the proportion is actually 50%. (Reject the null hypothesis when the null hypothesis is true).\nThe Type II error is there is not enough evidence to conclude that the proportion of first time brides who are younger than their grooms differs from 50% when, in fact, the proportion does differ from 50%. (Do not reject the null hypothesis when the null hypothesis is false.)\nTry It\nA teacher believes that 85% of students in the class will want to go on a field trip to the local zoo. The teacher performs a hypothesis test to determine if the percentage is the same or different from 85%. The teacher samples 50 students and 39 reply that they would want to go to the zoo. For the hypothesis test, use a 1% level of significance.\nFirst, determine what type of test this is, set up the hypothesis test, find the p-value, sketch the graph, and state your conclusion.\nSuppose a consumer group suspects that the proportion of households that have three cell phones is 30%. A cell phone company has reason to believe that the proportion is not 30%. Before they start a big advertising campaign, they conduct a hypothesis test. Their marketing people survey 150 households with the result that 43 of the households have three cell phones.\na. The value that helps determine the p-value is p′. Calculate p′.\nb. What is a success for this problem?\nc. What is the level of significance?\nd. Draw the graph for this problem. Draw the horizontal axis. Label and shade appropriately.Calculate the p-value.\ne. Make a decision. _____________(Reject/Do not reject) H0 because____________.\nSet up the Hypothesis Test:\nH0: p = 0.30 Ha: p ≠ 0.30\nDetermine the distribution needed:\nThe random variable is P′ = proportion of households that have three cell phones.\nThe distribution for the hypothesis test is $P'~N(0.30,\\sqrt{\\frac{(0.30)\\cdot(0.70)}{150}})$\na. p′ = $\\frac{x}{n}$ where x is the number of successes and n is the total number in the sample.\nx = 43, n = 150\np′ = $\\frac{\\text{43}}{\\text{150}}$\nb. A success is having three cell phones in a household.\nc. The level of significance is the preset α. Since α is not given, assume that α = 0.05.\nd. p-value = 0.7216\ne. Assuming that α = 0.05, α < p-value. The decision is do not reject H0 because there is not sufficient evidence to conclude that the proportion of households that have three cell phones is not 30%.\nTry It\nMarketers believe that 92% of adults in the United States own a cell phone. A cell phone manufacturer believes that number is actually lower. 200 American adults are surveyed, of which, 174 report having cell phones. Use a 5% level of significance. State the null and alternative hypothesis, find the p-value, state your conclusion, and identify the Type I and Type II errors.\nThe next example is a poem written by a statistics student named Nicole Hart. The solution to the problem follows the poem. Notice that the hypothesis test is for a single population proportion. This means that the null and alternate hypotheses use the parameter p. The distribution for the test is normal. The estimated proportion p′ is the proportion of fleas killed to the total fleas found on Fido. This is sample information. The problem gives a preconceived α = 0.01, for comparison, and a 95% confidence interval computation. The poem is clever and humorous, so please enjoy it!\nMy dog has so many fleas, They do not come off with ease. As for shampoo, I have tried many types Even one called Bubble Hype, Which only killed 25% of the fleas, Unfortunately I was not pleased. I've used all kinds of soap, Until I had given up hope Until one day I saw An ad that put me in awe. A shampoo used for dogs Called GOOD ENOUGH to Clean a Hog Guaranteed to kill more fleas. I gave Fido a bath And after doing the math His number of fleas Started dropping by 3's! Before his shampoo I counted 42. At the end of his bath, I redid the math And the new shampoo had killed 17 fleas. So now I was pleased. Now it is time for you to have some fun With the level of significance being.01, You must help me figure out Use the new shampoo or go without?\nSet up the hypothesis test:\nH0: p ≤ 0.25 Ha: p > 0.25\nDetermine the distribution needed:\nIn words, CLEARLY state what your random variable $\\overline{X}$ or P′ represents.\nP′ = The proportion of fleas that are killed by the new shampoo\nState the distribution to use for the test.\nNormal: $N(0.25,\\sqrt{\\frac{(0.25)(1-0.25)}{42}})$\nTest Statistic: z = 2.3163\nCalculate the p-value using the normal distribution for proportions:\np-value = 0.0103\nIn one to two complete sentences, explain what the p-value means for this problem.\nIf the null hypothesis is true (the proportion is 0.25), then there is a 0.0103 probability that the sample (estimated) proportion is 0.4048 $(\\frac{17}{42})$ or more.\nUse the previous information to sketch a picture of this situation. CLEARLY, label and scale the horizontal axis and shade the region(s) corresponding to the p-value.\n[Image: Normal distribution graph of the proportion of fleas killed by the new shampoo with values of 0.25 and 0.4048 on the x-axis. A vertical upward line extends from 0.4048 to the curve and the area to the left of this is shaded in. The test statistic of the sample proportion is listed.]\nCompare α and the p-value:\nIndicate the correct decision (“reject” or “do not reject” the null hypothesis), the reason for it, and write an appropriate conclusion, using complete sentences.\nalpha | decision | reason for decision\n0.01 | Do not reject ${H}_{0}$ | α < p-value\nConclusion: At the 1% level of significance, the sample data do not show sufficient evidence that the percentage of fleas that are killed by the new shampoo is more than 25%.\nConstruct a 95% confidence interval for the true mean or proportion. Include a sketch of the graph of the situation. Label the point estimate and the lower and upper bounds of the confidence interval.\n[Image: Normal distribution graph of the proportion of fleas killed by the new shampoo with values of 0.26, 17/42, and 0.55 on the x-axis. A vertical upward line extends from 0.26 and 0.55. The area between these two points is equal to 0.95.]\nConfidence Interval: (0.26,0.55) We are 95% confident that the true population proportion p of fleas that are killed by the new shampoo is between 26% and 55%.\nNOTE\nThis test result is not very definitive since the p-value is very close to alpha. In reality, one would probably do more tests by giving the dog another bath after the fleas have had a chance to return.\nTry It\nA car soap gets rid of 30% of stains on the car. After adding a new compound to the soap, the soap is used on a car and found to wash 20 stains out of the 50 stains on the car. With the level of significance being 0.01, find out if adding the new compound to soap is beneficial.\nSet up hypothesis test:\n${H}_{0}:p\\le0.3$ ${H}_{0}:p>0.3$\nThe distribution to use for the test is:\nNormal: $N\\left(0.3,\\sqrt{\\frac{(0.3)(1-0.3)}{50}} \\right)$\nThe test statistic is obtained to be z = 1.543.\nThe p-value is obtained to be p = 0.0614.\nIf the null hypothesis is true, then there is a 0.0614 probability that the sample proportion is 0.4 $\\left(\\frac{20}{50} \\right)$ or more.\nAt 1% level of significance, the value of $\\alpha$ is less than the p-value. So, the data does not show sufficient evidence that the percentage of stains removed is more than 30%.\nThe confidence interval is obtained as (0.273, 0.527).\nThe National Institute of Standards and Technology provides exact data on conductivity properties of materials. Following are conductivity measurements for 11 randomly selected pieces of a particular type of glass.\n1.11; 1.07; 1.11; 1.07; 1.12; 1.08;.98;.98; 1.02;.95;.95 Is there convincing evidence that the average conductivity of this type of glass is greater than one? Use a significance level of 0.05. Assume the population is normal.\nLet’s follow a four-step process to answer this statistical question.\n- State the Question: We need to determine if, at a 0.05 significance level, the average conductivity of the selected glass is greater than one. Our hypotheses will be\n- H0: μ ≤ 1\n- Ha: μ > 1\n- Plan: We are testing a sample mean without a known population standard deviation. Therefore, we need to use a Student's t-distribution. Assume the underlying population is normal.\n- Based on the sample of 11 data values shown above, sample mean, sample standard deviation, and test statistic are calculated as follows:\n$$\\begin{matrix} \\overline{x} & = & 1.04 \\\\ s & = & 0.0659 \\\\ t & = & 2.014 \\end{matrix}$$\nTo calculate the p-value, note that this is a right-tailed test. Then, find the area under the t-distribution to the right of the test statistic 2.014 (using 10 degrees of freedom). This area in the right tail is 0.036, and thus the p-value = 0.036.\n- State the Conclusions: Since the p-value (p = 0.036) is less than our alpha value, we will reject the null hypothesis. It is reasonable to state that the data supports the claim that the average conductivity level is greater than one.\nTry It\nThe boiling point of a specific liquid is measured for 15 samples, and the boiling points are obtained as follows:\n205; 206; 206; 202; 199; 194; 197; 198; 198; 201; 201; 202; 207; 211; 205\nIs there convincing evidence that the average boiling point is greater than 200? Use a significance level of 0.1. Assume the population is normal.\nThe hypotheses, at a significance level of 0.1, will be as follows:\n- ${H}_{0}:\\mu\\le200$\n- ${H}_{0}:\\mu>200$\nSince the standard deviation is not known, Student’s t-distribution is to be used.\nThe data is input into the TI-83 as follows:\n[Image: Screenshot of calculator with values matching the supplied data.]\n[Image: Screenshot of calculator with values matching the supplied data.]\n[Image: Screenshot of calculator with values matching the calculated data.]\n[Image: Screenshot of calculator with graph showing values matching the calculated data.]\nSince the p-value is less than alpha value, we will reject the null hypothesis. It is reasonable to state that the data supports the claim that the average boiling point is greater than 200.\nIn a study of 420,019 cell phone users, 172 of the subjects developed brain cancer. Test the claim that cell phone users developed brain cancer at a greater rate than that for non-cell phone users (the rate of brain cancer for non-cell phone users is 0.0340%). Since this is a critical issue, use a 0.005 significance level. Explain why the significance level should be so low in terms of a Type I error.\nWe will follow the four-step process.\n- We need to conduct a hypothesis test on the claimed cancer rate. Our hypotheses will be\n- H0: p ≤ 0.00034\n- Ha: p > 0.00034\nIf we commit a Type I error, we are essentially accepting a false claim. Since the claim describes cancer-causing environments, we want to minimize the chances of incorrectly identifying causes of cancer.\n- We will be testing a sample proportion with x = 172 and n = 420,019. The sample is sufficiently large because we have np = 420,019(0.00034) = 142.8, nq = 420,019(0.99966) = 419,876.2, two independent outcomes, and a fixed probability of success p = 0.00034. Thus we will be able to generalize our results to the population.\n- The associated TI results are\n[Image: A calculator screen displays the results of a '1-PropZTest' with a P-value of.00727, a z-score of 2.443, a sample proportion (p-hat) of 4.095E-4, and a sample size (n) of 420019.]\n[Image: A normal distribution bell curve displayed on a calculator screen, showing a z-score of 2.4434 and a p-value of 0.0073 with shaded tails.]\n- Since the p-value = 0.0073 is greater than our alpha value = 0.005, we cannot reject the null. Therefore, we conclude that there is not enough evidence to support the claim of higher brain cancer rates for the cell phone users.\nTry It\nIn a study of 390,000 moisturizer users, 138 of the subjects developed skin diseases. Test the claim that moisturizer users developed skin diseases at a greater rate than that for non-moisturizer users (the rate of skin diseases for non-moisturizer users is 0.041%). Since this is a critical issue, use a 0.005 significance level. Explain why the significance level should be so low in terms of a Type I error.\nThe test hypotheses are as follows:\n- ${H}_{0}:p\\le0.00041$\n- ${H}_{0}:p>0.00041$\nIf we commit a Type I error, we are essentially accepting a false claim. Since the claim describes disease-causing environments, we want to minimize the chances of incorrectly identifying causes of diseases. The testing will be done with x = 138 and n = 390,000. The sample is sufficiently large because we have np = 390,000(0.00041) = 159.9, nq = 390,000(0.99959) = 389,840.1, two independent outcomes, and a fixed probability of success p = 0.00041. Thus, we will be able to generalize our results to the population.\nThe associated TI results are:\n[Image: Screenshot of calculator with values matching the calculated data.]\n[Image: Screenshot of calculator with graph showing values matching the calculated data.]\nSince the p-value = 0.0832 is greater than alpha value = 0.005, we cannot reject the null. Therefore, we conclude that there is not enough evidence to support the claim of higher skin diseases rates for moisturizer users.\nStatistical data indicates that in a certain country there are approximately 268,608,618 residents aged 12 and older. For a certain period of time, statistical data also indicates that the percentage of residents with blood type AB negative (AB-) is 207,754 individuals. This translates into a percentage of 0.078% with this rather rare blood type. In a certain province of the country, there were 11 people with blood type AB- out of the population of 37,937. Conduct an appropriate hypothesis test to determine if there is a statistically significant difference between the percentage of residents in the entire country with blood type AB- versus the percentage in the local province. Use a significance level of 0.01.\nWe will follow the four-step plan.\n- We need to test whether the proportion of residents with AB- blood type in the local province is statistically different as compared to the proportion in the entire country.\n- Since we are presented with proportions, we will use a one-proportion z-test. The hypotheses for the test will be:\n$$\\begin{matrix} {H}_{0}:p & = & 0.00078 \\\\ {H}_{a}:p & \\ne & 0.00078 \\end{matrix}$$\n- Note the sample proportion is $\\begin{matrix} {p}^{'} & = & \\frac{11}{37,937}=0.00029 \\end{matrix}$\nThe test statistic is calculated as z = -3.4189. To calculate the p-value, note that this is a two-tailed test. Find the area under the normal distribution to the left of the test statistic and then double this area. The area to the left of the test statistic is 0.000314, and this area doubled results in the p-value of 0.00063.\n- Since the p-value, p = 0.00063, is less than the alpha level of 0.01, the sample data indicates that we should reject the null hypothesis. In conclusion, the sample data support the claim that the proportion of individuals with blood type AB- in the local province is different from the proportion of individuals in the entire country.\nTry It\nAccording to the U.S. Census, there are approximately 201,456,463 residents 20 and older. Statistics from the Criminal National Network indicate that, on average, 104,354 murders occur each year for people aged 20 and older. This translates into a percentage of murder of 0.052%. In Ohio, there were reported 127 murders for a population of 427,648. Conduct an appropriate hypothesis test to determine if there is a statistically significant difference between the local murder percentage and the national murder percentage. Use a significance level of 0.01.\nThe hypotheses for the one-proportion z-test are as follow:\n- ${H}_{0}:p\\le0.00052$\n- ${H}_{0}:p>0.00052$\nThe following screenshots display the summary statistics from the hypothesis test:\n[Image: Screenshot of calculator with values matching the calculated data.]\n[Image: Screenshot of calculator with graph showing values matching the calculated data.]\nSince the p-value = 0 is less than alpha value of 0.01, the sample data includes that we should reject the null hypothesis. In conclusion, the sample data support the claim that the proportion of murders in Ohio is different from the national average population.\nChapter Review\nThe hypothesis test itself has an established process. This can be summarized as follows:\n- Determine H0 and Ha. Remember, they are contradictory.\n- Determine the random variable.\n- Determine the distribution for the test.\n- Draw a graph, calculate the test statistic, and use the test statistic to calculate the p-value. (A z-score and a t-score are examples of test statistics.)\n- Compare the preconceived α with the p-value, make a decision (reject or do not reject H0), and write a clear conclusion using English sentences.\nNotice that in performing the hypothesis test, you use α and not β. β is needed to help determine the sample size of the data that is used in calculating the p-value. Remember that the quantity 1 – β is called the Power of the Test. A high power is desirable. If the power is too low, statisticians typically increase the sample size while keeping α the same. If the power is low, the null hypothesis might not be rejected when it should be.\nAssume H0: μ = 9 and Ha: μ < 9. Is this a left-tailed, right-tailed, or two-tailed test?\nThis is a left-tailed test.\nAssume H0: μ ≤ 6 and Ha: μ > 6. Is this a left-tailed, right-tailed, or two-tailed test?\nAssume H0: p = 0.25 and Ha: p ≠ 0.25. Is this a left-tailed, right-tailed, or two-tailed test?\nThis is a two-tailed test.\nDraw the general graph of a left-tailed test.\nDraw the graph of a two-tailed test.\n[Image: A normal distribution curve showing a two-tailed p-value, where each tail (shaded in blue) represents half of the total p-value. The curve is centered at the population mean (mu), and the sample mean (x-bar) is marked on the right tail.]\nA bottle of water is labeled as containing 16 fluid ounces of water. You believe it is less than that. What type of test would you use?\nYour friend claims that his mean golf score is 63. You want to show that it is higher than that. What type of test would you use?\na right-tailed test\nA bathroom scale claims to be able to identify correctly any weight within a pound. You think that it cannot be that accurate. What type of test would you use?\nYou flip a coin and record whether it shows heads or tails. You know the probability of getting heads is 50%, but you think it is less for this particular coin. What type of test would you use?\na left-tailed test\nIf the alternative hypothesis has a not equals (≠) symbol, you know to use which type of test?\nAssume the null hypothesis states that the mean is at least 18. Is this a left-tailed, right-tailed, or two-tailed test?\nThis is a left-tailed test.\nAssume the null hypothesis states that the mean is at most 12. Is this a left-tailed, right-tailed, or two-tailed test?\nAssume the null hypothesis states that the mean is equal to 88. The alternative hypothesis states that the mean is not equal to 88. Is this a left-tailed, right-tailed, or two-tailed test?\nThis is a two-tailed test.\nHomework\nFor each of the word problems, use a solution sheet to do the hypothesis test. The solution sheet is found in Solution Sheets. Please feel free to make copies of the solution sheets. For the online version of the book, it is suggested that you copy the.doc or the.pdf files.\nNOTE\nIf you are using a Student's-t distribution for one of the following homework problems, you may assume that the underlying population is normally distributed. (In general, you must first prove that assumption, however.)\nA particular brand of tires claims that its deluxe tire averages at least 50,000 miles before it needs to be replaced. From past studies of this tire, the standard deviation is known to be 8,000. A survey of owners of that tire design is conducted. From the 28 tires surveyed, the mean lifespan was 46,500 miles with a standard deviation of 9,800 miles. Using alpha = 0.05, is the data highly inconsistent with the claim?\n- H0: μ ≥ 50,000\n- Ha: μ < 50,000\n- Let $\\overline{X}$ = the average lifespan of a brand of tires.\n- normal distribution\n- z = -2.315\n- p-value = 0.0103\n- Answers may vary.\n-\n- alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: The p-value is less than 0.05.\n- Conclusion: There is sufficient evidence to conclude that the mean lifespan of the tires is less than 50,000 miles.\n- (43,537, 49,463)\nFrom generation to generation, the mean age when smokers first start to smoke varies. However, the standard deviation of that age remains constant of around 2.1 years. A survey of 40 smokers of this generation was done to see if the mean starting age is at least 19. The sample mean was 18.1 with a sample standard deviation of 1.3. Do the data support the claim at the 5% level?\nThe cost of a daily newspaper varies from city to city. However, the variation among prices remains steady with a standard deviation of 20¢. A study was done to test the claim that the mean cost of a daily newspaper is \\$1.00. Twelve costs yield a mean cost of 95¢ with a standard deviation of 18¢. Do the data support the claim at the 1% level?\n- H0: μ = \\$1.00\n- Ha: μ ≠ \\$1.00\n- Let $\\overline{X}$ = the average cost of a daily newspaper.\n- normal distribution\n- z = –0.866\n- p-value = 0.3865\n- Answers may vary.\n-\n- Alpha: 0.01\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: The p-value is greater than 0.01.\n- Conclusion: There is sufficient evidence to support the claim that the mean cost of daily papers is \\$1. The mean cost could be \\$1.\n- (\\$0.84, \\$1.06)\nAn article in the San Jose Mercury News stated that students in the California state university system take 4.5 years, on average, to finish their undergraduate degrees. Suppose you believe that the mean time is longer. You conduct a survey of 49 students and obtain a sample mean of 5.1 with a sample standard deviation of 1.2. Do the data support your claim at the 1% level?\nThe mean number of sick days an employee takes per year is believed to be about ten. Members of a personnel department do not believe this figure. They randomly survey eight employees. The number of sick days they took for the past year are as follows: 12; 4; 15; 3; 11; 8; 6; 8. Let x = the number of sick days they took for the past year. Should the personnel team believe that the mean number is ten?\n- H0: μ = 10\n- Ha: μ ≠ 10\n- Let $\\overline{X}$ the mean number of sick days an employee takes per year.\n- Student’s t-distribution\n- t = –1.13\n- p-value = 0.1299\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: The p-value is greater than 0.05.\n- Conclusion: At the 5% significance level, there is insufficient evidence to conclude that the mean number of sick days is not ten.\n- (4.9443, 11.806)\nIn 1955, Life Magazine reported that the 25 year-old mother of three worked, on average, an 80 hour week. Recently, many groups have been studying whether or not the women's movement has, in fact, resulted in an increase in the average work week for women (combining employment and at-home work). Suppose a study was done to determine if the mean work week has increased. 81 women were surveyed with the following results. The sample mean was 83; the sample standard deviation was ten. Does it appear that the mean work week has increased for women at the 5% level?\nYour statistics instructor claims that 60% of the students who take their Elementary Statistics class go through life feeling more enriched. For some reason that the instructor can't quite figure out, most people don't believe her. You decide to check this out on your own. You randomly survey 64 of their past Elementary Statistics students and find that 34 feel more enriched as a result of taking the class. Now, what do you think?\n- H0: p ≥ 0.6\n- Ha: p < 0.6\n- Let P′ = the proportion of students who feel more enriched as a result of taking Elementary Statistics.\n- normal for a single proportion\n- 1.13\n- p-value = 0.1299\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: The p-value is greater than 0.05.\n- Conclusion: There is insufficient evidence to conclude that less than 60 percent of the students feel more enriched.\n- Confidence Interval: (0.409, 0.654)The “plus-4s” confidence interval is (0.411, 0.648)\nA Nissan Motor Corporation advertisement read, “The average man’s I.Q. is 107. The average brown trout’s I.Q. is 4. So why can’t man catch brown trout?” Suppose you believe that the brown trout’s mean I.Q. is greater than four. You catch 12 brown trout. A fish psychologist determines the I.Q.s as follows: 5; 4; 7; 3; 6; 4; 5; 3; 6; 3; 8; 5. Conduct a hypothesis test of your belief.\nRefer to Exercise 9.81. Conduct a hypothesis test to see if your decision and conclusion would change if your belief were that the brown trout’s mean I.Q. is not four.\n- H0: μ = 4\n- Ha: μ ≠ 4\n- Let $\\overline{X}$ the average I.Q. of a set of brown trout.\n- two-tailed Student's t-test\n- t = 1.95\n- p-value = 0.076\n- Check student’s solution.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: The p-value is greater than 0.05\n- Conclusion: There is insufficient evidence to conclude that the average IQ of brown trout is not four.\n- (3.8865,5.9468)\nAccording to an article in Newsweek, the birth ratio of females to males is 100:105. In China, the birth ratio is 100: 114 (46.7% females). Suppose you want to explore the reported figures of the percent of females born in China. You conduct a study. In this study, you count the number of females and males born in 150 randomly chosen recent births. There are 60 females and 90 males born of the 150. Based on your study, do you believe that the percent of females born in China is 46.7?\nA poll done for Newsweek found that 13% of Americans have seen or sensed the presence of an angel. A contingent doubts that the percent is really that high. It conducts its own survey. Out of 76 Americans surveyed, only two had seen or sensed the presence of an angel. As a result of the contingent’s survey, would you agree with the Newsweek poll? In complete sentences, also give three reasons why the two polls might give different results.\n- H0: p ≥ 0.13\n- Ha: p < 0.13\n- Let P′ = the proportion of Americans who have seen or sensed angels\n- normal for a single proportion\n- –2.688\n- p-value = 0.0036\n- Check student’s solution.\n-\n- alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: The p-value is less than 0.05.\n- Conclusion: There is sufficient evidence to conclude that the percentage of Americans who have seen or sensed an angel is less than 13%.\n- (0, 0.0623). The“plus-4s” confidence interval is (0.0022, 0.0978)\nThe mean work week for engineers in a start-up company is believed to be about 60 hours. A newly hired engineer hopes that it’s shorter. They ask ten engineering friends in start-ups for the lengths of their mean work weeks. Based on the results that follow, should the engineer count on the mean work week to be shorter than 60 hours?\nData (length of mean work week): 70; 45; 55; 60; 65; 55; 55; 60; 50; 55.\nUse the “Lap time” data for Lap 4 (see Data Sets) to test the claim that Terri finishes Lap 4, on average, in less than 129 seconds. Use all twenty races given.\n- H0: μ ≥ 129\n- Ha: μ < 129\n- Let $\\overline{X}$ = the average time in seconds that Terri finishes Lap 4.\n- Student's t-distribution\n- t = 1.209\n- 0.8792\n- Check student’s solution.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: The p-value is greater than 0.05.\n- Conclusion: There is insufficient evidence to conclude that Terri’s mean lap time is less than 129 seconds.\n- (128.63, 130.37)\nUse the “Initial Public Offering” data (see Data Sets) to test the claim that the mean offer price was \\$18 per share. Do not use all the data. Use your random number generator to randomly survey 15 prices.\nNOTE\nThe following questions were written by past students. They are excellent problems!\n\"Asian Family Reunion,\" by Chau Nguyen\nEvery two years it comes around.\nWe all get together from different towns.\nIn my honest opinion,\nIt's not a typical family reunion.\nNot forty, or fifty, or sixty,\nBut how about seventy companions!\nThe kids would play, scream, and shout\nOne minute they're happy, another they'll pout.\nThe teenagers would look, stare, and compare\nFrom how they look to what they wear.\nThe men would chat about their business\nThat they make more, but never less.\nMoney is always their subject\nAnd there's always talk of more new projects.\nThe women get tired from all of the chats\nThey head to the kitchen to set out the mats.\nSome would sit and some would stand\nEating and talking with plates in their hands.\nThen come the games and the songs\nAnd suddenly, everyone gets along!\nWith all that laughter, it's sad to say\nThat it always ends in the same old way.\nThey hug and kiss and say \"good-bye\"\nAnd then they all begin to cry!\nI say that 60 percent shed their tears\nBut my mom counted 35 people this year.\nShe said that boys and men will always have their pride,\nSo we won't ever see them cry.\nI myself don't think she's correct,\nSo could you please try this problem to see if you object?\n- H0: p = 0.60\n- Ha: p < 0.60\n- Let P′ = the proportion of family members who shed tears at a reunion.\n- normal for a single proportion\n- –1.71\n- 0.0438\n- Check student’s solution.\n-\n- alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: p-value < alpha\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the proportion of family members who shed tears at a reunion is less than 0.60. However, the test is weak because the p-value and alpha are quite close, so other tests should be done.\n- We are 95% confident that between 38.29% and 61.71% of family members will shed tears at a family reunion. (0.3829, 0.6171). The“plus-4s” confidence interval (see Confidence Intervals) is (0.3861, 0.6139)\nNote that here the “large-sample” 1 – PropZTest provides the approximate p-value of 0.0438. Whenever a p-value based on a normal approximation is close to the level of significance, the exact p-value based on binomial probabilities should be calculated whenever possible. This is beyond the scope of this course.\n\"The Problem with Angels,\" by Cyndy Dowling\nAlthough this problem is wholly mine,\nThe catalyst came from the magazine, Time.\nOn the magazine cover I did find\nThe realm of angels tickling my mind.\nInside, 69% I found to be\nIn angels, Americans do believe.\nThen, it was time to rise to the task,\nNinety-five high school and college students I did ask.\nViewing all as one group,\nRandom sampling to get the scoop.\nSo, I asked each to be true,\n\"Do you believe in angels?\" Tell me, do!\nHypothesizing at the start,\nTotally believing in my heart\nThat the proportion who said yes\nWould be equal on this test.\nLo and behold, seventy-three did arrive,\nOut of the sample of ninety-five.\nNow your job has just begun,\nSolve this problem and have some fun.\n\"Blowing Bubbles,\" by Sondra Prull\nStudying stats just made me tense,\nI had to find some sane defense.\nSome light and lifting simple play\nTo float my math anxiety away.\nBlowing bubbles lifts me high\nTakes my troubles to the sky.\nPOIK! They're gone, with all my stress\nBubble therapy is the best.\nThe label said each time I blew\nThe average number of bubbles would be at least 22.\nI blew and blew and this I found\nFrom 64 blows, they all are round!\nBut the number of bubbles in 64 blows\nVaried widely, this I know.\n20 per blow became the mean\nThey deviated by 6, and not 16.\nFrom counting bubbles, I sure did relax\nBut now I give to you your task.\nWas 22 a reasonable guess?\nFind the answer and pass this test!\n- H0: μ ≥ 22\n- Ha: μ < 22\n- Let $\\overline{X}$ = the mean number of bubbles per blow.\n- Student's t-distribution\n- –2.667\n- p-value = 0.00486\n- Check student’s solution.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: The p-value is less than 0.05.\n- Conclusion: There is sufficient evidence to conclude that the mean number of bubbles per blow is less than 22.\n- (18.501, 21.499)\n\"Dalmatian Darnation,\" by Kathy Sparling\nA greedy dog breeder named Spreckles\nBred puppies with numerous freckles\nThe Dalmatians he sought\nPossessed spot upon spot\nThe more spots, he thought, the more shekels.\nHis competitors did not agree\nThat freckles would increase the fee.\nThey said, “Spots are quite nice\nBut they don't affect price;\nOne should breed for improved pedigree.”\nThe breeders decided to prove\nThis strategy was a wrong move.\nBreeding only for spots\nWould wreak havoc, they thought.\nHis theory they want to disprove.\nThey proposed a contest to Spreckles\nComparing dog prices to freckles.\nIn records they looked up\nOne hundred one pups:\nDalmatians that fetched the most shekels.\nThey asked Mr. Spreckles to name\nAn average spot count he'd claim\nTo bring in big bucks.\nSaid Spreckles, “Well, shucks,\nIt's for one hundred one that I aim.”\nSaid an amateur statistician\nWho wanted to help with this mission.\n“Twenty-one for the sample\nStandard deviation's ample:\nThey examined one hundred and one\nDalmatians that fetched a good sum.\nThey counted each spot,\nMark, freckle and dot\nAnd tallied up every one.\nInstead of one hundred one spots\nThey averaged ninety six dots\nCan they muzzle Spreckles’\nObsession with freckles\nBased on all the dog data they've got?\n\"Macaroni and Cheese, please!!\" by Nedda Misherghi and Rachelle Hall\nAs a poor starving student I don't have much money to spend for even the bare necessities. So my favorite and main staple food is macaroni and cheese. It's high in taste and low in cost and nutritional value.\nOne day, as I sat down to determine the meaning of life, I got a serious craving for this, oh, so important, food of my life. So I went down the street to Greatway to get a box of macaroni and cheese, but it was SO expensive! \\$2.02!!! Can you believe it? It made me stop and think. The world is changing fast. I had thought that the mean cost of a box (the normal size, not some super-gigantic-family-value-pack) was at most \\$1, but now I wasn't so sure. However, I was determined to find out. I went to 53 of the closest grocery stores and surveyed the prices of macaroni and cheese. Here are the data I wrote in my notebook:\nPrice per box of Mac and Cheese:\n- 5 stores @ \\$2.02\n- 15 stores @ \\$0.25\n- 3 stores @ \\$1.29\n- 6 stores @ \\$0.35\n- 4 stores @ \\$2.27\n- 7 stores @ \\$1.50\n- 5 stores @ \\$1.89\n- 8 stores @ 0.75.\nI could see that the cost varied but I had to sit down to figure out whether or not I was right. If it does turn out that this mouth-watering dish is at most \\$1, then I'll throw a big cheesy party in our next statistics lab, with enough macaroni and cheese for just me. (After all, as a poor starving student I can't be expected to feed our class of animals!)\n- H0: μ ≤ 1\n- Ha: μ > 1\n- Let $\\overline{X}$ = the mean cost in dollars of macaroni and cheese in a certain town.\n- Student's t-distribution\n- t = 0.340\n- p-value = 0.36756\n- Check student’s solution.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: The p-value is greater than 0.05\n- Conclusion: The mean cost could be \\$1, or less. At the 5% significance level, there is insufficient evidence to conclude that the mean price of a box of macaroni and cheese is more than \\$1.\n- (0.8291, 1.241)\n\"William Shakespeare: The Tragedy of Hamlet, Prince of Denmark,\" by Jacqueline Ghodsi\nTHE CHARACTERS (in order of appearance):\n- HAMLET, Prince of Denmark and student of Statistics\n- POLONIUS, Hamlet’s tutor\n- HOROTIO, friend to Hamlet and fellow student\nScene: The great library of the castle, in which Hamlet does his lessons\nAct I\n(The day is fair, but the face of Hamlet is clouded. He paces the large room. His tutor, Polonius, is reprimanding Hamlet regarding the latter’s recent experience. Horatio is seated at the large table at right stage.)\nPOLONIUS: My Lord, how cans’t thou admit that thou hast seen a ghost! It is but a figment of your imagination!\nHAMLET: I beg to differ; I know of a certainty that five-and-seventy in one hundred of us, condemned to the whips and scorns of time as we are, have gazed upon a spirit of health, or goblin damn’d, be their intents wicked or charitable.\nPOLONIUS If thou doest insist upon thy wretched vision then let me invest your time; be true to thy work and speak to me through the reason of the null and alternate hypotheses. (He turns to Horatio.) Did not Hamlet himself say, “What piece of work is man, how noble in reason, how infinite in faculties? Then let not this foolishness persist. Go, Horatio, make a survey of three-and-sixty and discover what the true proportion be. For my part, I will never succumb to this fantasy, but deem man to be devoid of all reason should thy proposal of at least five-and-seventy in one hundred hold true.\nHORATIO (to Hamlet): What should we do, my Lord?\nHAMLET: Go to thy purpose, Horatio.\nHORATIO: To what end, my Lord?\nHAMLET: That you must teach me. But let me conjure you by the rights of our fellowship, by the consonance of our youth, but the obligation of our ever-preserved love, be even and direct with me, whether I am right or no.\n(Horatio exits, followed by Polonius, leaving Hamlet to ponder alone.)\nAct II\n(The next day, Hamlet awaits anxiously the presence of his friend, Horatio. Polonius enters and places some books upon the table just a moment before Horatio enters.)\nPOLONIUS: So, Horatio, what is it thou didst reveal through thy deliberations?\nHORATIO: In a random survey, for which purpose thou thyself sent me forth, I did discover that one-and-forty believe fervently that the spirits of the dead walk with us. Before my God, I might not this believe, without the sensible and true avouch of mine own eyes.\nPOLONIUS: Give thine own thoughts no tongue, Horatio. (Polonius turns to Hamlet.) But look to’t I charge you, my Lord. Come Horatio, let us go together, for this is not our test. (Horatio and Polonius leave together.)\nHAMLET: To reject, or not reject, that is the question: whether ‘tis nobler in the mind to suffer the slings and arrows of outrageous statistics, or to take arms against a sea of data, and, by opposing, end them. (Hamlet resignedly attends to his task.)\n(Curtain falls)\n\"Untitled,\" by Stephen Chen\nI've often wondered how software is released and sold to the public. Ironically, I work for a company that sells products with known problems. Unfortunately, most of the problems are difficult to create, which makes them difficult to fix. I usually use the test program X, which tests the product, to try to create a specific problem. When the test program is run to make an error occur, the likelihood of generating an error is 1%.\nSo, armed with this knowledge, I wrote a new test program Y that will generate the same error that test program X creates, but more often. To find out if my test program is better than the original, so that I can convince the management that I'm right, I ran my test program to find out how often I can generate the same error. When I ran my test program 50 times, I generated the error twice. While this may not seem much better, I think that I can convince the management to use my test program instead of the original test program. Am I right?\n- H0: p = 0.01\n- Ha: p > 0.01\n- Let P′ = the proportion of errors generated\n- Normal for a single proportion\n- 2.13\n- 0.0165\n- Check student’s solution.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis\n- Reason for decision: The p-value is less than 0.05.\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the proportion of errors generated is more than 0.01.\n- Confidence interval: (0, 0.094).The“plus-4s” confidence interval is (0.004, 0.144).\n\"Japanese Girls’ Names\"\nby Kumi Furuichi\nIt used to be very typical for Japanese girls’ names to end with “ko.” (The trend might have started around my grandmothers’ generation and its peak might have been around my mother’s generation.) “Ko” means “child” in Chinese characters. Parents would name their daughters with “ko” attaching to other Chinese characters which have meanings that they want their daughters to become, such as Sachiko—happy child, Yoshiko—a good child, Yasuko—a healthy child, and so on.\nHowever, I noticed recently that only two out of nine of my Japanese girlfriends at this school have names which end with “ko.” More and more, parents seem to have become creative, modernized, and, sometimes, westernized in naming their children.\nI have a feeling that, while 70 percent or more of my mother’s generation would have names with “ko” at the end, the proportion has dropped among my peers. I wrote down all my Japanese friends’, ex-classmates’, co-workers, and acquaintances’ names that I could remember. Following are the names. (Some are repeats.) Test to see if the proportion has dropped for this generation.\nAi, Akemi, Akiko, Ayumi, Chiaki, Chie, Eiko, Eri, Eriko, Fumiko, Harumi, Hitomi, Hiroko, Hiroko, Hidemi, Hisako, Hinako, Izumi, Izumi, Junko, Junko, Kana, Kanako, Kanayo, Kayo, Kayoko, Kazumi, Keiko, Keiko, Kei, Kumi, Kumiko, Kyoko, Kyoko, Madoka, Maho, Mai, Maiko, Maki, Miki, Miki, Mikiko, Mina, Minako, Miyako, Momoko, Nana, Naoko, Naoko, Naoko, Noriko, Rieko, Rika, Rika, Rumiko, Rei, Reiko, Reiko, Sachiko, Sachiko, Sachiyo, Saki, Sayaka, Sayoko, Sayuri, Seiko, Shiho, Shizuka, Sumiko, Takako, Takako, Tomoe, Tomoe, Tomoko, Touko, Yasuko, Yasuko, Yasuyo, Yoko, Yoko, Yoko, Yoshiko, Yoshiko, Yoshiko, Yuka, Yuki, Yuki, Yukiko, Yuko, Yuko.\n\"Phillip’s Wish,\" by Suzanne Osorio\nMy nephew likes to play\nChasing the girls makes his day.\nHe asked his mother\nIf it is okay\nTo get his ear pierced.\nShe said, “No way!”\nTo poke a hole through your ear,\nIs not what I want for you, dear.\nHe argued his point quite well,\nSays even my macho pal, Mel,\nHas gotten this done.\nIt’s all just for fun.\nC’mon please, mom, please, what the hell.\nAgain Phillip complained to his mother,\nSaying half his friends (including their brothers)\nAre piercing their ears\nAnd they have no fears\nHe wants to be like the others.\nShe said, “I think it’s much less.\nWe must do a hypothesis test.\nAnd if you are right,\nI won’t put up a fight.\nBut, if not, then my case will rest.”\nWe proceeded to call fifty guys\nTo see whose prediction would fly.\nNineteen of the fifty\nSaid piercing was nifty\nAnd earrings they’d occasionally buy.\nThen there’s the other thirty-one,\nWho said they’d never have this done.\nSo now this poem’s finished.\nWill his hopes be diminished,\nOr will my nephew have his fun?\n- H0: p = 0.50\n- Ha: p < 0.50\n- Let P′ = the proportion of friends that has a pierced ear.\n- normal for a single proportion\n- –1.70\n- p-value = 0.0448\n- Check student’s solution.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis\n- Reason for decision: The p-value is less than 0.05. (However, they are very close.)\n- Conclusion: There is sufficient evidence to support the claim that less than 50% of his friends have pierced ears.\n- Confidence Interval: (0.245, 0.515): The “plus-4s” confidence interval is (0.259, 0.519).\n\"The Craven,\" by Mark Salangsang\nOnce upon a morning dreary\nIn stats class I was weak and weary.\nPondering over last night’s homework\nWhose answers were now on the board\nThis I did and nothing more.\nWhile I nodded nearly napping\nSuddenly, there came a tapping.\nAs someone gently rapping,\nRapping my head as I snore.\nQuoth the teacher, “Sleep no more.”\n“In every class you fall asleep,”\nThe teacher said, his voice was deep.\n“So a tally I’ve begun to keep\nOf every class you nap and snore.\nThe percentage being forty-four.”\n“My dear teacher I must confess,\nWhile sleeping is what I do best.\nThe percentage, I think, must be less,\nA percentage less than forty-four.”\nThis I said and nothing more.\n“We’ll see,” he said and walked away,\nAnd fifty classes from that day\nHe counted till the month of May\nThe classes in which I napped and snored.\nThe number he found was twenty-four.\nAt a significance level of 0.05,\nPlease tell me am I still alive?\nOr did my grade just take a dive\nPlunging down beneath the floor?\nUpon thee I hereby implore.\nToastmasters International cites a report by Gallup Poll that 40% of Americans fear public speaking. A student believes that less than 40% of students at their school fear public speaking. The student randomly surveys 361 schoolmates and finds that 135 report they fear public speaking. Conduct a hypothesis test to determine if the percent at their school is less than 40%.\n- H0: p = 0.40\n- Ha: p < 0.40\n- Let P′ = the proportion of schoolmates who fear public speaking.\n- normal for a single proportion\n- –1.01\n- p-value = 0.1563\n- Check student’s solution.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: The p-value is greater than 0.05.\n- Conclusion: There is insufficient evidence to support the claim that less than 40% of students at the school fear public speaking.\n- Confidence Interval: (0.3241, 0.4240): The “plus-4s” confidence interval is (0.3257, 0.4250).\nSixty-eight percent of online courses taught at community colleges nationwide were taught by full-time faculty. To test if 68% also represents California’s percent for full-time faculty teaching the online classes, Long Beach City College (LBCC) in California, was randomly selected for comparison. In the same year, 34 of the 44 online courses LBCC offered were taught by full-time faculty. Conduct a hypothesis test to determine if 68% represents California. NOTE: For more accurate results, use more California community colleges and this past year's data.\nAccording to New York City's Community Health Survey, the most recent adult smoking rate is 12%. Suppose that a survey is conducted to determine this year’s rate. Nine out of 70 randomly chosen N.Y. City residents reply that they smoke. Conduct a hypothesis test to determine if the rate is still 12% or if it has decreased.\n- H0: p = 0.12\n- Ha: p < 0.12\n- Let $\\begin{matrix} {P}^{'} & = & \\end{matrix}$ the proportion of NYC residents that smoke.\n- Normal for a single proportion\n- 0.2207\n- p-value = 0.5873\n- Answers may vary\n-\n- alpha 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for Decision: The p-value is greater than 0.05.\n- At the 5% significance level, there is insufficient evidence to conclude that the proportion of NYC residents who smoke is less than 0.14.\n- Confidence interval: Confidence Interval: (0.0502, 0.2070): The “plus-4s” confidence interval (see Confidence Intervals) is (0.0676, 0.2297).\nThe mean age of De Anza College students in a previous term was 26.6 years old. An instructor thinks the mean age for online students is older than 26.6. They randomly survey 56 online students and find that the sample mean is 29.4 with a standard deviation of 2.1. Conduct a hypothesis test.\nRegistered nurses earned an average annual salary of \\$69,110. For that same year, a survey was conducted of 41 California registered nurses to determine if the annual salary is higher than \\$69,110 for California nurses. The sample average was \\$71,121 with a sample standard deviation of \\$7,489. Conduct a hypothesis test.\n- H0: p = 0.12\n- Ha: p < 0.12\n- Let $\\begin{matrix} {P}^{'} & = & \\end{matrix}$ the proportion of NYC residents that smoke.\n- Normal for a single proportion\n- 0.2207\n- p-value = 0.5873\n- Answers may vary\n-\n- alpha 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: The p-value is less than 0.05.\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the mean salary of California registered nurses exceeds \\$69,110.\n- (\\$68,757, \\$73,485)\nLa Leche League International reports that the mean age of weaning a child from breastfeeding is age four to five worldwide. In America, most nursing mothers wean their children much earlier. Suppose a random survey is conducted of 21 U.S. mothers who recently weaned their children. The mean weaning age was nine months (3/4 year) with a standard deviation of 4 months. Conduct a hypothesis test to determine if the mean weaning age in the U.S. is less than four years old.\nOver the past few decades, public health officials have examined the link between weight concerns and teen girls' smoking. Researchers surveyed a group of 273 randomly selected teen girls living in Massachusetts (between 12 and 15 years old). After four years the girls were surveyed again. Sixty-three said they smoked to stay thin. Is there good evidence that more than 30% of the teen girls smoke to stay thin?After conducting the test, your decision and conclusion are\n- Reject H0: There is sufficient evidence to conclude that more than 30% of teen girls smoke to stay thin.\n- Do not reject H0: There is not sufficient evidence to conclude that less than 30% of teen girls smoke to stay thin.\n- Do not reject H0: There is not sufficient evidence to conclude that more than 30% of teen girls smoke to stay thin.\n- Reject H0: There is sufficient evidence to conclude that less than 30% of teen girls smoke to stay thin.\nc\nA statistics instructor believes that fewer than 20% of Evergreen Valley College (EVC) students attended the opening night midnight showing of the latest Marvel Universe movie. The instructor surveys 84 students and finds that 11 of them attended the midnight showing. At a 1% level of significance, an appropriate conclusion is:\n- There is insufficient evidence to conclude that the percent of EVC students who attended the midnight showing of Marvel Universe is less than 20%.\n- There is sufficient evidence to conclude that the percent of EVC students who attended the midnight showing of Marvel Universe is more than 20%.\n- There is sufficient evidence to conclude that the percent of EVC students who attended the midnight showing of Marvel Universe is less than 20%.\n- There is insufficient evidence to conclude that the percent of EVC students who attended the midnight showing of Marvel Universe is at least 20%.\nPreviously, an organization reported that teenagers spent 4.5 hours per week, on average, on the phone. The organization thinks that, currently, the mean is higher. Fifteen randomly chosen teenagers were asked how many hours per week they spend on the phone. The sample mean was 4.75 hours with a sample standard deviation of 2.0. Conduct a hypothesis test. At a significance level of a = 0.05, what is the correct conclusion?\n- There is enough evidence to conclude that the mean number of hours is more than 4.75\n- There is enough evidence to conclude that the mean number of hours is more than 4.5\n- There is not enough evidence to conclude that the mean number of hours is more than 4.5\n- There is not enough evidence to conclude that the mean number of hours is more than 4.75\nc\nInstructions: For the following ten exercises, Hypothesis testing: For the following ten exercises, answer each question.\n- State the null and alternate hypothesis.\n- State the p-value.\n- State alpha.\n- What is your decision?\n- Write a conclusion.\n- Answer any other questions asked in the problem.\nAccording to the Center for Disease Control website, in 2022 at least 2% of high school students reported they had smoked a cigarette. An Introduction to Statistics class conducted a hypothesis test at the local high school (a medium sized–approximately 1,200 students–small city demographic) to determine if the local high school’s percentage was lower. One hundred fifty students were chosen at random and surveyed. Of the 150 students surveyed, 82 have smoked. Use a significance level of 0.05 and using appropriate statistical evidence, conduct a hypothesis test and state the conclusions.\nA recent survey in the N.Y. Times Almanac indicated that 48.8% of families own stock. A broker wanted to determine if this survey could be valid. They surveyed a random sample of 250 families and found that 142 owned some type of stock. At the 0.05 significance level, can the survey be considered to be accurate?\n- H0: p = 0.488 Ha: p ≠ 0.488\n- p-value = 0.0114\n- alpha = 0.05\n- Reject the null hypothesis.\n- There is enough evidence to conclude that the percent of families owning stocks is not 48.8%.\n- The survey does not appear to be accurate.\nDriver error can be listed as the cause of approximately 54% of all fatal auto accidents, according to the American Automobile Association. Thirty randomly selected fatal accidents are examined, and it is determined that 14 were caused by driver error. Using α = 0.05, is the AAA proportion accurate?\nThe US Department of Energy reported that 51.7% of homes were heated by natural gas. A random sample of 221 homes in Kentucky found that 115 were heated by natural gas. Does the evidence support the claim for Kentucky at the α = 0.05 level in Kentucky? Are the results applicable across the country? Why?\n- H0: p = 0.517 Ha: p ≠ 0.517\n- p-value = 0.9203.\n- alpha = 0.05.\n- Do not reject the null hypothesis.\n- At the 5% significance level, there is not enough evidence to conclude that the proportion of homes in Kentucky that are heated by natural gas is different from the proportion of homes heated by natural gas across the country.\n- However, we cannot generalize this result to the entire nation. First, the sample’s population is only the state of Kentucky. Second, it is reasonable to assume that homes in the extreme north and south will have extreme high usage and low usage, respectively. We would need to expand our sample base to include these possibilities if we wanted to generalize this claim to the entire nation.\nFor Americans using library services, the American Library Association claims that at most 67% of patrons borrow books. The library director in Owensboro, Kentucky feels this is not true, so they asked a local college statistic class to conduct a survey. The class randomly selected 100 patrons and found that 82 borrowed books. Did the class demonstrate that the percentage was higher in Owensboro, KY? Use α = 0.01 level of significance. What is the possible proportion of patrons that do borrow books from the Owensboro Library?\nThe Weather Underground reported that the mean amount of summer rainfall for the northeastern US is at least 11.52 inches. Ten cities in the northeast are randomly selected and the mean rainfall amount is calculated to be 7.42 inches with a standard deviation of 1.3 inches. At the α = 0.05 level, can it be concluded that the mean rainfall was below the reported average? What if α = 0.01? Assume the amount of summer rainfall follows a normal distribution.\n- H0: µ ≥ 11.52 Ha: µ < 11.52\n- p-value = 0.000002 which is almost 0.\n- alpha = 0.05.\n- Reject the null hypothesis.\n- At the 5% significance level, there is enough evidence to conclude that the mean amount of summer rain in the northeaster US is less than 11.52 inches, on average.\n- We would make the same conclusion if alpha was 1% because the p-value is almost 0.\nA survey in the N.Y. Times Almanac finds the mean commute time (one way) is 25.4 minutes for the 15 largest US cities. The Austin, TX chamber of commerce feels that Austin’s commute time is less and wants to publicize this fact. The mean for 25 randomly selected commuters is 22.1 minutes with a standard deviation of 5.3 minutes. At the α = 0.10 level, is the Austin, TX commute significantly less than the mean commute time for the 15 largest US cities?\nA report by the Gallup Poll found that a woman visits her doctor, on average, at most 5.8 times each year. A random sample of 20 women results in these yearly visit totals\n- 3\n- 2\n- 1\n- 3\n- 7\n- 2\n- 9\n- 4\n- 6\n- 6\n- 8\n- 0\n- 5\n- 6\n- 4\n- 2\n- 1\n- 3\n- 4\n- 1\nAt the α = 0.05 level can it be concluded that the sample mean is higher than 5.8 visits per year?\n- H0: µ ≤ 5.8 Ha: µ > 5.8\n- p-value = 0.9987\n- alpha = 0.05\n- Do not reject the null hypothesis.\n- At the 5% level of significance, there is not enough evidence to conclude that a woman visits her doctor, on average, more than 5.8 times a year.\nAccording to the U.S. Census Bureau, the mean family size in the U.S. is 3.13. A sample of a college math class resulted in the following family sizes:\n- 5\n- 4\n- 5\n- 4\n- 4\n- 3\n- 6\n- 4\n- 3\n- 3\n- 5\n- 5\n- 6\n- 3\n- 3\n- 2\n- 7\n- 4\n- 5\n- 2\n- 2\n- 2\n- 3\n- 2\nAt α = 0.05 level, is the class’ mean family size greater than the national average? Does the census result remain valid? Why?\nThe student academic group on a college campus claims that first-year students study at least 2.5 hours per day, on average. One Introduction to Statistics class was skeptical. The class took a random sample of 30 first-year students and found a mean study time of 137 minutes with a standard deviation of 45 minutes. At α = 0.01 level, is the student academic group’s claim correct?\n- H0: µ ≥ 150 Ha: µ < 150\n- p-value = 0.0622\n- alpha = 0.01\n- Do not reject the null hypothesis.\n- At the 1% significance level, there is not enough evidence to conclude that first-year students study less than 2.5 hours per day, on average.\n- The student academic group’s claim appears to be correct.\nReferences\nData from Amit Schitai. Director of Instructional Technology and Distance Learning. LBCC.\nData from Bloomberg Businessweek. Available online at http://www.businessweek.com/news/2011- 09-15/nyc-smoking-rate-falls-to-record-low-of-14-bloomberg-says.html.\nData from energy.gov. Available online at http://energy.gov (accessed June 27. 2013).\nData from Gallup®. Available online at www.gallup.com (accessed June 27, 2013).\nData from Growing by Degrees by Allen and Seaman.\nData from La Leche League International. Available online at http://www.lalecheleague.org/Law/BAFeb01.html.\nData from the American Automobile Association. Available online at www.aaa.com (accessed June 27, 2013).\nData from the American Library Association. Available online at www.ala.org (accessed June 27, 2013).\nData from the Bureau of Labor Statistics. Available online at http://www.bls.gov/oes/current/oes291111.htm.\nData from the Centers for Disease Control and Prevention. Available online at www.cdc.gov (accessed June 27, 2013)\nData from the U.S. Census Bureau, available online at http://quickfacts.census.gov/qfd/states/00000.html (accessed June 27, 2013).\nData from the United States Census Bureau. Available online at http://www.census.gov/hhes/socdemo/language/.\nData from Toastmasters International. Available online at http://toastmasters.org/artisan/detail.asp?CategoryID=1&SubCategoryID=10&ArticleID=429&Page=1.\nData from Weather Underground. Available online at www.wunderground.com (accessed June 27, 2013).\nFederal Bureau of Investigations. “Uniform Crime Reports and Index of Crime in Daviess in the State of Kentucky enforced by Daviess County from 1985 to 2005.” Available online at http://www.disastercenter.com/kentucky/crime/3868.htm (accessed June 27, 2013).\n“Foothill-De Anza Community College District.” De Anza College, Winter 2006. Available online at http://research.fhda.edu/factbook/DAdemofs/Fact_sheet_da_2006w.pdf.\nJohansen, C., J. Boice, Jr., J. McLaughlin, J. Olsen. “Cellular Telephones and Cancer—a Nationwide Cohort Study in Denmark.” Institute of Cancer Epidemiology and the Danish Cancer Society, 93(3):203-7. Available online at http://www.ncbi.nlm.nih.gov/pubmed/11158188 (accessed June 27, 2013).\nRape, Abuse & Incest National Network. “How often does sexual assault occur?” RAINN, 2009. Available online at http://www.rainn.org/get-information/statistics/frequency-of-sexual-assault (accessed June 27, 2013).\n\nGlossary\nCentral Limit Theorem Given a random variable (RV) with known mean $\\mu$ and known standard deviation σ. We are sampling with size n and we are interested in two new RVs - the sample mean, $\\overline{X}$, and the sample sum, $\\Sigma X$. If the size n of the sample is sufficiently large, then $\\overline{X}~N(\\mu\\text{,}\\frac{\\sigma}{\\sqrt{n}})$ and $\\Sigma X~N(n\\mu,\\sqrt{n}\\sigma)$. If the size n of the sample is sufficiently large, then the distribution of the sample means and the distribution of the sample sums will approximate a normal distribution regardless of the shape of the population. The mean of the sample means will equal the population mean and the mean of the sample sums will equal n times the population mean. The standard deviation of the distribution of the sample means, $\\frac{\\sigma}{\\sqrt{n}}$, is called the standard error of the mean."}
{"document_id": "openstax-intro-statistics-m50277", "title": "Hypothesis Testing with One Sample — Hypothesis Testing of a Single Mean and Single Proportion", "source": "https://openstax.org/books/introductory-statistics-2e/pages/9-6-hypothesis-testing-of-a-single-mean-and-single-proportion", "license": "CC-BY-4.0", "text": "Hypothesis Testing of a Single Mean and Single Proportion\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will select the appropriate distributions to use in each case.\n- The student will conduct hypothesis tests and interpret the results.\nTelevision Survey\nIn a recent survey, it was stated that Americans watch television on average four hours per day. Assume that σ = 2. Using your class as the sample, conduct a hypothesis test to determine if the average for students at your school is lower.\n- H0: _____________\n- Ha: _____________\n- In words, define the random variable. __________ = ______________________\n- The distribution to use for the test is _______________________.\n- Determine the test statistic using your data.\n- Draw a graph and label it appropriately. Shade the actual level of significance.\n- Graph:\n[Image: Blank graph with vertical and horizontal axes.]\n- Determine the p-value.\n- Do you or do you not reject the null hypothesis? Why?\n- Write a clear conclusion using a complete sentence.\nLanguage Survey\nAbout 42.3% of Californians and 19.6% of all Americans over age five speak a language other than English at home. Using your class as the sample, conduct a hypothesis test to determine if the percent of the students at your school who speak a language other than English at home is different from 42.3%.\n- H0: ___________\n- Ha: ___________\n- In words, define the random variable. __________ = _______________\n- The distribution to use for the test is ________________\n- Determine the test statistic using your data.\n- Draw a graph and label it appropriately. Shade the actual level of significance.\n- Graph:\n[Image: Blank graph with vertical and horizontal axes.]\n- Determine the p-value.\n- Do you or do you not reject the null hypothesis? Why?\n- Write a clear conclusion using a complete sentence.\nJeans Survey\nSuppose that young adults own an average of three pairs of jeans. Survey eight people from your class to determine if the average is higher than three. Assume the population is normal.\n- H0: _____________\n- Ha: _____________\n- In words, define the random variable. __________ = ______________________\n- The distribution to use for the test is _______________________.\n- Determine the test statistic using your data.\n- Draw a graph and label it appropriately. Shade the actual level of significance.\n- Graph:\n[Image: Blank graph with vertical and horizontal axes.]\n- Determine the p-value.\n- Do you or do you not reject the null hypothesis? Why?\n- Write a clear conclusion using a complete sentence."}
{"document_id": "openstax-intro-statistics-m47050", "title": "Hypothesis Testing with Two Samples — Two Population Means with Unknown Standard Deviations", "source": "https://openstax.org/books/introductory-statistics-2e/pages/10-1-two-population-means-with-unknown-standard-deviations", "license": "CC-BY-4.0", "text": "- The two independent samples are simple random samples from two distinct populations.\n- For the two distinct populations:\n- if the sample sizes are small, the distributions are important (should be normal)\n- if the sample sizes are large, the distributions are not important (need not be normal)\nNOTE\nThe test comparing two independent population means with unknown and possibly unequal population standard deviations is called the Aspin-Welch t-test. The degrees of freedom formula was developed by Aspin-Welch.\nThe comparison of two population means is very common. A difference between the two samples depends on both the means and the standard deviations. Very different means can occur by chance if there is great variation among the individual samples. In order to account for the variation, we take the difference of the sample means, ${\\overline{X}}_{1}$ – ${\\overline{X}}_{2}$, and divide by the standard error in order to standardize the difference. The result is a t-score test statistic.\nBecause we do not know the population standard deviations, we estimate them using the two sample standard deviations from our independent samples. For the hypothesis test, we calculate the estimated standard deviation, or standard error, of the difference in sample means, ${\\overline{X}}_{1}$ – ${\\overline{X}}_{2}$.\nThe standard error is:\n$$\\sqrt{\\frac{({s}_{1}{)}^{2}}{{n}_{1}}+\\frac{({s}_{2}{)}^{2}}{{n}_{2}}}$$\nThe test statistic (t-score) is calculated as follows:\n$$\\frac{\\text{(}{\\overline{x}}_{1}–{\\overline{x}}_{2}\\text{)}–\\text{(}{\\mu}_{1}–{\\mu}_{2}\\text{)}}{\\sqrt{\\frac{{\\text{(}{s}_{1}\\text{)}}^{2}}{{n}_{1}}+\\frac{{\\text{(}{s}_{2}\\text{)}}^{2}}{{n}_{2}}}}$$\nwhere:\n- s1 and s2, the sample standard deviations, are estimates of σ1 and σ2, respectively.\n- σ1 and σ2 are the unknown population standard deviations.\n- ${\\overline{x}}_{1}$ and ${\\overline{x}}_{2}$ are the sample means. μ1 and μ2 are the population means.\nThe number of degrees of freedom (df) requires a somewhat complicated calculation. However, a computer or calculator calculates it easily. The df are not always a whole number. The test statistic calculated previously is approximated by the Student's t-distribution with df as follows:\nDegrees of freedom\n$$df=\\frac{{(\\frac{{({s}_{1})}^{2}}{{n}_{1}}+\\frac{{({s}_{2})}^{2}}{{n}_{2}})}^{2}}{(\\frac{1}{{n}_{1}–1}){(\\frac{{({s}_{1})}^{2}}{{n}_{1}})}^{2}+(\\frac{1}{{n}_{2}–1}){(\\frac{{({s}_{2})}^{2}}{{n}_{2}})}^{2}}$$\nWhen both sample sizes n1 and n2 are five or larger, the Student's t approximation is very good. Notice that the sample variances (s1)2 and (s2)2 are not pooled. (If the question comes up, do not pool the variances.)\nNOTE\nIt is not necessary to compute this by hand. A calculator or computer easily computes it.\nIndependent groups\nThe average amount of time boys and girls aged seven to 11 spend playing sports each day is believed to be the same. A study is done and data are collected, resulting in the data in Table. Each populations has a normal distribution.\nSample Size | Average Number of Hours Playing Sports Per Day | Sample Standard Deviation\nGirls | 9 | 2 | $0.866$\nBoys | 16 | 3.2 | 1.00\nIs there a difference in the mean amount of time boys and girls aged seven to 11 play sports each day? Test at the 5% level of significance.\nThe population standard deviations are not known. Let g be the subscript for girls and b be the subscript for boys. Then, μg is the population mean for girls and μb is the population mean for boys. This is a test of two independent groups, two population means.\nRandom variable: ${\\overline{X}}_{g}-{\\overline{X}}_{b}$ = difference in the sample mean amount of time girls and boys play sports each day. H0: μg = μb H0: μg – μb = 0 Ha: μg ≠ μb Ha: μg – μb ≠ 0 The words \"the same\" tell you H0 has an \"=\". Since there are no other words to indicate Ha, assume it says \"is different.\" This is a two-tailed test.\nDistribution for the test: Use tdf where df is calculated using the df formula for independent groups, two population means. Using a calculator, df is approximately 18.8462. Do not pool the variances.\nCalculate the p-value using a Student's t-distribution: p-value = 0.0054\nGraph:\n[Image: This is a normal distribution curve representing the difference in the average amount of time girls and boys play sports all day. The mean is equal to zero, and the values -1.2, 0, and 1.2 are labeled on the horizontal axis. Two vertical lines extend from -1.2 and 1.2 to the curve. The region to the left of x = -1.2 and the region to the right of x = 1.2 are shaded to represent the p-value. The area of each region is 0.0028.]\n${s}_{g}=0.866$ ${s}_{b}=1$ So, ${\\overline{x}}_{g}–{\\overline{x}}_{b}$ = 2 – 3.2 = –1.2 Half the p-value is below –1.2 and half is above 1.2.\nMake a decision: Since α > p-value, reject H0. This means you reject μg = μb. The means are different.\nPress STAT. Arrow over to TESTS and press 4:2-SampTTest. Arrow over to Stats and press ENTER. Arrow down and enter 2 for the first sample mean, $0.866$ for Sx1, 9 for n1, 3.2 for the second sample mean, 1 for Sx2, and 16 for n2. Arrow down to μ1: and arrow to does not equal μ2. Press ENTER. Arrow down to Pooled: and No. Press ENTER. Arrow down to Calculate and press ENTER. The p-value is p = 0.0054, the dfs are approximately 18.8462, and the test statistic is -3.14. Do the procedure again but instead of Calculate do Draw.\nConclusion: At the 5% level of significance, the sample data show there is sufficient evidence to conclude that the mean number of hours that girls and boys aged seven to 11 play sports per day is different (mean number of hours boys aged seven to 11 play sports per day is greater than the mean number of hours played by girls OR the mean number of hours girls aged seven to 11 play sports per day is greater than the mean number of hours played by boys).\nTry It\nTwo samples are shown in Table. Both have normal distributions. The means for the two populations are thought to be the same. Is there a difference in the means? Test at the 5% level of significance.\nSample Size | Sample Mean | Sample Standard Deviation\nPopulation A | 25 | 5 | 1\nPopulation B | 16 | 4.7 | 1.2\nNOTE\nWhen the sum of the sample sizes is larger than 30 (n1 + n2 > 30) you can use the normal distribution to approximate the Student's t. Use the Student's t distribution, however, whenever possible.\nA study is done by a community group in two neighboring colleges to determine which one graduates students with more math classes. College A samples 11 graduates. Their average is four math classes with a standard deviation of 1.5 math classes. College B samples nine graduates. Their average is 3.5 math classes with a standard deviation of one math class. The community group believes that a student who graduates from college A has taken more math classes, on the average. Both populations have a normal distribution. Test at a 1% significance level. Answer the following questions.\na. Is this a test of two means or two proportions?\na. two means\nb. Are the populations standard deviations known or unknown?\nb. unknown\nc. Which distribution do you use to perform the test?\nc. Student's t\nd. What is the random variable?\nd. ${\\overline{X}}_{A}-{\\overline{X}}_{B}$\ne. What are the null and alternate hypotheses? Write the null and alternate hypotheses in words and in symbols.\ne.\n- ${H}_{o}:{\\mu}_{A}\\le{\\mu}_{B}$\n- ${H}_{a}:{\\mu}_{A}>{\\mu}_{B}$\nf. Is this test right-, left-, or two-tailed?\nf.\n[Image: This is a normal distribution curve with mean equal to 0. A vertical line near the tail of the curve to the right of zero extends from the axis to the curve. The region under the curve to the right of the line is shaded.]\nright\ng. What is the p-value?\ng. 0.1928\nh. Do you reject or not reject the null hypothesis?\nh. Do not reject.\ni. Conclusion:\ni. At the 1% level of significance, from the sample data, there is not sufficient evidence to conclude that a student who graduates from college A has taken more math classes, on the average, than a student who graduates from college B.\nTry It\nA study is done to determine if Company A retains its workers longer than Company B. Company A samples 15 workers, and their average time with the company is five years with a standard deviation of 1.2. Company B samples 20 workers, and their average time with the company is 4.5 years with a standard deviation of 0.8. The populations are normally distributed.\n- Are the population standard deviations known?\n- Conduct an appropriate hypothesis test. At the 5% significance level, what is your conclusion?\nA professor at a large community college wanted to determine whether there is a difference in the means of final exam scores between students who took his statistics course online and the students who took his face-to-face statistics class. He believed that the mean of the final exam scores for the online class would be lower than that of the face-to-face class. Was the professor correct? The randomly selected 30 final exam scores from each group are listed in Table and Table.\n67.6 | 41.2 | 85.3 | 55.9 | 82.4 | 91.2 | 73.5 | 94.1 | 64.7 | 64.7\n70.6 | 38.2 | 61.8 | 88.2 | 70.6 | 58.8 | 91.2 | 73.5 | 82.4 | 35.5\n94.1 | 88.2 | 64.7 | 55.9 | 88.2 | 97.1 | 85.3 | 61.8 | 79.4 | 79.4\n77.9 | 95.3 | 81.2 | 74.1 | 98.8 | 88.2 | 85.9 | 92.9 | 87.1 | 88.2\n69.4 | 57.6 | 69.4 | 67.1 | 97.6 | 85.9 | 88.2 | 91.8 | 78.8 | 71.8\n98.8 | 61.2 | 92.9 | 90.6 | 97.6 | 100 | 95.3 | 83.5 | 92.9 | 89.4\nIs the mean of the Final Exam scores of the online class lower than the mean of the Final Exam scores of the face-to-face class? Test at a 5% significance level. Answer the following questions:\n- Is this a test of two means or two proportions?\n- Are the population standard deviations known or unknown?\n- Which distribution do you use to perform the test?\n- What is the random variable?\n- What are the null and alternative hypotheses? Write the null and alternative hypotheses in words and in symbols.\n- Is this test right, left, or two tailed?\n- What is the p-value?\n- Do you reject or not reject the null hypothesis?\n- At the ___ level of significance, from the sample data, there ______ (is/is not) sufficient evidence to conclude that ______.\n(See the conclusion in Example, and write yours in a similar fashion)\n- two means\n- unknown\n- Student's t\n- ${\\overline{X}}_{1}–{\\overline{X}}_{2}$\n-\n- H0: μ1 = μ2 Null hypothesis: the means of the final exam scores are equal for the online and face-to-face statistics classes.\n- Ha: μ1 < μ2 Alternative hypothesis: the mean of the final exam scores of the online class is less than the mean of the final exam scores of the face-to-face class.\n- left-tailed\n- p-value = 0.0011\n[Image: This is a normal distribution curve with mean equal to zero. A vertical line near the tail of the curve to the left of zero extends from the axis to the curve. The region under the curve to the left of the line is shaded representing p-value = 0.0011.]\n- Reject the null hypothesis\n- The professor was correct. The evidence shows that the mean of the final exam scores for the online class is lower than that of the face-to-face class. At the 5% level of significance, from the sample data, there is (is/is not) sufficient evidence to conclude that the mean of the final exam scores for the online class is less than the mean of final exam scores of the face-to-face class.\nFirst put the data for each group into two lists (such as L1 and L2). Press STAT. Arrow over to TESTS and press 4:2SampTTest. Make sure Data is highlighted and press ENTER. Arrow down and enter L1 for the first list and L2 for the second list. Arrow down to μ1: and arrow to < μ2 (less than). Press ENTER. Arrow down to Pooled: No. Press ENTER. Arrow down to Calculate and press ENTER.\nNOTE\nBe careful not to mix up the information for Group 1 and Group 2!\nTry It\nTwo professors, A and B, teach classes on the same subjects. Scores of 10 students from each class are selected randomly. The final exam scores of the students are as follows:\nProfessor A:\n97 | 62 | 73 | 58 | 84\n74 | 66 | 93 | 73 | 85\nProfessor B:\n85 | 64 | 74 | 55 | 76\n67 | 72 | 84 | 71 | 98\nProfessor A says that the mean score of their class is more than the mean of professor B’s class. Is professor A correct? Test at a 5% significance level. Answer the following questions:\n- Is this a test of two means or two proportions?\n- Are the population standard deviations known or unknown?\n- Which distribution do you use to perform the test?\n- What is the random variable?\n- What are the null and alternative hypotheses? Write the null and alternative hypotheses in words and in symbols.\n- Is this test right-, left-, or two-tailed?\n- What is the p-value?\n- Do you reject or not reject the null hypothesis?\n- At the ___ level of significance, from the sample data, there ___ (is/is not) sufficient evidence to conclude that ___.\n- two means\n- unknown\n- Student’s t\n- ${X}_{1}-{X}_{2}$\n-\n- ${H}_{0}:{\\mu}_{1}={\\mu}_{2}$Null hypothesis: the means of final exam scores are equal for both professors.\n- ${H}_{0}:{\\mu}_{2}<{\\mu}_{1}$ Alternative hypothesis: the mean of final exam scores for class of professor B is less than mean of final exam scores for class of professor A.\n- left-tailed\n- p-value = 0.03\n- Reject the null hypothesis.\n- Professor A is correct. The evidence shows that the mean of final exam scores of the class of professor A is more than that of the class of professor B.At the 5% level of significance, from the sample data, there is (is/is not) sufficient evidence to conclude that the mean of final exam scores of the class of professor A is more than that of the class of professor B.\nCohen's Standards for Small, Medium, and Large Effect Sizes\nCohen's d is a measure of effect size based on the differences between two means. Cohen’s d, named for United States statistician Jacob Cohen, measures the relative strength of the differences between the means of two populations based on sample data. The calculated value of effect size is then compared to Cohen’s standards of small, medium, and large effect sizes.\nSize of effect | d\nSmall | 0.2\nmedium | 0.5\nLarge | 0.8\nCohen's d is the measure of the difference between two means divided by the pooled standard deviation: $d=\\frac{{\\overline{x}}_{1}–{\\overline{x}}_{2}}{{s}_{pooled}}$ where ${s}_{pooled}=\\sqrt{\\frac{({n}_{1}–1){s}_{1}^{2}+({n}_{2}–1){s}_{2}^{2}}{{n}_{1}+{n}_{2}–2}}$\nCalculate Cohen’s d for Example. Is the size of the effect small, medium, or large? Explain what the size of the effect means for this problem.\nμ1 = 4 s1 = 1.5 n1 = 11 μ2 = 3.5 s2 = 1 n2 = 9 d = 0.384 The effect is small because 0.384 is between Cohen’s value of 0.2 for small effect size and 0.5 for medium effect size. The size of the differences of the means for the two colleges is small indicating that there is not a significant difference between them.\nTry It\nCalculate Cohen’s d for. Is the size of the effect small, medium, or large? Explain what the size of the effect means for this problem.\n${\\mu}_{1}=5$ ${s}_{1}=1.2$ ${n}_{1}=15$\n${\\mu}_{2}=4.5$ ${s}_{2}=0.8$ ${n}_{2}=20$\nd = 0.49\nThe effect is medium because 0.49 is very close to Cohen’s value of 0.5 for medium effect size. The size of the differences of the means for the two companies is small, indicating that there is not a significant difference between them.\nCalculate Cohen’s d for Example. Is the size of the effect small, medium or large? Explain what the size of the effect means for this problem.\nd = 0.834; Large, because 0.834 is greater than Cohen’s 0.8 for a large effect size. The size of the differences between the means of the Final Exam scores of online students and students in a face-to-face class is large indicating a significant difference.\nTry It\nWeighted alpha is a measure of risk-adjusted performance of stocks over a period of a year. A high positive weighted alpha signifies a stock whose price has risen while a small positive weighted alpha indicates an unchanged stock price during the time period. Weighted alpha is used to identify companies with strong upward or downward trends. The weighted alpha for the top 30 stocks of banks in the northeast and in the west as identified by Nasdaq on May 24, 2013 are listed in Table and Table, respectively.\n94.2 | 75.2 | 69.6 | 52.0 | 48.0 | 41.9 | 36.4 | 33.4 | 31.5 | 27.6\n77.3 | 71.9 | 67.5 | 50.6 | 46.2 | 38.4 | 35.2 | 33.0 | 28.7 | 26.5\n76.3 | 71.7 | 56.3 | 48.7 | 43.2 | 37.6 | 33.7 | 31.8 | 28.5 | 26.0\n126.0 | 70.6 | 65.2 | 51.4 | 45.5 | 37.0 | 33.0 | 29.6 | 23.7 | 22.6\n116.1 | 70.6 | 58.2 | 51.2 | 43.2 | 36.0 | 31.4 | 28.7 | 23.5 | 21.6\n78.2 | 68.2 | 55.6 | 50.3 | 39.0 | 34.1 | 31.0 | 25.3 | 23.4 | 21.5\nIs there a difference in the weighted alpha of the top 30 stocks of banks in the northeast and in the west? Test at a 5% significance level. Answer the following questions:\n- Is this a test of two means or two proportions?\n- Are the population standard deviations known or unknown?\n- Which distribution do you use to perform the test?\n- What is the random variable?\n- What are the null and alternative hypotheses? Write the null and alternative hypotheses in words and in symbols.\n- Is this test right, left, or two tailed?\n- What is the p-value?\n- Do you reject or not reject the null hypothesis?\n- At the ___ level of significance, from the sample data, there ______ (is/is not) sufficient evidence to conclude that ______.\n- Calculate Cohen’s d and interpret it.\nReferences\nData from Graduating Engineer + Computer Careers. Available online at http://www.graduatingengineer.com\nData from Microsoft Bookshelf.\nData from the United States Senate website, available online at www.Senate.gov (accessed June 17, 2013).\n“List of current United States Senators by Age.” Wikipedia. Available online at http://en.wikipedia.org/wiki/List_of_current_United_States_Senators_by_age (accessed June 17, 2013).\n“Sectoring by Industry Groups.” Nasdaq. Available online at http://www.nasdaq.com/markets/barchart-sectors.aspx?page=sectors&base=industry (accessed June 17, 2013).\n“World Series History.” Baseball-Almanac, 2013. Available online at http://www.baseball-almanac.com/ws/wsmenu.shtml (accessed June 17, 2013).\nChapter Review\nTwo population means from independent samples where the population standard deviations are not known\n- Random Variable: ${\\overline{X}}_{1}-{\\overline{X}}_{2}$ = the difference of the sampling means\n- Distribution: Student's t-distribution with degrees of freedom (variances not pooled)\nFormula Review\nStandard error: SE = $\\sqrt{\\frac{{({s}_{1})}^{2}}{{n}_{1}}+\\frac{{({s}_{2})}^{2}}{{n}_{2}}}$\nTest statistic (t-score): t = $\\frac{({\\overline{x}}_{1}-{\\overline{x}}_{2})-({\\mu}_{1}-{\\mu}_{2})}{\\sqrt{\\frac{{({s}_{1})}^{2}}{{n}_{1}}+\\frac{{({s}_{2})}^{2}}{{n}_{2}}}}$\nDegrees of freedom: $df=\\frac{{(\\frac{{({s}_{1})}^{2}}{{n}_{1}}+\\frac{{({s}_{2})}^{2}}{{n}_{2}})}^{2}}{(\\frac{1}{{n}_{1}-1}){(\\frac{{({s}_{1})}^{2}}{{n}_{1}})}^{2}+(\\frac{1}{{n}_{2}-1}){(\\frac{{({s}_{2})}^{2}}{{n}_{2}})}^{2}}$\nwhere:\ns1 and s2 are the sample standard deviations, and n1 and n2 are the sample sizes.\n${\\overline{x}}_{1}$ and ${\\overline{x}}_{2}$ are the sample means.\nCohen’s d is the measure of effect size:\n$d=\\frac{{\\overline{x}}_{1}-{\\overline{x}}_{2}}{{s}_{pooled}}$ where ${s}_{pooled}=\\sqrt{\\frac{({n}_{1}-1){s}_{1}^{2}+({n}_{2}-1){s}_{2}^{2}}{{n}_{1}+{n}_{2}-2}}$\nUse the following information to answer the next 15 exercises: Indicate if the hypothesis test is for\n- independent group means, population standard deviations, and/or variances known\n- independent group means, population standard deviations, and/or variances unknown\n- matched or paired samples\n- single mean\n- two proportions\n- single proportion\nIt is believed that 70% of men pass their drivers test in the first attempt, while 65% of women pass the test in the first attempt. Of interest is whether the proportions are in fact equal.\ntwo proportions\nA new laundry detergent is tested on consumers. Of interest is the proportion of consumers who prefer the new brand over the leading competitor. A study is done to test this.\nA new windshield treatment claims to repel water more effectively. Ten windshields are tested by simulating rain without the new treatment. The same windshields are then treated, and the experiment is run again. A hypothesis test is conducted.\nmatched or paired samples\nThe known standard deviation in salary for all mid-level professionals in the financial industry is \\$11,000. Company A and Company B are in the financial industry. Suppose samples are taken of mid-level professionals from Company A and from Company B. The sample mean salary for mid-level professionals in Company A is \\$80,000. The sample mean salary for mid-level professionals in Company B is \\$96,000. Company A and Company B management want to know if their mid-level professionals are paid differently, on average.\nThe average worker in Germany gets eight weeks of paid vacation.\nsingle mean\nAccording to a television commercial, 80% of dentists agree that Ultrafresh toothpaste is the best on the market.\nIt is believed that the average grade on an English essay in a particular school system for women is higher than for men. A random sample of 31 women had a mean score of 82 with a standard deviation of three, and a random sample of 25 men had a mean score of 76 with a standard deviation of four.\nindependent group means, population standard deviations and/or variances unknown\nThe league mean batting average is 0.280 with a known standard deviation of 0.06. The Rattlers and the Vikings belong to the league. The mean batting average for a sample of eight Rattlers is 0.210, and the mean batting average for a sample of eight Vikings is 0.260. There are 24 players on the Rattlers and 19 players on the Vikings. Are the batting averages of the Rattlers and Vikings statistically different?\nIn a random sample of 100 forests in the United States, 56 were coniferous or contained conifers. In a random sample of 80 forests in Mexico, 40 were coniferous or contained conifers. Is the proportion of conifers in the United States statistically more than the proportion of conifers in Mexico?\ntwo proportions\nA new medicine is said to help improve sleep. Eight subjects are picked at random and given the medicine. The means hours slept for each person were recorded before starting the medication and after.\nIt is thought that teenagers sleep more than adults on average. A study is done to verify this. A sample of 16 teenagers has a mean of 8.9 hours slept and a standard deviation of 1.2. A sample of 12 adults has a mean of 6.9 hours slept and a standard deviation of 0.6.\nindependent group means, population standard deviations and/or variances unknown\nVarsity athletes practice five times a week, on average.\nA sample of 12 in-state graduate school programs at school A has a mean tuition of \\$64,000 with a standard deviation of \\$8,000. At school B, a sample of 16 in-state graduate programs has a mean of \\$80,000 with a standard deviation of \\$6,000. On average, are the mean tuitions different?\nindependent group means, population standard deviations and/or variances unknown\nA new WiFi range booster is being offered to consumers. A researcher tests the native range of 12 different routers under the same conditions. The ranges are recorded. Then the researcher uses the new WiFi range booster and records the new ranges. Does the new WiFi range booster do a better job?\nA high school principal claims that 30% of student athletes drive themselves to school, while 4% of non-athletes drive themselves to school. In a sample of 20 student athletes, 45% drive themselves to school. In a sample of 35 non-athlete students, 6% drive themselves to school. Is the percent of student athletes who drive themselves to school more than the percent of nonathletes?\ntwo proportions\nUse the following information to answer the next three exercises: A study is done to determine which of two soft drinks has more sugar. There are 13 cans of Beverage A in a sample and six cans of Beverage B. The mean amount of sugar in Beverage A is 36 grams with a standard deviation of 0.6 grams. The mean amount of sugar in Beverage B is 38 grams with a standard deviation of 0.8 grams. The researchers believe that Beverage B has more sugar than Beverage A, on average. Both populations have normal distributions.\nAre standard deviations known or unknown?\nWhat is the random variable?\nThe random variable is the difference between the mean amounts of sugar in the two soft drinks.\nIs this a one-tailed or two-tailed test?\nUse the following information to answer the next 12 exercises: The U.S. Center for Disease Control reports that the mean life expectancy was 47.6 years for White people born in 1900 and 33.0 years for non-White people. Suppose that you randomly survey death records for people born in 1900 in a certain county. Of the 124 White people, the mean life span was 45.3 years with a standard deviation of 12.7 years. Of the 82 non-White people, the mean life span was 34.1 years with a standard deviation of 15.6 years. Conduct a hypothesis test to see if the mean life spans in the county were the same for White and non-White people.\nIs this a test of means or proportions?\nmeans\nState the null and alternative hypotheses.\n- H0: __________\n- Ha: __________\nIs this a right-tailed, left-tailed, or two-tailed test?\ntwo-tailed\nIn symbols, what is the random variable of interest for this test?\nIn words, define the random variable of interest for this test.\nthe difference between the mean life spans of White and non-White people\nWhich distribution (normal or Student's t) would you use for this hypothesis test?\nExplain why you chose the distribution you did for Exercise.\nThis is a comparison of two population means with unknown population standard deviations.\nCalculate the test statistic and p-value.\nSketch a graph of the situation. Label the horizontal axis. Mark the hypothesized difference and the sample difference. Shade the area corresponding to the p-value.\nAnswers may vary.\nFind the p-value.\nAt a pre-conceived α = 0.05, what is your:\n- Decision:\n- Reason for the decision:\n- Conclusion (write out in a complete sentence):\n- Reject the null hypothesis\n- p-value < 0.05\n- At the 5% level of significance, the evidence supports the claim that life expectancy in the 1900s was different between White people and non-White people.\nDoes it appear that the means are the same? Why or why not?\nHomework\nDIRECTIONS: For each of the word problems, use a solution sheet to do the hypothesis test. The solution sheet is found in Appendix E. Please feel free to make copies of the solution sheets. For the online version of the book, it is suggested that you copy the.doc or the.pdf files.\nNOTE\nIf you are using a Student's t-distribution for a homework problem in what follows, including for paired data, you may assume that the underlying population is normally distributed. (When using these tests in a real situation, you must first prove that assumption, however.)\nThe mean number of English courses taken in a two–year time period by men and women college students is believed to be about the same. An experiment is conducted and data are collected from 29 men and 16 women. The men took an average of three English courses with a standard deviation of 0.8. The women took an average of four English courses with a standard deviation of 1.0. Are the means statistically the same?\nA student at a four-year college claims that mean enrollment at four–year colleges is higher than at two–year colleges in the United States. Two surveys are conducted. Of the 35 two–year colleges surveyed, the mean enrollment was 5,068 with a standard deviation of 4,777. Of the 35 four-year colleges surveyed, the mean enrollment was 5,466 with a standard deviation of 8,191.\nSubscripts: 1: two-year colleges; 2: four-year colleges\n- H0: μ1 ≥ μ2\n- Ha: μ1 < μ2\n- ${\\overline{X}}_{1}–{\\overline{X}}_{2}$ is the difference between the mean enrollments of the two-year colleges and the four-year colleges.\n- Student’s-t\n- test statistic: -0.2480\n- p-value: 0.4019\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject\n- Reason for Decision: p-value > alpha\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the mean enrollment at four-year colleges is higher than at two-year colleges.\nAt Rachel’s 11th birthday party, eight guests were timed to see how long (in seconds) they could hold their breath in a relaxed position. After a two-minute rest, they timed themselves while jumping. The children thought that the mean difference between their jumping and relaxed times would be zero. Test their hypothesis.\nRelaxed time (seconds) | Jumping time (seconds)\n26 | 21\n47 | 40\n30 | 28\n22 | 21\n23 | 25\n45 | 43\n37 | 35\n29 | 32\nMean entry-level salaries for college graduates with mechanical engineering degrees and electrical engineering degrees are believed to be approximately the same. A recruiting office thinks that the mean mechanical engineering salary is actually lower than the mean electrical engineering salary. The recruiting office randomly surveys 50 entry level mechanical engineers and 60 entry level electrical engineers. Their mean salaries were \\$46,100 and \\$46,700, respectively. Their standard deviations were \\$3,450 and \\$4,210, respectively. Conduct a hypothesis test to determine if you agree that the mean entry-level mechanical engineering salary is lower than the mean entry-level electrical engineering salary.\nSubscripts: 1: mechanical engineering; 2: electrical engineering\n- H0: µ1 ≥ µ2\n- Ha: µ1 < µ2\n- ${\\overline{X}}_{1}-{\\overline{X}}_{2}$ is the difference between the mean entry level salaries of mechanical engineers and electrical engineers.\n- t108\n- test statistic: t = –0.82\n- p-value: 0.2061\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for Decision: p-value > alpha\n- Conclusion: At the 5% significance level, there is insufficient evidence to conclude that the mean entry-level salaries of mechanical engineers is lower than that of electrical engineers.\nMarketing companies have collected data implying that teenage girls use more social media apps on their smartphones than teenage boys do. In one particular study of 40 randomly chosen teenage girls and boys (20 of each) with smartphones, the mean number of social media apps for the girls was 3.2 with a standard deviation of 1.5. The mean for the boys was 1.7 with a standard deviation of 0.8. Conduct a hypothesis test to determine if the means are approximately the same or if the girls’ mean is higher than the boys’ mean.\nUse the information from Data Sets to answer the next four exercises.\nUsing the data from Lap 1 only, conduct a hypothesis test to determine if the mean time for completing a lap in races is the same as it is in practices.\n- H0: µ1 = µ2\n- Ha: µ1 ≠ µ2\n- ${\\overline{X}}_{1}-{\\overline{X}}_{2}$ is the difference between the mean times for completing a lap in races and in practices.\n- t20.32\n- test statistic: –4.70\n- p-value: 0.0001\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for Decision: p-value < alpha\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the mean time for completing a lap in races is different from that in practices.\nRepeat the test in Exercise 10.83, but use Lap 5 data this time.\nRepeat the test in Exercise 10.83, but this time combine the data from Laps 1 and 5.\n- H0: µ1 = µ2\n- Ha: µ1 ≠ µ2\n- is the difference between the mean times for completing a lap in races and in practices.\n- t40.94\n- test statistic: –5.08\n- p-value: zero\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for Decision: p-value < alpha\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the mean time for completing a lap in races is different from that in practices.\nIn two to three complete sentences, explain in detail how you might use Terri Vogel’s data to answer the following question. “Does Terri Vogel drive faster in races than she does in practices?”\nUse the following information to answer the next two exercises. The Eastern and Western Major League Soccer conferences have a new Reserve Division that allows new players to develop their skills. Data for a randomly picked date showed the following annual goals.\nWestern | Eastern\nLos Angeles 9 | D.C. United 9\nFC Dallas 3 | Chicago 8\nChivas USA 4 | Columbus 7\nReal Salt Lake 3 | New England 6\nColorado 4 | MetroStars 5\nSan Jose 4 | Kansas City 3\nConduct a hypothesis test to answer the next two exercises.\nThe exact distribution for the hypothesis test is:\n- the normal distribution\n- the Student's t-distribution\n- the uniform distribution\n- the exponential distribution\nIf the level of significance is 0.05, the conclusion is:\n- There is sufficient evidence to conclude that the W Division teams score fewer goals, on average, than the E teams\n- There is insufficient evidence to conclude that the W Division teams score more goals, on average, than the E teams.\n- There is insufficient evidence to conclude that the W teams score fewer goals, on average, than the E teams score.\n- Unable to determine\nc\nSuppose a statistics instructor believes that there is no significant difference between the mean class scores of statistics day students on Exam 2 and statistics night students on Exam 2. They take random samples from each of the populations. The mean and standard deviation for 35 statistics day students were 75.86 and 16.91. The mean and standard deviation for 37 statistics night students were 75.41 and 19.73. The “day” subscript refers to the statistics day students. The “night” subscript refers to the statistics night students. A concluding statement is:\n- There is sufficient evidence to conclude that statistics night students' mean on Exam 2 is better than the statistics day students' mean on Exam 2.\n- There is insufficient evidence to conclude that the statistics day students' mean on Exam 2 is better than the statistics night students' mean on Exam 2.\n- There is insufficient evidence to conclude that there is a significant difference between the means of the statistics day students and night students on Exam 2.\n- There is sufficient evidence to conclude that there is a significant difference between the means of the statistics day students and night students on Exam 2.\nElijah wants to know whether textbook costs are different for different courses of study. He selects a random sample of 33 sociology textbooks offered on a popular online site. The mean price of his sample is \\$74.64 with a standard deviation of \\$49.36. He then selects a random sample of 33 math and science textbooks from the same site. The mean price of this sample is \\$111.56 with a standard deviation of \\$66.90. Is the mean price of a sociology textbook lower than the mean price of a math or science textbook? Test at a 1% significance level.\nTest: two independent sample means, population standard deviations unknown.\n${\\mu}_{1}$ = the the mean price of a sociology text on the selected site.\n${\\mu}_{2}$ = the mean price of a math/science text on the selected site.\nRandom variable: $\\overline{{X}_{1}}-\\overline{{X}_{1}}$ = the difference in the sample mean textbook price between sociology texts and math/science texts.\nHypotheses: ${H}_{0}:{\\mu}_{1}-{\\mu}_{2}=0,{H}_{a}:{\\mu}_{1}-{\\mu}_{2}<{\\mu}_{2}$ which can be expressed as $H0s:\\mu1-\\mu2,Ha\\mu1<\\mu2$.\nDistribution for the test: Use ${t}_{df}$; because each sample has more than 30 observations, $df={n}_{1}+{n}_{2}-2=33+33-2=64$.\nEstimate the critical value on the $t$-table using the nearest available degrees of freedom, 60. The critical value, 2.660, is found in the.0005 column.\nCalculate the test statistic: ${t}_{c}=\\frac{({\\overline{X}}_{1}-{\\overline{X}}_{2})-0}{\\sqrt{\\frac{{{s}_{1}}^{2}}{{n}_{2}}+\\frac{{{s}_{2}}^{2}}{{n}_{2}}}}=\\frac{(74.64-111.56)-0}{\\sqrt{\\frac{49.{36}^{2}}{33}+\\frac{66.{90}^{2}}{33}}}=-2.55$.\nUsing a calculator with ${t}_{c}=-2.55$ and $df=64$, the left-tailed $p$-value: Decision: Reject ${H}_{0}$. Conclusion: At the 1% level of significance, from the sample data, there is sufficient evidence to conclude that the mean price of sociology textbooks is less than the mean price of textbooks for math/science.\nA powder diet is tested on 49 people, and a liquid diet is tested on 36 different people. Of interest is whether the liquid diet yields a higher mean weight loss than the powder diet. The powder diet group had a mean weight loss of 42 pounds with a standard deviation of 12 pounds. The liquid diet group had a mean weight loss of 45 pounds with a standard deviation of 14 pounds.\nSuppose a statistics instructor believes that there is no significant difference between the mean class scores of statistics day students on Exam 2 and statistics night students on Exam 2. They take random samples from each of the populations. The mean and standard deviation for 35 statistics day students were 75.86 and 16.91, respectively. The mean and standard deviation for 37 statistics night students were 75.41 and 19.73. The “day” subscript refers to the statistics day students. The “night” subscript refers to the statistics night students. An appropriate alternative hypothesis for the hypothesis test is:\n- μday > μnight\n- μday < μnight\n- μday = μnight\n- μday ≠ μnight\nd\n\nGlossary\nDegrees of Freedom (df) the number of objects in a sample that are free to vary.\nStandard Deviation A number that is equal to the square root of the variance and measures how far data values are from their mean; notation: s for sample standard deviation and σ for population standard deviation.\nVariable (Random Variable) a characteristic of interest in a population being studied. Common notation for variables are upper-case Latin letters X, Y, Z,... Common notation for a specific value from the domain (set of all possible values of a variable) are lower-case Latin letters x, y, z,.... For example, if X is the number of children in a family, then x represents a specific integer 0, 1, 2, 3,.... Variables in statistics differ from variables in intermediate algebra in the two following ways.\n- The domain of the random variable (RV) is not necessarily a numerical set; the domain may be expressed in words; for example, if X = hair color, then the domain is {black, blond, gray, green, orange}.\n- We can tell what specific value x of the random variable X takes only after performing the experiment."}
{"document_id": "openstax-intro-statistics-m47061", "title": "Hypothesis Testing with Two Samples — Two Population Means with Known Standard Deviations", "source": "https://openstax.org/books/introductory-statistics-2e/pages/10-2-two-population-means-with-known-standard-deviations", "license": "CC-BY-4.0", "text": "Even though this situation is not likely (knowing the population standard deviations is not likely), the following example illustrates hypothesis testing for independent means, known population standard deviations. The sampling distribution for the difference between the means is normal and both populations must be normal. The random variable is $\\overline{{X}_{1}}–\\overline{{X}_{2}}$. The normal distribution has the following format:\nNormal distribution is:\n$${\\overline{X}}_{1}–{\\overline{X}}_{2}~N[{\\mu}_{1}–{\\mu}_{2},\\sqrt{\\frac{{({\\sigma}_{1})}^{2}}{{n}_{1}}+\\frac{{({\\sigma}_{2})}^{2}}{{n}_{2}}}]$$\nThe standard deviation is:\n$$\\sqrt{\\frac{{({\\sigma}_{1})}^{2}}{{n}_{1}}+\\frac{{({\\sigma}_{2})}^{2}}{{n}_{2}}}$$\nThe test statistic (z-score) is:\n$$z=\\frac{({\\overline{x}}_{1}–{\\overline{x}}_{2})–({\\mu}_{1}–{\\mu}_{2})}{\\sqrt{\\frac{{({\\sigma}_{1})}^{2}}{{n}_{1}}+\\frac{{({\\sigma}_{2})}^{2}}{{n}_{2}}}}$$\nIndependent groups, population standard deviations known: The mean lasting time of two competing floor waxes is to be compared. Twenty floors are randomly assigned to test each wax. Both populations have a normal distributions. The data are recorded in Table.\nWax | Sample Mean Number of Months Floor Wax Lasts | Population Standard Deviation\n1 | 3 | 0.33\n2 | 2.9 | 0.36\nDoes the data indicate that wax 1 is more effective than wax 2? Test at a 5% level of significance.\nThis is a test of two independent groups, two population means, population standard deviations known.\nRandom Variable: ${\\overline{X}}_{1}\\text{–}{\\overline{X}}_{2}$ = difference in the mean number of months the competing floor waxes last.\nH0: μ1 ≤ μ2\nHa: μ1 > μ2\nThe words \"is more effective\" says that wax 1 lasts longer than wax 2, on average. \"Longer\" is a “>” symbol and goes into Ha. Therefore, this is a right-tailed test.\nDistribution for the test: The population standard deviations are known so the distribution is normal. Using the formula, the distribution is:\n${\\overline{X}}_{1}–{\\overline{X}}_{2}~N(0,\\sqrt{\\frac{{0.33}^{2}}{20}+\\frac{{0.36}^{2}}{20}})$\nSince μ1 ≤ μ2 then μ1 – μ2 ≤ 0 and the mean for the normal distribution is zero.\nCalculate the p-value using the normal distribution: p-value = 0.1799\nGraph:\n[Image: This is a normal distribution curve with mean equal to zero. The values 0 and 0.1 are labeled on the horiztonal axis. A vertical line extends from 0.1 to the curve. The region under the curve to the right of the line is shaded to represent p-value = 0.1799.]\n${\\overline{X}}_{1}$ – ${\\overline{X}}_{2}$ = 3 – 2.9 = 0.1\nCompare α and the p-value: α = 0.05 and p-value = 0.1799. Therefore, α < p-value.\nMake a decision: Since α < p-value, do not reject H0.\nConclusion: At the 5% level of significance, from the sample data, there is not sufficient evidence to conclude that the mean time wax 1 lasts is longer (wax 1 is more effective) than the mean time wax 2 lasts.\nPress STAT. Arrow over to TESTS and press 3:2-SampZTest. Arrow over to Stats and press ENTER. Arrow down and enter.33 for sigma1,.36 for sigma2, 3 for the first sample mean, 20 for n1, 2.9 for the second sample mean, and 20 for n2. Arrow down to μ1: and arrow to > μ2. Press ENTER. Arrow down to Calculate and press ENTER. The p-value is p = 0.1799 and the test statistic is 0.9157. Do the procedure again, but instead of Calculate do Draw.\nTry It\nThe means of the number of revolutions per minute of two competing engines are to be compared. Thirty engines of each type are randomly assigned to be tested. Both populations have normal distributions. Table shows the result. Do the data indicate that Engine 2 has higher RPM than Engine 1? Test at a 5% level of significance.\nEngine | Sample Mean Number of RPM | Population Standard Deviation\n1 | 1,500 | 50\n2 | 1,600 | 60\nAn interested citizen wanted to know if Democratic U. S. senators are older than Republican U.S. senators, on average. During a certain year, the mean age of 30 randomly selected Republican Senators was 61 years 247 days old (61.675 years) with a standard deviation of 10.17 years. The mean age of 30 randomly selected Democratic senators was 61 years 257 days old (61.704 years) with a standard deviation of 9.55 years.\nDo the data indicate that Democratic senators are older than Republican senators, on average? Test at a 5% level of significance.\nThis is a test of two independent groups, two population means. The population standard deviations are unknown, but the sum of the sample sizes is 30 + 30 = 60, which is greater than 30, so we can use the normal approximation to the Student’s-t distribution. Subscripts: 1: Democratic senators 2: Republican senators\nRandom variable: ${\\overline{X}}_{1}\\text{–}{\\overline{X}}_{2}$ = difference in the mean age of Democratic and Republican U.S. senators.\nH0: µ1 ≤ µ2 H0: µ1 – µ2 ≤ 0\nHa: µ1 > µ2 Ha: µ1 – µ2 > 0\nThe words \"older than\" translates as a “>” symbol and goes into Ha. Therefore, this is a right-tailed test.\nDistribution for the test: The distribution is the normal approximation to the Student’s t for means, independent groups. Using the formula, the distribution is: ${\\overline{X}}_{1}–{\\overline{X}}_{2}\\sim N[0,\\sqrt{\\frac{{(9.55)}^{2}}{30}+\\frac{{(10.17)}^{2}}{30}}]$\nSince µ1 ≤ µ2, µ1 – µ2 ≤ 0 and the mean for the normal distribution is zero.\n(Calculating the p-value using the normal distribution gives p-value = 0.4955)\nGraph:\n[Image: This is a normal distribution curve with mean equal to zero. A vertical line to the right of zero extends from the axis to the curve. The region under the curve to the right of the line is shaded representing p-value = 0.4955.]\nCompare α and the p-value: α = 0.05 and p-value = 0.4955. Therefore, α < p-value.\nMake a decision: Since α < p-value, do not reject H0.\nConclusion: At the 5% level of significance, from the sample data, there is not sufficient evidence to conclude that the mean age of Democratic senators is greater than the mean age of the Republican senators.\nTry It\nThe average age of 10 professors selected randomly in university A is 46.672 with a standard deviation of 8.53. The average age of 10 professors selected randomly in university B is 47.531 with a standard deviation of 7.83.\nDoes the data indicate that university A has older professors than university B, on average? Test at a 5% level of significance.\nThe total sample size is 10 + 10 = 20., which is greater than 10, so we can use the Student’s t-distribution.\nThe random variable is ${X}_{1}-{X}_{2}$ = difference between the mean age of universities A and B.\n${H}_{0}:{\\mu}_{1}\\le{\\mu}_{2}$ ${H}_{0}:{\\mu}_{1}-{\\mu}_{2}\\le0$\n${H}_{0}:{\\mu}_{1}>{\\mu}_{2}$ ${H}_{0}:{\\mu}_{1}-{\\mu}_{2}>0$\nThe phrase “older than” translates as a “>” symbol and goes into ${H}_{0}$. Therefore, this is a right-tailed test.\nThe distribution is: ${X}_{1}-{X}_{2}~N\\left[0,\\sqrt{\\frac{(8.53{)}^{2}}{10}+\\frac{(7.83{)}^{2}}{10}} \\right]$\nThe mean for the normal distribution is 0 since ${\\mu}_{1}\\le{\\mu}_{2}$ and${\\mu}_{1}-{\\mu}_{2}\\le0$.\nThe p-value is obtained as 0.4258. Since alpha is less than the p-value, do not reject the ${H}_{0}$.\nAt the 5% level of significance, from the sample data, there is not sufficient evidence to conclude that the mean age of professors in university A is more than the mean age of professors in university B.\nReferences\nData from the United States Census Bureau. Available online at http://www.census.gov/prod/cen2010/briefs/c2010br-02.pdf\nHinduja, Sameer. “Sexting Research and Gender Differences.” Cyberbulling Research Center, 2013. Available online at http://cyberbullying.us/blog/sexting-research-and-gender-differences/ (accessed June 17, 2013).\n“Smart Phone Users, By the Numbers.” Visually, 2013. Available online at http://visual.ly/smart-phone-users-numbers (accessed June 17, 2013).\nSmith, Aaron. “35% of American adults own a Smartphone.” Pew Internet, 2013. Available online at http://www.pewinternet.org/~/media/Files/Reports/2011/PIP_Smartphones.pdf (accessed June 17, 2013).\n“State-Specific Prevalence of Obesity AmongAdults—Unites States, 2007.” MMWR, CDC. Available online at http://www.cdc.gov/mmwr/preview/mmwrhtml/mm5728a1.htm (accessed June 17, 2013).\n“Texas Crime Rates 1960–1012.” FBI, Uniform Crime Reports, 2013. Available online at: http://www.disastercenter.com/crime/txcrime.htm (accessed June 17, 2013).\nChapter Review\nA hypothesis test of two population means from independent samples where the population standard deviations are known will have these characteristics:\n- Random variable: ${\\overline{X}}_{1}-{\\overline{X}}_{2}$ = the difference of the means\n- Distribution: normal distribution\nFormula Review\nNormal Distribution:${\\overline{X}}_{1}-{\\overline{X}}_{2}\\sim N[{\\mu}_{1}-{\\mu}_{2},\\sqrt{\\frac{{({\\sigma}_{1})}^{2}}{{n}_{1}}+\\frac{{({\\sigma}_{2})}^{2}}{{n}_{2}}}]$. Generally µ1 – µ2 = 0.\nTest Statistic (z-score): $z=\\frac{({\\overline{x}}_{1}-{\\overline{x}}_{2})-({\\mu}_{1}-{\\mu}_{2})}{\\sqrt{\\frac{{({\\sigma}_{1})}^{2}}{{n}_{1}}+\\frac{{({\\sigma}_{2})}^{2}}{{n}_{2}}}}$ Generally µ1 - µ2 = 0.\nwhere: σ1 and σ2 are the known population standard deviations. n1 and n2 are the sample sizes. ${\\overline{x}}_{1}$ and ${\\overline{x}}_{2}$ are the sample means. μ1 and μ2 are the population means.\nUse the following information to answer the next five exercises. The mean speeds of fastball pitches from two different baseball pitchers are to be compared. A sample of 14 fastball pitches is measured from each pitcher. The populations have normal distributions. Table shows the result. Scouters believe that Rodriguez pitches a speedier fastball.\nPitcher | Sample Mean Speed of Pitches (mph) | Population Standard Deviation\nWesley | 86 | 3\nRodriguez | 91 | 7\nWhat is the random variable?\nThe difference in mean speeds of the fastball pitches of the two pitchers\nState the null and alternative hypotheses.\nWhat is the test statistic?\n–2.46\nWhat is the p-value?\nAt the 1% significance level, what is your conclusion?\nAt the 1% significance level, we can reject the null hypothesis. There is sufficient data to conclude that the mean speed of Rodriguez’s fastball is faster than Wesley’s.\nUse the following information to answer the next five exercises. A researcher is testing the effects of plant food on plant growth. Nine plants have been given the plant food. Another nine plants have not been given the plant food. The heights of the plants are recorded after eight weeks. The populations have normal distributions. The following table is the result. The researcher thinks the food makes the plants grow taller.\nPlant Group | Sample Mean Height of Plants (inches) | Population Standard Deviation\nFood | 16 | 2.5\nNo food | 14 | 1.5\nIs the population standard deviation known or unknown?\nState the null and alternative hypotheses.\nSubscripts: 1 = Food, 2 = No Food H0: μ1 ≤ μ2 Ha: μ1 > μ2\nWhat is the p-value?\nDraw the graph of the p-value.\n[Image: This is a normal distribution curve with mean equal to zero. The values 0 and 0.1 are labeled on the horiztonal axis. A vertical line extends from 0.1 to the curve. The region under the curve to the right of the line is shaded to represent p-value = 0.0198.]\nAt the 1% significance level, what is your conclusion?\nUse the following information to answer the next five exercises. Two metal alloys are being considered as material for ball bearings. The mean melting point of the two alloys is to be compared. 15 pieces of each metal are being tested. Both populations have normal distributions. The following table is the result. It is believed that Alloy Zeta has a different melting point.\nSample Mean Melting Temperatures (°F) | Population Standard Deviation\nAlloy Gamma | 800 | 95\nAlloy Zeta | 900 | 105\nState the null and alternative hypotheses.\nSubscripts: 1 = Gamma, 2 = Zeta H0: μ1 = μ2 Ha: μ1 ≠ μ2\nIs this a right-, left-, or two-tailed test?\nWhat is the p-value?\n0.0062\nDraw the graph of the p-value.\nAt the 1% significance level, what is your conclusion?\nThere is sufficient evidence to reject the null hypothesis. The data support that the melting point for Alloy Zeta is different from the melting point of Alloy Gamma.\nHomework\nDIRECTIONS: For each of the word problems, use a solution sheet to do the hypothesis test. The solution sheet is found in Solution Sheets. Please feel free to make copies of the solution sheets. For the online version of the book, it is suggested that you copy the.doc or the.pdf files.\nNOTE\nIf you are using a Student's t-distribution for one of the following homework problems, including for paired data, you may assume that the underlying population is normally distributed. (When using these tests in a real situation, you must first prove that assumption, however.)\nA study is done to determine if students in the California state university system take longer to graduate, on average, than students enrolled in private universities. One hundred students from both the California state university system and private universities are surveyed. Suppose that from years of research, it is known that the population standard deviations are 1.5811 years and 1 year, respectively. The following data are collected. The California state university system students took on average 4.5 years with a standard deviation of 0.8. The private university students took on average 4.1 years with a standard deviation of 0.3.\nParents of teenage boys often complain that auto insurance costs more, on average, for teenage boys than for teenage girls. A group of concerned parents examines a random sample of insurance bills. The mean annual cost for 36 teenage boys was \\$679. For 23 teenage girls, it was \\$559. From past years, it is known that the population standard deviation for each group is \\$180. Determine whether or not you believe that the mean cost for auto insurance for teenage boys is greater than that for teenage girls.\nSubscripts: 1 = boys, 2 = girls\n- H0: µ1 ≤ µ2\n- Ha: µ1 > µ2\n- The random variable is the difference in the mean auto insurance costs for boys and girls.\n- normal\n- test statistic: z = 2.50\n- p-value: 0.0062\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for Decision: p-value < alpha\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the mean cost of auto insurance for teenage boys is greater than that for girls.\nA group of transfer bound students wondered if they will spend the same mean amount on texts and supplies each year at their four-year university as they have at their community college. They conducted a random survey of 54 students at their community college and 66 students at their local four-year university. The sample means were \\$947 and \\$1,011, respectively. The population standard deviations are known to be \\$254 and \\$87, respectively. Conduct a hypothesis test to determine if the means are statistically the same.\nSome manufacturers claim that non-hybrid sedan cars have a lower mean miles-per-gallon (mpg) than hybrid ones. Suppose that consumers test 21 hybrid sedans and get a mean of 31 mpg with a standard deviation of seven mpg. Thirty-one non-hybrid sedans get a mean of 22 mpg with a standard deviation of four mpg. Suppose that the population standard deviations are known to be six and three, respectively. Conduct a hypothesis test to evaluate the manufacturers claim.\nSubscripts: 1 = non-hybrid sedans, 2 = hybrid sedans\n- H0: µ1 ≥ µ2\n- Ha: µ1 < µ2\n- The random variable is the difference in the mean miles per gallon of non-hybrid sedans and hybrid sedans.\n- normal\n- test statistic: 6.36\n- p-value: 0\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: p-value < alpha\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the mean miles per gallon of non-hybrid sedans is less than that of hybrid sedans.\nA baseball fan wanted to know if there is a difference between the number of games played in a World Series when the American League won the series versus when the National League won the series. From 1922 to 2012, the population standard deviation of games won by the American League was 1.14, and the population standard deviation of games won by the National League was 1.11. Of 19 randomly selected World Series games won by the American League, the mean number of games won was 5.76. The mean number of 17 randomly selected games won by the National League was 5.42. Conduct a hypothesis test.\nOne of the questions in a study of marital satisfaction of dual-career couples was to rate the statement “I’m pleased with the way we divide the responsibilities for childcare.” The ratings went from one (strongly agree) to five (strongly disagree). Table contains ten of the paired responses for husbands and wives. Conduct a hypothesis test to see if the mean difference in the husband’s versus the wife’s satisfaction level is negative (meaning that, within the partnership, the husband is happier than the wife).\nWife’s Score | 2 | 2 | 3 | 3 | 4 | 2 | 1 | 1 | 2 | 4\nHusband’s Score | 2 | 2 | 1 | 3 | 2 | 1 | 1 | 1 | 2 | 4\n- H0: µd = 0\n- Ha: µd < 0\n- The random variable Xd is the average difference between husband’s and wife’s satisfaction level.\n- t9\n- test statistic: t = –1.86\n- p-value: 0.0479\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis, but run another test.\n- Reason for Decision: p-value < alpha\n- Conclusion: This is a weak test because alpha and the p-value are close. However, there is insufficient evidence to conclude that the mean difference is negative."}
{"document_id": "openstax-intro-statistics-m47060", "title": "Hypothesis Testing with Two Samples — Comparing Two Independent Population Proportions", "source": "https://openstax.org/books/introductory-statistics-2e/pages/10-3-comparing-two-independent-population-proportions", "license": "CC-BY-4.0", "text": "When conducting a hypothesis test that compares two independent population proportions, the following characteristics should be present:\n- The two independent samples are simple random samples that are independent.\n- The number of successes is at least five, and the number of failures is at least five, for each of the samples.\n- Growing literature states that the population must be at least ten or 20 times the size of the sample. This keeps each population from being over-sampled and causing incorrect results.\nComparing two proportions, like comparing two means, is common. If two estimated proportions are different, it may be due to a difference in the populations or it may be due to chance. A hypothesis test can help determine if a difference in the estimated proportions reflects a difference in the population proportions.\nLike the case of differences in sample means, we construct a sampling distribution for differences in sample proportions:\n$p{'}_{A}=\\frac{{X}_{A}}{{n}_{A}}$ and $p{'}_{B}=\\frac{{X}_{B}}{{n}_{B}}$ are the sample proportions for the two sets of data in question ${X}_{A}$ and ${X}_{B}$.\nThe difference of two proportions follows an approximate normal distribution. Generally, the null hypothesis states that the two proportions are the same. That is, H0: pA = pB. To conduct the test, we use a pooled proportion, pc.\nThe pooled proportion is calculated as follows:\n$${p}_{c}=\\frac{{x}_{A}+{x}_{B}}{{n}_{A}+{n}_{B}}$$\nThe distribution for the differences is:\n$${{P}^{'}}_{A}-{{P}^{'}}_{B}~N[0,\\sqrt{{p}_{c}(1-{p}_{c})(\\frac{1}{{n}_{A}}+\\frac{1}{{n}_{B}})}]$$\nThe test statistic (z-score) is:\n$$z=\\frac{({{p}^{'}}_{A}-{{p}^{'}}_{B})-({p}_{A}-{p}_{B})}{\\sqrt{{p}_{c}(1-{p}_{c})(\\frac{1}{{n}_{A}}+\\frac{1}{{n}_{B}})}}$$\nTwo types of medication for hives are being tested to determine if there is a difference in the proportions of adult patient reactions. Twenty out of a random sample of 200 adults given medication A still had hives 30 minutes after taking the medication. Twelve out of another random sample of 200 adults given medication B still had hives 30 minutes after taking the medication. Test at a 1% level of significance.\nThe problem asks for a difference in proportions, making it a test of two proportions.\nLet A and B be the subscripts for medication A and medication B, respectively. Then pA and pB are the desired population proportions.\nRandom Variable: P′A – P′B = difference in the proportions of adult patients who did not react after 30 minutes to medication A and to medication B.\nH0: pA = pB\npA – pB = 0\nHa: pA ≠ pB\npA – pB ≠ 0\nThe words \"is a difference\" tell you the test is two-tailed.\nDistribution for the test: Since this is a test of two binomial population proportions, the distribution is normal:\n${p}_{c}=\\frac{{x}_{A}+{x}_{B}}{{n}_{A}+{n}_{B}}=\\frac{20+12}{200+200}=0.081–{p}_{c}=0.92$\n${{P}^{'}}_{A}–{{P}^{'}}_{B}~N[0,\\sqrt{(0.08)(0.92)(\\frac{1}{200}+\\frac{1}{200})}]$\nP′A – P′B follows an approximate normal distribution.\nCalculate the p-value using the normal distribution: p-value = 0.1404.\nEstimated proportion for group A: ${{p}^{'}}_{A}=\\frac{{x}_{A}}{{n}_{A}}=\\frac{20}{200}=0.1$\nEstimated proportion for group B: ${{p}^{'}}_{B}=\\frac{{x}_{B}}{{n}_{B}}=\\frac{12}{200}=0.06$\nGraph:\n[Image: Normal distribution curve of the difference in the percentages of adult patients who don't react to medication A and B after 30 minutes. The mean is equal to zero, and the values -0.04, 0, and 0.04 are labeled on the horizontal axis. Two vertical lines extend from -0.04 and 0.04 to the curve. The region to the left of -0.04 and the region to the right of 0.04 are each shaded to represent 1/2(p-value) = 0.0702.]\nP′A – P′B = 0.1 – 0.06 = 0.04.\nHalf the p-value is below –0.04, and half is above 0.04.\nCompare α and the p-value: α = 0.01 and the p-value = 0.1404. α < p-value.\nMake a decision: Since α < p-value, do not reject H0.\nConclusion: At a 1% level of significance, from the sample data, there is not sufficient evidence to conclude that there is a difference in the proportions of adult patients who did not react after 30 minutes to medication A and medication B.\nPress STAT. Arrow over to TESTS and press 6:2-PropZTest. Arrow down and enter 20 for x1, 200 for n1, 12 for x2, and 200 for n2. Arrow down to p1: and arrow to not equal p2. Press ENTER. Arrow down to Calculate and press ENTER. The p-value is p = 0.1404 and the test statistic is 1.47. Do the procedure again, but instead of Calculate do Draw.\nTry It\nTwo types of valves are being tested to determine if there is a difference in pressure tolerances. Fifteen out of a random sample of 100 of Valve A cracked under 4,500 psi. Six out of a random sample of 100 of Valve B cracked under 4,500 psi. Test at a 5% level of significance.\nA research study was conducted about gender differences regarding the use of seat belts in motor vehicles. The researcher believed that the proportion of women not wearing seat belts is less than the proportion of men not wearing seat belts. The data collected represents a random sample of U.S. adults and is summarized in Table. Is the proportion of women not wearing seat belts less than the proportion of men not wearing seat belts? Test at a 1% level of significance.\nMen | Women\nDoes not wear seat belts | 183 | 156\nTotal number surveyed | 2231 | 2169\nThis is a test of two population proportions. Let M and F be the subscripts for men and women. Then pM and pF are the desired population proportions.\nRandom Variable: p′F − p′M = difference in the proportions of men and women who do not wear seat belts.\nH0: pF = pM H0: pF – pM = 0\nHa: pF < pM Ha: pF – pM < 0\nThe words \"less than\" tell you the test is left-tailed.\nDistribution for the test: Since this is a test of two population proportions, the distribution is normal:\n${p}_{c}=\\frac{{x}_{F}+{x}_{M}}{{n}_{F}+{n}_{M}}=\\frac{156+183}{2169+2231}=\\text{0}\\text{.077}$ $1-{p}_{c}=0.923$ Therefore, ${{p}^{'}}_{F}–{{p}^{'}}_{M}\\sim N(0,\\sqrt{(0.077)(0.923)(\\frac{1}{2169}+\\frac{1}{2231})})$ p′F – p′M follows an approximate normal distribution.\nCalculate the p-value using the normal distribution: p-value = 0.1045 Estimated proportion for women: 0.0719 Estimated proportion for men: 0.082\nGraph:\n[Image: This is a normal distribution curve with mean equal to zero. A vertical line near the tail of the curve to the left of zero extends from the axis to the curve. The region under the curve to the left of the line is shaded representing p-value = 0.1045.]\nDecision: Since α < p-value, Do not reject H0\nConclusion: At the 1% level of significance, from the sample data, there is not sufficient evidence to conclude that the proportion of women not wearing seat belts is less than the proportion of men not wearing seat belts.\nTry It\nA survey was conducted about the favorable beverage as tea. The data collected is summarized in the table. Is the proportion of men favoring tea more than women favoring tea? Test at a 1% level of significance.\nMen | Women\nFavor tea | 16 | 18\nTotal surveyed | 230 | 218\nLet ${p}_{M}$ and ${p}_{F}$ be desired population proportions.\n${H}_{0}:{p}_{F}={p}_{M}{H}_{0}:{p}_{F}-{p}_{M}=0$\n${H}_{0}:{p}_{F}<{p}_{M}{H}_{0}:{p}_{F}-{p}_{M}<0$\nThe test is for “less than,” so it is left-tailed.\nDistribution for the test:\n${p}_{C}=\\frac{{x}_{F}+{x}_{M}}{{n}_{F}+{n}_{M}}=\\frac{18+16}{218+230}=0.076$\n$1-{p}_{C}=0.924$ $p{'}_{F}-p{'}_{M}~N\\left(0,\\sqrt{(0.076)(0.924)\\left(\\frac{1}{218}+\\frac{1}{230} \\right)} \\right)$\nThis follows an approximate normal distribution.\nCalculate the p-value using the normal distribution:\np-value = 0.1023\nDecision: Since\n$\\alpha<p-value$, do not reject${H}_{0}$.\nConclusion: At 1% level of significance, from the sample data, there is not sufficient evidence to conclude that the proportion of females favoring tea is less than the proportion of males favoring tea.\nPress STAT. Arrow over to TESTS and press 6:2-PropZTest. Arrow down and enter 156 for x1, 2169 for n1, 183 for x2, and 2231 for n2. Arrow down to p1: and arrow to less than p2. Press ENTER. Arrow down to Calculate and press ENTER. The p-value is P = 0.1045 and the test statistic is z = -1.256.\nA marketing firm claims that the proportion of younger adults who own electric vehicles is greater than the proportion of older adults who own electric vehicles. A random sample of U.S. adults was taken, and the results of the survey indicate the following:\n- Out of a sample of 232 older adults (aged 35 or older), 5% own electric vehicles.\n- Out of a sample of 1,343 young adults (aged 34 or younger), 10% own electric vehicles.\nTest at the 5% level of significance. Is the proportion of younger adults greater than the proportion of older adults with respect to owning electric vehicles?\nThis is a test of two population proportions. Let Y and O be the subscripts for younger adults and older adults, respectively. Then pY and pO are the desired population proportions.\nRandom Variable: p’Y and p’O = difference in the proportions of younger and older adults who own electric vehicles.\n$${H}_{0}:{p}_{Y}={p}_{O}{H}_{0}:{p}_{Y}-{p}_{O}=0$$\n$${H}_{a}:{p}_{Y}>{p}_{O}{H}_{a}:{p}_{Y}-{p}_{O}>0$$\nThe words \"greater than\" indicate that the test is right-tailed.\nDistribution for the test: The distribution is approximately normal:\n${p}_{c}=\\frac{{x}_{y}+{x}_{o}}{{n}_{y}+{n}_{o}}=\\frac{134+12}{1343+232}=0.0927$\n$1-{p}_{c}=0.9073$\nTherefore,\n$p{'}_{y}-{{p}^{'}}_{O}~N\\left(0,\\sqrt{0.0927)(0.9073)(\\frac{1}{1343}+\\frac{1}{232})} \\right)$\n$p{'}_{y}-{{p}^{'}}_{O}$ follows an approximate normal distribution.\nCalculate the p-value using the normal distribution:p-value = 0.0077Estimated proportion for group Y: 0.10Estimated proportion for group O: 0.05\nGraph:\n[Image: This is a normal distribution curve with mean equal to zero. A vertical line near the tail of the curve to the right of zero extends from the axis to the curve. The region under the curve to the right of the line is shaded representing p-value = 0.00004.]\nDecision: Since  > p-value, reject the ${H}_{0}$.\nConclusion: At the 5% level of significance, from the sample data, there is sufficient evidence to conclude that a larger proportion of younger adults own electric vehicles as compared to older adults.\nTI-83+ and TI-84: Press STAT. Arrow over to TESTS and press 6:2-PropZTest. Arrow down and enter 135 for x1, 1343 for n1, 12 for x2, and 232 for n2. Arrow down to p1: and arrow to greater than p2. Press ENTER. Arrow down to Calculate and press ENTER. The P-value is P = 0.0092 and the test statistic is Z = 2.33.\nTry It\nA government researcher is investigating whether there is a difference in the use of helmets by motorcyclists in different geographic regions for those states where use of helmets is required by law. The research shows that for motorcyclists in the northeast U.S., 7622 out of 113,231 motorcyclists did not wear helmets. In the southeast U.S., 7439 out of 104,873 motorcyclists did not wear helmets. Test at a 5% significance level. Answer the following questions:\na. Is this a test of two means or two proportions?\ntwo proportions\nb. Which distribution do you use to perform the test?\nnormal for two proportions\nc. What is the random variable?\nSubscripts: 1 = Northeast, 2 = Southeast\n$P{'}_{2}-P{'}_{2}$\nd. What are the null and alternative hypothesis? Write the null and alternative hypothesis in symbols.\nSubscripts: 1 = Northeast, 2 = Southeast\n${H}_{0}:{p}_{1}={p}_{2}H0:p{1}_{}-{p}_{2}=0$\n${H}_{a}:{p}_{1}\\ne{p}_{2}{H}_{a}:{p}_{1}-{p}_{2}\\ne0$\ne. Is this test right-, left-, or two-tailed?\ntwo-tailed\nf. What is the p-value?\np-value = 0.00086\n[Image: Normal distribution curve with mean value of 0. The area is shaded before and after half p value = 0.0004.]\ng. Do you reject or not reject the null hypothesis?\nReject the H0.\nh. At the ___ level of significance, from the sample data, there ______ (is/is not) sufficient evidence to conclude that ____________.\nAt the 5% significance level, from the sample data, there is sufficient evidence to conclude that there is a difference between the proportion of motorcyclists who did not wear helmets for northeast and southeast regions of the U.S.\nReferences\nData from Educational Resources, December catalog.\nData from Hilton Hotels. Available online at http://www.hilton.com (accessed June 17, 2013).\nData from Hyatt Hotels. Available online at http://hyatt.com (accessed June 17, 2013).\nData from Statistics, United States Department of Health and Human Services.\nData from Whitney Exhibit on loan to San Jose Museum of Art.\nData from the American Cancer Society. Available online at http://www.cancer.org/index (accessed June 17, 2013).\nData from the Chancellor’s Office, California Community Colleges, November 1994.\n“State of the States.” Gallup, 2013. Available online at http://www.gallup.com/poll/125066/State-States.aspx?ref=interactive (accessed June 17, 2013).\n“West Nile Virus.” Centers for Disease Control and Prevention. Available online at http://www.cdc.gov/ncidod/dvbid/westnile/index.htm (accessed June 17, 2013).\nChapter Review\nTest of two population proportions from independent samples.\n- Random variable: ${{p}^{^}}_{A}–{{p}^{^}}_{B}=$ difference between the two estimated proportions\n- Distribution: normal distribution\nFormula Review\nPooled Proportion: pc = $\\frac{{x}_{F}+{x}_{M}}{{n}_{F}+{n}_{M}}$\nDistribution for the differences: ${{p}^{'}}_{A}-{{p}^{'}}_{B}\\sim N[0,\\sqrt{{p}_{c}(1-{p}_{c})(\\frac{1}{{n}_{A}}+\\frac{1}{{n}_{B}})}]$\nwhere the null hypothesis is H0: pA = pB or H0: pA – pB = 0.\nTest Statistic (z-score): $z=\\frac{({p}^{'}{}_{A}-{p}^{'}{}_{B})}{\\sqrt{{p}_{c}(1-{p}_{c})(\\frac{1}{{n}_{A}}+\\frac{1}{{n}_{B}})}}$\nwhere the null hypothesis is H0: pA = pB or H0: pA − pB = 0.\nwhere\np′A and p′B are the sample proportions, pA and pB are the population proportions,\nPc is the pooled proportion, and nA and nB are the sample sizes.\nUse the following information for the next five exercises. Two types of phone operating system are being tested to determine if there is a difference in the proportions of system failures (crashes). Fifteen out of a random sample of 150 phones with OS1 had system failures within the first eight hours of operation. Nine out of another random sample of 150 phones with OS2 had system failures within the first eight hours of operation. OS2 is believed to be more stable (have fewer crashes) than OS1.\nIs this a test of means or proportions?\nWhat is the random variable?\nP′OS1 – P′OS2 = difference in the proportions of phones that had system failures within the first eight hours of operation with OS1 and OS2.\nState the null and alternative hypotheses.\nWhat is the p-value?\n0.1018\nWhat can you conclude about the two operating systems?\nUse the following information to answer the next twelve exercises. In the recent Census, three percent of the U.S. population reported being of two or more races. However, the percent varies tremendously from state to state. Suppose that two random surveys are conducted. In the first random survey, out of 1,000 North Dakotans, only nine people reported being of two or more races. In the second random survey, out of 500 Nevadans, 17 people reported being of two or more races. Conduct a hypothesis test to determine if the population percents are the same for the two states or if the percent for Nevada is statistically higher than for North Dakota.\nIs this a test of means or proportions?\nproportions\nState the null and alternative hypotheses.\n- H0: _________\n- Ha: _________\nIs this a right-tailed, left-tailed, or two-tailed test? How do you know?\nright-tailed\nWhat is the random variable of interest for this test?\nIn words, define the random variable for this test.\nThe random variable is the difference in proportions (percents) of the populations that are of two or more races in Nevada and North Dakota.\nWhich distribution (normal or Student's t) would you use for this hypothesis test?\nExplain why you chose the distribution you did for the Exercise 10.56.\nOur sample sizes are much greater than five each, so we use the normal for two proportions distribution for this hypothesis test.\nCalculate the test statistic.\nSketch a graph of the situation. Mark the hypothesized difference and the sample difference. Shade the area corresponding to the p-value.\n[Image: This is a horizontal axis with arrows at each end. The axis is labeled p'N - p'ND]\nAnswers may vary.\nFind the p-value.\nAt a pre-conceived α = 0.05, what is your:\n- Decision:\n- Reason for the decision:\n- Conclusion (write out in a complete sentence):\n- Reject the null hypothesis.\n- p-value < alpha\n- At the 5% significance level, there is sufficient evidence to conclude that the proportion (percent) of the population that is of two or more races in Nevada is statistically higher than that in North Dakota.\nDoes it appear that the proportion of Nevadans who are two or more races is higher than the proportion of North Dakotans? Why or why not?\nHomework\nDIRECTIONS: For each of the word problems, use a solution sheet to do the hypothesis test. The solution sheet is found in Solution Sheets. Please feel free to make copies of the solution sheets. For the online version of the book, it is suggested that you copy the.doc or the.pdf files.\nNOTE\nIf you are using a Student's t-distribution for one of the following homework problems, including for paired data, you may assume that the underlying population is normally distributed. (In general, you must first prove that assumption, however.)\nA recent drug survey showed an increase in the use of drugs and alcohol among local high school seniors as compared to the national percent. Suppose that a survey of 100 local seniors and 100 national seniors is conducted to see if the proportion of drug and alcohol use is higher locally than nationally. Locally, 65 seniors reported using drugs or alcohol within the past month, while 60 national seniors reported using them.\nWe are interested in whether the proportions of conferred physical science degrees for people aged 21 to 24 are the same for White and Black people in the United States. The number of conferred degrees for White people in a given year is 4,930. Five hundred eighty were aged 21 to 24. The estimate for Black people is 330. Forty were aged 21 to 24. We will let people with conferred physical science degrees be our population.\n- H0: PW = PB\n- Ha: PW ≠ PB\n- The random variable is the difference in the proportions of White and Black people with conferred degrees in a given year, aged 21 to 24.\n- normal for two proportions\n- test statistic: –0.1944\n- p-value: 0.8458\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: At the 5% significance level, there is insufficient evidence to conclude that the proportions of White and Black people with conferred physical science degrees, aged 21 to 24, are different.\nElizabeth Mjelde, an art history professor, was interested in whether the value from the Golden Ratio formula, $(\\frac{\\text{larger + smaller dimension}}{\\text{larger dimension}})$ was the same in the Whitney Exhibit for works from 1900 to 1919 as for works from 1920 to 1942. Thirty-seven early works were sampled, averaging 1.74 with a standard deviation of 0.11. Sixty-five of the later works were sampled, averaging 1.746 with a standard deviation of 0.1064. Do you think that there is a significant difference in the Golden Ratio calculation?\nA recent year was randomly picked from 1985 to the present. In that year, there were 2,051 Hispanic/Latino students at Cabrillo College out of a total of 12,328 students. At Lake Tahoe College, there were 321 Hispanic/Latino students out of a total of 2,441 students. In general, do you think that the percent of Hispanic/Latino students at the two colleges is basically the same or different?\nSubscripts: 1 = Cabrillo College, 2 = Lake Tahoe College\n- H0: p1 = p2\n- Ha: p1 ≠ p2\n- The random variable is the difference between the proportions of Hispanic/Latino students at Cabrillo College and Lake Tahoe College.\n- normal for two proportions\n- test statistic: 4.29\n- p-value: 0.00002\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: p-value < alpha\n- Conclusion: There is sufficient evidence to conclude that the proportions of Hispanic/Latino students at Cabrillo College and Lake Tahoe College are different.\nUse the following information to answer the next three exercises. Some individuals who were exposed to the COVID-19 virus experienced a loss of taste. In a sample of COVID patients during 2022, there were 629 reported cases of loss of taste out of a total of 1,021 reported cases. In 2021, there were 486 reported cases of loss of taste out of a sample of 712 cases. Is the 2022 proportion of loss of taste more than the 2021 proportion? Using a 1% level of significance, conduct an appropriate hypothesis test.\n- “2022” subscript: 2022 group.\n- “2021” subscript: 2021 group\nThis is:\n- a test of two proportions\n- a test of two independent means\n- a test of a single mean\n- a test of matched pairs.\nAn appropriate null hypothesis is:\n- $p2022\\le p2021$\n- $p2022\\ge p2021$\n- $\\mu2022\\le\\mu2021$\n- $p2022>p2021$\na\nThe p-value is 0.0022. At a 1% level of significance, the appropriate conclusion is\n- There is sufficient evidence to conclude that the proportion of people in the United States in 2022 who experienced loss of taste is less than the proportion of people in the United States in 2021 who experienced loss of taste.\n- There is insufficient evidence to conclude that the proportion of people in the United States in 2022 who experienced loss of taste is more than the proportion of people in the United States in 2021 who experienced loss of taste.\n- There is insufficient evidence to conclude that the proportion of people in the United States in 2022 who experienced loss of taste is less than the proportion of people in the United States in 2021 who experienced loss of taste.\n- There is sufficient evidence to conclude that the proportion of people in the United States in 2022 who experienced loss of taste is more than the proportion of people in the United States in 2021 who experienced loss of taste.\nResearchers conducted a study to find out if there is a difference in the use of eReaders by different age groups. Randomly selected participants were divided into two age groups. In the 16- to 29-year-old group, 7% of the 628 surveyed use eReaders, while 11% of the 2,309 participants 30 years old and older use eReaders.\nTest: two independent sample proportions.\nRandom variable: p′1 - p′2\nDistribution: H0: p1 = p2 Ha: p1 ≠ p2\nThe proportion of eReader users is different for the 16- to 29-year-old users from that of the 30 and older users.\nGraph: two-tailed\n[Image: This is a normal distribution curve with mean equal to zero. Both the right and left tails of the curve are shaded. Each tail represents 1/2(p-value) = 0.0017.]\np-value: 0.0033\nDecision: Reject the null hypothesis.\nConclusion: At the 5% level of significance, from the sample data, there is sufficient evidence to conclude that the proportion of eReader users 16 to 29 years old is different from the proportion of eReader users 30 and older.\nAdults aged 18 years old and older were randomly selected for a survey on working from home. The researchers wanted to determine if the proportion of women who work from home is less than the proportion of men who work from home. The results are shown in Table. Test at the 1% level of significance.\nNumber who work from home | Sample size\nMen | 42,769 | 155,525\nWomen | 67,169 | 248,775\nTwo computer users were discussing tablet computers. A higher proportion of people ages 16 to 29 use tablets than the proportion of people age 30 and older. Table details the number of tablet owners for each age group. Test at the 1% level of significance.\n16–29 year olds | 30 years old and older\nOwn a Tablet | 69 | 231\nSample Size | 628 | 2,309\nTest: two independent sample proportions\nRandom variable: p′1 − p′2\nDistribution:\nH0: p1 = p2Ha: p1 > p2\nA higher proportion of tablet owners are aged 16 to 29 years old than are 30 years old and older.\nGraph: right-tailed\n[Image: This is a normal distribution curve with mean equal to zero. A vertical line near the tail of the curve to the right of zero extends from the axis to the curve. The region under the curve to the right of the line is shaded representing p-value = 0.2354.]\np-value: 0.2354\nDecision: Do not reject the H0.\nConclusion: At the 1% level of significance, from the sample data, there is not sufficient evidence to conclude that a higher proportion of tablet owners are aged 16 to 29 years old than are 30 years old and older.\nA group of friends debated whether more people aged 21-30 use wearable fitness devices than people aged 31-40. They consulted a research study of wearable fitness devices use among adults. The results of the survey indicate that of the 973 randomly sampled people in their twenties, 379 use wearable fitness devices. For people in their thirties, 404 of the 1,304 who were randomly sampled use wearable fitness devices. Test at the 5% level of significance.\nWhile her husband spent 2½ hours picking out new speakers, a statistician decided to determine whether the percent of men who enjoy shopping for electronic equipment is higher than the percent of women who enjoy shopping for electronic equipment. The population was Saturday afternoon shoppers. Out of 67 men, 24 said they enjoyed the activity. Eight of the 24 women surveyed claimed to enjoy the activity. Interpret the results of the survey.\nSubscripts: 1: men; 2: women\n- H0: p1 ≤ p2\n- Ha: p1 > p2\n- ${{P}^{'}}_{1}-{{P}^{'}}_{2}$ is the difference between the proportions of men and women who enjoy shopping for electronic equipment.\n- normal for two proportions\n- test statistic: 0.22\n- p-value: 0.4133\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for Decision: p-value > alpha\n- Conclusion: At the 5% significance level, there is insufficient evidence to conclude that the proportion of men who enjoy shopping for electronic equipment is more than the proportion of women.\nWe are interested in whether children’s educational computer software costs less, on average, than children’s entertainment software. Thirty-six educational software titles were randomly picked from a catalog. The mean cost was \\$31.14 with a standard deviation of \\$4.69. Thirty-five entertainment software titles were randomly picked from the same catalog. The mean cost was \\$33.86 with a standard deviation of \\$10.87. Decide whether children’s educational software costs less, on average, than children’s entertainment software.\nJoan Nguyen recently claimed that the proportion of college-age men with at least one pierced ear is as high as the proportion of college-age women. She conducted a survey in her classes. Out of 107 men, 20 had at least one pierced ear. Out of 92 women, 47 had at least one pierced ear. Do you believe that the proportion of men has reached the proportion of women?\n- H0: p1 = p2\n- Ha: p1 ≠ p2\n- ${{P}^{'}}_{1}-{{P}^{'}}_{2}$ is the difference between the proportions of men and women that have at least one pierced ear.\n- normal for two proportions\n- test statistic: –4.82\n- p-value: zero\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for Decision: p-value < alpha\n- Conclusion: At the 5% significance level, there is sufficient evidence to conclude that the proportions of men and women with at least one pierced ear is different.\nUse the data sets found in Data Sets to answer this exercise. Is the proportion of race laps Terri completes slower than 130 seconds less than the proportion of practice laps she completes slower than 135 seconds?\n\"To Breakfast or Not to Breakfast?\" by Richard Ayore\nIn the American society, birthdays are one of those days that everyone looks forward to. People of different ages and peer groups gather to mark the 18th, 20th, …, birthdays. During this time, one looks back to see what they have achieved for the past year and also focuses ahead for more to come.\nIf, by any chance, I am invited to one of these parties, my experience is always different. Instead of dancing around with my friends while the music is booming, I get carried away by memories of my family back home in Kenya. I remember the good times I had with my brothers and sister while we did our daily routine.\nEvery morning, I remember we went to the shamba (garden) to weed our crops. I remember one day arguing with my brother as to why he always remained behind just to join us an hour later. In his defense, he said that he preferred waiting for breakfast before he came to weed. He said, “This is why I always work more hours than you guys!”\nAnd so, to prove him wrong or right, we decided to give it a try. One day we went to work as usual without breakfast, and recorded the time we could work before getting tired and stopping. On the next day, we all ate breakfast before going to work. We recorded how long we worked again before getting tired and stopping. Of interest was our mean increase in work time. Though not sure, my brother insisted that it was more than two hours. Using the data in Table, solve our problem.\nWork hours with breakfast | Work hours without breakfast\n8 | 6\n7 | 5\n9 | 5\n5 | 4\n9 | 7\n8 | 7\n10 | 7\n7 | 5\n6 | 6\n9 | 5\n- H0: µd = 0\n- Ha: µd > 0\n- The random variable Xd is the mean difference in work times on days when eating breakfast and on days when not eating breakfast.\n- t9\n- test statistic: 4.8963\n- p-value: 0.0004\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for Decision: p-value < alpha\n- Conclusion: At the 5% level of significance, there is sufficient evidence to conclude that the mean difference in work times on days when eating breakfast and on days when not eating breakfast has increased.\n\nGlossary\nPooled Proportion estimate of the common value of p1 and p2."}
{"document_id": "openstax-intro-statistics-m47045", "title": "Hypothesis Testing with Two Samples — Matched or Paired Samples", "source": "https://openstax.org/books/introductory-statistics-2e/pages/10-4-matched-or-paired-samples", "license": "CC-BY-4.0", "text": "When using a hypothesis test for matched or paired samples, the following characteristics should be present:\n- Simple random sampling is used.\n- Sample sizes are often small.\n- Two measurements (samples) are drawn from the same pair of individuals or objects.\n- Differences are calculated from the matched or paired samples.\n- The differences form the sample that is used for the hypothesis test.\n- Either the matched pairs have differences that come from a population that is normal or the number of differences is sufficiently large so that distribution of the sample mean of differences is approximately normal.\nIn a hypothesis test for matched or paired samples, subjects are matched in pairs and differences are calculated. The differences are the data. The population mean for the differences, μd, is then tested using a Student's-t test for a single population mean with n – 1 degrees of freedom, where n is the number of differences.\nThe test statistic (t-score) is:\n$$t=\\frac{{\\overline{x}}_{d}-{\\mu}_{d}}{(\\frac{{s}_{d}}{\\sqrt{n}})}$$\nA study was conducted to investigate the effectiveness of hypnotism in reducing pain. Results for randomly selected subjects are shown in Table. A lower score indicates less pain. The \"before\" value is matched to an \"after\" value and the differences are calculated. The differences have a normal distribution. Are the sensory measurements, on average, lower after hypnotism? Test at a 5% significance level.\nSubject: | A | B | C | D | E | F | G | H\nBefore | 6.6 | 6.5 | 9.0 | 10.3 | 11.3 | 8.1 | 6.3 | 11.6\nAfter | 6.8 | 2.4 | 7.4 | 8.5 | 8.1 | 6.1 | 3.4 | 2.0\nCorresponding \"before\" and \"after\" values form matched pairs. (Calculate \"after\" – \"before.\")\nAfter Data | Before Data | Difference\n6.8 | 6.6 | 0.2\n2.4 | 6.5 | -4.1\n7.4 | 9 | -1.6\n8.5 | 10.3 | -1.8\n8.1 | 11.3 | -3.2\n6.1 | 8.1 | -2\n3.4 | 6.3 | -2.9\n2 | 11.6 | -9.6\nThe data for the test are the differences: {0.2, –4.1, –1.6, –1.8, –3.2, –2, –2.9, –9.6}\nThe sample mean and sample standard deviation of the differences are: ${\\overline{x}}_{d}=–3.13$ and ${s}_{d}=2.91$ Verify these values.\nLet ${\\mu}_{d}$ be the population mean for the differences. We use the subscript $d$ to denote \"differences.\"\nRandom variable: ${\\overline{X}}_{d}$ = the mean difference of the sensory measurements\nH0: μd ≥ 0\nThe null hypothesis is zero or positive, meaning that there is the same or more pain felt after hypnotism. That means the subject shows no improvement. μd is the population mean of the differences.)\nHa: μd < 0\nThe alternative hypothesis is negative, meaning there is less pain felt after hypnotism. That means the subject shows improvement. The score should be lower after hypnotism, so the difference ought to be negative to indicate improvement.\nDistribution for the test: The distribution is a Student's t with df = n – 1 = 8 – 1 = 7. Use t7. (Notice that the test is for a single population mean.)\nCalculate the test statistic and p-value using the Student's t-distribution:\ntest statistic, t = –3.036, p-value = 0.0095\nGraph:\n[Image: Normal distribution curve of the average difference of sensory measurements with values of -3.13 and 0. A vertical upward line extends from -3.13 to the curve, and the p-value is indicated in the area to the left of this value.]\n${\\overline{X}}_{d}$ is the random variable for the differences.\nThe sample mean and sample standard deviation of the differences are:\n${\\overline{x}}_{d}$ = –3.13\n${\\overline{s}}_{d}$ = 2.91\nCompare α and the p-value: α = 0.05 and p-value = 0.0095. α > p-value.\nMake a decision: Since α > p-value, reject H0. This means that μd < 0 and there is improvement.\nConclusion: At a 5% level of significance, from the sample data, there is sufficient evidence to conclude that the sensory measurements, on average, are lower after hypnotism. Hypnotism appears to be effective in reducing pain.\nNOTE\nFor the TI-83+ and TI-84 calculators, you can either calculate the differences ahead of time (after - before) and put the differences into a list or you can put the after data into a first list and the before data into a second list. Then go to a third list and arrow up to the name. Enter 1st list name - 2nd list name. The calculator will do the subtraction, and you will have the differences in the third list.\nUse your list of differences as the data. Press STAT and arrow over to TESTS. Press 2:T-Test. Arrow over to Data and press ENTER. Arrow down and enter 0 for ${\\mu}_{0}$, the name of the list where you put the data, and 1 for Freq:. Arrow down to μ: and arrow over to < ${\\mu}_{0}$. Press ENTER. Arrow down to Calculate and press ENTER. The p-value is 0.0094, and the test statistic is -3.04. Do these instructions again except, arrow to Draw (instead of Calculate). Press ENTER.\nTry It\nA study was conducted to investigate how effective a new diet was in lowering cholesterol. Results for the randomly selected subjects are shown in the table. The differences have a normal distribution. Are the subjects’ cholesterol levels lower on average after the diet? Test at the 5% level.\nSubject | A | B | C | D | E | F | G | H | I\nBefore | 209 | 210 | 205 | 198 | 216 | 217 | 238 | 240 | 222\nAfter | 199 | 207 | 189 | 209 | 217 | 202 | 211 | 223 | 201\nA college softball coach was interested in whether the college's strength development class increased their players' maximum lift (in pounds). Four players participated in the study. The amount of weight they could each lift was recorded before they took the strength development class. After completing the class, the amount of weight they could each lift was again measured. The data are as follows:\nWeight (in pounds) | Player 1 | Player 2 | Player 3 | Player 4\nAmount of weight lifted prior to the class | 205 | 241 | 338 | 368\nAmount of weight lifted after the class | 295 | 252 | 330 | 360\nThe coach wants to know if the strength development class makes the players stronger, on average. Record the differences data. Calculate the differences by subtracting the amount of weight lifted prior to the class from the weight lifted after completing the class. The data for the differences are: {90, 11, -8, -8}. Assume the differences have a normal distribution.\nUsing the differences data, calculate the sample mean and the sample standard deviation.\n${\\overline{x}}_{d}=21.3,{s}_{d}=46.7$\nNOTE\nThe data given here would indicate that the distribution is actually right-skewed. The difference 90 may be an extreme outlier? It is pulling the sample mean to be 21.3 (positive). The means of the other three data values are actually negative.\nUsing the difference data, this becomes a test of a single __________ (fill in the blank).\nDefine the random variable: ${\\overline{X}}_{d}$ mean difference in the maximum lift per player.\nThe distribution for the hypothesis test is t3.\nH0: μd ≤ 0, Ha: μd > 0\nGraph:\n[Image: Normal distribution curve with values of 0 and 21.3. A vertical upward line extends from 21.3 to the curve and the p-value is indicated in the area to the right of this value.]\nCalculate the p-value: The p-value is 0.2150\nDecision: If the level of significance is 5%, the decision is not to reject the null hypothesis, because α < p-value.\nWhat is the conclusion?\nAt a 5% level of significance, from the sample data, there is not sufficient evidence to conclude that the strength development class helped to make the players stronger, on average. It should be noted that this data set consists of a very small sample size, with the possibility of an outlier data value. It is important to confirm that the matched pairs have differences that come from a population that is normal. The coach may want to consider increasing the sample size of players in the study.\nTry It\nA new prep class was designed to improve SAT test scores. Four students were selected at random. Their scores on two practice exams were recorded, one before the class and one after. The data recorded in Table. Are the scores, on average, higher after the class? Test at a 5% level.\nSAT Scores | Student 1 | Student 2 | Student 3 | Student 4\nScore before class | 1840 | 1960 | 1920 | 2150\nScore after class | 1920 | 2160 | 2200 | 2100\nSeven eighth graders at Kennedy Middle School measured how far they could push the shot-put with their dominant (writing) hand and their weaker (non-writing) hand. They thought that they could push equal distances with either hand. The data were collected and recorded in Table.\nDistance (in feet) using | Student 1 | Student 2 | Student 3 | Student 4 | Student 5 | Student 6 | Student 7\nDominant Hand | 30 | 26 | 34 | 17 | 19 | 26 | 20\nWeaker Hand | 28 | 14 | 27 | 18 | 17 | 26 | 16\nConduct a hypothesis test to determine whether the mean difference in distances between the children’s dominant versus weaker hands is significant.\nRecord the differences data. Calculate the differences by subtracting the distances with the weaker hand from the distances with the dominant hand. The data for the differences are: {2, 12, 7, –1, 2, 0, 4}. The differences have a normal distribution.\nUsing the differences data, calculate the sample mean and the sample standard deviation. ${\\overline{x}}_{d}$ = 3.71, ${s}_{d}$ = 4.5.\nRandom variable: ${\\overline{X}}_{d}$ = mean difference in the distances between the hands.\nDistribution for the hypothesis test: t6\nH0: μd = 0 Ha: μd ≠ 0\nGraph:\n[Image: This is a normal distribution curve with mean equal to zero. Both the right and left tails of the curve are shaded. Each tail represents 1/2(p-value) = 0.0358.]\nCalculate the p-value: The p-value is 0.0716 (using the data directly).\n(test statistic = 2.18. p-value = 0.0719 using $({\\overline{x}}_{d}=3.71,{s}_{d}=4.5.)$\nDecision: Assume α = 0.05. Since α < p-value, Do not reject H0.\nConclusion: At the 5% level of significance, from the sample data, there is not sufficient evidence to conclude that there is a difference in the children’s weaker and dominant hands to push the shot-put.\nTry-It\nFive ball players think they can throw the same distance with their dominant hand (throwing) and off-hand (catching hand). The data were collected and recorded in Table. Conduct a hypothesis test to determine whether the mean difference in distances between the dominant and off-hand is significant. Test at the 5% level.\nPlayer 1 | Player 2 | Player 3 | Player 4 | Player 5\nDominant Hand | 120 | 111 | 135 | 140 | 125\nOff-hand | 105 | 109 | 98 | 111 | 99\nChapter Review\nA hypothesis test for matched or paired samples (t-test) has these characteristics:\n- Test the differences by subtracting one measurement from the other measurement\n- Random Variable: ${\\overline{x}}_{d}$ = mean of the differences\n- Distribution: Student’s-t distribution with n – 1 degrees of freedom\n- If the number of differences is small (less than 30), the differences must follow a normal distribution.\n- Two samples are drawn from the same set of objects.\n- Samples are dependent.\nFormula Review\nTest Statistic (t-score): t = $\\frac{{\\overline{x}}_{d}-{\\mu}_{d}}{(\\frac{{s}_{d}}{\\sqrt{n}})}$\nwhere:\n${\\overline{x}}_{d}$ is the mean of the sample differences. μd is the mean of the population differences. sd is the sample standard deviation of the differences. n is the sample size.\nUse the following information to answer the next five exercises. A study was conducted to test the effectiveness of a software patch in reducing system failures over a six-month period. Results for randomly selected installations are shown in Table. The “before” value is matched to an “after” value, and the differences are calculated. The differences have a normal distribution. Test at the 1% significance level.\nInstallation | A | B | C | D | E | F | G | H\nBefore | 3 | 6 | 4 | 2 | 5 | 8 | 2 | 6\nAfter | 1 | 5 | 2 | 0 | 1 | 0 | 2 | 2\nWhat is the random variable?\nthe mean difference of the system failures\nState the null and alternative hypotheses.\nWhat is the p-value?\n0.0067\nDraw the graph of the p-value.\nWhat conclusion can you draw about the software patch?\nWith a p-value 0.0067, we can reject the null hypothesis. There is enough evidence to support that the software patch is effective in reducing the number of system failures.\nUse the following information to answer next five exercises. A study was conducted to test the effectiveness of a juggling class. Before the class started, six subjects juggled as many balls as they could at once. After the class, the same six subjects juggled as many balls as they could. The differences in the number of balls are calculated. The differences have a normal distribution. Test at the 1% significance level.\nSubject | A | B | C | D | E | F\nBefore | 3 | 4 | 3 | 2 | 4 | 5\nAfter | 4 | 5 | 6 | 4 | 5 | 7\nState the null and alternative hypotheses.\nWhat is the p-value?\n0.0021\nWhat is the sample mean difference?\nDraw the graph of the p-value.\n[Image: This is a normal distribution curve with mean equal to zero. The values 0 and 1.67 are labeled on the horiztonal axis. A vertical line extends from 1.67 to the curve. The region under the curve to the right of the line is shaded to represent p-value = 0.0021.]\nWhat conclusion can you draw about the juggling class?\nUse the following information to answer the next five exercises. A doctor wants to know if a blood pressure medication is effective. Six subjects have their blood pressures recorded. After twelve weeks on the medication, the same six subjects have their blood pressure recorded again. For this test, only systolic pressure is of concern. Test at the 1% significance level.\nPatient | A | B | C | D | E | F\nBefore | 161 | 162 | 165 | 162 | 166 | 171\nAfter | 158 | 159 | 166 | 160 | 167 | 169\nState the null and alternative hypotheses.\nH0: μd ≥ 0\nHa: μd < 0\nWhat is the test statistic?\nWhat is the p-value?\n0.0699\nWhat is the sample mean difference?\nWhat is the conclusion?\nWe decline to reject the null hypothesis. There is not sufficient evidence to support that the medication is effective.\nHomework\nDIRECTIONS: For each of the word problems, use a solution sheet to do the hypothesis test. The solution sheet is found in Appendix E. Please feel free to make copies of the solution sheets. For the online version of the book, it is suggested that you copy the.doc or the.pdf files.\nNOTE\nIf you are using a Student's t-distribution for the homework problems, including for paired data, you may assume that the underlying population is normally distributed. (When using these tests in a real situation, you must first prove that assumption, however.)\nTen individuals went on a low–fat diet for 12 weeks to lower their cholesterol. The data are recorded in Table. Do you think that their cholesterol levels were significantly lowered?\nStarting cholesterol level | Ending cholesterol level\n140 | 140\n220 | 230\n110 | 120\n240 | 220\n200 | 190\n180 | 150\n190 | 200\n360 | 300\n280 | 300\n260 | 240\np-value = 0.1494\nAt the 5% significance level, there is insufficient evidence to conclude that the medication lowered cholesterol levels after 12 weeks.\nUse the following information to answer the next two exercises. A new heart disease prevention drug was tried on a group of 224 patients. Forty-five patients developed heart disease after four years. In a control group of 224 patients, 68 developed heart disease after four years. We want to test whether the method of treatment reduces the proportion of patients that develop heart disease after four years or if the proportions of the treated group and the untreated group stay the same.\nLet the subscript t = treated patient and ut = untreated patient.\nThe appropriate hypotheses are:\n- H0: pt < put and Ha: pt ≥ put\n- H0: pt ≤ put and Ha: pt > put\n- H0: pt = put and Ha: pt ≠ put\n- H0: pt = put and Ha: pt < put\nIf the p-value is 0.0062 what is the conclusion (use α = 0.05)?\n- The method has no effect.\n- There is sufficient evidence to conclude that the method reduces the proportion of patients who develop heart disease after four years.\n- There is sufficient evidence to conclude that the method increases the proportion of patients who develop heart disease after four years.\n- There is insufficient evidence to conclude that the method reduces the proportion of patients who develop heart disease after four years.\nb\nUse the following information to answer the next two exercises. An experiment is conducted to show that blood pressure can be consciously reduced in people trained in a “biofeedback exercise program.” Six subjects were randomly selected and blood pressure measurements were recorded before and after the training. The difference between blood pressures was calculated (after - before) producing the following results: ${\\overline{x}}_{d}$ = −10.2 sd = 8.4. Using the data, test the hypothesis that the blood pressure has decreased after the training.\nThe distribution for the test is:\n- t5\n- t6\n- N(−10.2, 8.4)\n- N(−10.2, $\\frac{8.4}{\\sqrt{6}}$)\nIf α = 0.05, the p-value and the conclusion are\n- 0.0014; There is sufficient evidence to conclude that the blood pressure decreased after the training.\n- 0.0014; There is sufficient evidence to conclude that the blood pressure increased after the training.\n- 0.0155; There is sufficient evidence to conclude that the blood pressure decreased after the training.\n- 0.0155; There is sufficient evidence to conclude that the blood pressure increased after the training.\nc\nA golf instructor is interested in determining if her new technique for improving players’ golf scores is effective. She takes four new students. She records their 18-hole scores before learning the technique and then after having taken her class. She conducts a hypothesis test. The data are as follows.\nPlayer 1 | Player 2 | Player 3 | Player 4\nMean score before class | 83 | 78 | 93 | 87\nMean score after class | 80 | 80 | 86 | 86\nThe correct decision is:\n- Reject H0.\n- Do not reject the H0.\nA local cancer support group believes that the estimate for new female breast cancer cases in the south is higher in Year 2 than in Year 1. The group compared the estimates of new female breast cancer cases by southern state in Year 1 and in Year 2. The results are in Table.\nSouthern States | Year 1 | Year 2\nAlabama | 3,450 | 3,720\nArkansas | 2,150 | 2,280\nFlorida | 15,540 | 15,710\nGeorgia | 6,970 | 7,310\nKentucky | 3,160 | 3,300\nLouisiana | 3,320 | 3,630\nMississippi | 1,990 | 2,080\nNorth Carolina | 7,090 | 7,430\nOklahoma | 2,630 | 2,690\nSouth Carolina | 3,570 | 3,580\nTennessee | 4,680 | 5,070\nTexas | 15,050 | 14,980\nVirginia | 6,190 | 6,280\nTest: two matched pairs or paired samples (t-test)\nRandom variable: ${\\overline{X}}_{d}$\nDistribution: t12\nH0: μd = 0 Ha: μd > 0\nThe mean of the differences of new female breast cancer cases in the south between Year 2 and Year 1 is greater than zero. The estimate for new female breast cancer cases in the south is higher in Year 2 than in Year 1.\nGraph: right-tailed\np-value: 0.0004\n[Image: This is a normal distribution curve with mean equal to zero. A vertical line near the tail of the curve to the right of zero extends from the axis to the curve. The region under the curve to the right of the line is shaded representing p-value = 0.0004.]\nDecision: Reject H0\nConclusion: At the 5% level of significance, from the sample data, there is sufficient evidence to conclude that there was a higher estimate of new female breast cancer cases in Year 2 than in Year 1.\nA traveler wanted to know if the prices of hotels are different in the ten cities that he visits the most often. The list of the cities with the corresponding hotel prices for his two favorite hotel chains is in Table. Test at the 1% level of significance.\nCities | Hyatt Regency prices in dollars | Hilton prices in dollars\nAtlanta | 107 | 169\nBoston | 358 | 289\nChicago | 209 | 299\nDallas | 209 | 198\nDenver | 167 | 169\nIndianapolis | 179 | 214\nLos Angeles | 179 | 169\nNew York City | 625 | 459\nPhiladelphia | 179 | 159\nWashington, DC | 245 | 239\nA politician asked their staff to determine whether the underemployment rate in the northeast decreased year over year. The results are in Table.\nNortheastern States | Year 1 | Year 2\nConnecticut | 17.3 | 16.4\nDelaware | 17.4 | 13.7\nMaine | 19.3 | 16.1\nMaryland | 16.0 | 15.5\nMassachusetts | 17.6 | 18.2\nNew Hampshire | 15.4 | 13.5\nNew Jersey | 19.2 | 18.7\nNew York | 18.5 | 18.7\nOhio | 18.2 | 18.8\nPennsylvania | 16.5 | 16.9\nRhode Island | 20.7 | 22.4\nVermont | 14.7 | 12.3\nWest Virginia | 15.5 | 17.3\nTest: matched or paired samples (t-test)\nDifference data: {–0.9, –3.7, –3.2, –0.5, 0.6, –1.9, –0.5, 0.2, 0.6, 0.4, 1.7, –2.4, 1.8}\nRandom Variable: ${\\overline{X}}_{d}$\nDistribution: H0: μd = 0 Ha: μd < 0\nThe mean of the differences of the rate of underemployment in the northeastern states between Year 2 and Year 1 is less than zero. The underemployment rate went down from Year 1 to Year 2.\nGraph: left-tailed.\n[Image: This is a normal distribution curve with mean equal to zero. A vertical line near the tail of the curve to the right of zero extends from the axis to the curve. The region under the curve to the right of the line is shaded representing p-value = 0.1207.]\np-value: 0.1207\nDecision: Do not reject H0.\nConclusion: At the 5% level of significance, from the sample data, there is not sufficient evidence to conclude that there was a decrease in the underemployment rates of the northeastern states from Year 1 to Year 2.\nBringing It Together\nUse the following information to answer the next ten exercises. indicate which of the following choices best identifies the hypothesis test.\n- independent group means, population standard deviations and/or variances known\n- independent group means, population standard deviations and/or variances unknown\n- matched or paired samples\n- single mean\n- two proportions\n- single proportion\nA powder diet is tested on 49 people, and a liquid diet is tested on 36 different people. The population standard deviations are two pounds and three pounds, respectively. Of interest is whether the liquid diet yields a higher mean weight loss than the powder diet.\nA new chocolate bar is taste-tested on consumers. Of interest is whether the proportion of children who like the new chocolate bar is greater than the proportion of adults who like it.\ne\nThe mean number of English courses taken in a two–year time period by men and women college students is believed to be about the same. An experiment is conducted and data are collected from nine males and 16 females.\nA football league reported that the mean number of touchdowns per game was five. A study is done to determine if the mean number of touchdowns has decreased.\nd\nA study is done to determine if students in the California state university system take longer to graduate than students enrolled in private universities. One hundred students from both the California state university system and private universities are surveyed. From years of research, it is known that the population standard deviations are 1.5811 years and one year, respectively.\nAccording to a YWCA Rape Crisis Center newsletter, 75% of rape victims know their attackers. A study is done to verify this.\nf\nAccording to a recent study, U.S. companies have a mean maternity-leave of six weeks.\nA recent drug survey showed an increase in use of drugs and alcohol among local high school students as compared to the national percent. Suppose that a survey of 100 local youths and 100 national youths is conducted to see if the proportion of drug and alcohol use is higher locally than nationally.\ne\nA new SAT study course is tested on 12 individuals. Pre-course and post-course scores are recorded. Of interest is the mean increase in SAT scores. The following data are collected:\nPre-course score | Post-course score\n1 | 300\n960 | 920\n1010 | 1100\n840 | 880\n1100 | 1070\n1250 | 1320\n860 | 860\n1330 | 1370\n790 | 770\n990 | 1040\n1110 | 1200\n740 | 850\nUniversity of Michigan researchers reported in the Journal of the National Cancer Institute that quitting smoking is especially beneficial for those under age 49. In this American Cancer Society study, the risk (probability) of dying of lung cancer was about the same as for those who had never smoked.\nf\nLesley E. Tan investigated the relationship between left-handedness vs. right-handedness and motor competence in preschool children. Random samples of 41 left-handed preschool children and 41 right-handed preschool children were given several tests of motor skills to determine if there is evidence of a difference between the children based on this experiment. The experiment produced the means and standard deviations shown Table. Determine the appropriate test and best distribution to use for that test.\nLeft-handed | Right-handed\nSample size | 41 | 41\nSample mean | 97.5 | 98.1\nSample standard deviation | 17.5 | 19.2\n- Two independent means, normal distribution\n- Two independent means, Student’s-t distribution\n- Matched or paired samples, Student’s-t distribution\n- Two population proportions, normal distribution\nA golf instructor is interested in determining if a new technique for improving players’ golf scores is effective. The instructor takes four (4) new students and records their 18-hole scores before learning the technique and then after having taken the class. The instructor conducts a hypothesis test. The data are as Table.\nPlayer 1 | Player 2 | Player 3 | Player 4\nMean score before class | 83 | 78 | 93 | 87\nMean score after class | 80 | 80 | 86 | 86\nThis is:\n- a test of two independent means.\n- a test of two proportions.\n- a test of a single mean.\n- a test of a single proportion.\na"}
{"document_id": "openstax-intro-statistics-m50278", "title": "Hypothesis Testing with Two Samples — Hypothesis Testing for Two Means and Two Proportions", "source": "https://openstax.org/books/introductory-statistics-2e/pages/10-5-hypothesis-testing-for-two-means-and-two-proportions", "license": "CC-BY-4.0", "text": "Hypothesis Testing for Two Means and Two Proportions\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will select the appropriate distributions to use in each case.\n- The student will conduct hypothesis tests and interpret the results.\nSupplies:\n- the business section from two consecutive days’ newspapers\n- three small packages of M&Ms®\n- five small packages of Reese's Pieces®\nIncreasing Stocks Survey\nLook at yesterday’s newspaper business section. Conduct a hypothesis test to determine if the proportion of New York Stock Exchange (NYSE) stocks that increased is greater than the proportion of NASDAQ stocks that increased. As randomly as possible, choose 40 NYSE stocks, and 32 NASDAQ stocks and complete the following statements.\n- H0: _________\n- Ha: _________\n- In words, define the random variable.\n- The distribution to use for the test is _____________.\n- Calculate the test statistic using your data.\n- Draw a graph and label it appropriately. Shade the actual level of significance.\n- Graph:\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\n- Calculate the p-value.\n- Do you reject or not reject the null hypothesis? Why?\n- Write a clear conclusion using a complete sentence.\nDecreasing Stocks Survey\nRandomly pick eight stocks from the newspaper. Using two consecutive days’ business sections, test whether the stocks went down, on average, for the second day.\n- H0: ________\n- Ha: ________\n- In words, define the random variable.\n- The distribution to use for the test is _____________.\n- Calculate the test statistic using your data.\n- Draw a graph and label it appropriately. Shade the actual level of significance.\n- Graph:\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\n- Calculate the p-value:\n- Do you reject or not reject the null hypothesis? Why?\n- Write a clear conclusion using a complete sentence.\nCandy Survey\nBuy three small packages of M&Ms and five small packages of Reese's Pieces (same net weight as the M&Ms). Test whether or not the mean number of candy pieces per package is the same for the two brands.\n- H0: ________\n- Ha: ________\n- In words, define the random variable.\n- What distribution should be used for this test?\n- Calculate the test statistic using your data.\n- Draw a graph and label it appropriately. Shade the actual level of significance.\n- Graph:\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\n- Calculate the p-value.\n- Do you reject or not reject the null hypothesis? Why?\n- Write a clear conclusion using a complete sentence.\nShoe Survey\nTest whether women have, on average, more pairs of shoes than men. Include all forms of sneakers, shoes, sandals, and boots. Use your class as the sample.\n- H0: ________\n- Ha: ________\n- In words, define the random variable.\n- The distribution to use for the test is ________________.\n- Calculate the test statistic using your data.\n- Draw a graph and label it appropriately. Shade the actual level of significance.\n- Graph:\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\n- Calculate the p-value.\n- Do you reject or not reject the null hypothesis? Why?\n- Write a clear conclusion using a complete sentence."}
{"document_id": "openstax-intro-statistics-m47062", "title": "The Chi-Square Distribution — Facts About the Chi-Square Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/11-1-facts-about-the-chi-square-distribution", "license": "CC-BY-4.0", "text": "The notation for the chi-square distribution is:\n$$X\\sim{\\chi}_{df}^{2}$$\nwhere df = degrees of freedom which depends on how chi-square is being used. (If you want to practice calculating chi-square probabilities then use df = n - 1. The degrees of freedom for the three major uses are each calculated differently.)\nFor the χ2 distribution, the population mean is μ = df and the population standard deviation is $\\sigma=\\sqrt{2(df)}$.\nThe random variable is shown as χ2, but may be any upper case letter.\nThe random variable for a chi-square distribution with k degrees of freedom is the sum of k independent, squared standard normal variables.\nχ2 = (Z1)2 + (Z2)2 +... + (Zk)2\n- The curve is nonsymmetrical and skewed to the right.\n- There is a different chi-square curve for each df.\n[Image: Part (a) shows a chi-square curve with 2 degrees of freedom. It is nonsymmetrical and slopes downward continually. Part (b) shows a chi-square curve with 24 df. This nonsymmetrical curve does have a peak and is skewed to the right. The graphs illustrate that different degrees of freedom produce different chi-square curves.]\n- The test statistic for any test is always greater than or equal to zero.\n- When df > 90, the chi-square curve approximates the normal distribution. For X ~ ${\\chi}_{1,000}^{2}$ the mean, μ = df = 1,000 and the standard deviation, σ = $\\sqrt{2(1,000)}$ = 44.7. Therefore, X ~ N(1,000, 44.7), approximately.\n- The mean, μ, is located just to the right of the peak.\n[Image: This is a nonsymmetrical chi-square curve which is skewed to the right. The mean, m, is labeled on the horizontal axis and is located to the right of the curve's peak.]\nReferences\nData from Parade Magazine.\n“HIV/AIDS Epidemiology Santa Clara County.”Santa Clara County Public Health Department, May 2011.\nChapter Review\nThe chi-square distribution is a useful tool for assessment in a series of problem categories. These problem categories include primarily (i) whether a data set fits a particular distribution, (ii) whether the distributions of two populations are the same, (iii) whether two events might be independent, and (iv) whether there is a different variability than expected within a population.\nAn important parameter in a chi-square distribution is the degrees of freedom df in a given problem. The random variable in the chi-square distribution is the sum of squares of df standard normal variables, which must be independent. The key characteristics of the chi-square distribution also depend directly on the degrees of freedom.\nThe chi-square distribution curve is skewed to the right, and its shape depends on the degrees of freedom df. For df > 90, the curve approximates the normal distribution. Test statistics based on the chi-square distribution are always greater than or equal to zero. Such application tests are almost always right-tailed tests.\nFormula Review\nχ2 = (Z1)2 + (Z2)2 + … (Zdf)2 chi-square distribution random variable\nμχ2 = df chi-square distribution population mean\n${\\sigma}_{{\\chi}^{2}}\\text{=}\\sqrt{2(df)}$ Chi-Square distribution population standard deviation\nIf the number of degrees of freedom for a chi-square distribution is 25, what is the population mean and standard deviation?\nmean = 25 and standard deviation = 7.0711\nIf df > 90, the distribution is _____________. If df = 15, the distribution is ________________.\nWhen does the chi-square curve approximate a normal distribution?\nwhen the number of degrees of freedom is greater than 90\nWhere is μ located on a chi-square curve?\nIs it more likely the df is 90, 20, or two in the graph?\n[Image: This is a nonsymmetrical chi-square curve which slopes downward continually.]\ndf = 2\nHomework\nDecide whether the following statements are true or false.\nAs the number of degrees of freedom increases, the graph of the chi-square distribution looks more and more symmetrical.\ntrue\nThe standard deviation of the chi-square distribution is twice the mean.\nThe mean and the median of the chi-square distribution are the same if df = 24.\nfalse"}
{"document_id": "openstax-intro-statistics-m47064", "title": "The Chi-Square Distribution — Goodness-of-Fit Test", "source": "https://openstax.org/books/introductory-statistics-2e/pages/11-2-goodness-of-fit-test", "license": "CC-BY-4.0", "text": "In this type of hypothesis test, you determine whether the data \"fit\" a particular distribution or not. For example, you may suspect your unknown data fit a binomial distribution. You use a chi-square test (meaning the distribution for the hypothesis test is chi-square) to determine if there is a fit or not. The null and the alternative hypotheses for this test may be written in sentences or may be stated as equations or inequalities.\nThe test statistic for a goodness-of-fit test is:\n$${\\Sigma}_{k}\\frac{{(O-E)}^{2}}{E}$$\nwhere:\n- O = observed values (data)\n- E = expected values (from theory)\n- k = the number of different data cells or categories\nThe observed values are the data values and the expected values are the values you would expect to get if the null hypothesis were true. There are n terms of the form $\\frac{{(O-E)}^{2}}{E}$.\nThe number of degrees of freedom is df = (number of categories – 1).\nThe goodness-of-fit test is almost always right-tailed. If the observed values and the corresponding expected values are not close to each other, then the test statistic can get very large and will be way out in the right tail of the chi-square curve.\nNOTE\nThe expected value for each cell needs to be at least five in order for you to use this test.\nAbsenteeism of college students from math classes is a major concern to math instructors because missing class appears to increase the drop rate. Suppose that a study was done to determine if the actual student absenteeism rate follows faculty perception. The faculty expected that a group of 100 students would miss class according to Table.\nNumber of absences per term | Expected number of students\n0–2 | 50\n3–5 | 30\n6–8 | 12\n9–11 | 6\n12+ | 2\nA random survey across all mathematics courses was then done to determine the actual number (observed) of absences in a course. The chart in Table displays the results of that survey.\nNumber of absences per term | Actual number of students\n0–2 | 35\n3–5 | 40\n6–8 | 20\n9–11 | 1\n12+ | 4\nDetermine the null and alternative hypotheses needed to conduct a goodness-of-fit test.\nH0: Student absenteeism fits faculty perception.\nThe alternative hypothesis is the opposite of the null hypothesis.\nHa: Student absenteeism does not fit faculty perception.\na. Can you use the information as it appears in the charts to conduct the goodness-of-fit test?\na. No. Notice that the expected number of absences for the \"12+\" entry is less than five (it is two). Combine that group with the \"9–11\" group to create new tables where the number of students for each entry are at least five. The new results are in Table and Table.\nNumber of absences per term | Expected number of students\n0–2 | 50\n3–5 | 30\n6–8 | 12\n9+ | 8\nNumber of absences per term | Actual number of students\n0–2 | 35\n3–5 | 40\n6–8 | 20\n9+ | 5\nb. What is the number of degrees of freedom (df)?\nb. There are four \"cells\" or categories in each of the new tables.\ndf = number of cells – 1 = 4 – 1 = 3\nTry It\nA factory manager needs to understand how many products are defective versus how many are produced. The number of expected defects is listed in Table.\nNumber produced | Number defective\n0–100 | 5\n101–200 | 6\n201–300 | 7\n301–400 | 8\n401–500 | 10\nA random sample was taken to determine the actual number of defects. Table shows the results of the survey.\nNumber produced | Number defective\n0–100 | 5\n101–200 | 7\n201–300 | 8\n301–400 | 9\n401–500 | 11\nState the null and alternative hypotheses needed to conduct a goodness-of-fit test, and state the degrees of freedom.\nEmployers want to know which days of the week employees are absent in a five-day work week. Most employers would like to believe that employees are absent equally during the week. Suppose a random sample of 60 managers were asked on which day of the week they had the highest number of employee absences. The results were distributed as in Table. For the population of employees, do the days for the highest number of absences occur with equal frequencies during a five-day work week? Test at a 5% significance level.\nMonday | Tuesday | Wednesday | Thursday | Friday\nNumber of Absences | 15 | 12 | 9 | 9 | 15\nThe null and alternative hypotheses are:\n- H0: The absent days occur with equal frequencies, that is, they fit a uniform distribution.\n- Ha: The absent days occur with unequal frequencies, that is, they do not fit a uniform distribution.\nIf the absent days occur with equal frequencies, then, out of 60 absent days (the total in the sample: 15 + 12 + 9 + 9 + 15 = 60), there would be 12 absences on Monday, 12 on Tuesday, 12 on Wednesday, 12 on Thursday, and 12 on Friday. These numbers are the expected (E) values. The values in the table are the observed (O) values or data.\nThis time, calculate the χ2 test statistic by hand. Make a chart with the following headings and fill in the columns:\n- Expected (E) values (12, 12, 12, 12, 12)\n- Observed (O) values (15, 12, 9, 9, 15)\n- (O – E)\n- (O – E)2\n- $\\frac{{(O\\text{–}E)}^{2}}{E}$\nNow add (sum) the last column. The sum is three. This is the χ2 test statistic.\nTo find the p-value, calculate P(χ2 > 3). This test is right-tailed. (Use a computer or calculator to find the p-value. You should get p-value = 0.5578.)\nThe dfs are the number of cells – 1 = 5 – 1 = 4\nPress 2nd DISTR. Arrow down to χ2cdf. Press ENTER. Enter (3,10^99,4). Rounded to four decimal places, you should see 0.5578, which is the p-value.\nNext, complete a graph like the following one with the proper labeling and shading. (You should shade the right tail.)\n[Image: This is a blank nonsymmetrical chi-square curve for the test statistic of the days of the week absent.]\nThe decision is not to reject the null hypothesis.\nConclusion: At a 5% level of significance, from the sample data, there is not sufficient evidence to conclude that the absent days do not occur with equal frequencies.\nTI-83+ and some TI-84 calculators do not have a special program for the test statistic for the goodness-of-fit test. The next example Example has the calculator instructions. The newer TI-84 calculators have in STAT TESTS the test Chi2 GOF. To run the test, put the observed values (the data) into a first list and the expected values (the values you expect if the null hypothesis is true) into a second list. Press STAT TESTS and Chi2 GOF. Enter the list names for the Observed list and the Expected list. Enter the degrees of freedom and press calculate or draw. Make sure you clear any lists before you start. To Clear Lists in the calculators: Go into STAT EDIT and arrow up to the list name area of the particular list. Press CLEAR and then arrow down. The list will be cleared. Alternatively, you can press STAT and press 4 (for ClrList). Enter the list name and press ENTER.\nTry It\nTeachers want to know which night each week their students are doing most of their homework. Most teachers think that students do homework equally throughout the week. Suppose a random sample of 56 students were asked on which night of the week they did the most homework. The results were distributed as in Table.\nSunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday\nNumber of Students | 11 | 8 | 10 | 7 | 10 | 5 | 5\nFrom the population of students, do the nights for the highest number of students doing the majority of their homework occur with equal frequencies during a week? What type of hypothesis test should you use?\nOne study indicates that the number of streaming services that American families have is distributed (this is the given distribution for the American population) as in Table.\nNumber of Streaming Services | Percent\n0 | 10\n1 | 16\n2 | 55\n3 | 11\n4+ | 8\nThe table contains expected (E) percents.\nA random sample of 600 families in the far western United States resulted in the data in Table.\nNumber of Streaming Services | Frequency\n0 | 66\n1 | 119\n2 | 340\n3 | 60\n4+ | 15\nTotal = 600\nThe table contains observed (O) frequency values.\nAt the 1% significance level, does it appear that the distribution \"number of streaming services\" of far western United States families is different from the distribution for the American population as a whole?\nThis problem asks you to test whether the far western United States families distribution fits the distribution of the American families. This test is always right-tailed.\nThe first table contains expected percentages. To get expected (E) frequencies, multiply the percentage by 600. The expected frequencies are shown in Table.\nNumber of Streaming Services | Percent | Expected Frequency\n0 | 10 | (0.10)(600) = 60\n1 | 16 | (0.16)(600) = 96\n2 | 55 | (0.55)(600) = 330\n3 | 11 | (0.11)(600) = 66\nover 3 | 8 | (0.08)(600) = 48\nTherefore, the expected frequencies are 60, 96, 330, 66, and 48. In the TI calculators, you can let the calculator do the math. For example, instead of 60, enter 0.10*600.\nH0: The \"number of streaming services\" distribution of far western United States families is the same as the \"number of streaming services\" distribution of the American population.\nHa: The \"number of streaming services\" distribution of far western United States families is different from the \"number of streaming services\" distribution of the American population.\nDistribution for the test: ${\\chi}_{4}^{2}$ where df = (the number of cells) – 1 = 5 – 1 = 4.\nNOTE\ndf ≠ 600 – 1\nCalculate the test statistic: χ2 = 29.65\nGraph:\n[Image: This is a nonsymmetric chi-square curve with values of 0, 4, and 29.65 labeled on the horizontal axis. The value 4 coincides with the peak of the curve. A vertical upward line extends from 29.65 to the curve, and the region to the right of this line is shaded. The shaded area is equal to the p-value.]\nProbability statement: p-value = P(χ2 > 29.65) = 0.000006\nCompare α and the p-value:\n- α = 0.01\n- p-value = 0.000006\nSo, α > p-value.\nMake a decision: Since α > p-value, reject Ho.\nThis means you reject the belief that the distribution for the far western states is the same as that of the American population as a whole.\nConclusion: At the 1% significance level, from the data, there is sufficient evidence to conclude that the \"number of streaming services\" distribution for the far western United States is different from the \"number of streaming services\" distribution for the American population as a whole.\nPress STAT and ENTER. Make sure to clear lists L1, L2, and L3 if they have data in them (see the note at the end of Example). Into L1, put the observed frequencies 66, 119, 340, 60, 15. Into L2, put the expected frequencies.10*600,.16*600,.55*600,.11*600,.08*600. Arrow over to list L3 and up to the name area \"L3\". Enter (L1-L2)^2/L2 and ENTER. Press 2nd QUIT. Press 2nd LIST and arrow over to MATH. Press 5. You should see \"sum\" (Enter L3). Rounded to 2 decimal places, you should see 29.65. Press 2nd DISTR. Press 7 or Arrow down to 7:χ2cdf and press ENTER. Enter (29.65,1E99,4). Rounded to four places, you should see 5.77E-6 =.000006 (rounded to six decimal places), which is the p-value.\nThe newer TI-84 calculators have in STAT TESTS the test Chi2 GOF. To run the test, put the observed values (the data) into a first list and the expected values (the values you expect if the null hypothesis is true) into a second list. Press STAT TESTS and Chi2 GOF. Enter the list names for the Observed list and the Expected list. Enter the degrees of freedom and press calculate or draw. Make sure you clear any lists before you start.\nTry It\nThe expected percentage of the number of pets students have in their homes is distributed (this is the given distribution for the student population of the United States) as in Table.\nNumber of Pets | Percent\n0 | 18\n1 | 25\n2 | 30\n3 | 18\n4+ | 9\nA random sample of 1,000 students from the Eastern United States resulted in the data in Table.\nNumber of Pets | Frequency\n0 | 210\n1 | 240\n2 | 320\n3 | 140\n4+ | 90\nAt the 1% significance level, does it appear that the distribution “number of pets” of students in the Eastern United States is different from the distribution for the United States student population as a whole? What is the p-value?\nSuppose you flip two coins 100 times. The results are 20 HH, 27 HT, 30 TH, and 23 TT. Are the coins fair? Test at a 5% significance level.\nThis problem can be set up as a goodness-of-fit problem. The sample space for flipping two fair coins is {HH, HT, TH, TT}. Out of 100 flips, you would expect 25 HH, 25 HT, 25 TH, and 25 TT. This is the expected distribution. The question, \"Are the coins fair?\" is the same as saying, \"Does the distribution of the coins (20 HH, 27 HT, 30 TH, 23 TT) fit the expected distribution?\"\nRandom Variable: Let X = the number of heads in one flip of the two coins. X takes on the values 0, 1, 2. (There are 0, 1, or 2 heads in the flip of two coins.) Therefore, the number of cells is three. Since X = the number of heads, the observed frequencies are 20 (for two heads), 57 (for one head), and 23 (for zero heads or both tails). The expected frequencies are 25 (for two heads), 50 (for one head), and 25 (for zero heads or both tails). This test is right-tailed.\nH0: The coins are fair.\nHa: The coins are not fair.\nDistribution for the test: ${\\chi}_{2}^{2}$ where df = 3 – 1 = 2.\nCalculate the test statistic: χ2 = 2.14\nGraph:\n[Image: This is a nonsymmetrical chi-square curve with values of 0 and 2.14 labeled on the horizontal axis. A vertical upward line extends from 2.14 to the curve and the region to the right of this line is shaded. The shaded area is equal to the p-value.]\nProbability statement: p-value = P(χ2 > 2.14) = 0.3430\nCompare α and the p-value:\n- α = 0.05\n- p-value = 0.3430\nα < p-value.\nMake a decision: Since α < p-value, do not reject H0.\nConclusion: There is insufficient evidence to conclude that the coins are not fair.\nPress STAT and ENTER. Make sure you clear lists L1, L2, and L3 if they have data in them. Into L1, put the observed frequencies 20, 57, 23. Into L2, put the expected frequencies 25, 50, 25. Arrow over to list L3 and up to the name area \"L3\". Enter (L1-L2)^2/L2 and ENTER. Press 2nd QUIT. Press 2nd LIST and arrow over to MATH. Press 5. You should see \"sum\".Enter L3. Rounded to two decimal places, you should see 2.14. Press 2nd DISTR. Arrow down to 7:χ2cdf (or press 7). Press ENTER. Enter 2.14,1E99,2). Rounded to four places, you should see.3430, which is the p-value.\nThe newer TI-84 calculators have in STAT TESTS the test Chi2 GOF. To run the test, put the observed values (the data) into a first list and the expected values (the values you expect if the null hypothesis is true) into a second list. Press STAT TESTS and Chi2 GOF. Enter the list names for the Observed list and the Expected list. Enter the degrees of freedom and press calculate or draw. Make sure you clear any lists before you start.\nTry It\nStudents in a social studies class hypothesize that the literacy rates across the world for every region are 82%. Table shows the actual literacy rates across the world broken down by region. What are the test statistic and the degrees of freedom?\nMDG Region | Adult Literacy Rate (%)\nDeveloped Regions | 99.0\nCommonwealth of Independent States | 99.5\nNorthern Africa | 67.3\nSub-Saharan Africa | 62.5\nLatin America and the Caribbean | 91.0\nEastern Asia | 93.8\nSouthern Asia | 61.9\nSouth-Eastern Asia | 91.9\nWestern Asia | 84.5\nOceania | 66.4\nReferences\nData from the U.S. Census Bureau\nData from the College Board. Available online at http://www.collegeboard.com.\nData from the U.S. Census Bureau, Current Population Reports.\nMa, Y., E.R. Bertone, E.J. Stanek III, G.W. Reed, J.R. Hebert, N.L. Cohen, P.A. Merriam, I.S. Ockene, “Association between Eating Patterns and Obesity in a Free-living US Adult Population.” American Journal of Epidemiology volume 158, no. 1, pages 85-92.\nOgden, Cynthia L., Margaret D. Carroll, Brian K. Kit, Katherine M. Flegal, “Prevalence of Obesity in the United States, 2009–2010.” NCHS Data Brief no. 82, January 2012. Available online at http://www.cdc.gov/nchs/data/databriefs/db82.pdf (accessed May 24, 2013).\nStevens, Barbara J., “Multi-family and Commercial Solid Waste and Recycling Survey.” Arlington Count, VA. Available online at http://www.arlingtonva.us/departments/EnvironmentalServices/SW/file84429.pdf (accessed May 24,2013).\nChapter Review\nTo assess whether a data set fits a specific distribution, you can apply the goodness-of-fit hypothesis test that uses the chi-square distribution. The null hypothesis for this test states that the data come from the assumed distribution. The test compares observed values against the values you would expect to have if your data followed the assumed distribution. The test is almost always right-tailed. Each observation or cell category must have an expected value of at least five.\nFormula Review\n${\\sum}_{k}\\frac{{(O-E)}^{2}}{E}$ goodness-of-fit test statistic where: O: observed values E: expected values k: number of different data cells or categories\ndf = k − 1 degrees of freedom\nDetermine the appropriate test to be used in the next three exercises.\nAn archeologist is calculating the distribution of the frequency of the number of artifacts they find in a dig site. Based on previous digs, the archeologist creates an expected distribution broken down by grid sections in the dig site. Once the site has been fully excavated, they compare the actual number of artifacts found in each grid section to see if their expectation was accurate.\nAn economist is deriving a model to predict outcomes on the stock market. They create a list of expected points on the stock market index for the next two weeks. At the close of each day’s trading, The economist records the actual points on the index. They want to see how well the model matched what actually happened.\na goodness-of-fit test\nA personal trainer is putting together a weight-lifting program for their clients. For a 90-day program, they expect each client to lift a specific maximum weight each week. As the program goes along, the trainer records the actual maximum weights their clients lifted. They want to know how well their expectations met with what was observed.\nUse the following information to answer the next five exercises: A teacher predicts that the distribution of grades on the final exam will be and they are recorded in Table.\nGrade | Proportion\nA | 0.25\nB | 0.30\nC | 0.35\nD | 0.10\nThe actual distribution for a class of 20 is in Table.\nGrade | Frequency\nA | 7\nB | 7\nC | 5\nD | 1\n$df=$ ______\n3\nState the null and alternative hypotheses.\nχ2 test statistic = ______\n2.04\np-value = ______\nAt the 5% significance level, what can you conclude?\nWe decline to reject the null hypothesis. There is not enough evidence to suggest that the observed test scores are significantly different from the expected test scores.\nUse the following information to answer the next nine exercises: The cumulative number of COVID-19 related cases reported for Santa Clara County for a certain time period is broken down by ethnicity as in Table.\nEthnicity | Number of Cases\nWhite | 2,229\nHispanic/Latino | 1,157\nBlack/African-American | 457\nAsian, Pacific Islander | 232\nTotal = 4,075\nThe percentage of each ethnic group in Santa Clara County is as in Table.\nEthnicity | Percentage of total county population | Number expected (round to two decimal places)\nWhite | 42.9% | 1748.18\nHispanic/Latino | 26.7%\nBlack/African-American | 2.6%\nAsian, Pacific Islander | 27.8%\nTotal = 100%\nIf the ethnicities of COVID-19 cases victims followed the ethnicities of the total county population, fill in the expected number of cases per ethnic group. Perform a goodness-of-fit test to determine whether the occurrence of COVID-19 cases follows the ethnicities of the general population of Santa Clara County.\nH0: _______\nH0: the distribution of COVID-19 cases follows the ethnicities of the general population of Santa Clara County.\nHa: _______\nIs this a right-tailed, left-tailed, or two-tailed test?\nright-tailed\ndegrees of freedom = _______\nχ2 test statistic = _______\n2016.136\np-value = _______\nGraph the situation. Label and scale the horizontal axis. Mark the mean and test statistic. Shade in the region corresponding to the p-value.\n[Image: This is a blank graph template. The vertical and horizontal axes are unlabeled.]\nLet α = 0.05\nDecision: ________________\nReason for the Decision: ________________\nConclusion (write out in complete sentences): ________________\nGraph: Answers may vary.\nDecision: Reject the null hypothesis.\nReason for the Decision: p-value < alpha\nConclusion (write out in complete sentences): The make-up of COVID-19 cases does not fit the ethnicities of the general population of Santa Clara County.\nDoes it appear that the pattern of COVID-19 cases in Santa Clara County corresponds to the distribution of ethnic groups in this county? Why or why not?\nHomework\nFor each problem, use a solution sheet to solve the hypothesis test problem. Go to Solution Sheets for the chi-square solution sheet. Round expected frequency to two decimal places.\nA six-sided die is rolled 120 times. Fill in the expected frequency column. Then, conduct a hypothesis test to determine if the die is fair. The data in Table are the result of the 120 rolls.\nFace Value | Frequency | Expected Frequency\n1 | 15\n2 | 29\n3 | 16\n4 | 15\n5 | 30\n6 | 15\nThe marital status distribution of the population of U.S. men, ages 15 and older, is as shown in Table.\nMarital Status | Percent | Expected Frequency\nnever married | 31.3\nmarried | 56.1\nwidowed | 2.5\ndivorced/separated | 10.1\nSuppose that a random sample of 400 U.S. young adults, 18 to 24 years old, yielded the following frequency distribution. We are interested in whether this age group fits the distribution of the U.S. adult population. Calculate the frequency one would expect when surveying 400 people. Fill in Table, rounding to two decimal places.\nMarital Status | Frequency\nnever married | 140\nmarried | 238\nwidowed | 2\ndivorced/separated | 20\nMarital Status | Percent | Expected Frequency\nnever married | 31.3 | 125.2\nmarried | 56.1 | 224.4\nwidowed | 2.5 | 10\ndivorced/separated | 10.1 | 40.4\n- The data fits the distribution.\n- The data does not fit the distribution.\n- 3\n- chi-square distribution with df = 3\n- 19.27\n- 0.0002\n- Check student’s solution.\n-\n- Alpha = 0.05\n- Decision: Reject null\n- Reason for decision: p-value < alpha\n- Conclusion: Data does not fit the distribution.\nUse the following information to answer the next two exercises: The columns in Table contain the Race/Ethnicity of U.S. Public Schools for a recent year, the percentages for students using mass transit to get to school, and the Overall Student Population. Suppose the right column contains the result of a survey of 1,000 local students from that year who used mass transit to get to school.\nRace/Ethnicity | Percentage Who Use Mass Transit to Get to School | Overall Student Population | Survey Frequency\nAsian, Asian American, or Pacific Islander | 10.2% | 5.4% | 113\nBlack or African-American | 8.2% | 14.5% | 94\nHispanic or Latino | 15.5% | 15.9% | 136\nAmerican Indian or Alaska Native | 0.6% | 1.2% | 10\nWhite | 59.4% | 61.6% | 604\nNot reported/other | 6.1% | 1.4% | 43\nPerform a goodness-of-fit test to determine whether the local results follow the distribution of the U.S. overall student population based on ethnicity.\nPerform a goodness-of-fit test to determine whether the local results follow the distribution of those that use mass transit, based on ethnicity.\n- H0: The local results follow the distribution of the percentage of students who use mass transit to get to school\n- Ha: The local results do not follow the distribution of the percentage of students who use mass transit to get to school\n- df = 5\n- chi-square distribution with df = 5\n- chi-square test statistic = 13.4\n- p-value = 0.0199\n- Answers may vary.\n-\n- Alpha = 0.05\n- Decision: Reject null when a = 0.05\n- Reason for Decision: p-value < alpha\n- Conclusion: Local data do not fit the mass transit Distribution.\n- Decision: Do not reject null when a = 0.01\n- Conclusion: There is insufficient evidence to conclude that local data do not follow the distribution of the of students who use mass transit.\nThe City of South Lake Tahoe, CA, has an Asian population of 1,419 people, out of a total population of 23,609. Suppose that a survey of 1,419 self-reported Asians in the Manhattan, NY, area yielded the data in Table. Conduct a goodness-of-fit test to determine if the self-reported sub-groups of Asians in the Manhattan area fit that of the Lake Tahoe area.\nRace | Lake Tahoe Frequency | Manhattan Frequency\nAsian Indian | 131 | 174\nChinese | 118 | 557\nFilipino | 1,045 | 518\nJapanese | 80 | 54\nKorean | 12 | 29\nVietnamese | 9 | 21\nOther | 24 | 66\nUse the following information to answer the next two exercises: UCLA conducted a survey of more than 263,000 first-year students from 385 colleges in fall 2005. The results of students' expected majors by gender were reported in The Chronicle of Higher Education (2/2/2006). Suppose a survey of 5,000 graduating women and 5,000 graduating men was done as a follow-up last year to determine what their actual majors were. The results are shown in the tables for Exercise and Exercise. The second column in each table does not add to 100% because of rounding.\nConduct a goodness-of-fit test to determine if the actual college majors of graduating women fit the distribution of their expected majors.\nMajor | Women - Expected Major | Women - Actual Major\nArts & Humanities | 14.0% | 670\nBiological Sciences | 8.4% | 410\nBusiness | 13.1% | 685\nEducation | 13.0% | 650\nEngineering | 2.6% | 145\nPhysical Sciences | 2.6% | 125\nProfessional | 18.9% | 975\nSocial Sciences | 13.0% | 605\nTechnical | 0.4% | 15\nOther | 5.8% | 300\nUndecided | 8.0% | 420\n- H0: The actual college majors of graduating women fit the distribution of their expected majors\n- Ha: The actual college majors of graduating women do not fit the distribution of their expected majors\n- df = 10\n- chi-square distribution with df = 10\n- test statistic = 11.48\n- p-value = 0.3211\n- Answers may vary.\n-\n- Alpha = 0.05\n- Decision: Do not reject null when a = 0.05 and a = 0.01\n- Reason for decision: p-value > alpha\n- Conclusion: There is insufficient evidence to conclude that the distribution of actual college majors of graduating women do not fit the distribution of their expected majors.\nConduct a goodness-of-fit test to determine if the actual college majors of graduating men fit the distribution of their expected majors.\nMajor | Men - Expected Major | Men - Actual Major\nArts & Humanities | 11.0% | 600\nBiological Sciences | 6.7% | 330\nBusiness | 22.7% | 1130\nEducation | 5.8% | 305\nEngineering | 15.6% | 800\nPhysical Sciences | 3.6% | 175\nProfessional | 9.3% | 460\nSocial Sciences | 7.6% | 370\nTechnical | 1.8% | 90\nOther | 8.2% | 400\nUndecided | 6.6% | 340\nRead the statement and decide whether it is true or false.\nIn a goodness-of-fit test, the expected values are the values we would expect if the null hypothesis were true.\ntrue\nIn general, if the observed values and expected values of a goodness-of-fit test are not close together, then the test statistic can get very large and on a graph will be way out in the right tail.\nUse a goodness-of-fit test to determine if high school principals believe that students are absent equally during the week or not.\ntrue\nThe test to use to determine if a six-sided die is fair is a goodness-of-fit test.\nIn a goodness-of fit test, if the p-value is 0.0113, in general, do not reject the null hypothesis.\nfalse\nA sample of 212 commercial businesses was surveyed for recycling one commodity; a commodity here means any one type of recyclable material such as plastic or aluminum. Table shows the business categories in the survey, the sample size of each category, and the number of businesses in each category that recycle one commodity. Based on the study, on average half of the businesses were expected to be recycling one commodity. As a result, the last column shows the expected number of businesses in each category that recycle one commodity. At the 5% significance level, perform a hypothesis test to determine if the observed number of businesses that recycle one commodity follows the uniform distribution of the expected values.\nBusiness Type | Number in class | Observed Number that recycle one commodity | Expected number that recycle one commodity\nOffice | 35 | 19 | 17.5\nRetail/Wholesale | 48 | 27 | 24\nFood/Restaurants | 53 | 35 | 26.5\nManufacturing/Medical | 52 | 21 | 26\nHotel/Mixed | 24 | 9 | 12\nTable contains information from a survey among 499 participants classified according to their age groups. The second column shows the percentage of obese people per age class among the study participants. The last column comes from a different study at the national level that shows the corresponding percentages of obese people in the same age classes in the USA. Perform a hypothesis test at the 5% significance level to determine whether the survey participants are a representative sample of the USA obese population.\nAge class (years) | Obese (percentage) | Expected USA average (percentage)\n20–30 | 15.0 | 32.6\n31–40 | 26.5 | 32.6\n41–50 | 13.6 | 36.6\n51–60 | 21.9 | 36.6\n61–70 | 21.0 | 39.7\nThe hypotheses for the goodness-of-fit test are:\n- H0: Surveyed obese fit the distribution of expected obese\n- Ha: Surveyed obese do not fit the distribution of expected obese\nUse a chi-square distribution with df = 4 to evaluate the data.\nThe test statistic is X2 = 9.85\nThe P-value = 0.0431\nAt 5% significance level, α = 0.05. For this data, P < α. Reject the null hypothesis.\nAt the 5% level of significance, from the data, there is sufficient evidence to conclude that the surveyed obese do not fit the distribution of expected obese."}
{"document_id": "openstax-intro-statistics-m47077", "title": "The Chi-Square Distribution — Test of Independence", "source": "https://openstax.org/books/introductory-statistics-2e/pages/11-3-test-of-independence", "license": "CC-BY-4.0", "text": "Tests of independence involve using a contingency table of observed (data) values.\nThe test statistic for a test of independence is similar to that of a goodness-of-fit test:\n$${\\Sigma}_{(i\\cdot j)}\\frac{{(O–E)}^{2}}{E}$$\nwhere:\n- O = observed values\n- E = expected values\n- i = the number of rows in the table\n- j = the number of columns in the table\nThere are $i\\cdot j$ terms of the form $\\frac{{(O–E)}^{2}}{E}$.\nA test of independence determines whether two factors are independent or not. You first encountered the term independence in Probability Topics. As a review, consider the following example.\nNOTE\nThe expected value for each cell needs to be at least five in order for you to use this test.\nSuppose A = a speeding violation in the last year and B = a cell phone user while driving. If A and B are independent then P(A AND B) = P(A)P(B). A AND B is the event that a driver received a speeding violation last year and also used a cell phone while driving. Suppose, in a study of drivers who received speeding violations in the last year, and who used cell phone while driving, that 755 people were surveyed. Out of the 755, 70 had a speeding violation and 685 did not; 305 used cell phones while driving and 450 did not.\nLet y = expected number of drivers who used a cell phone while driving and received speeding violations.\nIf A and B are independent, then P(A AND B) = P(A)P(B). By substitution,\n$\\frac{y}{755}=(\\frac{70}{755})(\\frac{305}{755})$\nSolve for y: y = $\\frac{(70)(305)}{755}=28.3$\nAbout 28 people from the sample are expected to use cell phones while driving and to receive speeding violations.\nIn a test of independence, we state the null and alternative hypotheses in words. Since the contingency table consists of two factors, the null hypothesis states that the factors are independent and the alternative hypothesis states that they are not independent (dependent). If we do a test of independence using the example, then the null hypothesis is:\nH0: Being a cell phone user while driving and receiving a speeding violation are independent events.\nIf the null hypothesis were true, we would expect about 28 people to use cell phones while driving and to receive a speeding violation.\nThe test of independence is always right-tailed because of the calculation of the test statistic. If the expected and observed values are not close together, then the test statistic is very large and way out in the right tail of the chi-square curve, as it is in a goodness-of-fit.\nThe number of degrees of freedom for the test of independence is:\ndf = (number of columns - 1)(number of rows - 1)\nThe following formula calculates the expected number (E):\n$$E=\\frac{\\text{(row total)(column total)}}{\\text{total number surveyed}}$$\nTry It\nA sample of 300 students is taken. Of the students surveyed, 50 were music students, while 250 were not. Ninety-seven were on the honor roll, while 203 were not. If we assume being a music student and being on the honor roll are independent events, what is the expected number of music students who are also on the honor roll?\nIn a volunteer group, adults 21 and older volunteer from one to nine hours each week to spend time with a disabled senior citizen. The program recruits among community college students, four-year college students, and nonstudents. In Table is a sample of the adult volunteers and the number of hours they volunteer per week.\nType of Volunteer | 1–3 Hours | 4–6 Hours | 7–9 Hours | Row Total\nCommunity College Students | 111 | 96 | 48 | 255\nFour-Year College Students | 96 | 133 | 61 | 290\nNonstudents | 91 | 150 | 53 | 294\nColumn Total | 298 | 379 | 162 | 839\nIs the number of hours volunteered independent of the type of volunteer?\nThe observed table and the question at the end of the problem, \"Is the number of hours volunteered independent of the type of volunteer?\" tell you this is a test of independence. The two factors are number of hours volunteered and type of volunteer. This test is always right-tailed.\nH0: The number of hours volunteered is independent of the type of volunteer.\nHa: The number of hours volunteered is dependent on the type of volunteer.\nThe expected results are in Table.\nType of Volunteer | 1-3 Hours | 4-6 Hours | 7-9 Hours\nCommunity College Students | 90.57 | 115.19 | 49.24\nFour-Year College Students | 103.00 | 131.00 | 56.00\nNonstudents | 104.42 | 132.81 | 56.77\nFor example, the calculation for the expected frequency for the top left cell is\n$$E=\\frac{(\\text{row total})(\\text{column total})}{\\text{total number surveyed}}=\\frac{(255)(298)}{839}=90.57$$\nCalculate the test statistic: χ2 = 12.99 (calculator or computer)\nDistribution for the test:${\\chi}_{4}^{2}$\ndf = (3 columns – 1)(3 rows – 1) = (2)(2) = 4\nGraph:\n[Image: Nonsymmetrical chi-square curve with values of 0 and 12.99 on the x-axis representing the test statistic of number of hours worked by volunteers of different types. A vertical upward line extends from 12.99 to the curve and the area to the right of this is equal to the p-value.]\nProbability statement: p-value=P(χ2 > 12.99) = 0.0113\nCompare α and the p-value: Since no α is given, assume α = 0.05. p-value = 0.0113. α > p-value.\nMake a decision: Since α > p-value, reject H0. This means that the factors are not independent.\nConclusion: At a 5% level of significance, from the data, there is sufficient evidence to conclude that the number of hours volunteered and the type of volunteer are dependent on one another.\nFor the example in Table, if there had been another type of volunteer, teenagers, what would the degrees of freedom be?\nPress the MATRX key and arrow over to EDIT. Press 1:[A]. Press 3 ENTER 3 ENTER. Enter the table values by row from Table. Press ENTER after each. Press 2nd QUIT. Press STAT and arrow over to TESTS. Arrow down to C:χ2-TEST. Press ENTER. You should see Observed:[A] and Expected:[B]. If necessary, use the arrow keys to move the cursor after Observed: and press 2nd MATRX. Press 1:[A] to select matrix A. It is not necessary to enter expected values. The matrix listed after Expected: can be blank. Arrow down to Calculate. Press ENTER. The test statistic is 12.9909 and the p-value = 0.0113. Do the procedure a second time, but arrow down to Draw instead of calculate.\nTry It\nThe Bureau of Labor Statistics gathers data about employment in the United States. A sample is taken to calculate the number of U.S. citizens working in one of several industry sectors over time. Table shows the results:\nIndustry Sector | 2000 | 2010 | 2020 | Total\nNonagriculture wage and salary | 13,243 | 13,044 | 15,018 | 41,305\nGoods-producing, excluding agriculture | 2,457 | 1,771 | 1,950 | 6,178\nServices-providing | 10,786 | 11,273 | 13,068 | 35,127\nAgriculture, forestry, fishing, and hunting | 240 | 214 | 201 | 655\nNonagriculture self-employed and unpaid family worker | 931 | 894 | 972 | 2,797\nSecondary wage and salary jobs in agriculture and private household industries | 14 | 11 | 11 | 36\nSecondary jobs as a self-employed or unpaid family worker | 196 | 144 | 152 | 492\nTotal | 27,867 | 27,351 | 31,372 | 86,590\nWe want to know if the change in the number of jobs is independent of the change in years. State the null and alternative hypotheses and the degrees of freedom.\nDe Anza College is interested in the relationship between anxiety level and the need to succeed in school. A random sample of 400 students took a test that measured anxiety level and need to succeed in school. Table shows the results. De Anza College wants to know if anxiety level and need to succeed in school are independent events.\nNeed to Succeed in School | High Anxiety | Med-high Anxiety | Medium Anxiety | Med-low Anxiety | Low Anxiety | Row Total\nHigh Need | 35 | 42 | 53 | 15 | 10 | 155\nMedium Need | 18 | 48 | 63 | 33 | 31 | 193\nLow Need | 4 | 5 | 11 | 15 | 17 | 52\nColumn Total | 57 | 95 | 127 | 63 | 58 | 400\na. How many high anxiety level students are expected to have a high need to succeed in school?\na. The column total for a high anxiety level is 57. The row total for high need to succeed in school is 155. The sample size or total surveyed is 400.\n$$E=\\frac{\\text{(row total)(column total)}}{\\text{total surveyed}}=\\frac{155\\cdot57}{400}=22.09$$\nThe expected number of students who have a high anxiety level and a high need to succeed in school is about 22.\nb. If the two variables are independent, how many students do you expect to have a low need to succeed in school and a med-low level of anxiety?\nb. The column total for a med-low anxiety level is 63. The row total for a low need to succeed in school is 52. The sample size or total surveyed is 400.\n$$E=\\frac{\\text{(row total)(column total)}}{\\text{total surveyed}}=8.19$$\nThe expected number of students who have a low need to succeed in school and a med-low level of anxiety is 8.\nTry It\nRefer back to the information in Test of Independence. How many service providing jobs are there expected to be in 2020? How many nonagriculture wage and salary jobs are there expected to be in 2020?\nReferences\nDiCamilo, Mark, Mervin Field, “Most Californians See a Direct Linkage between Obesity and Sugary Sodas. Two in Three Voters Support Taxing Sugar-Sweetened Beverages If Proceeds are Tied to Improving School Nutrition and Physical Activity Programs.” The Field Poll, released Feb. 14, 2013. Available online at http://field.com/fieldpollonline/subscribers/Rls2436.pdf (accessed May 24, 2013).\nHarris Interactive, “Favorite Flavor of Ice Cream.” Available online at http://www.statisticbrain.com/favorite-flavor-of-ice-cream (accessed May 24, 2013)\n“Youngest Online Entrepreneurs List.” Available online at http://www.statisticbrain.com/youngest-online-entrepreneur-list (accessed May 24, 2013).\nChapter Review\nTo assess whether two factors are independent or not, you can apply the test of independence that uses the chi-square distribution. The null hypothesis for this test states that the two factors are independent. The test compares observed values to expected values. The test is right-tailed. Each observation or cell category must have an expected value of at least 5.\nFormula Review\nTest of Independence\n- The number of degrees of freedom is equal to (number of columns - 1)(number of rows - 1).\n- The test statistic is ${\\Sigma}_{(i\\cdot j)}\\frac{{(O–E)}^{2}}{E}$ where O = observed values, E = expected values, i = the number of rows in the table, and j = the number of columns in the table.\n- If the null hypothesis is true, the expected number $E=\\frac{\\text{(row total)(column total)}}{\\text{total surveyed}}$.\nDetermine the appropriate test to be used in the next three exercises.\nA pharmaceutical company is interested in the relationship between age and presentation of symptoms for a common viral infection. A random sample is taken of 500 people with the infection across different age groups.\na test of independence\nThe owner of a baseball team is interested in the relationship between player salaries and team winning percentage. They take a random sample of 100 players from different organizations.\nA marathon runner is interested in the relationship between the brand of shoes runners wear and their run times. They take a random sample of 50 runners and records their run times as well as the brand of shoes they were wearing.\na test of independence\nUse the following information to answer the next seven exercises: Transit Railroads is interested in the relationship between travel distance and the ticket class purchased. A random sample of 200 passengers is taken. Table shows the results. The railroad wants to know if a passenger’s choice in ticket class is independent of the distance they must travel.\nTraveling Distance | Third class | Second class | First class | Total\n1–100 miles | 21 | 14 | 6 | 41\n101–200 miles | 18 | 16 | 8 | 42\n201–300 miles | 16 | 17 | 15 | 48\n301–400 miles | 12 | 14 | 21 | 47\n401–500 miles | 6 | 6 | 10 | 22\nTotal | 73 | 67 | 60 | 200\nState the hypotheses. H0: _______ Ha: _______\ndf = _______\n8\nHow many passengers are expected to travel between 201 and 300 miles and purchase second-class tickets?\nHow many passengers are expected to travel between 401 and 500 miles and purchase first-class tickets?\n6.6\nWhat is the test statistic?\nWhat is the p-value?\n0.0435\nWhat can you conclude at the 5% level of significance?\nUse the following information to answer the next eight exercises: An article in the New England Journal of Medicine, discussed a study on smokers in California and Hawaii. In one part of the report, the self-reported ethnicity and smoking levels per day were given. Of the people smoking at most ten cigarettes per day, there were 9,886 Black people, 2,745 Native Hawaiian people, 12,831 Hispanic/Latino people, 8,378 Japanese American people and 7,650 White people. Of the people smoking 11 to 20 cigarettes per day, there were 6,514 Black people, 3,062 Native Hawaiian people, 4,932 Hispanic/Latino people, 10,680 Japanese American people, and 9,877 White people. Of the people smoking 21 to 30 cigarettes per day, there were 1,671 Black people, 1,419 Native Hawaiian people, 1,406 Hispanic/Latino people, 4,715 Japanese American people, and 6,062 White people. Of the people smoking at least 31 cigarettes per day, there were 759 Black people, 788 Native Hawaiian people, 800 Latino people, 2,305 Japanese American people, and 3,970 White people.\nComplete the table.\nSmoking Level Per Day | Black | Native Hawaiian | Hispanic/Latino | Japanese American | White | TOTALS\n1-10\n11-20\n21-30\n31+\nTOTALS\nSmoking Level Per Day | Black | Native Hawaiian | Hispanic/Latino | Japanese | White | Totals\n1-10 | 9,886 | 2,745 | 12,831 | 8,378 | 7,650 | 41,490\n11-20 | 6,514 | 3,062 | 4,932 | 10,680 | 9,877 | 35,065\n21-30 | 1,671 | 1,419 | 1,406 | 4,715 | 6,062 | 15,273\n31+ | 759 | 788 | 800 | 2,305 | 3,970 | 8,622\nTotals | 18,830 | 8,014 | 19,969 | 26,078 | 27,559 | 10,0450\nState the hypotheses. H0: _______ Ha: _______\nEnter expected values in Table. Round to two decimal places.\nCalculate the following values:\nSmoking Level Per Day | Black | Native Hawaiian | Hispanic/Latino | Japanese | White\n1-10 | 7777.57 | 3310.11 | 8248.02 | 10771.29 | 11383.01\n11-20 | 6573.16 | 2797.52 | 6970.76 | 9103.29 | 9620.27\n21-30 | 2863.02 | 1218.49 | 3036.20 | 3965.05 | 4190.23\n31+ | 1616.25 | 687.87 | 1714.01 | 2238.37 | 2365.49\ndf = _______\n${\\chi}^{\\text{2}}$ test statistic = ______\n10,301.8\np-value = ______\nIs this a right-tailed, left-tailed, or two-tailed test? Explain why.\nright\nGraph the situation. Label and scale the horizontal axis. Mark the mean and test statistic. Shade in the region corresponding to the p-value.\n[Image: Blank graph with vertical and horizontal axes.]\nState the decision and conclusion (in a complete sentence) for the following preconceived levels of α.\nα = 0.05\n- Decision: ___________________\n- Reason for the decision: ___________________\n- Conclusion (write out in a complete sentence): ___________________\n- Reject the null hypothesis.\n- p-value < alpha\n- There is sufficient evidence to conclude that smoking level is dependent on ethnic group.\nα = 0.01\n- Decision: ___________________\n- Reason for the decision: ___________________\n- Conclusion (write out in a complete sentence): ___________________\nHomework\nFor each problem, use a solution sheet to solve the hypothesis test problem. Go to Appendix E for the chi-square solution sheet. Round expected frequency to two decimal places.\nA recent debate about where in the United States skiers believe the skiing is best prompted the following survey. Test to see if the best ski area is independent of the level of the skier.\nU.S. Ski Area | Beginner | Intermediate | Advanced\nTahoe | 20 | 30 | 40\nUtah | 10 | 30 | 60\nColorado | 10 | 40 | 50\nCar manufacturers are interested in whether there is a relationship between the size of car an individual drives and the number of people in the driver’s family (that is, whether car size and family size are independent). To test this, suppose that 800 car owners were randomly surveyed with the results in Table. Conduct a test of independence.\nFamily Size | Sub & Compact | Mid-size | Full-size | Van & Truck\n1 | 20 | 35 | 40 | 35\n2 | 20 | 50 | 70 | 80\n3–4 | 20 | 50 | 100 | 90\n5+ | 20 | 30 | 70 | 70\n- H0: Car size is independent of family size.\n- Ha: Car size is dependent on family size.\n- df = 9\n- chi-square distribution with df = 9\n- test statistic = 15.8284\n- p-value = 0.0706\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: At the 5% significance level, there is insufficient evidence to conclude that car size and family size are dependent.\nCollege students may be interested in whether or not their majors have any effect on starting salaries after graduation. Suppose that 300 recent graduates were surveyed as to their majors in college and their starting salaries after graduation. Table shows the data. Conduct a test of independence.\nMajor | < \\$50,000 | \\$50,000 – \\$68,999 | \\$69,000 +\nEnglish | 5 | 20 | 5\nEngineering | 10 | 30 | 60\nNursing | 10 | 15 | 15\nBusiness | 10 | 20 | 30\nPsychology | 20 | 30 | 20\nSome travel agents claim that honeymoon hot spots vary according to age of the bride. Suppose that 280 recent brides were interviewed as to where they spent their honeymoons. The information is given in Table. Conduct a test of independence.\nLocation | 20–29 | 30–39 | 40–49 | 50 and over\nNiagara Falls | 15 | 25 | 25 | 20\nPoconos | 15 | 25 | 25 | 10\nEurope | 10 | 25 | 15 | 5\nVirgin Islands | 20 | 25 | 15 | 5\n- H0: Honeymoon locations are independent of bride’s age.\n- Ha: Honeymoon locations are dependent on bride’s age.\n- df = 9\n- chi-square distribution with df = 9\n- test statistic = 15.7027\n- p-value = 0.0734\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: At the 5% significance level, there is insufficient evidence to conclude that honeymoon location and bride age are dependent.\nA manager of a sports club keeps information concerning the main sport in which members participate and their ages. To test whether there is a relationship between the age of a member and their choice of sport, 643 members of the sports club are randomly selected. Conduct a test of independence.\nSport | 18 - 25 | 26 - 30 | 31 - 40 | 41 and over\nracquetball | 42 | 58 | 30 | 46\ntennis | 58 | 76 | 38 | 65\nswimming | 72 | 60 | 65 | 33\nA major food manufacturer is concerned that the sales for its skinny french fries have been decreasing. As a part of a feasibility study, the company conducts research into the types of fries sold across the country to determine if the type of fries sold is independent of the area of the country. The results of the study are shown in Table. Conduct a test of independence.\nType of Fries | Northeast | South | Central | West\nskinny fries | 70 | 50 | 20 | 25\ncurly fries | 100 | 60 | 15 | 30\nsteak fries | 20 | 40 | 10 | 10\n- H0: The types of fries sold are independent of the location.\n- Ha: The types of fries sold are dependent on the location.\n- df = 6\n- chi-square distribution with df = 6\n- test statistic =18.8369\n- p-value = 0.0044\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: p-value < alpha\n- Conclusion: At the 5% significance level, There is sufficient evidence that types of fries and location are dependent.\nAccording to Dan Lenard, an independent insurance agent in the Buffalo, N.Y. area, the following is a breakdown of the amount of life insurance purchased by men in the following age groups. He is interested in whether the age of the man and the amount of life insurance purchased are independent events. Conduct a test for independence.\nAge of Men | None | < \\$200,000 | \\$200,000–\\$400,000 | \\$401,001–\\$1,000,000 | \\$1,000,001+\n20–29 | 40 | 15 | 40 | 0 | 5\n30–39 | 35 | 5 | 20 | 20 | 10\n40–49 | 20 | 0 | 30 | 0 | 30\n50+ | 40 | 30 | 15 | 15 | 10\nSuppose that 600 thirty-year-olds were surveyed to determine whether or not there is a relationship between the level of education an individual has and salary. Conduct a test of independence.\nAnnual Salary | Not a high school graduate | High school graduate | College graduate | Masters or doctorate\n< \\$30,000 | 15 | 25 | 10 | 5\n\\$30,000–\\$40,000 | 20 | 40 | 70 | 30\n\\$40,000–\\$50,000 | 10 | 20 | 40 | 55\n\\$50,000–\\$60,000 | 5 | 10 | 20 | 60\n\\$60,000+ | 0 | 5 | 10 | 150\n- H0: Salary is independent of level of education.\n- Ha: Salary is dependent on level of education.\n- df = 12\n- chi-square distribution with df = 12\n- test statistic = 255.7704\n- p-value = 0\n- Answers may vary.\n-\nAlpha: 0.05\nDecision: Reject the null hypothesis.\nReason for decision: p-value < alpha\nConclusion: At the 5% significance level, there is sufficient evidence to conclude that salary and level of education are dependent.\nRead the statement and decide whether it is true or false.\nThe number of degrees of freedom for a test of independence is equal to the sample size minus one.\nThe test for independence uses tables of observed and expected data values.\ntrue\nThe test to use when determining if the college or university a student chooses to attend is related to their socioeconomic status is a test for independence.\nIn a test of independence, the expected number is equal to the row total multiplied by the column total divided by the total surveyed.\ntrue\nAn ice cream maker performs a nationwide survey about favorite flavors of ice cream in different geographic areas of the U.S. Based on Table, do the numbers suggest that geographic location is independent of favorite ice cream flavors? Test at the 5% significance level.\nU.S. region/Flavor | Strawberry | Chocolate | Vanilla | Rocky Road | Mint Chocolate Chip | Pistachio | Row total\nWest | 12 | 21 | 22 | 19 | 15 | 8 | 97\nMidwest | 10 | 32 | 22 | 11 | 15 | 6 | 96\nEast | 8 | 31 | 27 | 8 | 15 | 7 | 96\nSouth | 15 | 28 | 30 | 8 | 15 | 6 | 102\nColumn Total | 45 | 112 | 101 | 46 | 60 | 27 | 391\nTable provides a recent survey of the youngest online entrepreneurs whose net worth is estimated at one million dollars or more. Their ages range from 17 to 30. Each cell in the table illustrates the number of entrepreneurs who correspond to the specific age group and their net worth. Are the ages and net worth independent? Perform a test of independence at the 5% significance level.\nAge Group\\ Net Worth Value (in millions of US dollars) | 1–5 | 6–24 | ≥25 | Row Total\n17–25 | 8 | 7 | 5 | 20\n26–30 | 6 | 5 | 9 | 20\nColumn Total | 14 | 12 | 14 | 40\n- H0: Age is independent of the youngest online entrepreneurs’ net worth.\n- Ha: Age is dependent on the net worth of the youngest online entrepreneurs.\n- df = 2\n- chi-square distribution with df = 2\n- test statistic = 1.76\n- p-value 0.4144\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: At the 5% significance level, there is insufficient evidence to conclude that age and net worth for the youngest online entrepreneurs are dependent.\nA 2013 poll in California surveyed people about taxing sugar-sweetened beverages. The results are presented in Table, and are classified by ethnic group and response type. Are the poll responses independent of the participants’ ethnic group? Conduct a test of independence at the 5% significance level.\nOpinion/Ethnicity | Asian-American | White/Non-Hispanic | Black | Hispanic/Latino | Row Total\nAgainst tax | 48 | 433 | 41 | 160 | 682\nIn Favor of tax | 54 | 234 | 24 | 147 | 459\nNo opinion | 16 | 43 | 16 | 19 | 94\nColumn Total | 118 | 710 | 81 | 326 | 1235\n\nGlossary\nContingency Table a table that displays sample values for two different factors that may be dependent or contingent on one another; it facilitates determining conditional probabilities."}
{"document_id": "openstax-intro-statistics-m47091", "title": "The Chi-Square Distribution — Test for Homogeneity", "source": "https://openstax.org/books/introductory-statistics-2e/pages/11-4-test-for-homogeneity", "license": "CC-BY-4.0", "text": "The goodness–of–fit test can be used to decide whether a population fits a given distribution, but it will not suffice to decide whether two populations follow the same unknown distribution. A different test, called the test for homogeneity, can be used to draw a conclusion about whether two populations have the same distribution. To calculate the test statistic for a test for homogeneity, follow the same procedure as with the test of independence.\nNOTE\nThe expected value for each cell needs to be at least five in order for you to use this test.\nHypotheses\nH0: The distributions of the two populations are the same. Ha: The distributions of the two populations are not the same.\nTest Statistic\nUse a ${\\chi}^{2}$ test statistic. It is computed in the same way as the test for independence.\nDegrees of Freedom (df)\ndf = number of columns - 1\nRequirements\nAll values in the table must be greater than or equal to five.\nCommon Uses\nComparing two populations. For example: men vs. women, before vs. after, east vs. west. The variable is categorical with more than two possible response values.\nDo men and women college students have the same distribution of living arrangements? Use a level of significance of 0.05. Suppose that 250 randomly selected men college students and 300 randomly selected women college students were asked about their living arrangements: dormitory, apartment, with parents, other. The results are shown in Table. Do male and female college students have the same distribution of living arrangements?\nDormitory | Apartment | With Parents | Other\nMen | 72 | 84 | 49 | 45\nWomen | 91 | 86 | 88 | 35\nH0: The distribution of living arrangements for men college students is the same as the distribution of living arrangements for women college students. Ha: The distribution of living arrangements for men college students is not the same as the distribution of living arrangements for women college students. Degrees of Freedom (df): df = number of columns – 1 = 4 – 1 = 3 Distribution for the test:${\\chi}_{3}^{2}$ Calculate the test statistic: χ2 = 10.1287 (calculator or computer) Probability statement: p-value = P(χ2 >10.1287) = 0.0175\nPress the MATRX key and arrow over to EDIT. Press 1:[A]. Press 2 ENTER 4 ENTER. Enter the table values by row. Press ENTER after each. Press 2nd QUIT. Press STAT and arrow over to TESTS. Arrow down to C:χ2-TEST. Press ENTER. You should see Observed:[A] and Expected:[B]. Arrow down to Calculate. Press ENTER. The test statistic is 10.1287 and the p-value = 0.0175. Do the procedure a second time but arrow down to Draw instead of calculate.\nCompare α and the p-value: Since no α is given, assume α = 0.05. p-value = 0.0175. α > p-value. Make a decision: Since α > p-value, reject H0. This means that the distributions are not the same. Conclusion: At a 5% level of significance, from the data, there is sufficient evidence to conclude that the distributions of living arrangements for men and women college students are not the same. Notice that the conclusion is only that the distributions are not the same. We cannot use the test for homogeneity to draw any conclusions about how they differ.\nTry It\nDo families and singles have the same distribution of cars? Use a level of significance of 0.05. Suppose that 100 randomly selected families and 200 randomly selected singles were asked what type of car they drove: sport, sedan, hatchback, truck, van/SUV. The results are shown in Table. Do families and singles have the same distribution of cars? Test at a level of significance of 0.05.\nSport | Sedan | Hatchback | Truck | Van/SUV\nFamily | 5 | 15 | 35 | 17 | 28\nSingle | 45 | 65 | 37 | 46 | 7\nBoth before and after a recent earthquake, surveys were conducted asking voters which of the three candidates they planned on voting for in the upcoming city council election. Has there been a change since the earthquake? Use a level of significance of 0.05. Table shows the results of the survey. Has there been a change in the distribution of voter preferences since the earthquake?\nPerez | Chung | Stevens\nBefore | 167 | 128 | 135\nAfter | 214 | 197 | 225\nH0: The distribution of voter preferences was the same before and after the earthquake. Ha: The distribution of voter preferences was not the same before and after the earthquake. Degrees of Freedom (df): df = number of columns – 1 = 3 – 1 = 2 Distribution for the test: ${\\chi}_{2}^{2}$ Calculate the test statistic: χ2 = 3.2603 (calculator or computer) Probability statement: p-value=P(χ2 > 3.2603) = 0.1959\nPress the MATRX key and arrow over to EDIT. Press 1:[A]. Press 2 ENTER 3 ENTER. Enter the table values by row. Press ENTER after each. Press 2nd QUIT. Press STAT and arrow over to TESTS. Arrow down to C:χ2-TEST. Press ENTER. You should see Observed:[A] and Expected:[B]. Arrow down to Calculate. Press ENTER. The test statistic is 3.2603 and the p-value = 0.1959. Do the procedure a second time but arrow down to Draw instead of calculate.\nCompare α and the p-value: α = 0.05 and the p-value = 0.1959. α < p-value.\nMake a decision: Since α < p-value, do not reject Ho.\nConclusion: At a 5% level of significance, from the data, there is insufficient evidence to conclude that the distribution of voter preferences was not the same before and after the earthquake.\nTry It\nIvy League schools receive many applications, but only some can be accepted. At the schools listed in Table, two types of applications are accepted: regular and early decision.\nApplication Type Accepted | Brown | Columbia | Cornell | Dartmouth | Penn | Yale\nRegular | 2,115 | 1,792 | 5,306 | 1,734 | 2,685 | 1,245\nEarly Decision | 577 | 627 | 1,228 | 444 | 1,195 | 761\nWe want to know if the number of regular applications accepted follows the same distribution as the number of early applications accepted. State the null and alternative hypotheses, the degrees of freedom and the test statistic, sketch the graph of the p-value, and draw a conclusion about the test of homogeneity.\nReferences\nData from the Insurance Institute for Highway Safety, 2013. Available online at www.iihs.org/iihs/ratings (accessed May 24, 2013).\n“Energy use (kg of oil equivalent per capita).” The World Bank, 2013. Available online at http://data.worldbank.org/indicator/EG.USE.PCAP.KG.OE/countries (accessed May 24, 2013).\n“Parent and Family Involvement Survey of 2007 National Household Education Survey Program (NHES),” U.S. Department of Education, National Center for Education Statistics. Available online at http://nces.ed.gov/pubsearch/pubsinfo.asp?pubid=2009030 (accessed May 24, 2013).\n“Parent and Family Involvement Survey of 2007 National Household Education Survey Program (NHES),” U.S. Department of Education, National Center for Education Statistics. Available online at http://nces.ed.gov/pubs2009/2009030_sup.pdf (accessed May 24, 2013).\nChapter Review\nTo assess whether two data sets are derived from the same distribution—which need not be known, you can apply the test for homogeneity that uses the chi-square distribution. The null hypothesis for this test states that the populations of the two data sets come from the same distribution. The test compares the observed values against the expected values if the two populations followed the same distribution. The test is right-tailed. Each observation or cell category must have an expected value of at least five.\nFormula Review\n${\\sum}_{i\\cdot j}\\frac{{(O-E)}^{2}}{E}$ Homogeneity test statistic where: O = observed values E = expected values i = number of rows in data contingency table j = number of columns in data contingency table\ndf = (i −1)(j −1) Degrees of freedom\nA math teacher wants to see if two of their classes have the same distribution of test scores. What test should they use?\ntest for homogeneity\nWhat are the null and alternative hypotheses for Exercise?\nA market researcher wants to see if two different stores have the same distribution of sales throughout the year. What type of test should they use?\ntest for homogeneity\nA meteorologist wants to know if East and West Australia have the same distribution of storms. What type of test should they use?\nWhat condition must be met to use the test for homogeneity?\nAll values in the table must be greater than or equal to five.\nUse the following information to answer the next five exercises: Do private practice doctors and hospital doctors have the same distribution of working hours? Suppose that a sample of 100 private practice doctors and 150 hospital doctors are selected at random and asked about the number of hours a week they work. The results are shown in Table.\n20–30 | 30–40 | 40–50 | 50–60\nPrivate Practice | 16 | 40 | 38 | 6\nHospital | 8 | 44 | 59 | 39\nState the null and alternative hypotheses.\ndf = _______\n3\nWhat is the test statistic?\nWhat is the p-value?\n0.00005\nWhat can you conclude at the 5% significance level?\nHomework\nFor each word problem, use a solution sheet to solve the hypothesis test problem. Go to Solution Sheets for the chi-square solution sheet. Round expected frequency to two decimal places.\nA psychologist is interested in testing whether there is a difference in the distribution of personality types for business majors and social science majors. The results of the study are shown in Table. Conduct a test of homogeneity. Test at a 5% level of significance.\nOpen | Conscientious | Extrovert | Agreeable | Neurotic\nBusiness | 41 | 52 | 46 | 61 | 58\nSocial Science | 72 | 75 | 63 | 80 | 65\n- H0: The distribution for personality types is the same for both majors\n- Ha: The distribution for personality types is not the same for both majors\n- df = 4\n- chi-square with df = 4\n- test statistic = 3.01\n- p-value = 0.5568\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: There is insufficient evidence to conclude that the distribution of personality types is different for business and social science majors.\nDo men and women select different breakfasts? The breakfasts ordered by randomly selected men and women at a popular breakfast place is shown in Table. Conduct a test for homogeneity at a 5% level of significance.\nFrench Toast | Pancakes | Waffles | Omelettes\nMen | 47 | 35 | 28 | 53\nWomen | 65 | 59 | 55 | 60\nA fish and wildlife technician is interested in whether the distribution of fish caught in Green Valley Lake is the same as the distribution of fish caught in Echo Lake. Of the 191 randomly selected fish caught in Green Valley Lake, 105 were rainbow trout, 27 were other trout, 35 were bass, and 24 were catfish. Of the 293 randomly selected fish caught in Echo Lake, 115 were rainbow trout, 58 were other trout, 67 were bass, and 53 were catfish. Perform a test for homogeneity at a 5% level of significance.\n- H0: The distribution for fish caught is the same in Green Valley Lake and in Echo Lake.\n- Ha: The distribution for fish caught is not the same in Green Valley Lake and in Echo Lake.\n- 3\n- chi-square with df = 3\n- 11.75\n- p-value = 0.0083\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: p-value < alpha\n- Conclusion: There is evidence to conclude that the distribution of fish caught is different in Green Valley Lake and in Echo Lake\nIn a recent year, the United States had 1.5 million homeschooled students, according to the U.S. National Center for Education Statistics. In Table you can see that parents decide to homeschool their children for different reasons, and some reasons are ranked by parents as more important than others. According to the survey results shown in the table, is the distribution of applicable reasons the same as the distribution of the most important reason? Provide your assessment at the 5% significance level. Did you expect the result you obtained?\nReasons for Homeschooling | Applicable Reason (in thousands of respondents) | Most Important Reason (in thousands of respondents) | Row Total\nConcern about the environment of other schools | 1,321 | 309 | 1,630\nDissatisfaction with academic instruction at other schools | 1,096 | 258 | 1,354\nTo provide religious or moral instruction | 1,257 | 540 | 1,797\nChild has special needs, other than physical or mental | 315 | 55 | 370\nNontraditional approach to child’s education | 984 | 99 | 1,083\nOther reasons (e.g., finances, travel, family time, etc.) | 485 | 216 | 701\nColumn Total | 5,458 | 1,477 | 6,935\nWhen looking at energy consumption, we are often interested in detecting trends over time and how they correlate among different countries. The information in Table shows the average energy use (in units of kg of oil equivalent per capita) in the USA and the joint European Union countries (EU) for a specific six-year period. Do the energy use values in these two areas come from the same distribution? Perform the analysis at the 5% significance level.\nYear | European Union | United States | Row Total\n6 | 3,413 | 7,164 | 10,557\n5 | 3,302 | 7,057 | 10,359\n4 | 3,505 | 7,488 | 10,993\n3 | 3,537 | 7,758 | 11,295\n2 | 3,595 | 7,697 | 11,292\n1 | 3,613 | 7,847 | 11,460\nColumn Total | 20,965 | 45,011 | 65,976\n- H0: The distribution of average energy use in the USA is the same as in Europe between Year 1 and Year 6.\n- Ha: The distribution of average energy use in the USA is not the same as in Europe between Year 1 and Year 6.\n- df = 4\n- chi-square with df = 4\n- test statistic = 2.7434\n- p-value = 0.7395\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: At the 5% significance level, there is insufficient evidence to conclude that the average energy use values in the US and EU are not derived from different distributions for the period from Year 1 to Year 6.\nThe Insurance Institute for Highway Safety collects safety information about all types of cars every year, and publishes a report of Top Safety Picks among all cars, makes, and models. Table presents the number of Top Safety Picks in six car categories for two specific years. Analyze the table data to conclude Year 1 and Year 2. Derive your results at the 5% significance level.\nYear \\ Car Type | Small | Mid-Size | Large | Small SUV | Mid-Size SUV | Large SUV | Row Total\nYear 1 | 12 | 22 | 10 | 10 | 27 | 6 | 87\nYear 2 | 31 | 30 | 19 | 11 | 29 | 4 | 124\nColumn Total | 43 | 52 | 29 | 21 | 56 | 10 | 211"}
{"document_id": "openstax-intro-statistics-m47082", "title": "The Chi-Square Distribution — Comparison of the Chi-Square Tests", "source": "https://openstax.org/books/introductory-statistics-2e/pages/11-5-comparison-of-the-chi-square-tests", "license": "CC-BY-4.0", "text": "You have seen the χ2 test statistic used in three different circumstances. The following bulleted list is a summary that will help you decide which χ2 test is the appropriate one to use.\n- Goodness-of-Fit: Use the goodness-of-fit test to decide whether a population with an unknown distribution \"fits\" a known distribution. In this case there will be a single qualitative survey question or a single outcome of an experiment from a single population. Goodness-of-Fit is typically used to see if the population is uniform (all outcomes occur with equal frequency), the population is normal, or the population is the same as another population with a known distribution. The null and alternative hypotheses are: H0: The population fits the given distribution. Ha: The population does not fit the given distribution.\n- Independence: Use the test for independence to decide whether two variables (factors) are independent or dependent. In this case there will be two qualitative survey questions or experiments and a contingency table will be constructed. The goal is to see if the two variables are unrelated (independent) or related (dependent). The null and alternative hypotheses are: H0: The two variables (factors) are independent. Ha: The two variables (factors) are dependent.\n- Homogeneity: Use the test for homogeneity to decide if two populations with unknown distributions have the same distribution as each other. In this case there will be a single qualitative survey question or experiment given to two different populations. The null and alternative hypotheses are: H0: The two populations follow the same distribution. Ha: The two populations have different distributions.\nChapter Review\nThe goodness-of-fit test is typically used to determine if data fits a particular distribution. The test of independence makes use of a contingency table to determine the independence of two factors. The test for homogeneity determines whether two populations come from the same distribution, even if this distribution is unknown.\nWhich test do you use to decide whether an observed distribution is the same as an expected distribution?\na goodness-of-fit test\nWhat is the null hypothesis for the type of test from Exercise?\nWhich test would you use to decide whether two factors have a relationship?\na test for independence\nWhich test would you use to decide if two populations have the same distribution?\nHow are tests of independence similar to tests for homogeneity?\nAnswers will vary. Sample answer: Tests of independence and tests for homogeneity both calculate the test statistic the same way ${\\sum}_{(ij)}\\frac{{(O-E)}^{2}}{E}$. In addition, all values must be greater than or equal to five.\nHow are tests of independence different from tests for homogeneity?\nHomework\nFor each word problem, use a solution sheet to solve the hypothesis test problem. Go to Solution Sheets for the chi-square solution sheet. Round expected frequency to two decimal places.\nIs there a difference between the distribution of community college statistics students and the distribution of university statistics students in what technology they use on their homework? Of some randomly selected community college students, 43 used a computer, 102 used a calculator with built in statistics functions, and 65 used a table from the textbook. Of some randomly selected university students, 28 used a computer, 33 used a calculator with built in statistics functions, and 40 used a table from the textbook. Conduct an appropriate hypothesis test using a 0.05 level of significance.\n- H0: The distribution for technology use is the same for community college students and university students.\n- Ha: The distribution for technology use is not the same for community college students and university students.\n- 2\n- chi-square with df = 2\n- 7.05\n- p-value = 0.0294\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: p-value < alpha\n- Conclusion: There is sufficient evidence to conclude that the distribution of technology use for statistics homework is not the same for statistics students at community colleges and at universities.\nRead the statement and decide whether it is true or false.\nIf df = 2, the chi-square distribution has a shape that reminds us of the exponential.\nBringing It Together\n- Explain why a goodness-of-fit test and a test of independence are generally right-tailed tests.\n- If you did a left-tailed test, what would you be testing?\n- The test statistic is always positive and if the expected and observed values are not close together, the test statistic is large and the null hypothesis will be rejected.\n- Testing to see if the data fits the distribution “too well” or is too perfect."}
{"document_id": "openstax-intro-statistics-m47085", "title": "The Chi-Square Distribution — Test of a Single Variance", "source": "https://openstax.org/books/introductory-statistics-2e/pages/11-6-test-of-a-single-variance", "license": "CC-BY-4.0", "text": "A test of a single variance assumes that the underlying distribution is normal. The null and alternative hypotheses are stated in terms of the population variance (or population standard deviation). The test statistic is:\n$$\\frac{(n-1){s}^{2}}{{\\sigma}^{2}}$$\nwhere:\n- n = the total number of data\n- s2 = sample variance\n- σ2 = population variance\nYou may think of s as the random variable in this test. The number of degrees of freedom is df = n - 1. A test of a single variance may be right-tailed, left-tailed, or two-tailed. Example will show you how to set up the null and alternative hypotheses. The null and alternative hypotheses contain statements about the population variance.\nMath instructors are not only interested in how their students do on exams, on average, but how the exam scores vary. To many instructors, the variance (or standard deviation) may be more important than the average.\nSuppose a math instructor believes that the standard deviation for his final exam is five points. One of his best students thinks otherwise. The student claims that the standard deviation is more than five points. If the student were to conduct a hypothesis test, what would the null and alternative hypotheses be?\nEven though we are given the population standard deviation, we can set up the test using the population variance as follows.\n- H0: σ2 = 52\n- Ha: σ2 > 52\nTry It\nA SCUBA instructor wants to record the collective depths each of his students dives during their checkout. He is interested in how the depths vary, even though everyone should have been at the same depth. He believes the standard deviation is three feet. His assistant thinks the standard deviation is less than three feet. If the instructor were to conduct a test, what would the null and alternative hypotheses be?\nWith individual lines at its various windows, a post office finds that the standard deviation for normally distributed waiting times for customers on Friday afternoon is 7.2 minutes. The post office experiments with a single, main waiting line and finds that for a random sample of 25 customers, the waiting times for customers have a standard deviation of 3.5 minutes.\nWith a significance level of 5%, test the claim that a single line causes lower variation among waiting times (shorter waiting times) for customers.\nSince the claim is that a single line causes less variation, this is a test of a single variance. The parameter is the population variance, σ2, or the population standard deviation, σ.\nRandom Variable: The sample standard deviation, s, is the random variable. Let s = standard deviation for the waiting times.\n- H0: σ2 = 7.22\n- Ha: σ2 < 7.22\nThe word \"less\" tells you this is a left-tailed test.\nDistribution for the test: ${\\chi}_{24}^{2}$, where:\n- n = the number of customers sampled\n- df = n – 1 = 25 – 1 = 24\nCalculate the test statistic:\n$${\\chi}^{2}=\\frac{(n-1){s}^{2}}{{\\sigma}^{2}}=\\frac{(25-1){(3.5)}^{2}}{{7.2}^{2}}=5.67$$\nwhere n = 25, s = 3.5, and σ = 7.2.\nGraph:\n[Image: This is a nonsymmetrical chi-square curve with values of 0 and 5.67 labeled on the horizontal axis. The point 5.67 lies to the left of the peak of the curve. A vertical upward line extends from 5.67 to the curve and the region to the left of this line is shaded. The shaded area is equal to the p-value.]\nProbability statement: p-value = P (χ2 < 5.67) = 0.000042\nCompare α and the p-value:\n- α = 0.05\n- p-value = 0.000042\n- α > p-value\nMake a decision: Since α > p-value, reject H0. This means that you reject σ2 = 7.22. In other words, you do not think the variation in waiting times is 7.2 minutes; you think the variation in waiting times is less.\nConclusion: At a 5% level of significance, from the data, there is sufficient evidence to conclude that a single line causes a lower variation among the waiting times or with a single line, the customer waiting times vary less than 7.2 minutes.\nIn 2nd DISTR, use 7:χ2cdf. The syntax is (lower, upper, df) for the parameter list. For Example, χ2cdf(-1E99,5.67,24). The p-value = 0.000042.\nTry It\nThe FCC conducts broadband speed tests to measure how much data per second passes between a consumer’s computer and the internet. At a certain point in time, the standard deviation of Internet speeds across Internet Service Providers (ISPs) was 12.2 percent. Suppose a sample of 15 ISPs is taken, and the standard deviation is 13.2. An analyst claims that the standard deviation of speeds is more than what was reported. State the null and alternative hypotheses, compute the degrees of freedom, the test statistic, sketch the graph of the p-value, and draw a conclusion. Test at the 1% significance level.\nReferences\n“AppleInsider Price Guides.” Apple Insider, 2013. Available online at http://appleinsider.com/mac_price_guide (accessed May 14, 2013).\nData from the World Bank, June 5, 2012.\nChapter Review\nTo test variability, use the chi-square test of a single variance. The test may be left-, right-, or two-tailed, and its hypotheses are always expressed in terms of the variance (or standard deviation).\nFormula Review\n${\\chi}^{2}=$ $\\frac{(n-1)\\cdot{s}^{2}}{{\\sigma}^{2}}$ Test of a single variance statistic where: n: sample size s: sample standard deviation σ: population standard deviation\ndf = n – 1 Degrees of freedom\nTest of a Single Variance\n- Use the test to determine variation.\n- The degrees of freedom is the number of samples – 1.\n- The test statistic is $\\frac{(n–1)\\cdot{s}^{2}}{{\\sigma}^{2}}$, where n = the total number of data, s2 = sample variance, and σ2 = population variance.\n- The test may be left-, right-, or two-tailed.\nUse the following information to answer the next three exercises: An archer’s standard deviation for hits is six (data is measured in distance from the center of the target). An observer claims the standard deviation is less.\nWhat type of test should be used?\na test of a single variance\nState the null and alternative hypotheses.\nIs this a right-tailed, left-tailed, or two-tailed test?\na left-tailed test\nUse the following information to answer the next three exercises: The standard deviation of heights for students in a school is 0.81. A random sample of 50 students is taken, and the standard deviation of heights of the sample is 0.96. A researcher in charge of the study believes the standard deviation of heights for the school is greater than 0.81.\nWhat type of test should be used?\nState the null and alternative hypotheses.\nH0: σ2 = 0.812;\nHa: σ2 > 0.812\ndf = ________\nUse the following information to answer the next four exercises: The average waiting time in a doctor’s office varies. The standard deviation of waiting times in a doctor’s office is 3.4 minutes. A random sample of 30 patients in the doctor’s office has a standard deviation of waiting times of 4.1 minutes. One doctor believes the variance of waiting times is greater than originally thought.\nWhat type of test should be used?\na test of a single variance\nWhat is the test statistic?\nWhat is the p-value?\n0.0542\nWhat can you conclude at the 5% significance level?\nHomework\nUse the following information to answer the next twelve exercises: Suppose an airline claims that its flights are consistently on time with an average delay of at most 15 minutes. It claims that the average delay is so consistent that the variance is no more than 150 minutes. Doubting the consistency part of the claim, a disgruntled traveler calculates the delays for his next 25 flights. The average delay for those 25 flights is 22 minutes with a standard deviation of 15 minutes.\nIs the traveler disputing the claim about the average or about the variance?\nA sample standard deviation of 15 minutes is the same as a sample variance of __________ minutes.\n225\nIs this a right-tailed, left-tailed, or two-tailed test?\nH0: __________\nH0: σ2 ≤ 150\ndf = ________\nchi-square test statistic = ________\n36\np-value = ________\nGraph the situation. Label and scale the horizontal axis. Mark the mean and test statistic. Shade the p-value.\nAnswers may vary.\nLet α = 0.05 Decision: ________ Conclusion (write out in a complete sentence.): ________\nHow did you know to test the variance instead of the mean?\nThe claim is that the variance is no more than 150 minutes.\nIf an additional test were done on the claim of the average delay, which distribution would you use?\nIf an additional test were done on the claim of the average delay, but 45 flights were surveyed, which distribution would you use?\na Student's t- or normal distribution\nFor each word problem, use a solution sheet to solve the hypothesis test problem. Go to Solution Sheets for the chi-square solution sheet. Round expected frequency to two decimal places.\nA plant manager is concerned their equipment may need recalibrating. It seems that the actual weight of the 15 oz. cereal boxes it fills has been fluctuating. The standard deviation should be at most 0.5 oz. In order to determine if the machine needs to be recalibrated, 84 randomly selected boxes of cereal from the next day’s production were weighed. The standard deviation of the 84 boxes was 0.54. Does the machine need to be recalibrated?\nConsumers may be interested in whether the cost of a particular calculator varies from store to store. Based on surveying 43 stores, which yielded a sample mean of \\$84 and a sample standard deviation of \\$12, test the claim that the standard deviation is greater than \\$15.\n- H0: σ = 15\n- Ha: σ > 15\n- df = 42\n- chi-square with df = 42\n- test statistic = 26.88\n- p-value = 0.9663\n- Answers may vary.\n-\n- Alpha = 0.05\n- Decision: Do not reject null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: There is insufficient evidence to conclude that the standard deviation is greater than 15.\nIsabella, an accomplished Bay to Breakers runner, claims that the standard deviation for her time to run the 7.5 mile race is at most three minutes. To test her claim, Rupinder looks up five of her race times. They are 55 minutes, 61 minutes, 58 minutes, 63 minutes, and 57 minutes.\nAirline companies are interested in the consistency of the number of babies on each flight, so that they have adequate safety equipment. They are also interested in the variation of the number of babies. Suppose that an airline executive believes the average number of babies on flights is six with a variance of nine at most. The airline conducts a survey. The results of the 18 flights surveyed give a sample average of 6.4 with a sample standard deviation of 3.9. Conduct a hypothesis test of the airline executive’s belief.\n- H0: σ ≤ 3\n- Ha: σ > 3\n- df = 17\n- chi-square distribution with df = 17\n- test statistic = 28.73\n- p-value = 0.0371\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the null hypothesis.\n- Reason for decision: p-value < alpha\n- Conclusion: There is sufficient evidence to conclude that the standard deviation is greater than three.\nThe number of births per woman in China is 1.6 down from 5.91 in 1966. This fertility rate has been attributed to the law passed in 1979 restricting births to one per woman. Suppose that a group of students studied whether or not the standard deviation of births per woman was greater than 0.75. They asked 50 women across China the number of births they had had. The results are shown in Table. Does the students’ survey indicate that the standard deviation is greater than 0.75?\n# of births | Frequency\n0 | 5\n1 | 30\n2 | 10\n3 | 5\nAccording to an avid aquarist, the average number of fish in a 20-gallon tank is 10, with a standard deviation of two. His friend, also an aquarist, does not believe that the standard deviation is two. They count the number of fish in 15 other 20-gallon tanks. Based on the results that follow, do you think that the standard deviation is different from two? Data: 11; 10; 9; 10; 10; 11; 11; 10; 12; 9; 7; 9; 11; 10; 11\n- H0: σ = 2\n- Ha: σ ≠ 2\n- df = 14\n- chi-square distiribution with df = 14\n- chi-square test statistic = 5.2094\n- p-value = 0.0346\n- Answers may vary.\n-\n- Alpha = 0.05\n- Decision: Reject the null hypothesis\n- Reason for decision: p-value < alpha\n- Conclusion: There is sufficient evidence to conclude that the standard deviation is different than 2.\nThe manager of \"Frenchies\" is concerned that patrons are not consistently receiving the same amount of French fries with each order. The chef claims that the standard deviation for a ten-ounce order of fries is at most 1.5 oz., but the manager thinks that it may be higher. He randomly weighs 49 orders of fries, which yields a mean of 11 oz. and a standard deviation of two oz.\nYou want to buy a specific computer. A sales representative of the manufacturer claims that retail stores sell this computer at an average price of \\$1,249 with a very narrow standard deviation of \\$25. You find a website that has a price comparison for the same computer at a series of stores as follows: \\$1,299; \\$1,229.99; \\$1,193.08; \\$1,279; \\$1,224.95; \\$1,229.99; \\$1,269.95; \\$1,249. Can you argue that pricing has a larger standard deviation than claimed by the manufacturer? Use the 5% significance level. As a potential buyer, what would be the practical conclusion from your analysis?\nThe sample standard deviation is \\$34.29.\nH0: σ2 = 252 Ha: σ2 > 252\ndf = n – 1 = 7.\ntest statistic: ${x}^{2}={x}_{7}^{2}=\\frac{(n–1){s}^{2}}{{25}^{2}}=\\frac{(8–1){(34.29)}^{2}}{{25}^{2}}=13.169$;\np-value: $P({x}_{7}^{2}>13.169)=1–P({x}_{7}^{2}\\le13.169)=0.0681$\nAlpha: 0.05\nDecision: Do not reject the null hypothesis.\nReason for decision: p-value > alpha\nConclusion: At the 5% level, there is insufficient evidence to conclude that the variance is more than 625.\nA company packages apples by weight. One of the weight grades is Class A apples. Class A apples have a mean weight of 150 g, and there is a maximum allowed weight tolerance of 5% above or below the mean for apples in the same consumer package. A batch of apples is selected to be included in a Class A apple package. Given the following apple weights of the batch, does the fruit comply with the Class A grade weight tolerance requirements. Conduct an appropriate hypothesis test.\n(a) at the 5% significance level\n(b) at the 1% significance level\nWeights in selected apple batch (in grams): 158; 167; 149; 169; 164; 139; 154; 150; 157; 171; 152; 161; 141; 166; 172;"}
{"document_id": "openstax-intro-statistics-m50279", "title": "The Chi-Square Distribution — Lab 1: Chi-Square Goodness-of-Fit", "source": "https://openstax.org/books/introductory-statistics-2e/pages/11-7-lab-1-chi-square-goodness-of-fit", "license": "CC-BY-4.0", "text": "Lab 1: Chi-Square Goodness-of-Fit\nClass Time:\nNames:\nStudent Learning Outcome\n- The student will evaluate data collected to determine if they fit either the uniform or exponential distributions.\nCollect the Data\nGo to your local supermarket. Ask 30 people as they leave for the total amount on their grocery receipts. (Or, ask three cashiers for the last ten amounts. Be sure to include the express lane, if it is open.)\nNOTE\nYou may need to combine two categories so that each cell has an expected value of at least five.\n- Record the values.\n- Construct a histogram of the data. Make five to six intervals. Sketch the graph using a ruler and pencil. Scale the axes.\n[Image: Blank graph with relative frequency on vertical]\n- Calculate the following:\n- $\\overline{x}=$________\n- s = ________\n- s2 = ________\nUniform Distribution\nTest to see if grocery receipts follow the uniform distribution.\n- Using your lowest and highest values, X ~ U (_______, _______)\n- Divide the distribution into fifths.\n- Calculate the following:\n- lowest value = _________\n- 20th percentile = _________\n- 40th percentile = _________\n- 60th percentile = _________\n- 80th percentile = _________\n- highest value = _________\n- For each fifth, count the observed number of receipts and record it. Then determine the expected number of receipts and record that.\nFifth | Observed | Expected\n1st\n2nd\n3rd\n4th\n5th\n- H0: ________\n- Ha: ________\n- What distribution should you use for a hypothesis test?\n- Why did you choose this distribution?\n- Calculate the test statistic.\n- Find the p-value.\n- Sketch a graph of the situation. Label and scale the x-axis. Shade the area corresponding to the p-value.\n[Image: Blank graph with vertical and horizontal axes.]\n- State your decision.\n- State your conclusion in a complete sentence.\nExponential Distribution\nTest to see if grocery receipts follow the exponential distribution with decay parameter $\\frac{1}{\\overline{x}}$.\n- Using $\\frac{1}{\\overline{x}}$ as the decay parameter, X ~ Exp(_________).\n- Calculate the following:\n- lowest value = ________\n- first quartile = ________\n- 37th percentile = ________\n- median = ________\n- 63rd percentile = ________\n- 3rd quartile = ________\n- highest value = ________\n- For each cell, count the observed number of receipts and record it. Then determine the expected number of receipts and record that.\nCell | Observed | Expected\n1st\n2nd\n3rd\n4th\n5th\n6th\n- H0: ________\n- Ha: ________\n- What distribution should you use for a hypothesis test?\n- Why did you choose this distribution?\n- Calculate the test statistic.\n- Find the p-value.\n- Sketch a graph of the situation. Label and scale the x-axis. Shade the area corresponding to the p-value.\n[Image: Blank graph with vertical and horizontal axes.]\n- State your decision.\n- State your conclusion in a complete sentence.\nDiscussion Questions\n- Did your data fit either distribution? If so, which?\n- In general, do you think it’s likely that data could fit more than one distribution? In complete sentences, explain why or why not."}
{"document_id": "openstax-intro-statistics-m50280", "title": "The Chi-Square Distribution — Lab 2: Chi-Square Test of Independence", "source": "https://openstax.org/books/introductory-statistics-2e/pages/11-8-lab-2-chi-square-test-of-independence", "license": "CC-BY-4.0", "text": "Lab 2: Chi-Square Test of Independence\nClass Time:\nNames:\nStudent Learning Outcome\n- The student will evaluate if there is a significant relationship between favorite type of snack and gender.\nCollect the Data\n- Using your class as a sample, complete the following chart. Ask each other what your favorite snack is, then total the results.\nNoteYou may need to combine two food categories so that each cell has an expected value of at least five.\nsweets (candy & baked goods) | ice cream | chips & pretzels | fruits & vegetables | Total\nmen\nwomen\nTotal\n- Looking at Table, does it appear to you that there is a dependence between gender and favorite type of snack food? Why or why not?\nHypothesis Test\nConduct a hypothesis test to determine if the factors are independent:\n- H0: ________\n- Ha: ________\n- What distribution should you use for a hypothesis test?\n- Why did you choose this distribution?\n- Calculate the test statistic.\n- Find the p-value.\n- Sketch a graph of the situation. Label and scale the x-axis. Shade the area corresponding to the p-value.\n[Image: Blank graph with vertical and horizontal axes.]\n- State your decision.\n- State your conclusion in a complete sentence.\nDiscussion Questions\n- Is the conclusion of your study the same as or different from your answer to answer to question two under Collect the Data?\n- Why do you think that occurred?"}
{"document_id": "openstax-intro-statistics-m47100", "title": "Linear Regression and Correlation — Linear Equations", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-1-linear-equations", "license": "CC-BY-4.0", "text": "Linear regression for two variables is based on a linear equation with one independent variable. The equation has the form:\n$$y=a+\\text{bx}$$\nwhere a and b are constant numbers.\nThe variable x is the independent variable, and y is the dependent variable. Typically, you choose a value to substitute for the independent variable and then solve for the dependent variable.\nThe following examples are linear equations.\n$$y=3+\\text{2x}$$\n$$y=–0.01+\\text{1.2x}$$\nTry It\nIs the following an example of a linear equation?\ny = –0.125 – 3.5x\nThe graph of a linear equation of the form y = a + bx is a straight line. Any line that is not vertical can be described by this equation.\nGraph the equation y = –1 + 2x.\n[Image: Graph of the equation y = -1 + 2x. This is a straight line that crosses the y-axis at -1 and is sloped up and to the right, rising 2 units for every one unit of run.]\nTry It\nIs the following an example of a linear equation? Why or why not?\n[Image: This is a graph of an equation. The x-axis is labeled in intervals of 2 from 0 - 14; the y-axis is labeled in intervals of 2 from 0 - 12. The equation's graph is a curve that crosses the y-axis at 2 and curves upward and to the right.]\nA local small business completes federal tax returns for customers. The rate for services is \\$32 per hour plus a \\$31.50 one-time charge. The total cost to a customer depends on the number of hours it takes to complete the job.\nFind the equation that expresses the total cost in terms of the number of hours required to complete the job.\nLet x = the number of hours it takes to get the job done. Let y = the total cost to the customer.\nThe \\$31.50 is a fixed cost. If it takes x hours to complete the tax return, then (32)(x) is the cost of the tax return processing only. The total cost is: y = 31.50 + 32x\nTry It\nEmma’s Extreme Sports hires hang-gliding instructors and pays them a fee of \\$50 per class as well as \\$20 per student in the class. The total cost Emma pays depends on the number of students in a class. Find the equation that expresses the total cost in terms of the number of students in a class.\nSlope and Y-Intercept of a Linear Equation\nFor the linear equation y = a + bx, b = slope and a = y-intercept. From algebra recall that the slope is a number that describes the steepness of a line, and the y-intercept is the y coordinate of the point (0, a) where the line crosses the y-axis.\n[Image: Three possible graphs of the equation y = a + bx. For the first graph, (a), b > 0 and so the line slopes upward to the right. For the second, b = 0 and the graph of the equation is a horizontal line. In the third graph, (c), b < 0 and the line slopes downward to the right.]\nThree possible graphs of y = a + bx. (a) If b > 0, the line slopes upward to the right. (b) If b = 0, the line is horizontal. (c) If b < 0, the line slopes downward to the right.\nSvetlana tutors to make extra money for college. For each tutoring session, she charges a one-time fee of \\$25 plus \\$15 per hour of tutoring. A linear equation that expresses the total amount of money Svetlana earns for each session she tutors is y = 25 + 15x.\nWhat are the independent and dependent variables? What is the y-intercept and what is the slope? Interpret them using complete sentences.\nThe independent variable (x) is the number of hours Svetlana tutors each session. The dependent variable (y) is the amount, in dollars, Svetlana earns for each session.\nThe y-intercept is 25 (a = 25). At the start of the tutoring session, Svetlana charges a one-time fee of \\$25 (this is when x = 0). The slope is 15 (b = 15). For each session, Svetlana earns \\$15 for each hour she tutors.\nTry It\nEthan repairs household appliances like dishwashers and refrigerators. For each visit, he charges \\$25 plus \\$20 per hour of work. A linear equation that expresses the total amount of money Ethan earns per visit is y = 25 + 20x.\nWhat are the independent and dependent variables? What is the y-intercept and what is the slope? Interpret them using complete sentences.\nReferences\nData from the Centers for Disease Control and Prevention.\nData from the National Center for agency reporting flu cases and TB Prevention.\nChapter Review\nThe most basic type of association is a linear association. This type of relationship can be defined algebraically by the equations used, numerically with actual or predicted data values, or graphically from a plotted curve. (Lines are classified as straight curves.) Algebraically, a linear equation typically takes the form y = mx + b, where m and b are constants, x is the independent variable, y is the dependent variable. In a statistical context, a linear equation is written in the form y = a + bx, where a and b are the constants. This form is used to help readers distinguish the statistical context from the algebraic context. In the equation y = a + bx, the constant b, called a coefficient, represents the slope. The constant a is called the y-intercept.\nThe slope of a line is a value that describes the rate of change between the independent and dependent variables. The slope tells us how the dependent variable (y) changes for every one unit increase in the independent (x) variable, on average. The y-intercept is used to describe the dependent variable when the independent variable equals zero.\nFormula Review\ny = a + bx where a is the y-intercept and b is the slope. The variable x is the independent variable and y is the dependent variable.\nUse the following information to answer the next three exercises. A vacation resort rents SCUBA equipment to certified divers. The resort charges an up-front fee of \\$25 and another fee of \\$12.50 an hour.\nWhat are the dependent and independent variables?\ndependent variable: fee amount; independent variable: time\nFind the equation that expresses the total fee in terms of the number of hours the equipment is rented.\nGraph the equation from Exercise.\n[Image: This is a graph of the equation y = 25 + 12.50x. The x-axis is labeled in intervals of 1 from 0 - 7; the y-axis is labeled in intervals of 25 from 0 - 100. The equation's graph is a line that crosses the y-axis at 25 and is sloped up and to the right, rising 12.50 units for every one unit of run.]\nUse the following information to answer the next two exercises. A credit card company charges \\$10 when a payment is late, and \\$5 a day each day the payment remains unpaid.\nFind the equation that expresses the total fee in terms of the number of days the payment is late.\nGraph the equation from Exercise.\n[Image: This is a graph of the equation y = 10 + 5x. The x-axis is labeled in intervals of 1 from 0 - 7; the y-axis is labeled in intervals of 10 from 0 - 50. The equation's graph is a line that crosses the y-axis at 10 and is sloped up and to the right, rising 5 units for every one unit of run.]\nIs the equation y = 10 + 5x – 3x2 linear? Why or why not?\nWhich of the following equations are linear?\na. y = 6x + 8\nb. y + 7 = 3x\nc. y – x = 8x2\nd. 4y = 8\ny = 6x + 8, 4y = 8, and y + 7 = 3x are all linear equations.\nDoes the graph show a linear equation? Why or why not?\n[Image: This is a graph of an equation. The x-axis is labeled in intervals of 1 from -5 to 5; the y-axis is labeled in intervals of 1 from 0 - 8. The equation's graph is a parabola, a u-shaped curve that has a minimum value at (0, 0).]\nTable contains real data for the first two decades of flu reporting.\nYear | # flu cases diagnosed | # flu deaths\nPre-1981 | 91 | 29\n1981 | 319 | 121\n1982 | 1,170 | 453\n1983 | 3,076 | 1,482\n1984 | 6,240 | 3,466\n1985 | 11,776 | 6,878\n1986 | 19,032 | 11,987\n1987 | 28,564 | 16,162\n1988 | 35,447 | 20,868\n1989 | 42,674 | 27,591\n1990 | 48,634 | 31,335\n1991 | 59,660 | 36,560\n1992 | 78,530 | 41,055\n1993 | 78,834 | 44,730\n1994 | 71,874 | 49,095\n1995 | 68,505 | 49,456\n1996 | 59,347 | 38,510\n1997 | 47,149 | 20,736\n1998 | 38,393 | 19,005\n1999 | 25,174 | 18,454\n2000 | 25,522 | 17,347\n2001 | 25,643 | 17,402\n2002 | 26,464 | 16,371\nTotal | 802,118 | 489,093\nUse the columns \"year\" and \"# flu cases diagnosed. Why is “year” the independent variable and “# flu cases diagnosed.” the dependent variable (instead of the reverse)?\nThe number of flu cases depends on the year. Therefore, year becomes the independent variable and the number of flu cases is the dependent variable.\nUse the following information to answer the next two exercises. A specialty cleaning company charges an equipment fee and an hourly labor fee. A linear equation that expresses the total amount of the fee the company charges for each session is y = 50 + 100x.\nWhat are the independent and dependent variables?\nWhat is the y-intercept and what is the slope? Interpret them using complete sentences.\nThe y-intercept is 50 (a = 50). At the start of the cleaning, the company charges a one-time fee of \\$50 (this is when x = 0). The slope is 100 (b = 100). For each session, the company charges \\$100 for each hour they clean.\nUse the following information to answer the next three questions. Due to erosion, a river shoreline is losing several thousand pounds of soil each year. A linear equation that expresses the total amount of soil lost per year is y = 12,000x.\nWhat are the independent and dependent variables?\nHow many pounds of soil does the shoreline lose in a year?\n12,000 pounds of soil\nWhat is the y-intercept? Interpret its meaning.\nUse the following information to answer the next two exercises. The price of a single issue of stock can fluctuate throughout the day. A linear equation that represents the price of stock for Shipment Express is y = 15 – 1.5x where x is the number of hours passed in an eight-hour day of trading.\nWhat are the slope and y-intercept? Interpret their meaning.\nThe slope is –1.5 (b = –1.5). This means the stock is losing value at a rate of \\$1.50 per hour. The y-intercept is \\$15 (a = 15). This means the price of stock before the trading day was \\$15.\nIf you owned this stock, would you want a positive or negative slope? Why?\nHomework\nFor each of the following situations, state the independent variable and the dependent variable.\n- A study is done to determine if elderly drivers are involved in more motor vehicle fatalities than other drivers. The number of fatalities per 100,000 drivers is compared to the age of drivers.\n- A study is done to determine if the weekly grocery bill changes based on the number of family members.\n- Insurance companies base life insurance premiums partially on the age of the applicant.\n- Utility bills vary according to power consumption.\n- A study is done to determine if a higher education reduces the crime rate in a population.\n- independent variable: age; dependent variable: fatalities\n- independent variable: # of family members; dependent variable: grocery bill\n- independent variable: age of applicant; dependent variable: insurance premium\n- independent variable: power consumption; dependent variable: utility\n- independent variable: higher education (years); dependent variable: crime rates\nPiece-rate systems are widely debated incentive payment plans. In a recent study of loan officer effectiveness, the following piece-rate system was examined:\n% of goal reached | < 80 | 80 | 100 | 120\nIncentive | n/a | \\$4,000 with an additional \\$125 added per percentage point from 81–99% | \\$6,500 with an additional \\$125 added per percentage point from 101–119% | \\$9,500 with an additional \\$125 added per percentage point starting at 121%\nIf a loan officer makes 95% of their goal, write the linear function that applies based on the incentive plan table. In context, explain the y-intercept and slope."}
{"document_id": "openstax-intro-statistics-m47109", "title": "Linear Regression and Correlation — Scatter Plots", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-2-scatter-plots", "license": "CC-BY-4.0", "text": "Before we take up the discussion of linear regression and correlation, we need to examine a way to display the relation between two variables x and y. The most common and easiest way is a scatter plot. The following example illustrates a scatter plot.\nAn educational researcher collects data on the vocabulary size of children as a function of age. The data is shown in Table 12.1. Is there a relationship between age and vocabulary size for young children? Construct a scatter plot. Let x = Child’s Age, and let y = Vocabulary Size.\nAge (years) | Vocabulary Size (number of words)\n3 | 655\n4 | 1098\n6 | 2463\n7 | 3195\n[Image: This is a scatter plot for the data provided. The x-axis represents the year and the y-axis represents the number of m-commerce users in millions. There are four points plotted, at (2000, 0.5), (2002, 20.0), (2003, 33.0), (2004, 47.0).]\nTo create a scatter plot:\n- Enter your X data into list L1 and your Y data into list L2.\n- Press 2nd STATPLOT ENTER to use Plot 1. On the input screen for PLOT 1, highlight On and press ENTER. (Make sure the other plots are OFF.)\n- For TYPE: highlight the very first icon, which is the scatter plot, and press ENTER.\n- For Xlist:, enter L1 ENTER and for Ylist: L2 ENTER.\n- For Mark: it does not matter which symbol you highlight, but the square is the easiest to see. Press ENTER.\n- Make sure there are no other equations that could be plotted. Press Y = and clear any equations out.\n- Press the ZOOM key and then the number 9 (for menu item \"ZoomStat\"); the calculator will fit the window to the data. You can press WINDOW to see the scaling of the axes.\nTry It\nAmelia plays basketball for her high school. She wants to improve to play at the college level. She notices that the number of points she scores in a game goes up in response to the number of hours she practices her jump shot each week. She records the following data:\nX (hours practicing jump shot) | Y (points scored in a game)\n5 | 15\n7 | 22\n9 | 28\n10 | 31\n11 | 33\n12 | 36\nConstruct a scatter plot and state if what Amelia thinks appears to be true.\nA scatter plot shows the direction of a relationship between the variables. A clear direction happens when there is either:\n- High values of one variable occurring with high values of the other variable or low values of one variable occurring with low values of the other variable.\n- High values of one variable occurring with low values of the other variable.\nYou can determine the strength of the relationship by looking at the scatter plot and seeing how close the points are to a line, a power function, an exponential function, or to some other type of function. For a linear relationship there is an exception. Consider a scatter plot where all the points fall on a horizontal line providing a \"perfect fit.\" The horizontal line would in fact show no relationship.\nWhen you look at a scatterplot, you want to notice the overall pattern and any deviations from the pattern. The following scatterplot examples illustrate these concepts.\n[Image: The first graph is a scatter plot with 6 points plotted. The points form a pattern that moves upward to the right, almost in a straight line. The second graph is a scatter plot with the same 6 points as the first graph. A 7th point is plotted in the top left corner of the quadrant. It falls outside the general pattern set by the other 6 points.]\n[Image: The first graph is a scatter plot with 6 points plotted. The points form a pattern that moves downward to the right, almost in a straight line. The second graph is a scatter plot of 8 points. These points form a general downward pattern, but the point do not align in a tight pattern.]\n[Image: The first graph is a scatter plot of 7 points in an exponential pattern. The pattern of the points begins along the x-axis and curves steeply upward to the right side of the quadrant. The second graph shows a scatter plot with many points scattered everywhere, exhibiting no pattern.]\nIn this chapter, we are interested in scatter plots that show a linear pattern. Linear patterns are quite common. The linear relationship is strong if the points are close to a straight line, except in the case of a horizontal line where there is no relationship. If we think that the points show a linear relationship, we would like to draw a line on the scatter plot. This line can be calculated through a process called linear regression. However, we only calculate a regression line if one of the variables helps to explain or predict the other variable. If x is the independent variable and y the dependent variable, then we can use a regression line to predict y for a given value of x\nChapter Review\nScatter plots are particularly helpful graphs when we want to see if there is a linear relationship among data points. They indicate both the direction of the relationship between the x variables and the y variables, and the strength of the relationship. We calculate the strength of the relationship between an independent variable and a dependent variable using linear regression.\nDoes the scatter plot appear linear? Strong or weak? Positive or negative?\n[Image: This is a scatterplot with several points plotted in the first quadrant. The points form a clear pattern, moving upward to the right. The points do not line up, but the overall pattern can be modeled with a line.]\nThe data appear to be linear with a strong, positive correlation.\nDoes the scatter plot appear linear? Strong or weak? Positive or negative?\n[Image: This is a scatterplot with several points plotted in the first quadrant. The points move downward to the right. The overall pattern can be modeled with a line, but the points are widely scattered.]\nDoes the scatter plot appear linear? Strong or weak? Positive or negative?\n[Image: This is a scatter plot with several points plotted all over the first quadrant. There is no pattern.]\nThe data appear to have no correlation.\nHomework\nThe Gross Domestic Product Purchasing Power Parity is an indication of a country’s currency value compared to another country. Table shows the GDP PPP of Cuba as compared to US dollars. Construct a scatter plot of the data.\nYear | Cuba’s PPP | Year | Cuba’s PPP\n1 | 1,700 | 8 | 4,000\n2 | 1,700 | 9 | 11,000\n4 | 2,300 | 10 | 9,500\n5 | 2,900 | 11 | 9,700\n6 | 3,000 | 12 | 9,900\n7 | 3,500\nAnswers may vary.\nThe following table shows the number of faculty and number of students at several colleges. Construct a scatter plot of the data\nCollege | Faculty | Students\nCollege A | 47 | 940\nCollege B | 58 | 1102\nCollege C | 26 | 533\nCollege D | 63 | 1244\nDoes the higher cost of tuition translate into higher-paying jobs? The table lists the top ten colleges based on mid-career salary and the associated yearly tuition costs. Construct a scatter plot of the data.\nSchool | Mid-Career Salary (in thousands) | Yearly Tuition\nPrinceton | 137 | 57,410\nHarvey Mudd | 135 | 62,817\nCalTech | 127 | 60,864\nUS Naval Academy | 122 | 0\nWest Point | 120 | 0\nMIT | 118 | 57,986\nLehigh University | 118 | 59,930\nNYU-Poly | 117 | 58,168\nBabson College | 117 | 56,576\nStanford | 114 | 56,169\nFor graph: Answers may vary. Note that tuition is the independent variable and salary is the dependent variable.\nIf the level of significance is 0.05 and the p-value is 0.06, what conclusion can you draw?\nIf there are 15 data points in a set of data, what is the number of degree of freedom?\n13"}
{"document_id": "openstax-intro-statistics-m47117", "title": "Linear Regression and Correlation — The Regression Equation", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-3-the-regression-equation", "license": "CC-BY-4.0", "text": "Data rarely fit a straight line exactly. Usually, you must be satisfied with rough predictions. Typically, you have a set of data whose scatter plot appears to \"fit\" a straight line. This is called a Line of Best Fit or Least-Squares Line.\nIf you know a person's pinky (smallest) finger length, do you think you could predict that person's height? Collect data from your class (pinky finger length, in inches). The independent variable, x, is pinky finger length and the dependent variable, y, is height. For each set of data, plot the points on graph paper. Make your graph big enough and use a ruler. Then \"by eye\" draw a line that appears to \"fit\" the data. For your line, pick two convenient points and use them to find the slope of the line. Find the y-intercept of the line by extending your line so it crosses the y-axis. Using the slopes and the y-intercepts, write your equation of \"best fit.\" Do you think everyone will have the same equation? Why or why not? According to your equation, what is the predicted height for a pinky length of 2.5 inches?\nA random sample of 11 statistics students produced the following data, where x is the third exam score out of 80, and y is the final exam score out of 200. Can you predict the final exam score of a random student if you know the third exam score?\nx (third exam score) | y (final exam score)\n65 | 175\n67 | 133\n71 | 185\n71 | 163\n66 | 126\n75 | 198\n67 | 153\n70 | 163\n71 | 159\n69 | 151\n69 | 159\n[Image: This is a scatter plot of the data provided. The third exam score is plotted on the x-axis, and the final exam score is plotted on the y-axis. The points form a strong, positive, linear pattern.]\nScatter plot showing the scores on the final exam based on scores from the third exam.\nTry It\nSCUBA divers have maximum dive times they cannot exceed when going to different depths. The data in Table show different depths with the maximum dive times in minutes. Use your calculator to find the least squares regression line and predict the maximum dive time for 110 feet.\nX (depth in feet) | Y (maximum dive time)\n50 | 80\n60 | 55\n70 | 45\n80 | 35\n90 | 25\n100 | 22\nThe third exam score, x, is the independent variable and the final exam score, y, is the dependent variable. We will plot a regression line that best \"fits\" the data. If each of you were to fit a line \"by eye,\" you would draw different lines. We can use what is called a least-squares regression line to obtain the best fit line.\nConsider the following diagram. Each point of data is of the the form (x, y) and each point of the line of best fit using least-squares linear regression has the form (x, ŷ).\nThe ŷ is read \"y hat\" and is the estimated value of y. It is the value of y obtained using the regression line. It is not generally equal to y from data.\n[Image: The scatter plot of exam scores with a line of best fit. One data point is highlighted along with the corresponding point on the line of best fit. Both points have the same x-coordinate. The distance between these two points illustrates how to compute the sum of squared errors.]\nThe term y0 – ŷ0 = ε0 is called the \"error\" or residual. It is not an error in the sense of a mistake. The absolute value of a residual measures the vertical distance between the actual value of y and the estimated value of y. In other words, it measures the vertical distance between the actual data point and the predicted point on the line.\nIf the observed data point lies above the line, the residual is positive, and the line underestimates the actual data value for y. If the observed data point lies below the line, the residual is negative, and the line overestimates that actual data value for y.\nIn the diagram in Figure, y0 – ŷ0 = ε0 is the residual for the point shown. Here the point lies above the line and the residual is positive.\nε = the Greek letter epsilon\nFor each data point, you can calculate the residuals or errors, yi - ŷi = εi for i = 1, 2, 3,..., 11.\nEach |ε| is a vertical distance.\nFor the example about the third exam scores and the final exam scores for the 11 statistics students, there are 11 data points. Therefore, there are 11 ε values. If you square each ε and add, you get\n$${({ε}_{1})}^{2}+{({ε}_{2})}^{2}+...+{({ε}_{11})}^{2}={{\\Sigma}_{i=1}}^{11}{ε}^{2}$$\nThis is called the Sum of Squared Errors (SSE).\nUsing calculus, you can determine the values of a and b that make the SSE a minimum. When you make the SSE a minimum, you have determined the points that are on the line of best fit. It turns out that the line of best fit has the equation:\n$${y}^{^}=a+bx$$\nwhere $a=\\overline{y}-b\\overline{x}$ and $b=\\frac{\\Sigma(x-\\overline{x})(y-\\overline{y})}{\\Sigma{(x-\\overline{x})}^{2}}$.\nThe sample means of the x values and the y values are $\\overline{x}$ and $\\overline{y}$, respectively. The best fit line always passes through the point $(\\overline{x},\\overline{y})$.\nThe slope b can be written as $b=r(\\frac{{s}_{y}}{{s}_{x}})$ where sy = the standard deviation of the y values and sx = the standard deviation of the x values. r is the correlation coefficient, which is discussed in the next section.\nResiduals Plots\nA residuals plot can be used to help determine if a set of (x, y) data is linearly correlated. For each data point used to create the correlation line, a residual y - ŷ can be calculated, where y is the observed value of the response variable and ŷ is the value predicted by the correlation line. The difference between these values is called the residual. A residuals plot shows the explanatory variable x on the horizontal axis and the residual for that value on the vertical axis. The residuals plot is often shown together with a scatter plot of the data. While a scatter plot of the data should resemble a straight line, a residuals plot should appear random, with no pattern and no outliers. It should also show constant error variance, meaning the residuals should not consistently increase (or decrease) as the explanatory variable x increases.\nA residuals plot can be created using StatCrunch or a TI calculator. The plot should appear random. A box plot of the residuals is also helpful to verify that there are no outliers in the data. By observing the scatter plot of the data, the residuals plot, and the box plot of residuals, together with the linear correlation coefficient, we can usually determine if it is reasonable to conclude that the data are linearly correlated.\nEXAMPLE:\nA shop owner uses a straight-line regression to estimate the number of ice cream cones that would be sold in a day based on the temperature at noon. The owner has data for a 2-year period and chose nine days at random. A scatter plot of the data is shown, together with a residuals plot.\nTemperature ° F | Ice cream cones sold\n70 | 105\n85 | 240\n65 | 49\n72 | 147\n80 | 231\n61 | 38\n75 | 193\n78 | 196\n68 | 89\n[Image: Scatter plot of ice creams sold against temperature of the given data. A straight line is constructed for the plot.]\nScatter plot of the data looks like a straight line.\n[Image: Residual plot of residuals against temperature of the given data.]\nResiduals plot appears random.\nLeast Squares Criteria for Best Fit\nThe process of fitting the best-fit line is called linear regression. The idea behind finding the best-fit line is based on the assumption that the data are scattered about a straight line. The criteria for the best fit line is that the sum of the squared errors (SSE) is minimized, that is, made as small as possible. Any other line you might choose would have a higher SSE than the best fit line. This best fit line is called the least-squares regression line.\nNOTE\nComputer spreadsheets, statistical software, and many calculators can quickly calculate the best-fit line and create the graphs. The calculations tend to be tedious if done by hand. Instructions to use the TI-83, TI-83+, and TI-84+ calculators to find the best-fit line and create a scatterplot are shown at the end of this section.\nTHIRD EXAM vs FINAL EXAM EXAMPLE:\nThe graph of the line of best fit for the third-exam/final-exam example is as follows:\n[Image: The scatter plot of exam scores with a line of best fit. One data point is highlighted along with the corresponding point on the line of best fit.]\nThe least squares regression line (best-fit line) for the third-exam/final-exam example has the equation:\n$${y}^{^}=-173.51+4.83x$$\nREMINDER\nRemember, it is always important to plot a scatter diagram first. If the scatter plot indicates that there is a linear relationship between the variables, then it is reasonable to use a best fit line to make predictions for y given x within the domain of x-values in the sample data, but not necessarily for x-values outside that domain. You could use the line to predict the final exam score for a student who earned a grade of 73 on the third exam. You should NOT use the line to predict the final exam score for a student who earned a grade of 50 on the third exam, because 50 is not within the domain of the x-values in the sample data, which are between 65 and 75.\nUNDERSTANDING SLOPE\nThe slope of the line, b, describes how changes in the variables are related. It is important to interpret the slope of the line in the context of the situation represented by the data. You should be able to write a sentence interpreting the slope in plain English.\nINTERPRETATION OF THE SLOPE: The slope of the best-fit line tells us how the dependent variable (y) changes for every one unit increase in the independent (x) variable, on average.\nTHIRD EXAM vs FINAL EXAM EXAMPLE\nSlope: The slope of the line is b = 4.83. Interpretation: For a one-point increase in the score on the third exam, the final exam score increases by 4.83 points, on average.\nUsing the Linear Regression T Test: LinRegTTest\n- In the STAT list editor, enter the X data in list L1 and the Y data in list L2, paired so that the corresponding (x,y) values are next to each other in the lists. (If a particular pair of values is repeated, enter it as many times as it appears in the data.)\n- On the STAT TESTS menu, scroll down with the cursor to select the LinRegTTest. (Be careful to select LinRegTTest, as some calculators may also have a different item called LinRegTInt.)\n- On the LinRegTTest input screen enter: Xlist: L1; Ylist: L2; Freq: 1\n- On the next line, at the prompt β or ρ, highlight \"≠ 0\" and press ENTER\n- Leave the line for \"RegEq:\" blank\n- Highlight Calculate and press ENTER.\n[Image: 1. Image of calculator input screen for LinRegTTest with input matching the instructions above. 2.Image of corresponding output calculator output screen for LinRegTTest: Output screen shows: Line 1. LinRegTTest; Line 2. y = a + bx; Line 3. beta does not equal 0 and rho does not equal 0; Line 4. t = 2.657560155; Line 5. df = 9; Line 6. a = 173.513363; Line 7. b = 4.827394209; Line 8. s = 16.41237711; Line 9. r squared =.4396931104; Line 10. r =.663093591]\nThe output screen contains a lot of information. For now we will focus on a few items from the output, and will return later to the other items. The second line says y = a + bx. Scroll down to find the values a = –173.513, and b = 4.8273; the equation of the best fit line is ŷ = –173.51 + 4.83x The two items at the bottom are r2 = 0.43969 and r = 0.663. For now, just note where to find these values; we will discuss them in the next two sections.\nGraphing the Scatterplot and Regression Line\n- We are assuming your X data is already entered in list L1 and your Y data is in list L2\n- Press 2nd STATPLOT ENTER to use Plot 1\n- On the input screen for PLOT 1, highlight On, and press ENTER\n- For TYPE: highlight the very first icon which is the scatterplot and press ENTER\n- Indicate Xlist: L1 and Ylist: L2\n- For Mark: it does not matter which symbol you highlight.\n- Press the ZOOM key and then the number 9 (for menu item \"ZoomStat\"); the calculator will fit the window to the data\n- To graph the best-fit line, press the \"Y=\" key and type the equation –173.5 + 4.83X into equation Y1. (The X key is immediately left of the STAT key). Press ZOOM 9 again to graph it.\n- Optional: If you want to change the viewing window, press the WINDOW key. Enter your desired window using Xmin, Xmax, Ymin, Ymax\nNOTE\nAnother way to graph the line after you create a scatter plot is to use LinRegTTest.\n- Make sure you have done the scatter plot. Check it on your screen.\n- Go to LinRegTTest and enter the lists.\n- At RegEq: press VARS and arrow over to Y-VARS. Press 1 for 1:Function. Press 1 for 1:Y1. Then arrow down to Calculate and do the calculation for the line of best fit.\n- Press Y = (you will see the regression equation).\n- Press GRAPH. The line will be drawn.\"\nThe Correlation Coefficient r\nBesides looking at the scatter plot and seeing that a line seems reasonable, how can you tell if the line is a good predictor? Use the correlation coefficient as another indicator (besides the scatterplot) of the strength of the relationship between x and y.\nThe correlation coefficient, r, developed by Karl Pearson in the early 1900s, is numerical and provides a measure of strength and direction of the linear association between the independent variable x and the dependent variable y.\nThe correlation coefficient is calculated as\n$$r=\\frac{n\\Sigma(xy)-(\\Sigma x)(\\Sigma y)}{\\sqrt{[n\\Sigma{x}^{2}-{(\\Sigma x)}^{2}][n\\Sigma{y}^{2}-{(\\Sigma y)}^{2}]}}$$\nwhere n = the number of data points.\nIf you suspect a linear relationship between x and y, then r can measure how strong the linear relationship is.\nWhat the VALUE of r tells us:\n- The value of r is always between –1 and +1: –1 ≤ r ≤ 1.\n- The size of the correlation r indicates the strength of the linear relationship between x and y. Values of r close to –1 or to +1 indicate a stronger linear relationship between x and y.\n- If r = 0 there is likely no linear correlation. It is important to view the scatterplot, however, because data that exhibit a curved or horizontal pattern may have a correlation of 0.\n- If r = 1, there is perfect positive correlation. If r = –1, there is perfect negative correlation. In both these cases, all of the original data points lie on a straight line. Of course,in the real world, this will not generally happen.\nWhat the SIGN of r tells us\n- A positive value of r means that when x increases, y tends to increase and when x decreases, y tends to decrease (positive correlation).\n- A negative value of r means that when x increases, y tends to decrease and when x decreases, y tends to increase (negative correlation).\n- The sign of r is the same as the sign of the slope, b, of the best-fit line.\nNOTE\nStrong correlation does not suggest that x causes y or y causes x. We say \"correlation does not imply causation.\"\n[Image: Three scatter plots with lines of best fit. The first scatterplot shows points ascending from the lower left to the upper right. The line of best fit has positive slope. The second scatter plot shows points descending from the upper left to the lower right. The line of best fit has negative slope. The third scatter plot of points form a horizontal pattern. The line of best fit is a horizontal line.]\n(a) A scatter plot showing data with a positive correlation. 0 < r < 1 (b) A scatter plot showing data with a negative correlation. –1 < r < 0 (c) A scatter plot showing data with zero correlation. r = 0\nThe formula for r looks formidable. However, computer spreadsheets, statistical software, and many calculators can quickly calculate r. The correlation coefficient r is the bottom item in the output screens for the LinRegTTest on the TI-83, TI-83+, or TI-84+ calculator (see previous section for instructions).\nThe Coefficient of Determination\nThe variable r2 is called the coefficient of determination and is the square of the correlation coefficient, but is usually stated as a percent, rather than in decimal form. It has an interpretation in the context of the data:\n- ${r}^{2}$, when expressed as a percent, represents the percent of variation in the dependent (predicted) variable y that can be explained by variation in the independent (explanatory) variable x using the regression (best-fit) line.\n- 1 – ${r}^{2}$, when expressed as a percentage, represents the percent of variation in y that is NOT explained by variation in x using the regression line. This can be seen as the scattering of the observed data points about the regression line.\nConsider the third exam/final exam example introduced in the previous section\n- The line of best fit is: ŷ = –173.51 + 4.83x\n- The correlation coefficient is r = 0.6631\n- The coefficient of determination is r2 = 0.66312 = 0.4397\n- Interpretation of r2 in the context of this example:\n- Approximately 44% of the variation (0.4397 is approximately 0.44) in the final-exam grades can be explained by the variation in the grades on the third exam, using the best-fit regression line.\n- Therefore, approximately 56% of the variation (1 – 0.44 = 0.56) in the final exam grades can NOT be explained by the variation in the grades on the third exam, using the best-fit regression line. (This is seen as the scattering of the points about the line.)\nChapter Review\nA regression line, or a line of best fit, can be drawn on a scatter plot and used to predict outcomes for the x and y variables in a given data set or sample data. There are several ways to find a regression line, but usually the least-squares regression line is used because it creates a uniform line. Residuals, also called “errors,” measure the distance from the actual value of y and the estimated value of y. The Sum of Squared Errors, when set to its minimum, calculates the points on the line of best fit. Regression lines can be used to predict values within the given set of data, but should not be used to make predictions for values outside the set of data.\nThe correlation coefficient r measures the strength of the linear association between x and y. The variable r has to be between –1 and +1. When r is positive, the x and y will tend to increase and decrease together. When r is negative, x will increase and y will decrease, or the opposite, x will decrease and y will increase. The coefficient of determination r2, is equal to the square of the correlation coefficient. When expressed as a percent, r2 represents the percent of variation in the dependent variable y that can be explained by variation in the independent variable x using the regression line.\nUse the following information to answer the next five exercises. A random sample of ten professional athletes produced the following data where x is the number of endorsements the player has and y is the amount of money made (in millions of dollars).\nx | y | x | y\n0 | 2 | 5 | 12\n3 | 8 | 4 | 9\n2 | 7 | 3 | 9\n1 | 3 | 0 | 3\n5 | 13 | 4 | 10\nDraw a scatter plot of the data.\nUse regression to find the equation for the line of best fit.\nŷ = 2.23 + 1.99x\nDraw the line of best fit on the scatter plot.\nWhat is the slope of the line of best fit? What does it represent?\nThe slope is 1.99 (b = 1.99). It means that for every endorsement deal a professional player gets, he gets an average of another \\$1.99 million in pay each year.\nWhat is the y-intercept of the line of best fit? What does it represent?\nWhat does an r value of zero mean?\nIt means that there is no correlation between the data sets.\nWhen n = 2 and r = 1, are the data significant? Explain.\nWhen n = 100 and r = -0.89, is there a significant correlation? Explain.\nYes, there are enough data points and the value of r is strong enough to show that there is a strong negative correlation between the data sets.\nHomework\nWhat is the process through which we can calculate a line that goes through a scatter plot with a linear pattern?\nExplain what it means when a correlation has an r2 of 0.72.\nIt means that 72% of the variation in the dependent variable (y) can be explained by the variation in the independent variable (x).\nCan a coefficient of determination be negative? Why or why not?"}
{"document_id": "openstax-intro-statistics-m47111", "title": "Linear Regression and Correlation — Testing the Significance of the Correlation Coefficient", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-4-testing-the-significance-of-the-correlation-coefficient", "license": "CC-BY-4.0", "text": "The correlation coefficient, r, tells us about the strength and direction of the linear relationship between x and y. However, the reliability of the linear model also depends on how many observed data points are in the sample. We need to look at both the value of the correlation coefficient r and the sample size n, together.\nWe perform a hypothesis test of the \"significance of the correlation coefficient\" to decide whether the linear relationship in the sample data is strong enough to use to model the relationship in the population.\nThe sample data are used to compute r, the correlation coefficient for the sample. If we had data for the entire population, we could find the population correlation coefficient. But because we have only sample data, we cannot calculate the population correlation coefficient. The sample correlation coefficient, r, is our estimate of the unknown population correlation coefficient.\n- The symbol for the population correlation coefficient is ρ, the Greek letter \"rho.\"\n- ρ = population correlation coefficient (unknown)\n- r = sample correlation coefficient (known; calculated from sample data)\nThe hypothesis test lets us decide whether the value of the population correlation coefficient ρ is \"close to zero\" or \"significantly different from zero\". We decide this based on the sample correlation coefficient r and the sample size n.\nIf the test concludes that the correlation coefficient is significantly different from zero, we say that the correlation coefficient is \"significant.\"\n- Conclusion: There is sufficient evidence to conclude that there is a significant linear relationship between x and y because the correlation coefficient is significantly different from zero.\n- What the conclusion means: There is a significant linear relationship between x and y. We can use the regression line to model the linear relationship between x and y in the population.\nIf the test concludes that the correlation coefficient is not significantly different from zero (it is close to zero), we say that correlation coefficient is \"not significant\".\n- Conclusion: \"There is insufficient evidence to conclude that there is a significant linear relationship between x and y because the correlation coefficient is not significantly different from zero.\"\n- What the conclusion means: There is not a significant linear relationship between x and y. Therefore, we CANNOT use the regression line to model a linear relationship between x and y in the population.\nNOTE\n- If r is significant and the scatter plot shows a linear trend, the line can be used to predict the value of y for values of x that are within the domain of observed x values.\n- If r is not significant OR if the scatter plot does not show a linear trend, the line should not be used for prediction.\n- If r is significant and if the scatter plot shows a linear trend, the line may NOT be appropriate or reliable for prediction OUTSIDE the domain of observed x values in the data.\nPERFORMING THE HYPOTHESIS TEST\n- Null Hypothesis: H0: ρ = 0\n- Alternate Hypothesis: Ha: ρ ≠ 0\nWHAT THE HYPOTHESES MEAN IN WORDS:\n- Null Hypothesis H0: The population correlation coefficient IS NOT significantly different from zero. There IS NOT a significant linear relationship (correlation) between x and y in the population.\n- Alternate Hypothesis Ha: The population correlation coefficient IS significantly DIFFERENT FROM zero. There IS A SIGNIFICANT LINEAR RELATIONSHIP (correlation) between x and y in the population.\nDRAWING A CONCLUSION:\nThere are two methods of making the decision. The two methods are equivalent and give the same result.\n- Method 1: Using the p-value\n- Method 2: Using a table of critical values\nIn this chapter of this textbook, we will always use a significance level of 5%, α = 0.05\nNOTE\nUsing the p-value method, you could choose any appropriate significance level you want; you are not limited to using α = 0.05. But the table of critical values provided in this textbook assumes that we are using a significance level of 5%, α = 0.05. (If we wanted to use a different significance level than 5% with the critical value method, we would need different tables of critical values that are not provided in this textbook.)\nMETHOD 1: Using a p-value to make a decision\nTo calculate the p-value using LinRegTTEST: On the LinRegTTEST input screen, on the line prompt for β or ρ, highlight \"≠ 0\" The output screen shows the p-value on the line that reads \"p =\". (Most computer statistical software can calculate the p-value.)\nIf the p-value is less than the significance level (α = 0.05):\n- Decision: Reject the null hypothesis.\n- Conclusion: \"There is sufficient evidence to conclude that there is a significant linear relationship between x and y because the correlation coefficient is significantly different from zero.\"\nIf the p-value is NOT less than the significance level (α = 0.05)\n- Decision: DO NOT REJECT the null hypothesis.\n- Conclusion: \"There is insufficient evidence to conclude that there is a significant linear relationship between x and y because the correlation coefficient is NOT significantly different from zero.\"\nCalculation Notes:\n- You will use technology to calculate the p-value. The following describes the calculations to compute the test statistics and the p-value:\n- The p-value is calculated using a t-distribution with n - 2 degrees of freedom.\n- The formula for the test statistic is $t=\\frac{r\\sqrt{n-2}}{\\sqrt{1-{r}^{2}}}$. The value of the test statistic, t, is shown in the computer or calculator output along with the p-value. The test statistic t has the same sign as the correlation coefficient r.\n- The p-value is the combined area in both tails.\nAn alternative way to calculate the p-value (p) given by LinRegTTest is the command 2*tcdf(abs(t),10^99, n-2) in 2nd DISTR.\nTHIRD-EXAM vs FINAL-EXAM EXAMPLE: p-value method\n- Consider the third exam/final exam example.\n- The line of best fit is: ŷ = -173.51 + 4.83x with r = 0.6631 and there are n = 11 data points.\n- Can the regression line be used for prediction? Given a third exam score (x value), can we use the line to predict the final exam score (predicted y value)?\nH0: ρ = 0\nHa: ρ ≠ 0\nα = 0.05\n- The p-value is 0.026 (from LinRegTTest on your calculator or from computer software).\n- The p-value, 0.026, is less than the significance level of α = 0.05.\n- Decision: Reject the Null Hypothesis H0\n- Conclusion: There is sufficient evidence to conclude that there is a significant linear relationship between the third exam score (x) and the final exam score (y) because the correlation coefficient is significantly different from zero.\nBecause r is significant and the scatter plot shows a linear trend, the regression line can be used to predict final exam scores.\nMETHOD 2: Using a table of Critical Values to make a decision\nThe 95% Critical Values of the Sample Correlation Coefficient Table can be used to give you a good idea of whether the computed value of $r$ is significant or not. Compare r to the appropriate critical value in the table. If r is not between the positive and negative critical values, then the correlation coefficient is significant. If r is significant, then you may want to use the line for prediction.\nSuppose you computed r = 0.801 using n = 10 data points. df = n - 2 = 10 - 2 = 8. The critical values associated with df = 8 are -0.632 and + 0.632. If r < negative critical value or r > positive critical value, then r is significant. Since r = 0.801 and 0.801 > 0.632, r is significant and the line may be used for prediction. If you view this example on a number line, it will help you.\n[Image: Horizontal number line with values of -1, -0.632, 0, 0.632, 0.801, and 1. A dashed line above values -0.632, 0, and 0.632 indicates not significant values.]\nr is not significant between -0.632 and +0.632. r = 0.801 > +0.632. Therefore, r is significant.\nTry It\nFor a given line of best fit, you computed that r = 0.6501 using n = 12 data points and the critical value is 0.576. Can the line be used for prediction? Why or why not?\nSuppose you computed r = –0.624 with 14 data points. df = 14 – 2 = 12. The critical values are –0.532 and 0.532. Since –0.624 < –0.532, r is significant and the line can be used for prediction\n[Image: Horizontal number line with values of -0.624, -0.532, and 0.532.]\nr = –0.624 < -0.532. Therefore, r is significant.\nTry It\nFor a given line of best fit, you compute that r = 0.5204 using n = 9 data points, and the critical value is 0.666. Can the line be used for prediction? Why or why not?\nSuppose you computed r = 0.776 and n = 6. df = 6 – 2 = 4. The critical values are –0.811 and 0.811. Since –0.811 < 0.776 < 0.811, r is not significant, and the line should not be used for prediction.\n[Image: Horizontal number line with values -0.924, -0.532, and 0.532.]\n-0.811 < r = 0.776 < 0.811. Therefore, r is not significant.\nTry It\nFor a given line of best fit, you compute that r = –0.7204 using n = 8 data points, and the critical value is = 0.707. Can the line be used for prediction? Why or why not?\nTHIRD-EXAM vs FINAL-EXAM EXAMPLE: critical value method\nConsider the third exam/final exam example. The line of best fit is: ŷ = –173.51+4.83x with r = 0.6631 and there are n = 11 data points. Can the regression line be used for prediction? Given a third-exam score (x value), can we use the line to predict the final exam score (predicted y value)?\n- H0: ρ = 0\n- Ha: ρ ≠ 0\n- α = 0.05\n- Use the \"95% Critical Value\" table for r with df = n – 2 = 11 – 2 = 9.\n- The critical values are –0.602 and +0.602\n- Since 0.6631 > 0.602, r is significant.\n- Decision: Reject the null hypothesis.\n- Conclusion:There is sufficient evidence to conclude that there is a significant linear relationship between the third exam score (x) and the final exam score (y) because the correlation coefficient is significantly different from zero.\nBecause r is significant and the scatter plot shows a linear trend, the regression line can be used to predict final exam scores.\nSuppose you computed the following correlation coefficients. Using the table at the end of the chapter, determine if r is significant and the line of best fit associated with each r can be used to predict a y value. If it helps, draw a number line.\n- r = –0.567 and the sample size, n, is 19. The df = n – 2 = 17. The critical value is –0.456. –0.567 < –0.456 so r is significant.\n- r = 0.708 and the sample size, n, is nine. The df = n – 2 = 7. The critical value is 0.666. 0.708 > 0.666 so r is significant.\n- r = 0.134 and the sample size, n, is 14. The df = 14 – 2 = 12. The critical value is 0.532. 0.134 is between –0.532 and 0.532 so r is not significant.\n- r = 0 and the sample size, n, is five. No matter what the dfs are, r = 0 is between the two critical values so r is not significant.\nTry It\nFor a given line of best fit, you compute that r = 0 using n = 100 data points. Can the line be used for prediction? Why or why not?\nAssumptions in Testing the Significance of the Correlation Coefficient\nTesting the significance of the correlation coefficient requires that certain assumptions about the data are satisfied. The premise of this test is that the data are a sample of observed points taken from a larger population. We have not examined the entire population because it is not possible or feasible to do so. We are examining the sample to draw a conclusion about whether the linear relationship that we see between x and y in the sample data provides strong enough evidence so that we can conclude that there is a linear relationship between x and y in the population.\nThe regression line equation that we calculate from the sample data gives the best-fit line for our particular sample. We want to use this best-fit line for the sample as an estimate of the best-fit line for the population. Examining the scatterplot and testing the significance of the correlation coefficient helps us determine if it is appropriate to do this.\nThe assumptions underlying the test of significance are:\n- The relationship between the variables being correlated should be linear. The data points should fall along an approximate straight-line pattern when plotted as (x, y) data points on a scatter plot.\n- The y values for any particular x value are normally distributed about the line. This implies that there are more y values scattered closer to the line than are scattered farther away. Assumption (1) implies that these normal distributions are centered on the line: the means of these normal distributions of y values lie on the line.\n- The standard deviations of the population y values about the line are equal for each value of x. In other words, each of these normal distributions of y values has the same shape and spread about the line.\n- The residual errors are mutually independent (no pattern).\n- The data are produced from a well-designed, random sample or randomized experiment.\n[Image: The left graph shows three sets of points. Each set falls in a vertical line. The points in each set are normally distributed along the line — they are densely packed in the middle and more spread out at the top and bottom. A downward sloping regression line passes through the mean of each set. The right graph shows the same regression line plotted. A vertical normal curve is shown for each line.]\nThe y values for each x value are normally distributed about the line with the same standard deviation. For each x value, the mean of the y values lies on the regression line. More y values lie near the line than are scattered further away from the line.\nChapter Review\nLinear regression is a procedure for fitting a straight line of the form ŷ = a + bx to data. The conditions for regression are:\n- Linear In the population, there is a linear relationship that models the average value of y for different values of x.\n- Independent The residuals are assumed to be independent.\n- Normal The y values are distributed normally for any value of x.\n- Equal variance The standard deviation of the y values is equal for each x value.\n- Random The data are produced from a well-designed random sample or randomized experiment.\nThe slope b and intercept a of the least-squares line estimate the slope β and intercept α of the population (true) regression line. To estimate the population standard deviation of y, σ, use the standard deviation of the residuals, s. $s=\\sqrt{\\frac{SEE}{n-2}}$. The variable ρ (rho) is the population correlation coefficient. To test the null hypothesis H0: ρ = hypothesized value, use a linear regression t-test. The most common null hypothesis is H0: ρ = 0 which indicates there is no linear relationship between x and y in the population. The TI-83, 83+, 84, 84+ calculator function LinRegTTest can perform this test (STATS TESTS LinRegTTest).\nFormula Review\nLeast Squares Line or Line of Best Fit:\n${y}^{^}=a+bx$\nwhere\na = y-intercept\nb = slope\nStandard deviation of the residuals:\n$s=\\sqrt{\\frac{SEE}{n-2}}.$\nwhere\nSSE = sum of squared errors\nn = the number of data points\nWhen testing the significance of the correlation coefficient, what is the null hypothesis?\nWhen testing the significance of the correlation coefficient, what is the alternative hypothesis?\nHa: ρ ≠ 0\nIf the level of significance is 0.05 and the p-value is 0.04, what conclusion can you draw?"}
{"document_id": "openstax-intro-statistics-m47105", "title": "Linear Regression and Correlation — Prediction", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-5-prediction", "license": "CC-BY-4.0", "text": "Recall the third exam/final exam example.\nWe examined the scatterplot and showed that the correlation coefficient is significant. We found the equation of the best-fit line for the final exam grade as a function of the grade on the third-exam. We can now use the least-squares regression line for prediction.\nSuppose you want to estimate, or predict, the mean final exam score of statistics students who received 73 on the third exam. The exam scores (x-values) range from 65 to 75. Since 73 is between the x-values 65 and 75, substitute x = 73 into the equation. Then:\n$${y}^{^}=-173.51+4.83(73)=179.08$$\nWe predict that statistics students who earn a grade of 73 on the third exam will earn a grade of 179.08 on the final exam, on average.\nRecall the third exam/final exam example.\na. What would you predict the final exam score to be for a student who scored a 66 on the third exam?\nb. What would you predict the final exam score to be for a student who scored a 90 on the third exam?\na. 145.27\nb. The x values in the data are between 65 and 75. Ninety is outside of the domain of the observed x values in the data (independent variable), so you cannot reliably predict the final exam score for this student. (Even though it is possible to enter 90 into the equation for x and calculate a corresponding y value, the y value that you get will not be reliable.) To understand really how unreliable the prediction can be outside of the observed x values observed in the data, make the substitution x = 90 into the equation. ${y}^{^}=–173.51+4.83(90)=261.19$ The final-exam score is predicted to be 261.19. The largest the final-exam score can be is 200.\nNOTE\nThe process of predicting inside of the observed x values observed in the data is called interpolation. The process of predicting outside of the observed x values observed in the data is called extrapolation.\nTry It\nData are collected on the relationship between the number of hours per week practicing a musical instrument and scores on a math test. The line of best fit is as follows:\nŷ = 72.5 + 2.8x What would you predict the score on a math test would be for a student who practices a musical instrument for five hours a week?\nReferences\nData from the Centers for Disease Control and Prevention.\nData from the National Center for agency reporting flu cases and TB Prevention.\nData from the United States Census Bureau. Available online at http://www.census.gov/compendia/statab/cats/transportation/motor_vehicle_accidents_and_fatalities.html\nData from the National Center for Health Statistics.\nChapter Review\nAfter determining the presence of a strong correlation coefficient and calculating the line of best fit, you can use the least squares regression line to make predictions about your data.\nUse the following information to answer the next two exercises. An electronics retailer used regression to find a simple model to predict sales growth in the first quarter of the new year (January through March). The model is good for 90 days, where x is the day. The model can be written as follows:\nŷ = 101.32 + 2.48x where ŷ is in thousands of dollars.\nWhat would you predict the sales to be on day 60?\n\\$250,120\nWhat would you predict the sales to be on day 90?\nUse the following information to answer the next three exercises. A landscaping company is hired to mow the grass for several large properties. The total area of the properties combined is 1,350 acres. The rate at which one person can mow is as follows:\nŷ = 1350 – 1.2x where x is the number of hours and ŷ represents the number of acres left to mow.\nHow many acres will be left to mow after 20 hours of work?\n1,326 acres\nHow many acres will be left to mow after 100 hours of work?\nHow many hours will it take to mow all of the lawns? (When is ŷ = 0?)\n1,125 hours, or when x = 1,125\nTable contains real data for the first two decades of flu cases reporting.\nYear | # flu cases diagnosed | # flu deaths\nPre-1981 | 91 | 29\n1981 | 319 | 121\n1982 | 1,170 | 453\n1983 | 3,076 | 1,482\n1984 | 6,240 | 3,466\n1985 | 11,776 | 6,878\n1986 | 19,032 | 11,987\n1987 | 28,564 | 16,162\n1988 | 35,447 | 20,868\n1989 | 42,674 | 27,591\n1990 | 48,634 | 31,335\n1991 | 59,660 | 36,560\n1992 | 78,530 | 41,055\n1993 | 78,834 | 44,730\n1994 | 71,874 | 49,095\n1995 | 68,505 | 49,456\n1996 | 59,347 | 38,510\n1997 | 47,149 | 20,736\n1998 | 38,393 | 19,005\n1999 | 25,174 | 18,454\n2000 | 25,522 | 17,347\n2001 | 25,643 | 17,402\n2002 | 26,464 | 16,371\nTotal | 802,118 | 489,093\nGraph “year” versus “# flu cases diagnosed” (plot the scatter plot). Do not include pre-1981 data.\nPerform linear regression. What is the linear equation? Round to the nearest whole number.\nAnswers may vary.\nFind the correlation coefficient.\n- r = ________\nSolve.\n- When x = 1985, ŷ = _____\n- When x = 1990, ŷ =_____\n- When x = 1970, ŷ =______ Why doesn’t this answer make sense?\n- When x = 1985, ŷ = 25,52\n- When x = 1990, ŷ = 34,275\n- When x = 1970, ŷ = –725 Why doesn’t this answer make sense? The range of x values was 1981 to 2002; the year 1970 is not in this range. The regression equation does not apply, because predicting for the year 1970 is extrapolation, which requires a different process. Also, a negative number does not make sense in this context, where we are predicting flu cases diagnosed.\nDoes the line seem to fit the data? Why or why not?\nWhat does the correlation imply about the relationship between time (years) and the number of diagnosed flu cases reported in the U.S.?\nAlso, the correlation r = 0.4526. If r is compared to the value in the 95% Critical Values of the Sample Correlation Coefficient Table, because r > 0.423, r is significant, and you would think that the line could be used for prediction. But the scatter plot indicates otherwise.\nPlot the two given points on the following graph. Then, connect the two points to form the regression line.\n[Image: Blank graph with horizontal and vertical axes.]\nObtain the graph on your calculator or computer.\nWrite the equation: ŷ= ____________\n${y}^{^}$ = –3,448,225 + 1750x\nHand draw a smooth curve on the graph that shows the flow of the data.\nDoes the line seem to fit the data? Why or why not?\nThere was an increase in flu cases diagnosed until 1993. From 1993 through 2002, the number of flu cases diagnosed declined each year. It is not appropriate to use a linear regression line to fit to the data.\nDo you think a linear fit is best? Why or why not?\nWhat does the correlation imply about the relationship between time (years) and the number of diagnosed flu cases reported in the U.S.?\nSince there is no linear association between year and # of flu cases diagnosed, it is not appropriate to calculate a linear correlation coefficient. When there is a linear association and it is appropriate to calculate a correlation, we cannot say that one variable “causes” the other variable.\nGraph “year” vs. “# flu cases diagnosed.” Do not include pre-1981. Label both axes with words. Scale both axes.\nEnter your data into your calculator or computer. The pre-1981 data should not be included. Why is that so?\nWrite the linear equation, rounding to four decimal places:\nWe don’t know if the pre-1981 data was collected from a single year. So we don’t have an accurate x value for this figure.\nRegression equation: ŷ (#Flu Cases) = –3,448,225 + 1749.777 (year)\nCoefficients\nIntercept | –3,448,225\nX Variable 1 | 1,749.777\nFind the correlation coefficient.\n- correlation = _____\nHomework\nRecently, the annual number of driver deaths per 100,000 for the selected age groups was as follows:\nAge | Number of Driver Deaths per 100,000\n16–19 | 38\n20–24 | 36\n25–34 | 24\n35–54 | 20\n55–74 | 18\n75+ | 28\n- For each age group, pick the midpoint of the interval for the x value. (For the 75+ group, use 80.)\n- Using “ages” as the independent variable and “Number of driver deaths per 100,000” as the dependent variable, make a scatter plot of the data.\n- Calculate the least squares (best–fit) line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- Predict the number of deaths for ages 40 and 60.\n- Based on the given data, is there a linear relationship between age of a driver and driver fatality rate?\n- What is the slope of the least squares (best-fit) line? Interpret the slope.\n-\nAge | Number of Driver Deaths per 100,000\n16–19 | 38\n20–24 | 36\n25–34 | 24\n35–54 | 20\n55–74 | 18\n75+ | 28\n- Check student’s solution.\n- ŷ = 35.5818045 – 0.19182491x\n- r = –0.57874For four df and alpha = 0.05, the LinRegTTest gives p-value = 0.2288 so we do not reject the null hypothesis; there is not a significant linear relationship between deaths and age.Using the table of critical values for the correlation coefficient, with four df, the critical value is 0.811. The correlation coefficient r = –0.57874 is not less than –0.811, so we do not reject the null hypothesis.\n- There is not a linear relationship between the two variables, as evidenced by a p-value greater than 0.05.\nTable shows the life expectancy for an individual born in the United States in certain years.\nYear of Birth | Life Expectancy\n1930 | 59.7\n1940 | 62.9\n1950 | 70.2\n1965 | 69.7\n1973 | 71.4\n1982 | 74.5\n1987 | 75\n1992 | 75.7\n2010 | 78.7\n- Decide which variable should be the independent variable and which should be the dependent variable.\n- Draw a scatter plot of the ordered pairs.\n- Calculate the least squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- Find the estimated life expectancy for an individual born in 1950 and for one born in 1982.\n- Why aren’t the answers to part e the same as the values in Table that correspond to those years?\n- Use the two points in part e to plot the least squares line on your graph from part b.\n- Based on the data, is there a linear relationship between the year of birth and life expectancy?\n- Are there any outliers in the data?\n- Using the least squares line, find the estimated life expectancy for an individual born in 1850. Does the least squares line give an accurate estimate for that year? Explain why or why not.\n- What is the slope of the least-squares (best-fit) line? Interpret the slope.\nThe maximum discount value of the Entertainment® card for the “Fine Dining” section, Edition ten, for various pages is given in Table\nPage number | Maximum value (\\$)\n4 | 16\n14 | 19\n25 | 15\n32 | 17\n43 | 19\n57 | 15\n72 | 16\n85 | 15\n90 | 17\n- Decide which variable should be the independent variable and which should be the dependent variable.\n- Draw a scatter plot of the ordered pairs.\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- Find the estimated maximum values for the restaurants on page ten and on page 70.\n- Does it appear that the restaurants giving the maximum value are placed in the beginning of the “Fine Dining” section? How did you arrive at your answer?\n- Suppose that there were 200 pages of restaurants. What do you estimate to be the maximum value for a restaurant listed on page 200?\n- Is the least squares line valid for page 200? Why or why not?\n- What is the slope of the least-squares (best-fit) line? Interpret the slope.\n- We wonder if the better discounts appear earlier in the book so we select page as X and discount as Y.\n- Check student’s solution.\n- ŷ = 17.21757 – 0.01412x\n- r = – 0.2752 For seven df and alpha = 0.05, using LinRegTTest p-value = 0.4736 so we do not reject; there is a not a significant linear relationship between page and discount.Using the table of critical values for the correlation coefficient, with seven df, the critical value is 0.666. The correlation coefficient xi = –0.2752 is not less than 0.666 so we do not reject.\n- There is not a significant linear correlation so it appears there is no relationship between the page and the amount of the discount.\nAs the page number increases by one page, the discount decreases by \\$0.01412\nTable gives the gold medal times for every other Summer Olympics for the women’s 100-meter freestyle (swimming).\nYear | Time (seconds)\n1912 | 82.2\n1924 | 72.4\n1932 | 66.8\n1952 | 66.8\n1960 | 61.2\n1968 | 60.0\n1976 | 55.65\n1984 | 55.92\n1992 | 54.64\n2000 | 53.8\n2008 | 53.1\n2016 | 52.7\n- Decide which variable should be the independent variable and which should be the dependent variable.\n- Draw a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least squares line. Put the equation in the form of: ŷ = a + bx.\n- Find the correlation coefficient. Is the decrease in times significant?\n- Find the estimated gold medal time for 1932. Find the estimated time for 1984.\n- Why are the answers from part f different from the chart values?\n- Does it appear that a line is the best way to fit the data? Why or why not?\n- Use the least-squares line to estimate the gold medal time for the next Summer Olympics. Do you think that your answer is reasonable? Why or why not?\nState | # letters in name | Year entered the Union | Rank for entering the Union | Area (square miles)\nAlabama | 7 | 1819 | 22 | 52,423\nColorado | 8 | 1876 | 38 | 104,100\nHawaii | 6 | 1959 | 50 | 10,932\nIowa | 4 | 1846 | 29 | 56,276\nMaryland | 8 | 1788 | 7 | 12,407\nMissouri | 8 | 1821 | 24 | 69,709\nNew Jersey | 9 | 1787 | 3 | 8,722\nOhio | 4 | 1803 | 17 | 44,828\nSouth Carolina | 13 | 1788 | 8 | 32,008\nUtah | 4 | 1896 | 45 | 84,904\nWisconsin | 9 | 1848 | 30 | 65,499\nWe are interested in whether or not the number of letters in a state name depends upon the year the state entered the Union.\n- Decide which variable should be the independent variable and which should be the dependent variable.\n- Draw a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx.\n- Find the correlation coefficient. What does it imply about the significance of the relationship?\n- Find the estimated number of letters (to the nearest integer) a state would have if it entered the Union in 1900. Find the estimated number of letters a state would have if it entered the Union in 1940.\n- Does it appear that a line is the best way to fit the data? Why or why not?\n- Use the least-squares line to estimate the number of letters a new state that enters the Union this year would have. Can the least squares line be used to predict it? Why or why not?\n- Year is the independent or x variable; the number of letters is the dependent or y variable.\n- Check student’s solution.\n- no\n- ŷ = 47.03 – 0.0216x\n- –0.4280 The r-value indicates that there is not a significant correlation between the year the state entered the union and the number of letters in the name.\n- No, the relationship does not appear to be linear; the correlation is not significant."}
{"document_id": "openstax-intro-statistics-m47107", "title": "Linear Regression and Correlation — Outliers", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-6-outliers", "license": "CC-BY-4.0", "text": "In some data sets, there are values (observed data points) called outliers. Outliers are observed data points that are far from the least squares line. They have large \"errors\", where the \"error\" or residual is the vertical distance from the line to the point.\nOutliers need to be examined closely. Sometimes, for some reason or another, they should not be included in the analysis of the data. It is possible that an outlier is a result of erroneous data. Other times, an outlier may hold valuable information about the population under study and should remain included in the data. The key is to examine carefully what causes a data point to be an outlier.\nBesides outliers, a sample may contain one or a few points that are called influential points. Influential points are observed data points that are far from the other observed data points in the horizontal direction. These points may have a big effect on the slope of the regression line. To begin to identify an influential point, you can remove it from the data set and see if the slope of the regression line is changed significantly.\nComputers and many calculators can be used to identify outliers from the data. Computer output for regression analysis will often identify both outliers and influential points so that you can examine them.\nIdentifying Outliers\nWe could guess at outliers by looking at a graph of the scatterplot and best fit-line. However, we would like some guideline as to how far away a point needs to be in order to be considered an outlier. As a rough rule of thumb, we can flag any point that is located further than two standard deviations above or below the best-fit line as an outlier. The standard deviation used is the standard deviation of the residuals or errors.\nWe can do this visually in the scatter plot by drawing an extra pair of lines that are two standard deviations above and below the best-fit line. Any data points that are outside this extra pair of lines are flagged as potential outliers. Or we can do this numerically by calculating each residual and comparing it to twice the standard deviation. On the TI-83, 83+, or 84+, the graphical approach is easier. The graphical procedure is shown first, followed by the numerical calculations. You would generally need to use only one of these methods.\nIn the third exam/final exam example, you can determine if there is an outlier or not. If there is an outlier, as an exercise, delete it and fit the remaining data to a new line. For this example, the new line ought to fit the remaining data better. This means the SSE should be smaller and the correlation coefficient ought to be closer to 1 or –1.\nGraphical Identification of Outliers\nWith the TI-83, 83+, 84+ graphing calculators, it is easy to identify the outliers graphically and visually. If we were to measure the vertical distance from any data point to the corresponding point on the line of best fit and that distance were equal to 2s or more, then we would consider the data point to be \"too far\" from the line of best fit. We need to find and graph the lines that are two standard deviations below and above the regression line. Any points that are outside these two lines are outliers. We will call these lines Y2 and Y3:\nAs we did with the equation of the regression line and the correlation coefficient, we will use technology to calculate this standard deviation for us. Using the LinRegTTest with this data, scroll down through the output screens to find s = 16.412.\nLine Y2 = –173.5 + 4.83x –2(16.4) and line Y3 = –173.5 + 4.83x + 2(16.4)where ŷ = –173.5 + 4.83x is the line of best fit. Y2 and Y3 have the same slope as the line of best fit.\nGraph the scatterplot with the best fit line in equation Y1, then enter the two extra lines as Y2 and Y3 in the \"Y=\"equation editor and press ZOOM 9. You will find that the only data point that is not between lines Y2 and Y3 is the point x = 65, y = 175. On the calculator screen it is just barely outside these lines. The outlier is the student who had a grade of 65 on the third exam and 175 on the final exam; this point is further than two standard deviations away from the best-fit line.\nSometimes a point is so close to the lines used to flag outliers on the graph that it is difficult to tell if the point is between or outside the lines. On a computer, enlarging the graph may help; on a small calculator screen, zooming in may make the graph clearer. Note that when the graph does not give a clear enough picture, you can use the numerical comparisons to identify outliers.\n[Image: The scatter plot of exam scores with a line of best fit.Two yellow dashed lines run parallel to the line of best fit. The dashed lines run above and below the best fit line at equal distances. One data point falls outside the boundary created by the dashed lines—it is an outlier.]\nTry It\nIdentify the potential outlier in the scatter plot. The standard deviation of the residuals or errors is approximately 8.6.\n[Image: Gráfico de dispersión con una línea de regresión lineal y un punto atípico.]\nNumerical Identification of Outliers\nIn Table, the first two columns are the third-exam and final-exam data. The third column shows the predicted ŷ values calculated from the line of best fit: ŷ = –173.5 + 4.83x. The residuals, or errors, have been calculated in the fourth column of the table: observed y value−predicted y value = y − ŷ.\ns is the standard deviation of all the y − ŷ = ε values where n = the total number of data points. If each residual is calculated and squared, and the results are added, we get the SSE. The standard deviation of the residuals is calculated from the SSE as:\n$$s=\\sqrt{\\frac{SSE}{n-2}}$$\nNOTE\nWe divide by (n – 2) because the regression model involves two estimates.\nRather than calculate the value of s ourselves, we can find s using the computer or calculator. For this example, the calculator function LinRegTTest found s = 16.4 as the standard deviation of the residuals\n- 35\n- –17\n- 16\n- –6\n- –19\n- 9\n- 3\n- –1\n- –10\n- –9\n- –1\n.\nx | y | ŷ | y – ŷ\n65 | 175 | 140 | 175 – 140 = 35\n67 | 133 | 150 | 133 – 150= –17\n71 | 185 | 169 | 185 – 169 = 16\n71 | 163 | 169 | 163 – 169 = –6\n66 | 126 | 145 | 126 – 145 = –19\n75 | 198 | 189 | 198 – 189 = 9\n67 | 153 | 150 | 153 – 150 = 3\n70 | 163 | 164 | 163 – 164 = –1\n71 | 159 | 169 | 159 – 169 = –10\n69 | 151 | 160 | 151 – 160 = –9\n69 | 159 | 160 | 159 – 160 = –1\nWe are looking for all data points for which the residual is greater than 2s = 2(16.4) = 32.8 or less than –32.8. Compare these values to the residuals in column four of the table. The only such data point is the student who had a grade of 65 on the third exam and 175 on the final exam; the residual for this student is 35.\nHow does the outlier affect the best fit line?\nNumerically and graphically, we have identified the point (65, 175) as an outlier. We should re-examine the data for this point to see if there are any problems with the data. If there is an error, we should fix the error if possible, or delete the data. If the data is correct, we would leave it in the data set. For this problem, we will suppose that we examined the data and found that this outlier data was an error. Therefore we will continue on and delete the outlier, so that we can explore how it affects the results, as a learning experience.\nCompute a new best-fit line and correlation coefficient using the ten remaining points:\nOn the TI-83, TI-83+, TI-84+ calculators, delete the outlier from L1 and L2. Using the LinRegTTest, the new line of best fit and the correlation coefficient are:\nŷ = –355.19 + 7.39x and r = 0.9121\nThe new line with r = 0.9121 is a stronger correlation than the original (r = 0.6631) because r = 0.9121 is closer to one. This means that the new line is a better fit to the ten remaining data values. The line can better predict the final exam score given the third exam score.\nNumerical Identification of Outliers: Calculating s and Finding Outliers Manually\nIf you do not have the function LinRegTTest, then you can calculate the outlier in the first example by doing the following. First, square each |y – ŷ|\nThe squares are\n- 352\n- 172\n- 162\n- 62\n- 192\n- 92\n- 32\n- 12\n- 102\n- 92\n- 12\nThen, add (sum) all the |y – ŷ| squared terms using the formula\n${{\\Sigma}_{i=1}}^{11}{(|{y}_{i}-{{y}^{^}}_{i}|)}^{2}={{\\Sigma}_{i=1}}^{11}{ε}_{i}{}^{2}$ (Recall that yi – ŷi = εi.)\n= 352 + 172 + 162 + 62 + 192 + 92 + 32 + 12 + 102 + 92 + 12\n= 2440 = SSE. The result, SSE is the Sum of Squared Errors.\nNext, calculate s, the standard deviation of all the y – ŷ = ε values where n = the total number of data points.\nThe calculation is $s=\\sqrt{\\frac{\\text{SSE}}{n–2}}$.\nFor the third exam/final exam problem, $s=\\sqrt{\\frac{2440}{11–2}}=16.47$.\nNext, multiply s by 2: (2)(16.47) = 32.94 32.94 is 2 standard deviations away from the mean of the y – ŷ values.\nIf we were to measure the vertical distance from any data point to the corresponding point on the line of best fit and that distance is at least 2s, then we would consider the data point to be \"too far\" from the line of best fit. We call that point a potential outlier.\nFor the example, if any of the |y – ŷ| values are at least 32.94, the corresponding (x, y) data point is a potential outlier.\nFor the third exam/final exam problem, all the |y – ŷ|'s are less than 31.29 except for the first one which is 35.\n35 > 31.29 That is, |y – ŷ| ≥ (2)(s)\nThe point which corresponds to |y – ŷ| = 35 is (65, 175). Therefore, the data point (65,175) is a potential outlier. For this example, we will delete it. (Remember, we do not always delete an outlier.)\nNOTE\nWhen outliers are deleted, the researcher should either record that data was deleted, and why, or the researcher should provide results both with and without the deleted data. If data is erroneous and the correct values are known (e.g., student one actually scored a 70 instead of a 65), then this correction can be made to the data.\nThe next step is to compute a new best-fit line using the ten remaining points. The new line of best fit and the correlation coefficient are:\nŷ = –355.19 + 7.39x and r = 0.9121\nUsing this new line of best fit (based on the remaining ten data points in the third exam/final exam example), what would a student who receives a 73 on the third exam expect to receive on the final exam? Is this the same as the prediction made using the original line?\nUsing the new line of best fit, ŷ = –355.19 + 7.39(73) = 184.28. A student who scored 73 points on the third exam would expect to earn 184 points on the final exam. The original line predicted ŷ = –173.51 + 4.83(73) = 179.08 so the prediction using the new line with the outlier eliminated differs from the original prediction.\nTry It\nThe data points for the graph from the third exam/final exam example are as follows: (1, 5), (2, 7), (2, 6), (3, 9), (4, 12), (4, 13), (5, 18), (6, 19), (7, 12), and (7, 21). Remove the outlier and recalculate the line of best fit. Find the value of ŷ when x = 10.\nThe Consumer Price Index (CPI) measures the average change over time in the prices paid by urban consumers for consumer goods and services. The CPI affects nearly all Americans because of the many ways it is used. One of its biggest uses is as a measure of inflation. By providing information about price changes in the Nation's economy to government, business, and labor, the CPI helps them to make economic decisions. The President, Congress, and the Federal Reserve Board use the CPI's trends to formulate monetary and fiscal policies. In the following table, x is the year and y is the CPI.\nx | y | x | y\n1915 | 10.1 | 1979 | 72.6\n1926 | 17.7 | 1980 | 82.4\n1935 | 13.7 | 1986 | 109.6\n1940 | 14.7 | 1991 | 130.7\n1947 | 24.1 | 1999 | 166.6\n1952 | 26.5 | 2010 | 219.2\n1964 | 31.0 | 2020 | 258\n1969 | 36.7 | 2023 | 299.2\n1975 | 49.3\n- Draw a scatterplot of the data.\n- Calculate the least squares line. Write the equation in the form ŷ = a + bx.\n- Draw the line on the scatterplot.\n- Find the correlation coefficient. Is it significant?\n- What is the average CPI for the year 1990?\n- See Figure.\n- ŷ = –3204 + 1.662x is the equation of the line of best fit.\n- r = 0.8694\n- The number of data points is n = 14. Use the 95% Critical Values of the Sample Correlation Coefficient table at the end of Chapter 12. n – 2 = 12. The corresponding critical value is 0.532. Since 0.8694 > 0.532, r is significant. ŷ = –3204 + 1.662(1990) = 103.4 CPI\n- Using the calculator LinRegTTest, we find that s = 25.4; graphing the lines Y2 = –3204 + 1.662X – 2(25.4) and Y3 = –3204 + 1.662X + 2(25.4) shows that no data values are outside those lines, identifying no outliers. (Note that the year 1999 was very close to the upper line, but still inside it.)\n[Image: Scatter plot and line of best fit of the consumer price index data, on the y-axis, and year data, on the x-axis.]\nNOTE\nIn the example, notice the pattern of the points compared to the line. Although the correlation coefficient is significant, the pattern in the scatterplot indicates that a curve would be a more appropriate model to use than a line. In this example, a statistician should prefer to use other methods to fit a curve to this data, rather than model the data with the line we found. In addition to doing the calculations, it is always important to look at the scatterplot when deciding whether a linear model is appropriate.\nIf you are interested in seeing more years of data, visit the Bureau of Labor Statistics CPI website ftp://ftp.bls.gov/pub/special.requests/cpi/cpiai.txt; our data is taken from the column entitled \"Annual Avg.\" (third column from the right). For example you could add more current years of data. Try adding the more recent years: 2010: CPI = 219.2; 2020: CPI = 258.0; 2023: CPI = 299.2. See how it affects the model. (Check: ${y}^{⏜}=-5030+2.598x$; $r=0.9067$. Is r significant? Is the fit better with the addition of the new points?)\nTry It\nThe following table shows economic development measured in per capita income PCINC.\nYear | PCINC | Year | PCINC\n1870 | 340 | 1920 | 1050\n1880 | 499 | 1930 | 1170\n1890 | 592 | 1940 | 1364\n1900 | 757 | 1950 | 1836\n1910 | 927 | 1960 | 2132\n- What are the independent and dependent variables?\n- Draw a scatter plot.\n- Use regression to find the line of best fit and the correlation coefficient.\n- Interpret the significance of the correlation coefficient.\n- Is there a linear relationship between the variables?\n- Find the coefficient of determination and interpret it.\n- What is the slope of the regression equation? What does it mean?\n- Use the line of best fit to estimate PCINC for 1900, for 2000.\n- Determine if there are any outliers.\n95% Critical Values of the Sample Correlation Coefficient Table\nDegrees of Freedom: n – 2 | Critical Values: (+ and –)\n1 | 0.997\n2 | 0.950\n3 | 0.878\n4 | 0.811\n5 | 0.754\n6 | 0.707\n7 | 0.666\n8 | 0.632\n9 | 0.602\n10 | 0.576\n11 | 0.555\n12 | 0.532\n13 | 0.514\n14 | 0.497\n15 | 0.482\n16 | 0.468\n17 | 0.456\n18 | 0.444\n19 | 0.433\n20 | 0.423\n21 | 0.413\n22 | 0.404\n23 | 0.396\n24 | 0.388\n25 | 0.381\n26 | 0.374\n27 | 0.367\n28 | 0.361\n29 | 0.355\n30 | 0.349\n40 | 0.304\n50 | 0.273\n60 | 0.250\n70 | 0.232\n80 | 0.217\n90 | 0.205\n100 | 0.195\nReferences\nData from the House Ways and Means Committee, the Health and Human Services Department.\nData from Microsoft Bookshelf.\nData from the United States Department of Labor, the Bureau of Labor Statistics.\nData from the Physician’s Handbook, 1990.\nData from the United States Department of Labor, the Bureau of Labor Statistics.\nChapter Review\nTo determine if a point is an outlier, do one of the following:\n- Input the following equations into the TI 83, 83+,84, 84+:\n$\\begin{matrix} {y}_{1}=a+bx \\\\ {y}_{2}=a+bx+2s \\\\ {y}_{3}=a+bx-2s \\end{matrix}$ where s is the standard deviation of the residuals\nIf any point is above y2 or below y3 then the point is considered to be an outlier.\n- Use the residuals and compare their absolute values to 2s where s is the standard deviation of the residuals. If the absolute value of any residual is greater than or equal to 2s, then the corresponding point is an outlier.\n- Note: The calculator function LinRegTTest (STATS TESTS LinRegTTest) calculates s.\nUse the following information to answer the next four exercises. The scatter plot shows the relationship between hours spent studying and exam scores. The line shown is the calculated line of best fit. The correlation coefficient is 0.69.\n[Image: Gráfico de dispersión con una línea de regresión lineal y un punto atípico.]\nDo there appear to be any outliers?\nYes, there appears to be an outlier at (6, 58).\nA point is removed, and the line of best fit is recalculated. The new correlation coefficient is 0.98. Does the point appear to have been an outlier? Why?\nWhat effect did the potential outlier have on the line of best fit?\nThe potential outlier flattened the slope of the line of best fit because it was below the data set. It made the line of best fit less accurate as a predictor for the data.\nAre you more or less confident in the predictive ability of the new line of best fit?\nThe Sum of Squared Errors for a data set of 18 numbers is 49. What is the standard deviation?\ns = 1.75\nThe Standard Deviation for the Sum of Squared Errors for a data set is 9.8. What is the cutoff for the vertical distance that a point can be from the line of best fit to be considered an outlier?\nHomework\nThe height (sidewalk to roof) of notable tall buildings in America is compared to the number of stories of the building (beginning at street level).\nHeight (in feet) | Stories\n1,050 | 57\n428 | 28\n362 | 26\n529 | 40\n790 | 60\n401 | 22\n380 | 38\n1,454 | 110\n1,127 | 100\n700 | 46\n- Using “stories” as the independent variable and “height” as the dependent variable, make a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables?\n- Calculate the least squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- Find the estimated heights for 32 stories and for 94 stories.\n- Based on the data in Table, is there a linear relationship between the number of stories in tall buildings and the height of the buildings?\n- Are there any outliers in the data? If so, which point(s)?\n- What is the estimated height of a building with six stories? Does the least squares line give an accurate estimate of height? Explain why or why not.\n- Based on the least squares line, adding an extra story is predicted to add about how many feet to a building?\n- What is the slope of the least squares (best-fit) line? Interpret the slope.\nOrnithologists, scientists who study birds, tag sparrow hawks in 13 different colonies to study their population. They gather data for the percent of new sparrow hawks in each colony and the percent of those that have returned from migration.\nPercent return:74; 66; 81; 52; 73; 62; 52; 45; 62; 46; 60; 46; 38 Percent new:5; 6; 8; 11; 12; 15; 16; 17; 18; 18; 19; 20; 20\n- Enter the data into your calculator and make a scatter plot.\n- Use your calculator’s regression function to find the equation of the least-squares regression line. Add this to your scatter plot from part a.\n- Explain in words what the slope and y-intercept of the regression line tell us.\n- How well does the regression line fit the data? Explain your response.\n- Which point has the largest residual? Explain what the residual means in context. Is this point an outlier? An influential point? Explain.\n- An ecologist wants to predict how many birds will join another colony of sparrow hawks to which 70% of the adults from the previous year have returned. What is the prediction?\na. and b. Check student’s solution.\nc. The slope of the regression line is -0.3031 with a y-intercept of 31.93. In context, the y-intercept indicates that when there are no returning sparrow hawks, there will be almost 32% new sparrow hawks, which doesn’t make sense since if there are no returning birds, then the new percentage would have to be 100% (this is an example of why we do not extrapolate). The slope tells us that for each percentage increase in returning birds, the percentage of new birds in the colony decreases by 30.3%.\nd. If we examine r2, we see that only 57.52% of the variation in the percent of new birds is explained by the model and the correlation coefficient, r = –.7584 only indicates a somewhat strong correlation between returning and new percentages.\ne. The ordered pair (66, 6) generates the largest residual of 6.0. This means that when the observed return percentage is 66%, our observed new percentage, 6%, is almost 6% less than the predicted new value of 11.98%. If we remove this data pair, we see only an adjusted slope of -.2789 and an adjusted intercept of 30.9816. In other words, even though this data generates the largest residual, it is not an outlier, nor is the data pair an influential point.\nf. If there are 70% returning birds, we would expect to see y = –.2789(70) + 30.9816 = 0.114 or 11.4% new birds in the colony.\nThe following table shows data on average per capita coffee consumption and heart disease rate in a random sample of 10 countries.\nYearly coffee consumption in liters | 2.5 | 3.9 | 2.9 | 2.4 | 2.9 | 0.8 | 9.1 | 2.7 | 0.8 | 0.7\nDeath from heart diseases | 221 | 167 | 131 | 191 | 220 | 297 | 71 | 172 | 211 | 300\n- Enter the data into your calculator and make a scatter plot.\n- Use your calculator’s regression function to find the equation of the least-squares regression line. Add this to your scatter plot from part a.\n- Explain in words what the slope and y-intercept of the regression line tell us.\n- How well does the regression line fit the data? Explain your response.\n- Which point has the largest residual? Explain what the residual means in context. Is this point an outlier? An influential point? Explain.\n- Do the data provide convincing evidence that there is a linear relationship between the amount of coffee consumed and the heart disease death rate? Carry out an appropriate test at a significance level of 0.05 to help answer this question.\nThe following table consists of one student athlete’s time (in minutes) to swim 2000 yards and the student’s heart rate (beats per minute) after swimming on a random sample of 10 days:\nSwim Time | Heart Rate\n34.12 | 144\n35.72 | 152\n34.72 | 124\n34.05 | 140\n34.13 | 152\n35.73 | 146\n36.17 | 128\n35.57 | 136\n35.37 | 144\n35.57 | 148\n- Enter the data into your calculator and make a scatter plot.\n- Use your calculator’s regression function to find the equation of the least-squares regression line. Add this to your scatter plot from part a.\n- Explain in words what the slope and y-intercept of the regression line tell us.\n- How well does the regression line fit the data? Explain your response.\n- Which point has the largest residual? Explain what the residual means in context. Is this point an outlier? An influential point? Explain.\n- Check student’s solution.\n- Check student’s solution.\n- We have a slope of –1.4946 with a y-intercept of 193.88. The slope, in context, indicates that for each additional minute added to the swim time, the heart rate will decrease by 1.5 beats per minute. If the student is not swimming at all, the y-intercept indicates that his heart rate will be 193.88 beats per minute. While the slope has meaning (the longer it takes to swim 2,000 meters, the less effort the heart puts out), the y-intercept does not make sense. If the athlete is not swimming (resting), then his heart rate should be very low.\n- Since only 1.5% of the heart rate variation is explained by this regression equation, we must conclude that this association is not explained with a linear relationship.\n- The point (34.72, 124) generates the largest residual of –11.82. This means that our observed heart rate is almost 12 beats less than our predicted rate of 136 beats per minute. When this point is removed, the slope becomes –2.953 with the y-intercept changing to 247.1616. While the linear association is still very weak, we see that the removed data pair can be considered an influential point in the sense that the y-intercept becomes more meaningful.\nA researcher is investigating whether population impacts homicide rate. He uses demographic data from Detroit, MI to compare homicide rates and the number of the population that are White men.\nPopulation Size | Homicide rate per 100,000 people\n558,724 | 8.6\n538,584 | 8.9\n519,171 | 8.52\n500,457 | 8.89\n482,418 | 13.07\n465,029 | 14.57\n448,267 | 21.36\n432,109 | 28.03\n416,533 | 31.49\n401,518 | 37.39\n387,046 | 46.26\n373,095 | 47.24\n359,647 | 52.33\n- Use your calculator to construct a scatter plot of the data. What should the independent variable be? Why?\n- Use your calculator’s regression function to find the equation of the least-squares regression line. Add this to your scatter plot.\n- Discuss what the following mean in context.\n- The slope of the regression equation\n- The y-intercept of the regression equation\n- The correlation r\n- The coefficient of determination r2.\n- Do the data provide convincing evidence that there is a linear relationship between population size and homicide rate? Carry out an appropriate test at a significance level of 0.05 to help answer this question.\nSchool | Mid-Career Salary (in thousands) | Yearly Tuition\nPrinceton | 137 | 57,410\nHarvey Mudd | 135 | 62,817\nCalTech | 127 | 60,864\nUS Naval Academy | 122 | 0\nWest Point | 120 | 0\nMIT | 118 | 57,986\nLehigh University | 118 | 59,930\nNYU-Poly | 117 | 58,168\nBabson College | 117 | 56,576\nStanford | 114 | 56,169\nUsing the data to determine the linear-regression line equation with the outliers removed. Is there a linear correlation for the data set with outliers removed? Justify your answer.\nIf we remove the two service academies (the tuition is \\$0.00), we construct a new regression equation of y = 0.002x + 0.309 with a correlation coefficient of 0.533 and a coefficient of determination of 0.284. There is not enough evidence to state that there is a strong linear correlation between tuition costs and future salaries, even when the service academies are removed.\nBring It Together\nThe average number of people in a family that attended college for various years is given in Table.\nYear | Number of Family Members Attending College\n1969 | 4.0\n1973 | 3.6\n1975 | 3.2\n1979 | 3.0\n1983 | 3.0\n1988 | 3.0\n1991 | 2.9\n- Using “year” as the independent variable and “Number of Family Members Attending College” as the dependent variable, draw a scatter plot of the data.\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- Pick two years between 1969 and 1991 and find the estimated number of family members attending college.\n- Based on the data in Table, is there a linear relationship between the year and the average number of family members attending college?\n- Using the least-squares line, estimate the number of family members attending college for 1960 and 1995. Does the least-squares line give an accurate estimate for those years? Explain why or why not.\n- Are there any outliers in the data?\n- What is the estimated average number of family members attending college for 1986? Does the least squares line give an accurate estimate for that year? Explain why or why not.\n- What is the slope of the least squares (best-fit) line? Interpret the slope.\nThe percent of women who are wage and salary workers who are paid hourly rates is given in Table for a 14-year period.\nYear | Percent of workers paid hourly rates\n1 | 61.2\n2 | 60.7\n3 | 61.3\n4 | 61.3\n5 | 61.8\n6 | 61.7\n7 | 61.8\n8 | 62.0\n9 | 62.7\n12 | 62.8\n14 | 62.9\n- Using “year” as the independent variable and “percent” as the dependent variable, draw a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- Find the estimated percents for year 13 and year 10.\n- Based on the data, is there a linear relationship between the year and the percent of female wage and salary earners who are paid hourly rates?\n- Are there any outliers in the data?\n- What is the estimated percent for the year 72? Does the least-squares line give an accurate estimate for that year? Explain why or why not.\n- What is the slope of the least-squares (best-fit) line? Interpret the slope.\n- Check student's solution.\n- yes\n- ŷ = −266.8863+0.1656x\n- 0.9448; Yes\n- 62.8233; 62.3265\n- yes\n- no; (Year 9, 62.7)\n- 72.5937; no\n- slope = 0.1656.As the year increases by one, the percent of workers paid hourly rates tends to increase by 0.1656.\nUse the following information to answer the next two exercises. The cost of a leading liquid laundry detergent in different sizes is given in Table.\nSize (ounces) | Cost (\\$) | Cost per ounce\n16 | 3.99\n32 | 4.99\n64 | 5.99\n200 | 10.99\n- Using “size” as the independent variable and “cost” as the dependent variable, draw a scatter plot.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- If the laundry detergent were sold in a 40-ounce size, find the estimated cost.\n- If the laundry detergent were sold in a 90-ounce size, find the estimated cost.\n- Does it appear that a line is the best way to fit the data? Why or why not?\n- Are there any outliers in the given data?\n- Is the least-squares line valid for predicting what a 300-ounce size of the laundry detergent would you cost? Why or why not?\n- What is the slope of the least-squares (best-fit) line? Interpret the slope.\n- Complete Table for the cost per ounce of the different sizes.\n- Using “size” as the independent variable and “cost per ounce” as the dependent variable, draw a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- If the laundry detergent were sold in a 40-ounce size, find the estimated cost per ounce.\n- If the laundry detergent were sold in a 90-ounce size, find the estimated cost per ounce.\n- Does it appear that a line is the best way to fit the data? Why or why not?\n- Are there any outliers in the the data?\n- Is the least-squares line valid for predicting what a 300-ounce size of the laundry detergent would cost per ounce? Why or why not?\n- What is the slope of the least-squares (best-fit) line? Interpret the slope.\n-\nSize (ounces) | Cost (\\$) | cents/oz\n16 | 3.99 | 24.94\n32 | 4.99 | 15.59\n64 | 5.99 | 9.36\n200 | 10.99 | 5.50\n- Check student’s solution.\n- There is a linear relationship for the sizes 16 through 64, but that linear trend does not continue to the 200-oz size.\n- ŷ = 20.2368 – 0.0819x\n- r = –0.8086\n- 40-oz: 16.96 cents/oz\n- 90-oz: 12.87 cents/oz\n- The relationship is not linear; the least squares line is not appropriate.\n- no outliers\n- No, you would be extrapolating. The 300-oz size is outside the range of x.\n- slope = –0.08194; for each additional ounce in size, the cost per ounce decreases by 0.082 cents.\nAccording to a flyer by a Prudential Insurance Company representative, the costs of approximate probate fees and taxes for selected net taxable estates are as follows:\nNet Taxable Estate (\\$) | Approximate Probate Fees and Taxes (\\$)\n600,000 | 30,000\n750,000 | 92,500\n1,000,000 | 203,000\n1,500,000 | 438,000\n2,000,000 | 688,000\n2,500,000 | 1,037,000\n3,000,000 | 1,350,000\n- Decide which variable should be the independent variable and which should be the dependent variable.\n- Draw a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx.\n- Find the correlation coefficient. Is it significant?\n- Find the estimated total cost for a next taxable estate of \\$1,000,000. Find the cost for \\$2,500,000.\n- Does it appear that a line is the best way to fit the data? Why or why not?\n- Are there any outliers in the data?\n- Based on these results, what would be the probate fees and taxes for an estate that does not have any assets?\n- What is the slope of the least-squares (best-fit) line? Interpret the slope.\nThe following are advertised sale prices of hard disk drives on Amazon’s website for various capacity hard drives.\nHard Disk Drive Capacity (in terabytes) | Sale Price (\\$)\n9 | 147\n20 | 197\n27 | 297\n31 | 447\n35 | 1177\n40 | 2177\n60 | 2497\n- Decide which variable should be the independent variable and which should be the dependent variable.\n- Draw a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- Find the estimated sale price for a 32 terabyte hard drive. Find the cost for a 50 terabyte hard drive.\n- Does it appear that a line is the best way to fit the data? Why or why not?\n- Are there any outliers in the data?\n- What is the slope of the least-squares (best-fit) line? Interpret the slope.\n- Size is x, the independent variable, price is y, the dependent variable.\n- Answers may vary.\n- The relationship does not appear to be linear.\n- ŷ = –745.252 + 54.75569x\n- r = 0.8944, yes it is significant\n- 32-terabyte: \\$1006.93, 50-terabyte: \\$1992.53\n- No, the relationship does not appear to be linear. However, r is significant.\n- no, the 60-terabyte hard drive\n- For each additional terabyte, the price increases by \\$54.76\nTable shows the average heights for American boys in a specific year.\nAge (years) | Height (cm)\nbirth | 50.8\n2 | 83.8\n3 | 91.4\n5 | 106.6\n7 | 119.3\n10 | 137.1\n14 | 157.5\n- Decide which variable should be the independent variable and which should be the dependent variable.\n- Draw a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. Is it significant?\n- Find the estimated average height for a one-year-old. Find the estimated average height for an eleven-year-old.\n- Does it appear that a line is the best way to fit the data? Why or why not?\n- Are there any outliers in the data?\n- Use the least squares line to estimate the average height for a sixty-two-year-old man. Do you think that your answer is reasonable? Why or why not?\n- What is the slope of the least-squares (best-fit) line? Interpret the slope.\nState | # letters in name | Year entered the Union | Ranks for entering the Union | Area (square miles)\nAlabama | 7 | 1819 | 22 | 52,423\nColorado | 8 | 1876 | 38 | 104,100\nHawaii | 6 | 1959 | 50 | 10,932\nIowa | 4 | 1846 | 29 | 56,276\nMaryland | 8 | 1788 | 7 | 12,407\nMissouri | 8 | 1821 | 24 | 69,709\nNew Jersey | 9 | 1787 | 3 | 8,722\nOhio | 4 | 1803 | 17 | 44,828\nSouth Carolina | 13 | 1788 | 8 | 32,008\nUtah | 4 | 1896 | 45 | 84,904\nWisconsin | 9 | 1848 | 30 | 65,499\nWe are interested in whether there is a relationship between the ranking of a state and the area of the state.\n- What are the independent and dependent variables?\n- What do you think the scatter plot will look like? Make a scatter plot of the data.\n- Does it appear from inspection that there is a relationship between the variables? Why or why not?\n- Calculate the least-squares line. Put the equation in the form of: ŷ = a + bx\n- Find the correlation coefficient. What does it imply about the significance of the relationship?\n- Find the estimated areas for Alabama and for Colorado. Are they close to the actual areas?\n- Use the two points in part f to plot the least-squares line on your graph from part b.\n- Does it appear that a line is the best way to fit the data? Why or why not?\n- Are there any outliers?\n- Use the least squares line to estimate the area of a new state that enters the Union. Can the least-squares line be used to predict it? Why or why not?\n- Delete “Hawaii” and substitute “Alaska” for it. Alaska is the forty-ninth, state with an area of 656,424 square miles.\n- Calculate the new least-squares line.\n- Find the estimated area for Alabama. Is it closer to the actual area with this new least-squares line or with the previous one that included Hawaii? Why do you think that’s the case?\n- Do you think that, in general, newer states are larger than the original states?\n- Let rank be the independent variable and area be the dependent variable.\n- Answers may vary.\n- There appears to be a linear relationship, with one outlier.\n- ŷ (area) = 24177.06 + 1010.478x\n- r = 0.50047, r is not significant so there is no relationship between the variables.\n- Alabama: 46407.576 Colorado: 62575.224\n- Alabama estimate is closer than Colorado estimate.\n- If the outlier is removed, there is a linear relationship.\n- There is one outlier (Hawaii).\n- rank 51: 75711.4; no\n-\nAlabama | 7 | 1819 | 22 | 52,423\nColorado | 8 | 1876 | 38 | 104,100\nHawaii | 6 | 1959 | 50 | 10,932\nIowa | 4 | 1846 | 29 | 56,276\nMaryland | 8 | 1788 | 7 | 12,407\nMissouri | 8 | 1821 | 24 | 69,709\nNew Jersey | 9 | 1787 | 3 | 8,722\nOhio | 4 | 1803 | 17 | 44,828\nSouth Carolina | 13 | 1788 | 8 | 32,008\nUtah | 4 | 1896 | 45 | 84,904\nWisconsin | 9 | 1848 | 30 | 65,499\n- ŷ = –87065.3 + 7828.532x\n- Alabama: 85,162.404; the prior estimate was closer. Alaska is an outlier.\n- yes, with the exception of Hawaii\n\nGlossary\nOutlier an observation that does not fit the rest of the data"}
{"document_id": "openstax-intro-statistics-m50283", "title": "Linear Regression and Correlation — Regression (Distance from School)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-7-regression-distance-from-school", "license": "CC-BY-4.0", "text": "Regression (Distance from School)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will calculate and construct the line of best fit between two variables.\n- The student will evaluate the relationship between two variables to determine if that relationship is significant.\nCollect the Data\nUse eight members of your class for the sample. Collect bivariate data (distance an individual lives from school, the cost of supplies for the current term).\n- Complete the table.\nDistance from school | Cost of supplies this term\n- Which variable should be the dependent variable and which should be the independent variable? Why?\n- Graph “distance” vs. “cost.” Plot the points on the graph. Label both axes with words. Scale both axes.\n[Image: Blank graph with vertical and horizontal axes.]\nAnalyze the Data\nEnter your data into your calculator or computer. Write the linear equation, rounding to four decimal places.\n- Calculate the following:\n- a = ______\n- b = ______\n- correlation = ______\n- n = ______\n- equation: ŷ = ______\n- Is the correlation significant? Why or why not? (Answer in one to three complete sentences.)\n- Supply an answer for the following senarios:\n- For a person who lives eight miles from campus, predict the total cost of supplies this term:\n- For a person who lives eighty miles from campus, predict the total cost of supplies this term:\n- Obtain the graph on your calculator or computer. Sketch the regression line.\n[Image: Blank graph with vertical and horizontal axes.]\nDiscussion Questions\n- Answer each question in complete sentences.\n- Does the line seem to fit the data? Why?\n- What does the correlation imply about the relationship between the distance and the cost?\n- Are there any outliers? If so, which point is an outlier?\n- Should the outlier, if it exists, be removed? Why or why not?"}
{"document_id": "openstax-intro-statistics-m50285", "title": "Linear Regression and Correlation — Regression (Textbook Cost)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-8-regression-textbook-cost", "license": "CC-BY-4.0", "text": "Regression (Textbook Cost)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will calculate and construct the line of best fit between two variables.\n- The student will evaluate the relationship between two variables to determine if that relationship is significant.\nCollect the Data\nSurvey ten textbooks. Collect bivariate data (number of pages in a textbook, the cost of the textbook).\n- Complete the table.\nNumber of pages | Cost of textbook\n- Which variable should be the dependent variable and which should be the independent variable? Why?\n- Graph “pages” vs. “cost.” Plot the points on the graph in Analyze the Data. Label both axes with words. Scale both axes.\nAnalyze the Data\nEnter your data into your calculator or computer. Write the linear equation, rounding to four decimal places.\n- Calculate the following:\n- a = ______\n- b = ______\n- correlation = ______\n- n = ______\n- equation: y = ______\n- Is the correlation significant? Why or why not? (Answer in complete sentences.)\n- Supply an answer for the following senarios:\n- For a textbook with 400 pages, predict the cost.\n- For a textbook with 600 pages, predict the cost.\n- Obtain the graph on your calculator or computer. Sketch the regression line.\n[Image: Blank graph with vertical and horizontal axes.]\nDiscussion Questions\n- Answer each question in complete sentences.\n- Does the line seem to fit the data? Why?\n- What does the correlation imply about the relationship between the number of pages and the cost?\n- Are there any outliers? If so, which point(s) is an outlier?\n- Should the outlier, if it exists, be removed? Why or why not?"}
{"document_id": "openstax-intro-statistics-m50287", "title": "Linear Regression and Correlation — Regression (Fuel Efficiency)", "source": "https://openstax.org/books/introductory-statistics-2e/pages/12-9-regression-fuel-efficiency", "license": "CC-BY-4.0", "text": "Regression (Fuel Efficiency)\nClass Time:\nNames:\nStudent Learning Outcomes\n- The student will calculate and construct the line of best fit between two variables.\n- The student will evaluate the relationship between two variables to determine if that relationship is significant.\nCollect the Data\nFind a reputable source that provides information on total fuel efficiency (in miles per gallon) and weight (in pounds) of new model cars with automatic transmissions. We will use this data to determine the relationship, if any, between the fuel efficiency of a car and its weight.\n- Using your random number generator, randomly select 20 cars from the list and record their weights and fuel efficiency into Table.\nWeight | Fuel Efficiency\n- Which variable should be the dependent variable and which should be the independent variable? Why?\n- By hand, do a scatterplot of “weight” vs. “fuel efficiency”. Plot the points on graph paper. Label both axes with words. Scale both axes accurately.\n[Image: Blank graph with vertical and horizontal axes.]\nAnalyze the Data\nEnter your data into your calculator or computer. Write the linear equation, rounding to 4 decimal places.\n- Calculate the following:\n- a = ______\n- b = ______\n- correlation = ______\n- n = ______\n- equation: ŷ = ______\n- Obtain the graph of the regression line on your calculator. Sketch the regression line on the same axes as your scatter plot.\nDiscussion Questions\n- Is the correlation significant? Explain how you determined this in complete sentences.\n- Is the relationship a positive one or a negative one? Explain how you can tell and what this means in terms of weight and fuel efficiency.\n- In one or two complete sentences, what is the practical interpretation of the slope of the least squares line in terms of fuel efficiency and weight?\n- For a car that weighs 4,000 pounds, predict its fuel efficiency. Include units.\n- Can we predict the fuel efficiency of a car that weighs 10,000 pounds using the least squares line? Explain why or why not.\n- Answer each question in complete sentences.\n- Does the line seem to fit the data? Why or why not?\n- What does the correlation imply about the relationship between fuel efficiency and weight of a car? Is this what you expected?\n- Are there any outliers? If so, which point is an outlier?"}
{"document_id": "openstax-intro-statistics-m47124", "title": "F Distribution and One-Way ANOVA — One-Way ANOVA", "source": "https://openstax.org/books/introductory-statistics-2e/pages/13-1-one-way-anova", "license": "CC-BY-4.0", "text": "The purpose of a one-way ANOVA test is to determine the existence of a statistically significant difference among several group means. The test actually uses variances to help determine if the means are equal or not. In order to perform a one-way ANOVA test, there are five basic assumptions to be fulfilled:\n- Each population from which a sample is taken is assumed to be normal.\n- All samples are randomly selected and independent.\n- The populations are assumed to have equal standard deviations (or variances).\n- The factor is a categorical variable.\n- The response is a numerical variable.\nThe Null and Alternative Hypotheses\nThe null hypothesis is simply that all the group population means are the same. The alternative hypothesis is that at least one pair of means is different. For example, if there are k groups:\nH0: μ1 = μ2 = μ3 =... = μk\nHa: At least two of the group means μ1, μ2, μ3,..., μk are not equal. That is, μi ≠ μj for some i ≠ j.\nThe graphs, a set of box plots representing the distribution of values with the group means indicated by a horizontal line through the box, help in the understanding of the hypothesis test. In the first graph (blue box plots), H0: μ1 = μ2 = μ3 and the three populations have the same distribution if the null hypothesis is true. The variance of the combined data is approximately the same as the variance of each of the populations.\nIf the null hypothesis is false, then the variance of the combined data is larger which is caused by the different means as shown in the second graph (green box plots).\n[Image: The first illustration shows three vertical boxplots with equal means. The second illustration shows three vertical boxplots with unequal means.]\n(a) H0 is true. All means are the same; the differences are due to random variation. (b) H0 is not true. The means are not all the same; the differences are too large to be due to random variation.\nChapter Review\nAnalysis of variance extends the comparison of two groups to several, each a level of a categorical variable (factor). Samples from each group are independent, and must be randomly selected from normal populations with equal variances. We test the null hypothesis of equal means of the response in every group versus the alternative hypothesis of one or more group means being different from the others. A one-way ANOVA hypothesis test determines if several population means are equal. The distribution for the test is the F distribution with two different degrees of freedom.\nAssumptions:\n- Each population from which a sample is taken is assumed to be normal.\n- All samples are randomly selected and independent.\n- The populations are assumed to have equal standard deviations (or variances).\nUse the following information to answer the next five exercises. There are five basic assumptions that must be fulfilled in order to perform a one-way ANOVA test. What are they?\nWrite one assumption.\nEach population from which a sample is taken is assumed to be normal.\nWrite another assumption.\nWrite a third assumption.\nThe populations are assumed to have equal standard deviations (or variances).\nWrite a fourth assumption.\nWrite the final assumption.\nThe response is a numerical value.\nState the null hypothesis for a one-way ANOVA test if there are four groups.\nState the alternative hypothesis for a one-way ANOVA test if there are three groups.\nHa: At least two of the group means μ1, μ2, μ3 are not equal.\nWhen do you use an ANOVA test?\nHomework\nThree different traffic routes are tested for mean driving time. The entries in the Table are the driving times in minutes on the three different routes.\nRoute 1 | Route 2 | Route 3\n30 | 27 | 16\n32 | 29 | 41\n27 | 28 | 22\n35 | 36 | 31\nState SSbetween, SSwithin, and the F statistic.\nSSbetween = 26 SSwithin = 441 F = 0.2653\nSuppose a group is interested in determining whether teenagers obtain their drivers licenses at approximately the same average age across the country. Suppose that the following data are randomly collected from five teenagers in each region of the country. The numbers represent the age at which teenagers obtained their drivers licenses.\nNortheast | South | West | Central | East\n16.3 | 16.9 | 16.4 | 16.2 | 17.1\n16.1 | 16.5 | 16.5 | 16.6 | 17.2\n16.4 | 16.4 | 16.6 | 16.5 | 16.6\n16.5 | 16.2 | 16.1 | 16.4 | 16.8\n$\\overline{x}=$\n${s}^{2}=$\nState the hypotheses.\nH0: ____________\nHa: ____________\n\nGlossary\nAnalysis of Variance also referred to as ANOVA, is a method of testing whether or not the means of three or more populations are equal. The method is applicable if:\n- all populations of interest are normally distributed.\n- the populations have equal standard deviations.\n- samples (not necessarily of the same size) are randomly and independently selected from each population.\nThe test statistic for analysis of variance is the F-ratio.\nOne-Way ANOVA a method of testing whether or not the means of three or more populations are equal; the method is applicable if:\n- all populations of interest are normally distributed.\n- the populations have equal standard deviations.\n- samples (not necessarily of the same size) are randomly and independently selected from each population.\n- there is one independent variable and one dependent variable.\nThe test statistic for analysis of variance is the F-ratio.\nVariance mean of the squared deviations from the mean; the square of the standard deviation. For a set of data, a deviation can be represented as x – $\\overline{x}$ where x is a value of the data and $\\overline{x}$ is the sample mean. The sample variance is equal to the sum of the squares of the deviations divided by the difference of the sample size and one."}
{"document_id": "openstax-intro-statistics-m47128", "title": "F Distribution and One-Way ANOVA — The F Distribution and the F-Ratio", "source": "https://openstax.org/books/introductory-statistics-2e/pages/13-2-the-f-distribution-and-the-f-ratio", "license": "CC-BY-4.0", "text": "The distribution used for the hypothesis test is a new one. It is called the F distribution, named after Sir Ronald Fisher, an English statistician. The F statistic is a ratio (a fraction). There are two sets of degrees of freedom; one for the numerator and one for the denominator.\nFor example, if F follows an F distribution and the number of degrees of freedom for the numerator is four, and the number of degrees of freedom for the denominator is ten, then F ~ F4,10.\nNOTE\nThe F distribution is derived from the Student's t-distribution. The values of the F distribution are squares of the corresponding values of the t-distribution. One-Way ANOVA expands the t-test for comparing more than two groups. The scope of that derivation is beyond the level of this course. It is preferable to use ANOVA when there are more than two groups instead of performing pairwise t-tests because performing multiple tests introduces the likelihood of making a Type 1 error.\nTo calculate the F ratio, two estimates of the variance are made.\n- Variance between samples: An estimate of σ2 that is the variance of the sample means multiplied by n (when the sample sizes are the same.). If the samples are different sizes, the variance between samples is weighted to account for the different sample sizes. The variance is also called variation due to treatment or explained variation.\n- Variance within samples: An estimate of σ2 that is the average of the sample variances (also known as a pooled variance). When the sample sizes are different, the variance within samples is weighted. The variance is also called the variation due to error or unexplained variation.\n- SSbetween = the sum of squares that represents the variation among the different samples\n- SSwithin = the sum of squares that represents the variation within samples that is due to chance.\nTo find a \"sum of squares\" means to add together squared quantities that, in some cases, may be weighted. We used sum of squares to calculate the sample variance and the sample standard deviation in Descriptive Statistics.\nMS means \"mean square.\" MSbetween is the variance between groups, and MSwithin is the variance within groups.\nCalculation of Sum of Squares and Mean Square\n- k = the number of different groups\n- nj = the size of the jth group\n- sj = the sum of the values in the jth group\n- n = total number of all the values combined (total sample size: ∑nj)\n- x = one value: ∑x = ∑sj\n- Sum of squares of all values from every group combined: ∑x2\n- Total sum of squares: $S{S}_{\\text{total}}=\\sum{x}^{2}\\frac{{(\\sum x)}^{2}}{n}$\n- Explained variation: sum of squares representing variation among the different samples: SSbetween = $\\sum[\\frac{{({s}_{j})}^{2}}{{n}_{j}}]-\\frac{{(\\sum{s}_{j})}^{2}}{n}$\n- Unexplained variation: sum of squares representing variation within samples due to chance: $S{S}_{\\text{within}}=S{S}_{\\text{total}}–S{S}_{\\text{between}}$\n- df's for different groups (df's for the numerator): $d{f}_{\\text{between}}$ = k – 1\n- Equation for errors within samples (df's for the denominator): dfwithin = n – k\n- Mean square (variance estimate) explained by the different groups: MSbetween = $\\frac{S{S}_{\\text{between}}}{d{f}_{\\text{between}}}$\n- Mean square (variance estimate) that is due to chance (unexplained): MSwithin = $\\frac{S{S}_{\\text{within}}}{d{f}_{\\text{within}}}$\nMSbetween and MSwithin can be written as follows:\n- $M{S}_{\\text{between}}=\\frac{S{S}_{\\text{between}}}{d{f}_{\\text{between}}}=\\frac{S{S}_{\\text{between}}}{k-1}$\n- $M{S}_{within}=\\frac{S{S}_{within}}{d{f}_{within}}=\\frac{S{S}_{within}}{n-k}$\nThe one-way ANOVA test depends on the fact that MSbetween can be influenced by population differences among means of the several groups. Since MSwithin compares values of each group to its own group mean, the fact that group means might be different does not affect MSwithin.\nThe null hypothesis says that all groups are samples from populations having the same normal distribution. The alternate hypothesis says that at least two of the sample groups come from populations with different normal distributions. If the null hypothesis is true, MSbetween and MSwithin should both estimate the same value.\nNOTE\nThe null hypothesis says that all the group population means are equal. The hypothesis of equal means implies that the populations have the same normal distribution, because it is assumed that the populations are normal and that they have equal variances.\nF-Ratio or F Statistic\n$F=\\frac{M{S}_{\\text{between}}}{M{S}_{\\text{within}}}$\nIf MSbetween and MSwithin estimate the same value (following the belief that H0 is true), then the F-ratio should be approximately equal to one. Mostly, just sampling errors would contribute to variations away from one. As it turns out, MSbetween consists of the population variance plus a variance produced from the differences between the samples. MSwithin is an estimate of the population variance. Since variances are always positive, if the null hypothesis is false, MSbetween will generally be larger than MSwithin.Then the F-ratio will be larger than one. However, if the population effect is small, it is not unlikely that MSwithin will be larger in a given sample.\nThe foregoing calculations were done with groups of different sizes. If the groups are the same size, the calculations simplify somewhat and the F-ratio can be written as:\nF-Ratio Formula when the groups are the same size\n$F=\\frac{n\\cdot{s}_{\\overline{x}}{}^{2}}{{s}^{2}{}_{\\text{pooled}}}$\nwhere...\n- n = the sample size\n- dfnumerator = k – 1\n- dfdenominator = n – k\n- s2 pooled = the mean of the sample variances (pooled variance)\n- ${s}_{\\overline{x}}{}^{2}$ = the variance of the sample means\nData are typically put into a table for easy viewing. One-Way ANOVA results are often displayed in this manner by computer software.\nSource of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | F\nFactor (Between) | SS(Factor) | k – 1 | MS(Factor) = SS(Factor)/(k – 1) | F = MS(Factor)/MS(Error)\nError (Within) | SS(Error) | n – k | MS(Error) = SS(Error)/(n – k)\nTotal | SS(Total) | n – 1\nThree different diet plans are to be tested for mean weight loss. The entries in the table are the weight losses for the different plans. The one-way ANOVA results are shown in The F Distribution and the F-Ratio.\nPlan 1: n1 = 4 | Plan 2: n2 = 3 | Plan 3: n3 = 3\n5 | 3.5 | 8\n4.5 | 7 | 4\n4 | 3.5\n3 | 4.5\ns1 = 16.5, s2 =15, s3 = 15.5\nFollowing are the calculations needed to fill in the one-way ANOVA table. The table is used to conduct a hypothesis test.\n$$SS(between)=\\sum[\\frac{{({s}_{j})}^{2}}{{n}_{j}}]-\\frac{{(\\sum{s}_{j})}^{2}}{n}$$\n$$=\\frac{{s}_{1}^{2}}{4}+\\frac{{s}_{2}^{2}}{3}+\\frac{{s}_{3}^{2}}{3}-\\frac{{({s}_{1}+{s}_{2}+{s}_{3})}^{2}}{10}$$\nwhere n1 = 4, n2 = 3, n3 = 3 and n = n1 + n2 + n3 = 10\n$$=\\frac{{(16.5)}^{2}}{4}+\\frac{{(15)}^{2}}{3}+\\frac{{(15.5)}^{2}}{3}-\\frac{{(16.5+15+15.5)}^{2}}{10}$$\n$$SS(between)=2.2458$$\n$$S(total)=\\sum{x}^{2}-\\frac{{(\\sum x)}^{2}}{n}$$\n$$=({5}^{2}+{4.5}^{2}+{4}^{2}+{3}^{2}+{3.5}^{2}+{7}^{2}+{4.5}^{2}+{8}^{2}+{4}^{2}+{3.5}^{2})$$\n$$-\\frac{{(5+4.5+4+3+3.5+7+4.5+8+4+3.5)}^{2}}{10}$$\n$$=244-\\frac{{47}^{2}}{10}=244-220.9$$\n$$SS(total)=23.1$$\n$$SS(within)=SS(total)-SS(between)$$\n$$=23.1-2.2458$$\n$$SS(within)=20.8542$$\nOne-Way ANOVA Table: The formulas for SS(Total), SS(Factor) = SS(Between) and SS(Error) = SS(Within) as shown previously. The same information is provided by the TI calculator hypothesis test function ANOVA in STAT TESTS (syntax is ANOVA(L1, L2, L3) where L1, L2, L3 have the data from Plan 1, Plan 2, Plan 3 respectively).\nSource of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | F\nFactor (Between) | SS(Factor) = SS(Between) = 2.2458 | k – 1 = 3 groups – 1 = 2 | MS(Factor) = SS(Factor)/(k – 1) = 2.2458/2 = 1.1229 | F = MS(Factor)/MS(Error) = 1.1229/2.9792 = 0.3769\nError (Within) | SS(Error) = SS(Within) = 20.8542 | n – k = 10 total data – 3 groups = 7 | MS(Error) = SS(Error)/(n – k) = 20.8542/7 = 2.9792\nTotal | SS(Total) = 2.2458 + 20.8542 = 23.1 | n – 1 = 10 total data – 1 = 9\nTry It\nAs part of an experiment to see how different types of soil cover would affect slicing tomato production, Marist College students grew tomato plants under different soil cover conditions. Groups of three plants each had one of the following treatments\n- bare soil\n- a commercial ground cover\n- black plastic\n- straw\n- compost\nAll plants grew under the same conditions and were the same variety. Students recorded the weight (in grams) of tomatoes produced by each of the n = 15 plants:\nBare: n1 = 3 | Ground Cover: n2 = 3 | Plastic: n3 = 3 | Straw: n4 = 3 | Compost: n5 = 3\n2,625 | 5,348 | 6,583 | 7,285 | 6,277\n2,997 | 5,682 | 8,560 | 6,897 | 7,818\n4,915 | 5,482 | 3,830 | 9,230 | 8,677\nCreate the one-way ANOVA table.\nThe one-way ANOVA hypothesis test is always right-tailed because larger F-values are way out in the right tail of the F-distribution curve and tend to make us reject H0.\nNotation\nThe notation for the F distribution is F ~ Fdf(num),df(denom)\nwhere df(num) = dfbetween and df(denom) = dfwithin\nThe mean for the F distribution is $\\mu=\\frac{df(denom)}{df(denom)–2}$\nReferences\nTomato Data, Marist College School of Science (unpublished student research)\nChapter Review\nAnalysis of variance compares the means of a response variable for several groups. ANOVA compares the variation within each group to the variation of the mean of each group. The ratio of these two is the F statistic from an F distribution with (number of groups – 1) as the numerator degrees of freedom and (number of observations – number of groups) as the denominator degrees of freedom. These statistics are summarized in the ANOVA table.\nFormula Review\n$S{S}_{\\text{between}}={\\sum}^{\\text{​}}[\\frac{{({s}_{j})}^{2}}{{n}_{j}}]-\\frac{{({\\sum}^{\\text{​}}{s}_{j})}^{2}}{n}$\n$S{S}_{\\text{total}}={\\sum}^{\\text{​}}{x}^{2}-\\frac{{({\\sum}^{\\text{​}}x)}^{2}}{n}$\n$S{S}_{\\text{within}}=S{S}_{\\text{total}}-S{S}_{\\text{between}}$\ndfbetween = df(num) = k – 1\ndfwithin = df(denom) = n – k\nMSbetween = $\\frac{S{S}_{\\text{between}}}{d{f}_{\\text{between}}}$\nMSwithin = $\\frac{S{S}_{\\text{within}}}{d{f}_{\\text{within}}}$\nF = $\\frac{M{S}_{\\text{between}}}{M{S}_{\\text{within}}}$\nF ratio when the groups are the same size: F = $\\frac{n{s}_{\\overline{x}}{}^{2}}{{s}^{\\text{2}}{}_{pooled}}$\nMean of the F distribution: µ = $\\frac{df(num)}{df(denom)-2}$\nwhere:\n- k = the number of groups\n- nj = the size of the jth group\n- sj = the sum of the values in the jth group\n- n = the total number of all values (observations) combined\n- x = one value (one observation) from the data\n- ${s}_{\\overline{x}}{}^{2}$ = the variance of the sample means\n- ${s}^{2}{}_{pooled}$ = the mean of the sample variances (pooled variance)\nUse the following information to answer the next eight exercises. Groups of men from three different areas of the country are to be tested for mean weight. The entries in Table are the weights for the different groups.\nGroup 1 | Group 2 | Group 3\n216 | 202 | 170\n198 | 213 | 165\n240 | 284 | 182\n187 | 228 | 197\n176 | 210 | 201\nWhat is the Sum of Squares Factor?\n4,939.2\nWhat is the Sum of Squares Error?\nWhat is the df for the numerator?\n2\nWhat is the df for the denominator?\nWhat is the Mean Square Factor?\n2,469.6\nWhat is the Mean Square Error?\nWhat is the F statistic?\n3.7416\nUse the following information to answer the next eight exercises. Girls from four different soccer teams are to be tested for mean goals scored per game. The entries in the table are the goals per game for the different teams. The one-way ANOVA results are shown in The F Distribution and the F-Ratio.\nTeam 1 | Team 2 | Team 3 | Team 4\n1 | 2 | 0 | 3\n2 | 3 | 1 | 4\n0 | 2 | 1 | 4\n3 | 4 | 0 | 3\n2 | 4 | 0 | 2\nWhat is SSbetween?\nWhat is the df for the numerator?\n3\nWhat is MSbetween?\nWhat is SSwithin?\n13.2\nWhat is the df for the denominator?\nWhat is MSwithin?\n0.825\nWhat is the F statistic?\nJudging by the F statistic, do you think it is likely or unlikely that you will reject the null hypothesis?\nBecause a one-way ANOVA test is always right-tailed, a high F statistic corresponds to a low p-value, so it is likely that we will reject the null hypothesis.\nHomework\nUse the following information to answer the next three exercises. Suppose a group is interested in determining whether teenagers obtain their drivers licenses at approximately the same average age across the country. Suppose that the following data are randomly collected from five teenagers in each region of the country. The numbers represent the age at which teenagers obtained their drivers licenses.\nNortheast | South | West | Central | East\n16.3 | 16.9 | 16.4 | 16.2 | 17.1\n16.1 | 16.5 | 16.5 | 16.6 | 17.2\n16.4 | 16.4 | 16.6 | 16.5 | 16.6\n16.5 | 16.2 | 16.1 | 16.4 | 16.8\n$\\overline{x}=$\n${s}^{2}=$\nH0: µ1 = µ2 = µ3 = µ4 = µ5\nHα: At least any two of the group means µ1, µ2, …, µ5 are not equal.\ndegrees of freedom – numerator: df(num) = _________\ndegrees of freedom – denominator: df(denom) = ________\ndf(denom) = 15\nF statistic = ________"}
{"document_id": "openstax-intro-statistics-m47119", "title": "F Distribution and One-Way ANOVA — Facts About the F Distribution", "source": "https://openstax.org/books/introductory-statistics-2e/pages/13-3-facts-about-the-f-distribution", "license": "CC-BY-4.0", "text": "Here are some facts about the F distribution.\n- The curve is not symmetrical but skewed to the right.\n- There is a different curve for each set of dfs.\n- The F statistic is greater than or equal to zero.\n- As the degrees of freedom for the numerator and for the denominator get larger, the curve approximates the normal.\n- Other uses for the F distribution include comparing two variances and two-way Analysis of Variance. Two-Way Analysis is beyond the scope of this chapter.\n[Image: This graph has an unmarked Y axis and then an X axis that ranges from 0.00 to 4.00. It has three plot lines. The plot line labelled F subscript 1, 5 starts near the top of the Y axis at the extreme left of the graph and drops quickly to near the bottom at 0.50, at which point is slowly decreases in a curved fashion to the 4.00 mark on the X axis. The plot line labelled F subscript 100, 100 remains at Y = 0 for much of its length, except for a distinct peak between 0.50 and 1.50. The peak is a smooth curve that reaches about half way up the Y axis at its peak. The plot line labeled F subscript 5, 10 increases slightly as it progresses from 0.00 to 0.50, after which it peaks and slowly decreases down the remainder of the X axis. The peak only reaches about one fifth up the height of the Y axis.]\nLet’s return to the slicing tomato exercise in The F Distribution and the F-Ratio. The means of the tomato yields under the five mulching conditions are represented by μ1, μ2, μ3, μ4, μ5. We will conduct a hypothesis test to determine if all means are the same or at least one is different. Using a significance level of 5%, test the null hypothesis that there is no difference in mean yields among the five groups against the alternative hypothesis that at least one mean is different from the rest.\nThe null and alternative hypotheses are:\nH0: μ1 = μ2 = μ3 = μ4 = μ5\nHa: μi ≠ μj some i ≠ j\nThe one-way ANOVA results are shown in Table\nSource of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | F\nFactor (Between) | 36,648,561 | 5 – 1 = 4 | $\\frac{\\text{36,648,561}}{\\text{4}}\\text{= 9,162,140}$ | $\\frac{\\text{9,162,140}}{\\text{2,044,672}\\text{.6}}\\text{= 4}\\text{.4810}$\nError (Within) | 20,446,726 | 15 – 5 = 10 | $\\frac{\\text{20,446,726}}{\\text{10}}\\text{= 2,044,672}\\text{.6}$\nTotal | 57,095,287 | 15 – 1 = 14\nDistribution for the test: F4,10\ndf(num) = 5 – 1 = 4\ndf(denom) = 15 – 5 = 10\nTest statistic: F = 4.4810\n[Image: This graph shows a nonsymmetrical F distribution curve. The horizontal axis extends from 0 - 5, and the vertical axis ranges from 0 - 0.7. The curve is strongly skewed to the right.]\nProbability Statement: p-value = P(F > 4.481) = 0.0248.\nCompare α and the p-value: α = 0.05, p-value = 0.0248\nMake a decision: Since α > p-value, we reject H0.\nConclusion: At the 5% significance level, we have reasonably strong evidence that differences in mean yields for slicing tomato plants grown under different mulching conditions are unlikely to be due to chance alone. We may conclude that at least some of mulches led to different mean yields.\nTo find these results on the calculator:\nPress STAT. Press 1:EDIT. Put the data into the lists L1, L2, L3, L4, L5.\nPress STAT, and arrow over to TESTS, and arrow down to ANOVA. Press ENTER, and then enter L1, L2, L3, L4, L5). Press ENTER. You will see that the values in the foregoing ANOVA table are easily produced by the calculator, including the test statistic and the p-value of the test.\nThe calculator displays: F = 4.4810 p = 0.0248 (p-value) Factor df = 4 SS = 36648560.9 MS = 9162140.23 Error df = 10 SS = 20446726 MS = 2044672.6\nTry It\nThere are multiple variants of the virus that causes COVID-19. The length of hospital stays for patients afflicted with various strains of COVID-19 is shown in Table.\nDelta Strain | Omicron Strain | Alpha Strain | Gamma Strain | Beta Strain\n13.9 | 11.7 | 18.2 | 16.9 | 9.3\n14.9 | 15.1 | 14.6 | 12.8 | 15.8\n16.8 | 9.9 | 10.1 | 11.2 | 16.4\nTest whether the mean length of hospital stay is the same or different for the various strains of COVID-19. Construct the ANOVA table, find the p-value, and state your conclusion. Use a 5% significance level.\nWe test for equality of mean length of hospital stay:\n${H}_{0}:{\\mu}_{1}={\\mu}_{2}={\\mu}_{3}={\\mu}_{4}={\\mu}_{5}$\n${H}_{a}:{\\mu}_{i}\\ne{\\mu}_{j},somei\\ne j$\nThe one-way ANOVA table results are shown:\nSource of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | F | P-value\nFactor (Between) | 14.056 | 5 – 1 = 4 | 3.514 | 0.353095 | 0.8362\nError (Within) | 99.52 | 15 – 5 = 10 | 9.952\nTotal | 113.576 | 15 – 1 = 14\nDistribution for the test: $F4,10$\nProbability Statement: $p-value=P(F>0.3531)=0.8362$\nCompare  and the p-value: $\\alpha=0.05,p-value=08362,\\alpha>p-value$\nMake a decision: Since  > p-value, we do not reject ${H}_{0}$.\nConclusion: At the 5% significance level, there is insufficient evidence from these data that different strains of COVID-19 virus will cause a significant difference in the length of a hospital stay.\nFour sororities took a random sample of sisters regarding their grade means for the past term. The results are shown in Table.\nSorority 1 | Sorority 2 | Sorority 3 | Sorority 4\n2.17 | 2.63 | 2.63 | 3.79\n1.85 | 1.77 | 3.78 | 3.45\n2.83 | 3.25 | 4.00 | 3.08\n1.69 | 1.86 | 2.55 | 2.26\n3.33 | 2.21 | 2.45 | 3.18\nUsing a significance level of 1%, is there a difference in mean grades among the sororities?\nLet μ1, μ2, μ3, μ4 be the population means of the sororities. Remember that the null hypothesis claims that the sorority groups are from the same normal distribution. The alternate hypothesis says that at least two of the sorority groups come from populations with different normal distributions. Notice that the four sample sizes are each five.\nNOTE\nThis is an example of a balanced design, because each factor (i.e., sorority) has the same number of observations.\nH0: μ1 = μ2 = μ3 = μ4\nHa: Not all of the means μ1, μ2, μ3, μ4 are equal.\nDistribution for the test: F3,16\nwhere k = 4 groups and n = 20 samples in total\ndf(num)= k – 1 = 4 – 1 = 3\ndf(denom) = n – k = 20 – 4 = 16\nCalculate the test statistic: F = 2.23\nGraph:\n[Image: This graph shows a nonsymmetrical F distribution curve with values of 0 and 2.23 on the x-axis representing the test statistic of sorority grade averages. The curve is slightly skewed to the right, but is approximately normal. A vertical upward line extends from 2.23 to the curve and the area to the right of this is shaded to represent the p-value.]\nProbability statement: p-value = P(F > 2.23) = 0.1241\nCompare α and the p-value: α = 0.01 p-value = 0.1241 α < p-value\nMake a decision: Since α < p-value, you cannot reject H0.\nConclusion: There is not sufficient evidence to conclude that there is a difference among the mean grades for the sororities.\nPut the data into lists L1, L2, L3, and L4. Press STAT and arrow over to TESTS. Arrow down to F:ANOVA. Press ENTER and Enter (L1,L2,L3,L4).\nThe calculator displays the F statistic, the p-value and the values for the one-way ANOVA table: F = 2.2303 p = 0.1241 (p-value) Factor df = 3 SS = 2.88732 MS = 0.96244 Error df = 16 SS = 6.9044 MS = 0.431525\nTry It\nFour sports teams took a random sample of players regarding their GPAs for the last year. The results are shown in Table.\nBasketball | Baseball | Hockey | Lacrosse\n3.6 | 2.1 | 4.0 | 2.0\n2.9 | 2.6 | 2.0 | 3.6\n2.5 | 3.9 | 2.6 | 3.9\n3.3 | 3.1 | 3.2 | 2.7\n3.8 | 3.4 | 3.2 | 2.5\nUse a significance level of 5%, and determine if there is a difference in GPA among the teams.\nA fourth grade class is studying the environment. One of the assignments is to grow bean plants in different soils. Tommy chose to grow his bean plants in soil found outside his classroom mixed with dryer lint. Tara chose to grow her bean plants in potting soil bought at the local nursery. Nick chose to grow his bean plants in soil from his mother's garden. No chemicals were used on the plants, only water. They were grown inside the classroom next to a large window. Each child grew five plants. At the end of the growing period, each plant was measured, producing the data (in inches) in Table.\nTommy's Plants | Tara's Plants | Nick's Plants\n24 | 25 | 23\n21 | 31 | 27\n23 | 23 | 22\n30 | 20 | 30\n23 | 28 | 20\nDoes it appear that the three media in which the bean plants were grown produce the same mean height? Test at a 3% level of significance.\nThis time, we will perform the calculations that lead to the F' statistic. Notice that each group has the same number of plants, so we will use the formula F' = $\\frac{n\\cdot{s}_{\\overline{x}}{}^{2}}{{s}^{2}{}_{\\text{pooled}}}$.\nFirst, calculate the sample mean and sample variance of each group.\nTommy's Plants | Tara's Plants | Nick's Plants\nSample Mean | 24.2 | 25.4 | 24.4\nSample Variance | 11.7 | 18.3 | 16.3\nNext, calculate the variance of the three group means (Calculate the variance of 24.2, 25.4, and 24.4). Variance of the group means = 0.413 = ${s}_{\\overline{x}}{}^{2}$\nThen MSbetween = $n{s}_{\\overline{x}}{}^{2}$ = (5)(0.413) where n = 5 is the sample size (number of plants each child grew).\nCalculate the mean of the three sample variances (Calculate the mean of 11.7, 18.3, and 16.3). Mean of the sample variances = 15.433 = s2 pooled\nThen MSwithin = s2pooled = 15.433.\nThe F statistic (or F ratio) is $F=\\frac{M{S}_{\\text{between}}}{M{S}_{\\text{within}}}=\\frac{n{s}_{\\overline{x}}{}^{2}}{{s}^{2}{}_{pooled}}=\\frac{(5)(0.413)}{15.433}=0.134$\nThe dfs for the numerator = the number of groups – 1 = 3 – 1 = 2.\nThe dfs for the denominator = the total number of samples – the number of groups = 15 – 3 = 12\nThe distribution for the test is F2,12 and the F statistic is F = 0.134\nThe p-value is P(F > 0.134) = 0.8759.\nDecision: Since α = 0.03 and the p-value = 0.8759, do not reject H0. (Why?)\nConclusion: With a 3% level of significance, from the sample data, the evidence is not sufficient to conclude that the mean heights of the bean plants are different.\nTo calculate the p-value:\n*Press 2nd DISTR\n*Arrow down to Fcdf(and press ENTER.\n*Enter 0.134, E99, 2, 12)\n*Press ENTER\nThe p-value is 0.8759.\nTry It\nAnother fourth grader also grew bean plants, but this time in a jelly-like mass. The heights were (in inches) 24, 28, 25, 30, and 32. Do a one-way ANOVA test on the four groups. Are the heights of the bean plants different? Use the same method as shown in Example.\nFrom the class, create four groups of the same size as follows: men under 22, men at least 22, women under 22, women at least 22. Have each member of each group record the number of states in the United States they have visited. Run an ANOVA test to determine if the average number of states visited in the four groups are the same. Test at a 1% level of significance. Use one of the solution sheets in Solution Sheets.\nReferences\nData from a fourth grade classroom in 1994 in a private K – 12 school in San Jose, CA.\nHand, D.J., F. Daly, A.D. Lunn, K.J. McConway, and E. Ostrowski. A Handbook of Small Datasets: Data for Fruitfly Fecundity. London: Chapman & Hall, 1994.\nHand, D.J., F. Daly, A.D. Lunn, K.J. McConway, and E. Ostrowski. A Handbook of Small Datasets. London: Chapman & Hall, 1994, pg. 50.\nHand, D.J., F. Daly, A.D. Lunn, K.J. McConway, and E. Ostrowski. A Handbook of Small Datasets. London: Chapman & Hall, 1994, pg. 118.\n“MLB Standings – 2012.” Available online at http://espn.go.com/mlb/standings/_/year/2012.\nMackowiak, P. A., Wasserman, S. S., and Levine, M. M. (1992), \"A Critical Appraisal of 98.6 Degrees F, the Upper Limit of the Normal Body Temperature, and Other Legacies of Carl Reinhold August Wunderlich,\" Journal of the American Medical Association, 268, 1578-1580.\nChapter Review\nThe graph of the F distribution is always positive and skewed right, though the shape can be mounded or exponential depending on the combination of numerator and denominator degrees of freedom. The F statistic is the ratio of a measure of the variation in the group means to a similar measure of the variation within the groups. If the null hypothesis is correct, then the numerator should be small compared to the denominator. A small F statistic will result, and the area under the F curve to the right will be large, representing a large p-value. When the null hypothesis of equal group means is incorrect, then the numerator should be large compared to the denominator, giving a large F statistic and a small area (small p-value) to the right of the statistic under the F curve.\nWhen the data have unequal group sizes (unbalanced data), then techniques from The F Distribution and the F-Ratio need to be used for hand calculations. In the case of balanced data (the groups are the same size) however, simplified calculations based on group means and variances may be used. In practice, of course, software is usually employed in the analysis. As in any analysis, graphs of various sorts should be used in conjunction with numerical techniques. Always look of your data!\nAn F statistic can have what values?\nWhat happens to the curves as the degrees of freedom for the numerator and the denominator get larger?\nThe curves approximate the normal distribution.\nUse the following information to answer the next seven exercise. Four basketball teams took a random sample of players regarding how high each player can jump (in inches). The results are shown in Table.\nTeam 1 | Team 2 | Team 3 | Team 4 | Team 5\n36 | 32 | 48 | 38 | 41\n42 | 35 | 50 | 44 | 39\n51 | 38 | 39 | 46 | 40\nWhat is the df(num)?\nWhat is the df(denom)?\nten\nWhat are the Sum of Squares and Mean Squares Factors?\nWhat are the Sum of Squares and Mean Squares Errors?\nSS = 237.33; MS = 23.73\nWhat is the F statistic?\nWhat is the p-value?\n0.1614\nAt the 5% significance level, is there a difference in the mean jump heights among the teams?\nUse the following information to answer the next seven exercises. A video game developer is testing a new game on three different groups. Each group represents a different target market for the game. The developer collects scores from a random sample from each group. The results are shown in Table\nGroup A | Group B | Group C\n101 | 151 | 101\n108 | 149 | 109\n98 | 160 | 198\n107 | 112 | 186\n111 | 126 | 160\nWhat is the df(num)?\ntwo\nWhat is the df(denom)?\nWhat are the SSbetween and MSbetween?\nSS = 5,700.4;\nMS = 2,850.2\nWhat are the SSwithin and MSwithin?\nWhat is the F Statistic?\n3.6101\nWhat is the p-value?\nAt the 10% significance level, are the scores among the different groups different?\nYes, there is enough evidence to show that the scores among the groups are statistically significant at the 10% level.\nUse the following information to answer the next three exercises. Suppose a group is interested in determining whether teenagers obtain their drivers licenses at approximately the same average age across the country. Suppose that the following data are randomly collected from five teenagers in each region of the country. The numbers represent the age at which teenagers obtained their drivers licenses.\nNortheast | South | West | Central | East\n16.3 | 16.9 | 16.4 | 16.2 | 17.1\n16.1 | 16.5 | 16.5 | 16.6 | 17.2\n16.4 | 16.4 | 16.6 | 16.5 | 16.6\n16.5 | 16.2 | 16.1 | 16.4 | 16.8\n$\\overline{x}=$\n${s}^{2}=$\nEnter the data into your calculator or computer.\np-value = ______\nState the decisions and conclusions (in complete sentences) for the following preconceived levels of α.\nα = 0.05\na. Decision: ____________________________\nb. Conclusion: ____________________________\nα = 0.01\na. Decision: ____________________________\nb. Conclusion: ____________________________\nHomework\nDIRECTIONS\nUse a solution sheet to conduct the following hypothesis tests. The solution sheet can be found in Solution Sheets.\nThree students, Linda, Tuan, and Javier, are given five laboratory rats each for a nutritional experiment. Each rat's weight is recorded in grams. Linda feeds her rats Formula A, Tuan feeds his rats Formula B, and Javier feeds his rats Formula C. At the end of a specified time period, each rat is weighed again, and the net gain in grams is recorded. Using a significance level of 10%, test the hypothesis that the three formulas produce the same mean weight gain.\nLinda's rats | Tuan's rats | Javier's rats\n43.5 | 47.0 | 51.2\n39.4 | 40.5 | 40.9\n41.3 | 38.9 | 37.9\n46.0 | 46.3 | 45.0\n38.2 | 44.2 | 48.6\n- H0: µL = µT = µJ\n- Ha: at least any two of the means are different\n- df(num) = 2; df(denom) = 12\n- F distribution\n- 0.67\n- 0.5305\n- Answers may vary.\n- Decision: Do not reject null hypothesis; Conclusion: There is insufficient evidence to conclude that the means are different.\nA grassroots group opposed to a proposed increase in the gas tax claimed that the increase would hurt working-class people the most, since they commute the farthest to work. Suppose that the group randomly surveyed 24 individuals and asked them their daily one-way commuting mileage. The results are in Table. Using a 5% significance level, test the hypothesis that the three mean commuting mileages are the same.\nworking-class | professional (middle incomes) | professional (wealthy)\n17.8 | 16.5 | 8.5\n26.7 | 17.4 | 6.3\n49.4 | 22.0 | 4.6\n9.4 | 7.4 | 12.6\n65.4 | 9.4 | 11.0\n47.1 | 2.1 | 28.6\n19.5 | 6.4 | 15.4\n51.2 | 13.9 | 9.3\nUse the following information to answer the next two exercises. Table lists the number of pages in four different types of magazines.\nhome decorating | news | health | computer\n172 | 87 | 82 | 104\n286 | 94 | 153 | 136\n163 | 123 | 87 | 98\n205 | 106 | 103 | 207\n197 | 101 | 96 | 146\nUsing a significance level of 5%, test the hypothesis that the four magazine types have the same mean length.\nEliminate one magazine type that you now feel has a mean length different from the others. Redo the hypothesis test, testing that the remaining three means are statistically the same. Use a new solution sheet. Based on this test, are the mean lengths for the remaining three magazines statistically the same?\n- Ha: µc = µn = µh\n- At least any two of the magazines have different mean lengths.\n- df(num) = 2, df(denom) = 12\n- F distribtuion\n- F = 15.28\n- p-value = 0.0005\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Reject the Null Hypothesis.\n- Reason for decision: p-value < alpha\n- Conclusion: There is sufficient evidence to conclude that the mean lengths of the magazines are different.\nA researcher wants to know if the mean times (in minutes) that people watch their favorite news station are the same. Suppose that Table shows the results of a study.\nCNN | FOX | Local\n45 | 15 | 72\n12 | 43 | 37\n18 | 68 | 56\n38 | 50 | 60\n23 | 31 | 51\n35 | 22\nAssume that all distributions are normal, the four population standard deviations are approximately the same, and the data were collected independently and randomly. Use a level of significance of 0.05.\nAre the means for the final exams the same for all statistics class delivery types? Table shows the scores on final exams from several randomly selected classes that used the different delivery types.\nOnline | Hybrid | Face-to-Face\n72 | 83 | 80\n84 | 73 | 78\n77 | 84 | 84\n80 | 81 | 81\n81 | 86\n79\n82\nAssume that all distributions are normal, the four population standard deviations are approximately the same, and the data were collected independently and randomly. Use a level of significance of 0.05.\n- H0: μo = μh = μf\n- At least two of the means are different.\n- df(n) = 2, df(d) = 13\n- F2,13\n- 0.64\n- 0.5437\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: The mean scores of different class delivery are not different.\nAre the mean number of times a month a person eats out the same for White, Black, Hispanic/Latino and Asian people? Suppose that Table shows the results of a study.\nWhite | Black | Hispanic/Latino | Asian\n6 | 4 | 7 | 8\n8 | 1 | 3 | 3\n2 | 5 | 5 | 5\n4 | 2 | 4 | 1\n6 | 6 | 7\nAssume that all distributions are normal, the four population standard deviations are approximately the same, and the data were collected independently and randomly. Use a level of significance of 0.05.\nAre the mean numbers of daily visitors to a ski resort the same for the three types of snow conditions? Suppose that Table shows the results of a study.\nPowder | Machine Made | Hard Packed\n1,210 | 2,107 | 2,846\n1,080 | 1,149 | 1,638\n1,537 | 862 | 2,019\n941 | 1,870 | 1,178\n1,528 | 2,233\n1,382\nAssume that all distributions are normal, the four population standard deviations are approximately the same, and the data were collected independently and randomly. Use a level of significance of 0.05.\n- H0: μp = μm = μh\n- At least any two of the means are different.\n- df(n) = 2, df(d) = 12\n- F2,12\n- 3.13\n- 0.0807\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: There is not sufficient evidence to conclude that the mean numbers of daily visitors are different.\nSanjay made identical paper airplanes out of three different weights of paper, light, medium and heavy. He made four airplanes from each of the weights, and launched them himself across the room. Here are the distances (in meters) that his planes flew.\nPaper Type/Trial | Trial 1 | Trial 2 | Trial 3 | Trial 4\nHeavy | 5.1 meters | 3.1 meters | 4.7 meters | 5.3 meters\nMedium | 4 meters | 3.5 meters | 4.5 meters | 6.1 meters\nLight | 3.1 meters | 3.3 meters | 2.1 meters | 1.9 meters\n[Image: the graph is a scatter plot which represents the data provided. The horizontal axis is labeled 'Distance in Meters,' and extends form 2 to 6. The vertical axis is labeled 'Weight of Paper' and has light, medium, and heavy categories.]\n- Take a look at the data in the graph. Look at the spread of data for each group (light, medium, heavy). Does it seem reasonable to assume a normal distribution with the same variance for each group? Yes or No.\n- Why is this a balanced design?\n- Calculate the sample mean and sample standard deviation for each group.\n- Does the weight of the paper have an effect on how far the plane will travel? Use a 1% level of significance. Complete the test using the method shown in the bean plant example in Example.\n- variance of the group means __________\n- MSbetween= ___________\n- mean of the three sample variances ___________\n- MSwithin = _____________\n- F statistic = ____________\n- df(num) = __________, df(denom) = ___________\n- number of groups _______\n- number of observations _______\n- p-value = __________ (P(F > _______) = __________)\n- Graph the p-value.\n- decision: _______________________\n- conclusion: _______________________________________________________________\nDDT is a pesticide that has been banned from use in the United States and most other areas of the world. It is quite effective, but persisted in the environment and over time became seen as harmful to higher-level organisms. Famously, egg shells of eagles and other raptors were believed to be thinner and prone to breakage in the nest because of ingestion of DDT in the food chain of the birds.\nAn experiment was conducted on the number of eggs (fecundity) laid by female fruit flies. There are three groups of flies. One group was bred to be resistant to DDT (the RS group). Another was bred to be especially susceptible to DDT (SS). Finally there was a control line of non-selected or typical fruitflies (NS). Here are the data:\nRS | SS | NS | RS | SS | NS\n12.8 | 38.4 | 35.4 | 22.4 | 23.1 | 22.6\n21.6 | 32.9 | 27.4 | 27.5 | 29.4 | 40.4\n14.8 | 48.5 | 19.3 | 20.3 | 16 | 34.4\n23.1 | 20.9 | 41.8 | 38.7 | 20.1 | 30.4\n34.6 | 11.6 | 20.3 | 26.4 | 23.3 | 14.9\n19.7 | 22.3 | 37.6 | 23.7 | 22.9 | 51.8\n22.6 | 30.2 | 36.9 | 26.1 | 22.5 | 33.8\n29.6 | 33.4 | 37.3 | 29.5 | 15.1 | 37.9\n16.4 | 26.7 | 28.2 | 38.6 | 31 | 29.5\n20.3 | 39 | 23.4 | 44.4 | 16.9 | 42.4\n29.3 | 12.8 | 33.7 | 23.2 | 16.1 | 36.6\n14.9 | 14.6 | 29.2 | 23.6 | 10.8 | 47.4\n27.3 | 12.2 | 41.7\nThe values are the average number of eggs laid daily for each of 75 flies (25 in each group) over the first 14 days of their lives. Using a 1% level of significance, are the mean rates of egg selection for the three strains of fruitfly different? If so, in what way? Specifically, the researchers were interested in whether or not the selectively bred strains were different from the nonselected line, and whether the two selected lines were different from each other.\nHere is a chart of the three groups:\n[Image: This graph is a scatterplot which represents the data provided. The horizontal axis is labeled 'Mean eggs laid per day' and extends from 10 - 50. The vertical axis is labeled 'Fruitflies DDT resistant or susceptible, or not selected.' The vertical axis is labeled with the categories NS, RS, SS.]\nThe data appear normally distributed from the chart and of similar spread. There do not appear to be any serious outliers, so we may proceed with our ANOVA calculations, to see if we have good evidence of a difference between the three groups.\nH0: μ1 = μ2 = μ3;\nHa: μi ≠ μj some i ≠ j.\nDefine μ1, μ2, μ3, as the population mean number of eggs laid by the three groups of fruit flies.\nF statistic = 8.6657;\np-value = 0.0004\n[Image: This graph shows a nonsymmetrical F distribution curve. This curve does not have a peak, but slopes downward from a maximum value at (0, 1.0) and approaches the horiztonal axis at the right edge of the graph.]\nDecision: Since the p-value is less than the level of significance of 0.01, we reject the null hypothesis.\nConclusion: We have good evidence that the average number of eggs laid during the first 14 days of life for these three strains of fruitflies are different.\nInterestingly, if you perform a two sample t-test to compare the RS and NS groups they are significantly different (p = 0.0013). Similarly, SS and NS are significantly different (p = 0.0006). However, the two selected groups, RS and SS are not significantly different (p = 0.5176). Thus we appear to have good evidence that selection either for resistance or for susceptibility involves a reduced rate of egg production (for these specific strains) as compared to flies that were not selected for resistance or susceptibility to DDT. Here, genetic selection has apparently involved a loss of fecundity.\nThe data shown is the recorded body temperatures of 130 subjects as estimated from available histograms.\nTraditionally we are taught that the normal human body temperature is 98.6 F. This is not quite correct for everyone. Are the mean temperatures among the four groups different?\nCalculate 95% confidence intervals for the mean body temperature in each group and comment about the confidence intervals.\nFL | FH | ML | MH | FL | FH | ML | MH\n96.4 | 96.8 | 96.3 | 96.9 | 98.4 | 98.6 | 98.1 | 98.6\n96.7 | 97.7 | 96.7 | 97 | 98.7 | 98.6 | 98.1 | 98.6\n97.2 | 97.8 | 97.1 | 97.1 | 98.7 | 98.6 | 98.2 | 98.7\n97.2 | 97.9 | 97.2 | 97.1 | 98.7 | 98.7 | 98.2 | 98.8\n97.4 | 98 | 97.3 | 97.4 | 98.7 | 98.7 | 98.2 | 98.8\n97.6 | 98 | 97.4 | 97.5 | 98.8 | 98.8 | 98.2 | 98.8\n97.7 | 98 | 97.4 | 97.6 | 98.8 | 98.8 | 98.3 | 98.9\n97.8 | 98 | 97.4 | 97.7 | 98.8 | 98.8 | 98.4 | 99\n97.8 | 98.1 | 97.5 | 97.8 | 98.8 | 98.9 | 98.4 | 99\n97.9 | 98.3 | 97.6 | 97.9 | 99.2 | 99 | 98.5 | 99\n97.9 | 98.3 | 97.6 | 98 | 99.3 | 99 | 98.5 | 99.2\n98 | 98.3 | 97.8 | 98 | 99.1 | 98.6 | 99.5\n98.2 | 98.4 | 97.8 | 98 | 99.1 | 98.6\n98.2 | 98.4 | 97.8 | 98.3 | 99.2 | 98.7\n98.2 | 98.4 | 97.9 | 98.4 | 99.4 | 99.1\n98.2 | 98.4 | 98 | 98.4 | 99.9 | 99.3\n98.2 | 98.5 | 98 | 98.6 | 100 | 99.4\n98.2 | 98.6 | 98 | 98.6 | 100.8"}
{"document_id": "openstax-intro-statistics-m47125", "title": "F Distribution and One-Way ANOVA — Test of Two Variances", "source": "https://openstax.org/books/introductory-statistics-2e/pages/13-4-test-of-two-variances", "license": "CC-BY-4.0", "text": "Another of the uses of the F distribution is testing two variances. It is often desirable to compare two variances rather than two averages. For instance, college administrators would like two college professors grading exams to have the same variation in their grading. In order for a lid to fit a container, the variation in the lid and the container should be the same. A supermarket might be interested in the variability of check-out times for two checkers.\nIn order to perform a F test of two variances, it is important that the following are true:\n- The populations from which the two samples are drawn are normally distributed.\n- The two populations are independent of each other.\nUnlike most other tests in this book, the F test for equality of two variances is very sensitive to deviations from normality. If the two distributions are not normal, the test can give higher p-values than it should, or lower ones, in ways that are unpredictable. Many texts suggest that students not use this test at all, but in the interest of completeness we include it here.\nSuppose we sample randomly from two independent normal populations. Let ${\\sigma}_{1}^{2}$ and ${\\sigma}_{2}^{2}$ be the population variances and ${s}_{1}^{2}$ and ${s}_{2}^{2}$ be the sample variances. Let the sample sizes be n1 and n2. Since we are interested in comparing the two sample variances, we use the F ratio:\n$F=\\frac{[\\frac{{({s}_{1})}^{2}}{{({\\sigma}_{1})}^{2}}]}{[\\frac{{({s}_{2})}^{2}}{{({\\sigma}_{2})}^{2}}]}$\nF has the distribution F ~ F(n1 – 1, n2 – 1)\nwhere n1 – 1 are the degrees of freedom for the numerator and n2 – 1 are the degrees of freedom for the denominator.\nIf the null hypothesis is ${\\sigma}_{1}^{2}={\\sigma}_{2}^{2}$, then the F Ratio becomes $F=\\frac{[\\frac{{({s}_{1})}^{2}}{{({\\sigma}_{1})}^{2}}]}{[\\frac{{({s}_{2})}^{2}}{{({\\sigma}_{2})}^{2}}]}=\\frac{{({s}_{1})}^{2}}{{({s}_{2})}^{2}}$.\nNOTE\nThe F ratio could also be $\\frac{{({s}_{2})}^{2}}{{({s}_{1})}^{2}}$. It depends on Ha and on which sample variance is larger.\nIf the two populations have equal variances, then ${s}_{1}^{2}$ and ${s}_{2}^{2}$ are close in value and $F=\\frac{{({s}_{1})}^{2}}{{({s}_{2})}^{2}}$ is close to one. But if the two population variances are very different, ${s}_{1}^{2}$ and ${s}_{2}^{2}$ tend to be very different, too. Choosing ${s}_{1}^{2}$ as the larger sample variance causes the ratio $\\frac{{({s}_{1})}^{2}}{{({s}_{2})}^{2}}$ to be greater than one. If ${s}_{1}^{2}$ and ${s}_{2}^{2}$ are far apart, then $F=\\frac{{({s}_{1})}^{2}}{{({s}_{2})}^{2}}$ is a large number.\nTherefore, if F is close to one, the evidence favors the null hypothesis (the two population variances are equal). But if F is much larger than one, then the evidence is against the null hypothesis. A test of two variances may be left, right, or two-tailed.\nTwo college instructors are interested in whether or not there is any variation in the way they grade math exams. They each grade the same set of 30 exams. The first instructor's grades have a variance of 52.3. The second instructor's grades have a variance of 89.9. Test the claim that the first instructor's variance is smaller. (In most colleges, it is desirable for the variances of exam grades to be nearly the same among instructors.) The level of significance is 10%.\nLet 1 and 2 be the subscripts that indicate the first and second instructor, respectively.\nn1 = n2 = 30.\nH0: ${\\sigma}_{1}^{2}={\\sigma}_{2}^{2}$ and Ha: ${\\sigma}_{1}^{2}\\text{<}{\\sigma}_{2}^{2}$\nCalculate the test statistic: By the null hypothesis $\\text{(}{\\sigma}_{\\text{1}}^{\\text{2}}\\text{=}{\\sigma}_{\\text{2}}^{\\text{2}}\\text{)}$, the F statistic is:\n$F=\\frac{[\\frac{{({s}_{1})}^{2}}{{({\\sigma}_{1})}^{2}}]}{[\\frac{{({s}_{2})}^{2}}{{({\\sigma}_{2})}^{2}}]}=\\frac{{({s}_{1})}^{2}}{{({s}_{2})}^{2}}=\\frac{52.3}{89.9}=0.5818$\nDistribution for the test: F29,29 where n1 – 1 = 29 and n2 – 1 = 29.\nGraph: This test is left tailed.\nDraw the graph labeling and shading appropriately.\n[Image: This graph shows a nonsymmetrical F distribution curve. The curve is slightly skewed to the right, but is approximately normal. The value 0.5818 is marked on the vertical axis to the right of the curve's peak. A vertical upward line extends from 0.5818 to the curve and the area to the left of this line is shaded to represent the p-value.]\nProbability statement: p-value = P(F < 0.5818) = 0.0753\nCompare α and the p-value: α = 0.10 α > p-value.\nMake a decision: Since α > p-value, reject H0.\nConclusion: With a 10% level of significance, from the data, there is sufficient evidence to conclude that the variance in grades for the first instructor is smaller.\nPress STAT and arrow over to TESTS. Arrow down to D:2-SampFTest. Press ENTER. Arrow to Stats and press ENTER. For Sx1, n1, Sx2, and n2, enter $\\sqrt{(52.3)}$, 30, $\\sqrt{(89.9)}$, and 30. Press ENTER after each. Arrow to σ1: and σ2. Press ENTER. Arrow down to Calculate and press ENTER. F = 0.5818 and p-value = 0.0753. Do the procedure again and try Draw instead of Calculate.\nTry It\nThe New York Choral Society divides its singers who are men up into four categories from highest voices to lowest: Tenor1, Tenor2, Bass1, Bass2. In the table are heights of the men in the Tenor1 and Bass2 groups. One suspects that taller men will have lower voices, and that the variance of height may go up with the lower voices as well. Do we have good evidence that the variance of the heights of singers in each of these two groups (Tenor1 and Bass2) are different?\nTenor1 | Bass2 | Tenor 1 | Bass 2 | Tenor 1 | Bass 2\n69 | 72 | 67 | 72 | 68 | 67\n72 | 75 | 70 | 74 | 67 | 70\n71 | 67 | 65 | 70 | 64 | 70\n66 | 75 | 72 | 66 | 69\n76 | 74 | 70 | 68 | 72\n74 | 72 | 68 | 75 | 71\n71 | 72 | 64 | 68 | 74\n66 | 74 | 73 | 70 | 75\n68 | 72 | 66 | 72\nReferences\n“MLB Vs. Division Standings – 2012.” Available online at http://espn.go.com/mlb/standings/_/year/2012/type/vs-division/order/true.\nChapter Review\nThe F test for the equality of two variances rests heavily on the assumption of normal distributions. The test is unreliable if this assumption is not met. If both distributions are normal, then the ratio of the two sample variances is distributed as an F statistic, with numerator and denominator degrees of freedom that are one less than the samples sizes of the corresponding two groups. A test of two variances hypothesis test determines if two variances are the same. The distribution for the hypothesis test is the F distribution with two different degrees of freedom.\nAssumptions:\n- The populations from which the two samples are drawn are normally distributed.\n- The two populations are independent of each other.\nFormula Review\nF has the distribution F ~ F(n1 – 1, n2 – 1)\nF = $\\frac{\\frac{{s}_{1}^{2}}{{\\sigma}_{1}^{2}}}{\\frac{{s}_{2}^{2}}{{\\sigma}_{2}^{2}}}$\nIf σ1 = σ2, then F = $\\frac{{s}_{1}{}^{2}}{{s}_{2}{}^{2}}$\nUse the following information to answer the next two exercises. There are two assumptions that must be true in order to perform an F test of two variances.\nName one assumption that must be true.\nThe populations from which the two samples are drawn are normally distributed.\nWhat is the other assumption that must be true?\nUse the following information to answer the next five exercises. Two coworkers commute from the same building. They are interested in whether or not there is any variation in the time it takes them to drive to work. They each record their times for 20 commutes. The first worker’s times have a variance of 12.1. The second worker’s times have a variance of 16.9. The first worker thinks that he is more consistent with his commute times. Test the claim at the 10% level. Assume that commute times are normally distributed.\nState the null and alternative hypotheses.\nH0: σ1 = σ2\nHa: σ1 < σ2\nor\nH0: ${\\sigma}_{\\text{1}}^{\\text{2}}\\text{=}{\\sigma}_{\\text{2}}^{\\text{2}}$\nHa: ${\\sigma}_{1}^{2}<{\\sigma}_{2}^{2}$\nWhat is s1 in this problem?\nWhat is s2 in this problem?\n4.11\nWhat is n?\nWhat is the F statistic?\n0.7159\nWhat is the p-value?\nIs the claim accurate?\nNo, at the 10% level of significance, we do not reject the null hypothesis and state that the data do not show that the variation in drive times for the first worker is less than the variation in drive times for the second worker.\nUse the following information to answer the next four exercises. Two students are interested in whether or not there is variation in their test scores for math class. There are 15 total math tests they have taken so far. The first student’s grades have a standard deviation of 38.1. The second student’s grades have a standard deviation of 22.5. The second student thinks his scores are more consistent.\nState the null and alternative hypotheses.\nWhat is the F Statistic?\n2.8674\nWhat is the p-value?\nAt the 5% significance level, do we reject the null hypothesis?\nReject the null hypothesis. There is enough evidence to say that the variance of the grades for the first student is higher than the variance in the grades for the second student.\nUse the following information to answer the next three exercises. Two cyclists are comparing the variances of their overall paces going uphill. Each cyclist records their speeds going up 35 hills. The first cyclist has a variance of 23.8 and the second cyclist has a variance of 32.1. The cyclists want to see if their variances are the same or different. Assume that commute times are normally distributed.\nState the null and alternative hypotheses.\nWhat is the F Statistic?\n0.7414\nAt the 5% significance level, what can we say about the cyclists’ variances?\nHomework\nThree students, Linda, Tuan, and Javier, are given five laboratory rats each for a nutritional experiment. Each rat’s weight is recorded in grams. Linda feeds her rats Formula A, Tuan feeds his rats Formula B, and Javier feeds his rats Formula C. At the end of a specified time period, each rat is weighed again and the net gain in grams is recorded.\nLinda's rats | Tuan's rats | Javier's rats\n43.5 | 47.0 | 51.2\n39.4 | 40.5 | 40.9\n41.3 | 38.9 | 37.9\n46.0 | 46.3 | 45.0\n38.2 | 44.2 | 48.6\nDetermine whether or not the variance in weight gain is statistically the same among Javier’s and Linda’s rats. Test at a significance level of 10%.\n- ${H}_{0}\\text{:}{\\sigma}_{1}^{2}={\\sigma}_{2}^{2}$\n- ${H}_{a}\\text{:}{\\sigma}_{1}^{2}\\ne{\\sigma}_{1}^{2}$\n- df(num) = 4; df(denom) = 4\n- F4, 4\n- 3.00\n- 2(0.1563) = 0.3126. Using the TI-83+/84+ function 2-SampFtest, you get the test statistic as 2.9986 and p-value directly as 0.3127. If you input the lists in a different order, you get a test statistic of 0.3335 but the p-value is the same because this is a two-tailed test.\n- Answers may vary.\n- Decision: Do not reject the null hypothesis; Conclusion: There is insufficient evidence to conclude that the variances are different.\nA grassroots group opposed to a proposed increase in the gas tax claimed that the increase would hurt working-class people the most, since they commute the farthest to work. Suppose that the group randomly surveyed 24 individuals and asked them their daily one-way commuting mileage. The results are as follows.\nworking-class | professional (middle incomes) | professional (wealthy)\n17.8 | 16.5 | 8.5\n26.7 | 17.4 | 6.3\n49.4 | 22.0 | 4.6\n9.4 | 7.4 | 12.6\n65.4 | 9.4 | 11.0\n47.1 | 2.1 | 28.6\n19.5 | 6.4 | 15.4\n51.2 | 13.9 | 9.3\nDetermine whether or not the variance in mileage driven is statistically the same among the working class and professional (middle income) groups. Use a 5% significance level.\nUse the following information to answer the next two exercises. Table lists the number of pages in four different types of magazines.\nhome decorating | news | health | computer\n172 | 87 | 82 | 104\n286 | 94 | 153 | 136\n163 | 123 | 87 | 98\n205 | 106 | 103 | 207\n197 | 101 | 96 | 146\nWhich two magazine types do you think have the same variance in length?\nWhich two magazine types do you think have different variances in length?\nThe answers may vary. Sample answer: Home decorating magazines and news magazines have different variances.\nIs the variance for the amount of money, in dollars, that shoppers spend on Saturdays at the mall the same as the variance for the amount of money that shoppers spend on Sundays at the mall? Suppose that the Table shows the results of a study.\nSaturday | Sunday | Saturday | Sunday\n75 | 44 | 62 | 137\n18 | 58 | 0 | 82\n150 | 61 | 124 | 39\n94 | 19 | 50 | 127\n62 | 99 | 31 | 141\n73 | 60 | 118 | 73\n89\nAre the variances for incomes on the East Coast and the West Coast the same? Suppose that Table shows the results of a study. Income is shown in thousands of dollars. Assume that both distributions are normal. Use a level of significance of 0.05.\nEast | West\n38 | 71\n47 | 126\n30 | 42\n82 | 51\n75 | 44\n52 | 90\n115 | 88\n67\n- H0: = ${\\sigma}_{1}^{2}$ = ${\\sigma}_{2}^{2}$\n- Ha: ${\\sigma}_{1}^{2}$ ≠ ${\\sigma}_{1}^{2}$\n- df(n) = 7, df(d) = 6\n- F7,6\n- 0.8117\n- 0.7825\n- Answers may vary.\n-\n- Alpha: 0.05\n- Decision: Do not reject the null hypothesis.\n- Reason for decision: p-value > alpha\n- Conclusion: There is not sufficient evidence to conclude that the variances are different.\nThirty men in college were taught a method of finger tapping. They were randomly assigned to three groups of ten, with each receiving one of three doses of caffeine: 0 mg, 100 mg, 200 mg. This is approximately the amount in no, one, or two cups of coffee. Two hours after ingesting the caffeine, the men had the rate of finger tapping per minute recorded. The experiment was double blind, so neither the recorders nor the students knew which group they were in. Does caffeine affect the rate of tapping, and if so how?\nHere are the data:\n0 mg | 100 mg | 200 mg | 0 mg | 100 mg | 200 mg\n242 | 248 | 246 | 245 | 246 | 248\n244 | 245 | 250 | 248 | 247 | 252\n247 | 248 | 248 | 248 | 250 | 250\n242 | 247 | 246 | 244 | 246 | 248\n246 | 243 | 245 | 242 | 244 | 250\nKing Manuel I, Komnenus ruled the Byzantine Empire from Constantinople (Istanbul) during the years 1145 to 1180 A.D. The empire was very powerful during his reign, but declined significantly afterwards. Coins minted during his era were found in Cyprus, an island in the eastern Mediterranean Sea. Nine coins were from his first coinage, seven from the second, four from the third, and seven from a fourth. These spanned most of his reign. We have data on the silver content of the coins:\nFirst Coinage | Second Coinage | Third Coinage | Fourth Coinage\n5.9 | 6.9 | 4.9 | 5.3\n6.8 | 9.0 | 5.5 | 5.6\n6.4 | 6.6 | 4.6 | 5.5\n7.0 | 8.1 | 4.5 | 5.1\n6.6 | 9.3 | 6.2\n7.7 | 9.2 | 5.8\n7.2 | 8.6 | 5.8\n6.9\n6.2\nDid the silver content of the coins change over the course of Manuel’s reign?\nHere are the means and variances of each coinage. The data are unbalanced.\nFirst | Second | Third | Fourth\nMean | 6.7444 | 8.2429 | 4.875 | 5.6143\nVariance | 0.2953 | 1.2095 | 0.2025 | 0.1314\nHere is a strip chart of the silver content of the coins:\n[Image: This graph is a scatterplot which represents the data provided. The horizontal axis is labeled 'Silver content coins' and extends from 5 - 9. The vertical axis is labeled 'Coinage.' The vertical axis is labeled with the categories First, Second, Third, and Fourth.]\nWhile there are differences in spread, it is not unreasonable to use ANOVA techniques. Here is the completed ANOVA table:\nSource of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | F\nFactor (Between) | 37.748 | 4 – 1 = 3 | 12.5825 | 26.272\nError (Within) | 11.015 | 27 – 4 = 23 | 0.4789\nTotal | 48.763 | 27 – 1 = 26\nP(F > 26.272) = 0;\nReject the null hypothesis for any alpha. There is sufficient evidence to conclude that the mean silver content among the four coinages are different. From the strip chart, it appears that the first and second coinages had higher silver contents than the third and fourth.\nThe American League and the National League of Major League Baseball are each divided into three divisions: East, Central, and West. Many years, fans talk about some divisions being stronger (having better teams) than other divisions. This may have consequences for the postseason. For instance, in a certain year Tampa Bay won 90 games and did not play in the postseason, while Detroit won only 88 and did play in the postseason. This may have been an oddity, but is there good evidence that in this year, the American League divisions were significantly different in overall records? Use the following data to test whether the mean number of wins per team in the three American League divisions were the same or not. Note that the data are not balanced, as two divisions had five teams, while one had only four.\nDivision | Team | Wins\nEast | NY Yankees | 95\nEast | Baltimore | 93\nEast | Tampa Bay | 90\nEast | Toronto | 73\nEast | Boston | 69\nDivision | Team | Wins\nCentral | Detroit | 88\nCentral | Chicago Sox | 85\nCentral | Kansas City | 72\nCentral | Cleveland | 68\nCentral | Minnesota | 66\nDivision | Team | Wins\nWest | Oakland | 94\nWest | Texas | 93\nWest | LA Angels | 89\nWest | Seattle | 75\nHere is a stripchart of the number of wins for the 14 teams in the AL for the 2012 season.\n[Image: This graph is a scatterplot which represents the data provided. The horizontal axis is labeled 'Number of wins in 2012 Major League Baseball Season' and extends from 65 - 95. The vertical axis is labeled 'American league division.' The vertical axis is labeled with the categories Central, East, West.]\nWhile the spread seems similar, there may be some question about the normality of the data, given the wide gaps in the middle near the 0.500 mark of 82 games (teams play 162 games each season in MLB). However, one-way ANOVA is robust.\nHere is the ANOVA table for the data:\nSource of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | F\nFactor (Between) | 344.16 | 3 – 1 = 2 | 172.08\nError (Within) | 1,219.55 | 14 – 3 = 11 | 110.87 | 1.5521\nTotal | 1,563.71 | 14 – 1 = 13\nP(F > 1.5521) = 0.2548 Since the p-value is so large, there is not good evidence against the null hypothesis of equal means. We decline to reject the null hypothesis. Thus, for 2012, there is not any have any good evidence of a significant difference in mean number of wins between the divisions of the American League."}
{"document_id": "openstax-intro-statistics-m50288", "title": "F Distribution and One-Way ANOVA — Lab: One-Way ANOVA", "source": "https://openstax.org/books/introductory-statistics-2e/pages/13-5-lab-one-way-anova", "license": "CC-BY-4.0", "text": "One-Way ANOVA\nClass Time:\nNames:\nStudent Learning Outcome\n- The student will conduct a simple one-way ANOVA test involving three variables.\nCollect the Data\n- Record the price per pound of eight fruits, eight vegetables, and eight breads in your local supermarket.\nFruits | Vegetables | Breads\n- Explain how you could try to collect the data randomly.\nAnalyze the Data and Conduct a Hypothesis Test\n- State the null hypothesis and the alternative hypothesis.\n- Compute the following:\n- Fruit:\n- $\\overline{x}$ = ______\n- ${s}_{x}$ = ______\n- n = ______\n- Vegetables:\n- $\\overline{x}$ = ______\n- ${s}_{x}$ = ______\n- n = ______\n- Bread:\n- $\\overline{x}$ = ______\n- ${s}_{x}$ = ______\n- n = ______\n- Find the following:\n- df(num) = ______\n- df(denom) = ______\n- State the approximate distribution for the test.\n- Test statistic: F = ______\n- Sketch a graph of this situation. CLEARLY, label and scale the horizontal axis and shade the region(s) corresponding to the p-value.\n- p-value = ______\n- Test at α = 0.05. State your decision and conclusion.\n-\n- Decision: Why did you make this decision?\n- Conclusion (write a complete sentence).\n- Based on the results of your study, is there a need to investigate any of the food groups’ prices? Why or why not?"}
