/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Problem 14 Movies A sample of students were... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Movies A sample of students were questioned to determine how much they would be willing to pay to see a movie in a theater that served dinner at the seats. The male students responded (in dollars): \(10,15,15,25\), and \(12 .\) The female students responded: 8,30, 15, and \(15 .\) Write these data as they might appear in (a) stacked format with codes and (b) unstacked format.

Short Answer

Expert verified
The stacked data in coded format would be {1: 10,15,15,25,12} for males and {2: 8,30,15,15} for females. The unstacked data would be {Male: 10,15,15,25,12} where the Female column would appear as {Female: 8,30,15,15, N/A}.

Step by step solution

01

Stacked Format with Codes

In a stacked format with codes, one has a single column to represent the observation and another column to represent the code (male or female in this case). The code usually replaces group names. Let's assume '1' denotes Males and '2' denotes Females. So, it would look something like this: \nColumn1(Gender Code):\n1,1,1,1,1,2,2,2,2 \nColumn2 (Price):\n10,15,15,25,12,8,30,15,15
02

Unstacked Format

The unstacked format has separate columns for each group. The structure takes into account the maximum number of observations across all groups. Missing values are filled with 'N/A' or some other designated code to represent missing values. Our data would appear like: \nMale Column :10,15,15,25,12\nFemale Column: 8,30,15,15, N/A

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

The 2017 World Almanac and Book of Facts reported that in \(2016, \mathrm{M\&Ms}\) had sales of approximately \(\$ 3.48\) million and that this accounted for \(12.95 \%\) of the total chocolate candy sales. What was the total amount of chocolate candy sales?

Indicate whether the study is an observational study or a controlled experiment. Patients with Alzheimer's disease are randomly divided into two groups. One group is given a new drug, and the other is given a placebo. After six months they are given a memory test to see whether the new drug fights Alzheimer's better than a placebo.

Indicate whether the study is an observational study or a controlled experiment. A group of boys is randomly divided into two groups. One group watches violent cartoons for one hour, and the other group watches cartoons without violence for one hour. The boys are then observed to see how many violent actions they take in the next two hours, and the two groups are compared.

Describe the design of a controlled experiment to determine whether the use of vitamin D supplements reduces the chance of broken bones in women with osteoporosis (weak bones). Assume you have 200 women with osteoporosis to work with. Your description should include all the features of a controlled experiment. Also decide how the results would be determined.

The marriage and divorce rates are given per 1000 people in various years. Find the divorce rate as a percentage of the marriage rate and comment on the trend over time. (Source: https://www.cdc.gov/nchs) $$ \begin{array}{|c|c|c|} \hline \text { Year } & \text { Marriage } & \text { Divorce } \\ \hline 2000 & 8.2 & 4.0 \\ \hline 2005 & 7.6 & 3.6 \\ \hline 2010 & 6.8 & 3.6 \\ \hline 2014 & 6.9 & 3.2 \\ \hline \end{array} $$

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.