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 4, Problem 20E
To determine
To write:
A script that will generate one random integer and will print whether the random integer is an even or an odd number.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Suppose a company sells bacon in packages that they claim average a weight of 12 ounces. Timothy believes that the actual
average weight of the packages is different than what the company claims, and would like to test this using a significance level of
0.01. He takes a random sample of 31 packages and gets a sample mean of 12.49 ounces and a sample standard deviation of 1.02
ounces.
a) What are the null and alternative hypotheses?
Ho: μ
÷
== 12
÷
HA: M
=
± =
12
b) What is the test statistic? (Round your answer to 3 decimal places, if needed.)
2.678
Your last answer was interpreted as follows:
2.678
c) Using the statistical table, the p-value is 0.01 < p-value < 0.02 →
d) Based on the p-value, Timothy should fail to reject ✰ the null hypothesis.
e) This data does not provide
sufficient evidence to conclude that the actual average weight of the packages is
different from → what the company claims.
Check
The Office of Student Affairs receives numerous appeals from students seeking reevaluation of their enrollment status. The office has observed that, on average, 30% of appeals are successful. Suppose the office has recently received 15 appeals.
Calculate the probability that none of the appeals will be successful.
Determine the probability that exactly three appeals will be successful.
Find the probability that at least two appeals will be successful. At least two appeals means P(x≥2).
Compute the probability that less than half of the appeals will be successful. Less than half means P(x<8) or P(x≤7).
A college wants to estimate what students typically spend on textbooks. A report fromthe college bookstore observes that textbooks range in price from $22 to $186. Toobtain a 95% confidence level for a confidence interval estimate to plus or minus $10,how many students should the college survey?
Chapter 4 Solutions
Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving
Ch. 4 - Prob. 4.1PCh. 4 - Prob. 4.2PCh. 4 - Prob. 4.3PCh. 4 - Prob. 4.4PCh. 4 - Prob. 4.5PCh. 4 - Prob. 1ECh. 4 - Prob. 2ECh. 4 - Prob. 3ECh. 4 - Prob. 4ECh. 4 - Prob. 5E
Ch. 4 - Prob. 6ECh. 4 - Prob. 7ECh. 4 - Prob. 8ECh. 4 - Prob. 9ECh. 4 - Prob. 10ECh. 4 - Prob. 11ECh. 4 - Prob. 12ECh. 4 - Prob. 13ECh. 4 - Prob. 14ECh. 4 - Prob. 15ECh. 4 - Prob. 16ECh. 4 - Prob. 17ECh. 4 - Prob. 18ECh. 4 - Prob. 19ECh. 4 - Prob. 20ECh. 4 - Prob. 21ECh. 4 - Prob. 22ECh. 4 - Prob. 23ECh. 4 - Prob. 24ECh. 4 - Prob. 25ECh. 4 - Prob. 26ECh. 4 - Prob. 27ECh. 4 - Prob. 28ECh. 4 - Prob. 29ECh. 4 - Prob. 30E
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
- In a study of how students give directions, forty volunteers were given the task ofexplaining to another person how to reach a destination. Researchers measured thefollowing five aspects of the subjects’ direction-giving behavior:• whether a map was available or if directions were given from memory without a map,• the gender of the direction-giver,• the distances given as part of the directions,• the number of times directions such as “north” or “left” were used,• the frequency of errors in directions.a) Identify each of the variables in this study, and whether each is quantitative orqualitative. For each quantitative variable, state whether it is discrete or continuousb) Was this an observational study or an experimental study? Explain your answer.arrow_forwardYour investment advisor proposes a monthly income investment scheme which promises a variable income each month. You will invest in it only if you are assured an average monthly income of at least 560 dollars. Your advisor also tells you that, for the past 76 months, the scheme had incomes with an average value of 578 dollars and a standard deviation of 76 dollars. a) Create a 98% confidence interval for the average monthly income of this scheme. (Round your answers to 4 decimal places, if needed.) b) Based on this confidence interval, should you invest in this scheme? Yes, since the interval contains 560. Yes, since the interval is completely above 560. No, since the interval contains 560. No, since the interval is completely above 560.arrow_forwardHaving done poorly on a particular exam in a junior high school, 27 students decide to write the exam again to try and improve their mark. Results are given in the following table. Student n Average Standard deviation Attempt 1 (A1) 27 58 3.2 Attempt 2 (A2) 27 61 4.3 Difference (d = A₁ - A2) 27 -3.0 2.6 a) Find a 95% confidence interval for the difference in mean scores between attempt 1 and attempt 2. (Round your answers to 4 decimal places, if needed.) b) Based on this confidence interval, can we conclude there is a difference in mean scores between attempt 1 and attempt 2? Yes, since the interval contains 0. No, since the interval is completely below 0. ○ No, since the interval contains O. Yes, since the interval is completely below 0. Checkarrow_forward
- A clinic compared healthy dogs it owned with healthy pets brought to clinic to be neutered. The summary statistics for blood cholesterol levels (milligrams deciliter of blood) appear in the following table: Types n Average Standard deviation Pets (P) 51 200 62.3 Clinic (C) 51 170 40.4 Difference (d = P - C) 51 30.0 41.8 a) Find a 95% confidence interval for the difference in mean blood cholesterol levels dogs brought to the clinic (P) and dogs owned by the clinic (C). (Round your answers to 4 decimal places, if needed.) b) Based on this confidence interval, can we conclude there is some differences in mean blood cholesterol levels between the two groups? O No, since the interval is completely above 0. Yes, since the interval contains 0. Yes, since the interval is completely above 0. No, since the interval contains O.arrow_forward6. A researcher is investigating whether population impacts homicide rate. He uses demographic data from Detroit, Michigan, to compare homicide rates and the number of the population. Population Size Homicide rate per 100,000 people 558,724 8.6 538,584 8.9 519,171 8.52 500,457 8.89 482,418 13.07 465,029 14.57 448,267 21.36 432,109 28.03 416,533 31.49 401,518 37.39 387,046 46.26 373,095 47.24 359,647 52.33 a. b. Use your calculator to construct a scatter plot of the data. What should the independent vari- able be? Why? Use your calculator's regression function to find the equation of the least-squares regression line. Add this to your scatter plot.arrow_forwardIt is believed that animals living in northern regions have shorter appendages than animals living in southern regions. Random samples of birds were selected from each group and wing lengths for birds (in millimeters) were measured. The following table gives summary statistics. Region Northern (N) n Average Standard deviation 36 110.8 1.5 Southern (S) 36 112.2 Difference (d = N - S) 36 -1.4 3.1 1.3 a) Find an 80% confidence interval for the mean difference of wing lengths of birds between the northern regions and the southern regions. (Round your answers to 4 decimal places, if needed.) b) Based on this confidence interval, is there enough evidence to support the belief? ○ No, since the interval is completely below 0. No, since the interval contains O. Yes, since the interval contains O. ● Yes, since the interval is completely below 0.arrow_forward
- K.R. Games makes two boats: A-Fly and B-Fly. In total 8,000 machine-hours are available for making both products. The A-Fly requires 2 hours per unit and the B-Fly requires 4 hours per unit. Also available are 12,000 person-hours for painting the products. The respective number of person-hours required for painting the A-Fly and B-Fly are 4 and 4 respectively. The company has orders for 100 units of the A-Fly. Each A-Fly contributes $285 to company profits while the B-Fly contributes $345 to company profits. a. State the objective function and the constraints related to the above conditions.arrow_forward1. A total of 3820 students write a university entrance examination. Bartley earns a score of 934 marks out of a possible 1200 marks. There are 2988 students who score lower than 934. There are 45 students, including Bartley, who score 934. A) Find Bartley’s percentile rank. B) In order to be considered for the university, Bartley needs to score in the top 25% of people writing the exam. Is Bartley’s score high enough for him to be considered for acceptance to the university? 2. The examination results of 5000 students are analyzed and the following percentiles are calculated: P10 = 30 P40 = 45 P50 = 60 P80 = 81 A) Approximately what percentage of students scored 45 or less? B) What is the median mark for this exam? C) Approximately, how many students scored more than 81? 3. Lorenzo scores 88% on a recent test but his percentile rank on the test is 40. A) What does this tell you about the success rate of the other students in the class? B) What reasons could cause…arrow_forwardAn editorial company wants to determine whether the lighting in its office affects the average productivity (in number of edited pages per week) of its editors. Since productivity may vary across editors, the firm measures the productivity of five editors experiencing four lighting levels: 800, 1,000, 1,200, and 1,400 lux. The results of the experiment are presented in the data table that follows. Use the Friedman test to decide whether to reject the null hypothesis that there are no differences between conditions, meaning the ranks of the productivity levels are the same across the four lighting levels. Assign ranks such that the smallest of the productivity levels gets a rank of 1. Notice for employee A, the rank of the data value is in parentheses next to the data value. Complete the table by selecting the rank of the data value for employees B through E. Employee A 800 lux Productivity Rate of Editors Experiencing the Lighting Levels 1,000 lux 513 (2) 510 (1) B 479 ( ▼ ) 528 ( ▼ )…arrow_forward
- Calculate the seasonal indexes to three decimal places, show your calculations. Forecast the sales on Friday of week 4.arrow_forwardIn a study conducted by the Society for Human Resource Management, 347 human resource professionals were surveyed. Of those surveyed, 73% said that their companies conduct criminal background checks on all job applicants. What is the exact value that is 73% of the 347 survey subject? Could the result from part (a) be the actual number of survey subjects who said that their companies conduct criminal background checks on all job applicants? Why or why not? What is the actual number of survey subjects who said that their company conducts criminal background checks on all job applicants? Assume that 112 of the survey subjects are females. What percentage of those surveyed are females?arrow_forwardFill in the missing information and round to nearest hundretharrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALAlgebra: 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
- Big Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin HarcourtElementary AlgebraAlgebraISBN:9780998625713Author:Lynn Marecek, MaryAnne Anthony-SmithPublisher:OpenStax - Rice University
Holt Mcdougal Larson Pre-algebra: Student Edition...
Algebra
ISBN:9780547587776
Author:HOLT MCDOUGAL
Publisher:HOLT MCDOUGAL
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
Big Ideas Math A Bridge To Success Algebra 1: Stu...
Algebra
ISBN:9781680331141
Author:HOUGHTON MIFFLIN HARCOURT
Publisher:Houghton Mifflin Harcourt
Elementary Algebra
Algebra
ISBN:9780998625713
Author:Lynn Marecek, MaryAnne Anthony-Smith
Publisher:OpenStax - Rice University
Minimum cuts and maximum flow rate; Author: Juddy Productions;https://www.youtube.com/watch?v=ylxhl1ipWss;License: Standard YouTube License, CC-BY