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 31E
To determine
The conditions to use counted and non counted loops in MATLAB.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Let's assume that there are 500 people in a population. The researcher has access to all 500 participants, and sends a questionnaire that is accessed by a hyperlink. Of the 500 possible subjects, 485 complete it.
Does this mean that the results generated from this study will be highly-accurate? What might cause the study to be unreliable?
Suppose that in a dial-up connection you may be connected through one of three types of channels with
varying quality of transmission. In Type I the channel has an error probability of 0.01, in Type Il the
channel has an error probability of 0.005, and in Type III the channel has an error probability of 0.001.
Suppose we assume that for the service provider used, 20% of the channels are of Type I, 30% of the
channels are of Type II and 50% of the channels are of Type II.
a. What is the probability of error for an arbitrary connection? (Hint: This is similar to the resistors
with the nominal value problem)
b. Suppose we observe an error, what is the probability that we were connected via a channel
Type I?
A student claims that he can correctly identify whether a person is a business major or an agriculture major by the way the person dresses. Suppose in actuality that if someone is a business major, he can correctly identify that person as a business major 87% of the time. When a person is an agriculture major, the student will incorrectly identify that person as a business major 16% of the time. Presented with one person and asked to identify the major of this person (who is either a business or an agriculture major), he considers this to be a hypothesis test with the null hypothesis being that the person is a business major and the alternative that the person is an agriculture major.
What would be a Type I error?
Saying that the person is a business major when in fact the person is an agriculture major.
Saying that the person is an agriculture major when in fact the person is an agriculture major.
Saying that the person is an agriculture major when in…
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
Similar questions
- How many different signals can be sent, when three flags are used, if two of the 9 flags are missing?arrow_forwardIn Spetember of 2013, Mario The Baker introduced a new chocolate cake and hired Doug and Jeremy to bake these cakes. Every customer buying this new chocolate cake either gives it a "thumbs up" or a "thumbs down". Based on the data accumulated between 10/2013 and 9/2014, we know that 40% of the cakes baked by Doug gets a "thumbs up", while only 10% of those baked by Jeremy gets a "thumbs up". About 70% of the cakes are baked by Doug. One cake was selected at random on 10/01/2014. Find the probability that the cake got a "thumbs up".arrow_forwardA scientist is interested in whether stretching before running 5 kilometers will improve a runner’s time. The scientist decides that an experimental study is the best method to use to answer the question. One group of runners will run a 5-kilometer race without stretching, and a second group of runners will follow a specific stretching routine before running the race. The finishing times will be recorded, along with the group type for each runner. The scientist is able to get 200 adults of varying running abilities to participate in the study. Describe a way that would assign people into the two groups that would allow the scientist to answer the question of interest. *THIS IS NOT GRADED**arrow_forward
- At a stop sign, some drivers come to a full stop, some come to a `rolling stop' (not a full stop, but slow down), and some do not stop at all. We would like to test if there is an association between gender and type of stop (full, rolling, or no stop). We collect data by standing a few feet from a stop sign and taking note of type of stop and the gender of the driver. Below is a contingency table summarizing the data we collected. Male Female Full stop 6 6 Rolling stop 16 15 No stop 4 3 If gender is not associated with type of stop, how many males would we expect to not stop at all? 6.24 5.76 3.64 3.36arrow_forwardA manager of a small store wanted to discourage shoplifters by putting signs around the store that said, "Shoplifting is a crime!", while at the same time making sure the signs would not affect the number of sales. To test the effect on sales, the signs were displayed every other Wednesday for 8 weeks, and the numbers of sales for those four Wednesdays were recorded (see table below). The numbers of sales for the four alternate Wednesdays without the sign are also listed in the table below. Here are the results: Number of Sales on Wed for 8 Weeks Wed with Sign Wed without Sign 7 6. 8. 8. 7 11 6. 7 a.) Did customers make a different amount of purchases when the signs were displayed? Carry out a t-test for independent means (use the .05 significance level). Use the five steps of hypothesis testing. Label all the steps clearly. Show ALL Work/calculations. b.) Report the statistic in APA format (the statistical sentence).arrow_forwardResearchers conducted a study to find out if there is a difference in the use of online-learning 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 online-learning, while 11% of the 2,309 participants 30 years old and older use online learning. (Set 1 for 16-29 year old group; Set 2 for 30 years old and older). What is the alternative hypothesis test?arrow_forward
- Researchers conducted a study to find out if there is a difference in the use of online-learning 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 online-learning, while 11% of the 2,309 participants 30 years old and older use online learning. (Set 1 for 16-29 year old group; Set 2 for 30 years old and older). Find the p-value of 2-prop-z-test.arrow_forwardIs high school GPA a good predictor of college GPA? Let's explore it with some real data. In RStudio, run the following code to install and/or library the package "openintro". 1. install.packages ("openintro") # don't do this again if you already did this! 2. library(openintro) 3. satgpa Delete the install line of code if you are in an RMD file so that it doesn't install every time you knit. The last line of code will access the dataset of that name. The dataset 'satgpa' gives information about test scores and GPA in high school and college for students at an unnamed college. Use the data to build a model to predict first year college GPA ("fy_gpa") from high school GPA ("hs_gpa"). a. Make a scatterplot of "fy_gpa" (y-axis) vs "hs_gpa" (x-axis). Which plot is the scatterplot? Graph A Graph B Graph C Graph D O A C₁- fy_gpa hs_gpa b. Does the relationship appear roughly linear? O No, all the points do not fall on a straight line. O Yes, there is no obvious curvature in the graph O No,…arrow_forwardResearchers investigated two kinds of laugh tracks – one with posed laughter and one with spontaneous laughter. Recall that to create the posed laughter laugh track, the researchers asked people to laugh and recorded the results. The researchers also tested the same 40 jokes with a spontaneous laughing laugh track, which they created by having people watch funny videos and recording their laughter. The data can be found in the file LaughTypes in pictures. Put these data into the Matched Pairs applet to investigate whether the type of laughter makes a difference in the ratings of the jokes and also do parts (a) (b) and (c):arrow_forward
- A pandemic has begun and has been spreading in almost all countries. A tipster sent a handwritten letter to a military camp. According to the letter, the disease was due to a virus that a certain group of scientists made, and was initially developed to start a biological warfare among nations. A cure was also made alongside with it and showed that the disease may be controlled. Unfortunately, the cure was secured in a safe in a laboratory and is locked with a code. The safe was locked using the function: f (x) = 3z – 7 You are one of the troop tasked to divulge the code and open the safe. If this is the function used to lock the safe, what would be its inverse function? Write your complete solution in finding the inverse and upload a photo of this solution here.arrow_forwardYour professor is interested in determining if mode of presentation affects how prose material is remembered. She used one prose passage that was presented visually and auditorily. From 200 undergraduate students in the university, only 10agreed to participate. On the first day of the experiment, the 10participants receives visual presentation of the prose passage while on the second day, same participants hears the passages through an auditory presentation. At the end of each presentations, participants were asked to say as much of the material as they can remember within 2 minutes. The words remembered were obtained. Use Student’s tTest for Correlated Groups, alpha at .05 2 tail Visual - 4 2 5 8 2 3 3 2 5 6 Auditory- 4 4 5 9 8 4 4 5 8 6arrow_forwardRecent research suggests that the amount of time that parents spend talking about numbers can have a big impact on the mathematical development of their children (Levine, Suriyakham, Rowe, Huttenlocher, and Gunderson, 2010). In the study, the researchers visited the children's homes between the ages of 14 and 30 months and recorded the amount of "number talk" they heard from the children's parents. The researchers then tested the children's knowledge of the meaning of numbers at 46 months. The following data are similar to the results obtained in the study. X 5 Complete the following distribution table. 4 3 Children's Knowledge-of-Numbers Scores for Two Groups of Parents Low Number-Talk Parents High Number-Talk Parents 3, 4, 5, 4, 5 4, 2, 3, 5, 4 5, 3, 4, 5, 4 2 1 2, 1, 2, 3, 4 3, 3, 2, 2, 1 5, 3, 4, 1, 2 flow fhigh Using the following graphing tool, sketch a polygon showing the frequency distributions for children with low number-talk parents and children with high number-talk…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage LearningCalculus For The Life SciencesCalculusISBN:9780321964038Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.Publisher:Pearson Addison Wesley,Glencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Calculus For The Life Sciences
Calculus
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:Pearson Addison Wesley,
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill