
Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving
4th Edition
ISBN: 9780128045251
Author: Stormy Attaway Ph.D. Boston University
Publisher: Elsevier Science
expand_more
expand_more
format_list_bulleted
Question
Chapter 5, Problem 5.5P
To determine
To create:
A script avenegnum that will repeat the process of prompting the user for negative numbers, until the user enters a zero or positive numbers.
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
John, an experienced Airbnb host claims that true average rental price per night for a shared room in lower east side of Manhattan is $100. A sample of 15 shared room rentals from the neighborhood yields a sample average price per night of $85 with a standard deviation $17 (source: Kaggle.com).
Suppose the distribution of price per night is normally distributed. Is there sufficient evidence to believe that average price per night for a shared room in Manhattan’s lower east side is less than what John claims? (Use 5% significance level)?
Clearly state the null and alternative hypothesis to answer the above research question. Define any parameters you may use.
Check the conditions that needs to be satisfied in order to do the test you stated in part 1.
Calculate the test statistic
Calculate the degrees of freedom
What is the rejection region for the test?
Calculate the p value for the test. You may use MINITAB to get the numerical value of the p value. However, you MUST clearly state…
A dealer in recycled paper places empty trailers at various sites. The trailers are gradually filled by individuals who bring in old
newspapers and magazines, and are picked up on several schedules. One such schedule involves pickup every second week.
This schedule is desirable if the average amount of recycled paper is more than 1,600 cubic feet per 2-week period. The
dealer's records for eighteen 2-week periods show the following volumes (in cubic feet) at a particular site (recycled paper.xlsx
✓).
Is there enough evidence to suggest that two-week pick-up schedule is desirable? Use 5% significance level. Clearly state the 6
steps of the hypothesis test you do and show all your work.
NOTE: Since you have the data make sure to check if the the conditions for the above test are satisfied.
Dont Answer.
js
Chapter 5 Solutions
Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving
Ch. 5 - Prob. 5.1PCh. 5 - Prob. 5.2PCh. 5 - Prob. 5.3PCh. 5 - Prob. 5.4PCh. 5 - Prob. 5.5PCh. 5 - Prob. 5.6PCh. 5 - Prob. 5.7PCh. 5 - Prob. 5.8PCh. 5 - Prob. 5.9PCh. 5 - Prob. 5.10P
Ch. 5 - Prob. 1ECh. 5 - Prob. 2ECh. 5 - Prob. 3ECh. 5 - Prob. 4ECh. 5 - Prob. 5ECh. 5 - Prob. 6ECh. 5 - Prob. 7ECh. 5 - Prob. 8ECh. 5 - Prob. 9ECh. 5 - Prob. 10ECh. 5 - Prob. 11ECh. 5 - Prob. 12ECh. 5 - Prob. 13ECh. 5 - Prob. 14ECh. 5 - Prob. 15ECh. 5 - Prob. 16ECh. 5 - Prob. 17ECh. 5 - Prob. 18ECh. 5 - Prob. 19ECh. 5 - Prob. 21ECh. 5 - Prob. 20ECh. 5 - Prob. 22ECh. 5 - Prob. 23ECh. 5 - Prob. 24ECh. 5 - Prob. 25ECh. 5 - Prob. 26ECh. 5 - Prob. 27ECh. 5 - Prob. 28ECh. 5 - Prob. 29ECh. 5 - Prob. 30ECh. 5 - Prob. 31ECh. 5 - Prob. 32ECh. 5 - Prob. 33ECh. 5 - Prob. 34ECh. 5 - Prob. 35ECh. 5 - Prob. 36ECh. 5 - Prob. 37ECh. 5 - Prob. 38ECh. 5 - Prob. 39ECh. 5 - Prob. 40ECh. 5 - Prob. 41ECh. 5 - Prob. 42ECh. 5 - Prob. 43E
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.Similar questions
- A dealer in recycled paper places empty trailers at various sites. The trailers are gradually filled by individuals who bring in old newspapers and magazines, and are picked up on several schedules. One such schedule involves pickup every second week. This schedule is desirable if the average amount of recycled paper is more than 1,600 cubic feet per 2-week period. The dealer's records for eighteen 2-week periods show the following volumes (in cubic feet) at a particular site (recycled paper.xlsx ✓). Is there enough evidence to suggest that two-week pick-up schedule is desirable? Use 5% significance level. Clearly state the 6 steps of the hypothesis test you do and show all your work. NOTE: Since you have the data make sure to check if the the conditions for the above test are satisfied.arrow_forwardA manufacturer of sprinkler systems used for fire protection in office buildings claims that the true average system-activation temperature is 130. A sample of n=9 systems, when tested, yields a sample average activation temperature of 131.08 F with a standard deviation 1.5 F. Suppose the distribution of system-activation temperature is normally distributed. Is there sufficient evidence to believe that average activation temperature of the sprinklers is different from manufacturer claims? Use 5% significance level. Show your work by answering following questions. State the parameter in context of the problem and set up the two competing hypotheses. What conditions are necessary for the test? Explain if they are satisfied. The test statistic is The degrees of freedom are The P value is The Rejection region is Decision about the null hypothesis isarrow_forwardA college admissions officer for the school’s online undergraduate program wants to estimate the mean age of its graduating students. The administrator took a random sample of 40 from which the mean was 24 years and the standard deviation was 1.7 years. Do you believe that the true mean age of online undergraduate students is higher than 23 years? Be sure to set up the two competing hypotheses and provide a statistical conclusion statement at a 5% level of significance for your results. Clearly state the 6 steps of the hypothesis test you do. Then, redo the test using MINITAB and attach the output.arrow_forward
- John, an experienced Airbnb host claims that true average rental price per night for a shared room in lower east side of Manhattan is $100. A sample of 15 shared room rentals from the neighborhood yields a sample average price per night of $85 with a standard deviation $17 (source: Kaggle.com). Suppose the distribution of price per night is normally distributed. Is there sufficient evidence to believe that average price per night for a shared room in Manhattan’s lower east side is less than what John claims? (Use 5% significance level)? Calculate the p value for the test. You may use MINITAB to get the numerical value of the p value. However, you MUST clearly state the p value as a probability statement. Make the decision about the null hypothesis and write the final conclusion in the context of the problem.arrow_forwardHutchinson-Gilford progeria syndrome is a rare genetic condition that produces rapid aging in children. In individuals with this syndrome, cardiovascular disease is a common cause of death in the teenage years. A clinical study examined the effect of treatment with the drug lonafarnib on a number of physiological outcomes. The researchers measured the pulse wave velocity (PWV) of 18 children diagnosed with progeria and recruited worldwide. The study reports that the mean PWV of 18 children diagnosed with progeria is 12.44 m/s, and the standard deviation is 3.638 m/s. Assuming that PWV is normally distributed, is there significant evidence that the mean PWV of children with progeria is abnormally high (i.e. greater than 6.6 m/s)? Let μ (pronounced as "mu") be the true mean PWV of children with progeria. 1. What are the two competing hypotheses? [Select] 2. What is the test statistic? [Select] 3. What is the p value? [Select] 4. What is the rejection region? [Select] 5. What are the…arrow_forwardSuppose we do the below hypothesis test for the mean and obtained a p value 0.025 Hop 10 Vs. H₁p 10 If 95% confidence interval for the true mean of the target population is calculated using the same data, will 10 be inside or outside the confidence interval? Explain.arrow_forward
- A manufacturer of sprinkler systems used for fire protection in office buildings claims that the true average system-activation temperature is 130. A sample of n=9 systems, when tested, yields a sample average activation temperature of 131.08 F with a standard deviation 1.5 F. Suppose the distribution of activation times is normally distributed. Is there sufficient evidence to believe that average activation temperature of the sprinklers is different from manufacturer claims? Use 5% significance level. Show your work by answering following question. Provide the statistical conclusion statement at a 5% level of significance for your results.arrow_forwardA manufacturer of sprinkler systems used for fire protection in office buildings claims that the true average system-activation temperature is 130. A sample of n=9 systems, when tested, yields a sample average activation temperature of 131.08 F with a standard deviation 1.5 F. Suppose the distribution of activation times is normally distributed. Is there sufficient evidence to believe that average activation temperature of the sprinklers is different from manufacturer claims? Use 5% significance level. Show your work by answering following question. If you calculate a 95% confidence interval for the average activation temperature of the sprinklers using the same data, will 130 be inside or outside the interval. Explain your answer without calculating the interval.arrow_forwardctor S You wish to test the following claim (Ha) at a significance level of a = 0.05. Ho P1 Ha P1 P2 P2 The 1st population's sample has 94 successes and a sample size = 469. The 2nd population's sample has 96 successes and a sample size = 397. What is the test statistic (z-score) for this sample? (Round to 3 decimal places.) test statistic = What is the p-value for this sample? (Round to 3 decimal places.) p-value = The p-value is... greater than a O less than (or equal to) a Ces می This test statistic leads to a decision to... accept the null fail to reject the null Oreject the null arch As such, the final conclusion is that... O The sample data support the alternate hypothesis claim that p1 < p2. There is not sufficient sample evidence to support the alternate hypothesis claim that p1 < p2. UP T M365 DELL Weather Channel F2 F3 F4 F5 F6 F7 F8 F9 14 ►11 2 54 65 a F Barrow_forward
- ps://canvas.pdx.edu/courses/106252/assignments/1102418?module_item_id=4856623 m Proctor ents ources sources TULISI If need help after the second attempt to this question, click Show Detailed Solution button below for formula and a similar problem. During the 2017-2018 flu season, a random sample of 200 hospitalizations related to flu was studied. It was later determined that 14 patients have died. A similar study during the 2018-2019 flu season revealed that in a random sample of 180 hospitalized cases related to flu, there were 18 deaths observed. At 5% significance level, test the claim that the percentage of deaths in 2017-2018 is different from the percentage of deaths in the 2018-2019 season. Procedure: Two proportions Z Hypothesis Test Assumptions: (select everything that applies) Sample sizes are both greater than 30 Population standard deviation are unknown but assumed equal Paired samples Independent samples Normal populations The number of positive and negative responses are…arrow_forwardHow do different methods of statistical inference influence the interpretation and validity of results in real-world applications, especially in the context of complex datasets?arrow_forwardProctor ts Question 6 ▼ No Comments 0/2 pts 299 Details A study of tipping behaviours examined the relationship between the colour of the shirt worn by the server and whether or not the customer left a tip. Group 1: In a random sample of 70 customers served by a server wearing a red shirt, 45 left a tip. Group 2: In a random sample of 342 customers served by a server wearing a non-red shirt, 195 left a tip. At the 5% level of significance, is there a difference in tip leaving between red-shirted servers and non- red-shirted servers? Note: Be sure to use at least five decimal places in all intermediate calculations. State the hypotheses of this test. 1-2=0 HA: μ-20 O Ho Ho: 1-2=0 urces O Ho H1 H2=0 Ho: P1 P2=0 ources HA: H1 H2>0 HA: P1 P20 O Ho: P1 P2=0 O Ho: P1 P2=0 HA P1 P20 Et According to the given information, provide the answers to the following parts: Group 1: Sample size n₁ = Sample Proportion = p₁ = (round properly to 3 decimal places) Observed number of successes in the…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageAlgebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal LittellGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALMathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage

Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell

Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill

Holt Mcdougal Larson Pre-algebra: Student Edition...
Algebra
ISBN:9780547587776
Author:HOLT MCDOUGAL
Publisher:HOLT MCDOUGAL

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,

College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Finite State Machine (Finite Automata); Author: Neso Academy;https://www.youtube.com/watch?v=Qa6csfkK7_I;License: Standard YouTube License, CC-BY
Finite State Machine (Prerequisites); Author: Neso Academy;https://www.youtube.com/watch?v=TpIBUeyOuv8;License: Standard YouTube License, CC-BY