answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
forsale [732]
2 years ago
9

Associate the average of the numbers from 1 to n (where n is a positive integer value) with the variable avg.

Mathematics
1 answer:
Kaylis [27]2 years ago
5 0
This is a simple programming question. To calculate the average of any two numbers, where one number is 1 and the other is n, simply add the two numbers and divide by 2. Therefore, the answer is:
<span>avg = (1 + n) / 2</span> 
You might be interested in
A quality control engineer tests the quality of produced computers. suppose that 5% of computers have defects, and defects occur
11111nata11111 [884]
(a) 0.059582148 probability of exactly 3 defective out of 20

 (b) 0.98598125 probability that at least 5 need to be tested to find 2 defective.

  (a) For exactly 3 defective computers, we need to find the calculate the probability of 3 defective computers with 17 good computers, and then multiply by the number of ways we could arrange those computers. So

 0.05^3 * (1 - 0.05)^(20-3) * 20! / (3!(20-3)!)

 = 0.05^3 * 0.95^17 * 20! / (3!17!)

 = 0.05^3 * 0.95^17 * 20*19*18*17! / (3!17!)

 = 0.05^3 * 0.95^17 * 20*19*18 / (1*2*3)

 = 0.05^3 * 0.95^17 * 20*19*(2*3*3) / (2*3)

 = 0.05^3 * 0.95^17 * 20*19*3

 = 0.000125* 0.418120335 * 1140

 = 0.059582148

  (b) For this problem, let's recast the problem into "What's the probability of having only 0 or 1 defective computers out of 4?" After all, if at most 1 defective computers have been found, then a fifth computer would need to be tested in order to attempt to find another defective computer. So the probability of getting 0 defective computers out of 4 is (1-0.05)^4 = 0.95^4 = 0.81450625.

 The probability of getting exactly 1 defective computer out of 4 is 0.05*(1-0.05)^3*4!/(1!(4-1)!)

 = 0.05*0.95^3*24/(1!3!)

 = 0.05*0.857375*24/6

 = 0.171475

 
 So the probability of getting only 0 or 1 defective computers out of the 1st 4 is 0.81450625 + 0.171475 = 0.98598125 which is also the probability that at least 5 computers need to be tested.
3 0
2 years ago
Tracie rides the bus home from school each day. The graph represents her distance from home relative to the number of minutes si
Semmy [17]

Step-by-step explanation:

Tracie’s bus travels towards her home at an average speed of StartFraction one-half EndFraction mile per minute.

4 0
1 year ago
Read 2 more answers
In a completely randomized experimental design involving three assembly methods, 30 employees were randomly selected and 10 were
AnnZ [28]

Answer:

F = \frac{MSR}{MSE} =\frac{45.89}{6.27}=7.32

So then the best option is:

a. 7.32

Step-by-step explanation:

Previous concepts

Analysis of variance (ANOVA) "is used to analyze the differences among group means in a sample".  

The sum of squares "is the sum of the square of variation, where variation is defined as the spread between each individual value and the grand mean"  

If we assume that we have 3 groups and on each group from j=1,\dots,10 we have 10 individuals on each group we can define the following formulas of variation:  

SS_{total}=\sum_{j=1}^p \sum_{i=1}^{n_j} (x_{ij}-\bar x)^2  

SS_{between=Treatment}=SS_{model}=\sum_{j=1}^p n_j (\bar x_{j}-\bar x)^2  

SS_{within}=SS_{error}=\sum_{j=1}^p \sum_{i=1}^{n_j} (x_{ij}-\bar x_j)^2  

And we have this property  

SST=SS_{between}+SS_{within}

Where SST represent the total sum of squares.  

The degrees of freedom for the numerator on this case is given by df_{num}=k-1=3-1=2 where k =3 represent the number of groups.  

The degrees of freedom for the denominator on this case is given by df_{den}=df_{between}=N-K=30-3=27.  

And the total degrees of freedom would be df=N-1=30 -1 =29  

From the info given we know that MSR=\frac{SSR}{2}=45.89

And MSE=\frac{SSE}{27}=6.27

From definition the F statisitc is defined as:

F = \frac{MSR}{MSE} =\frac{45.89}{6.27}=7.32

So then the best option is:

a. 7.32

3 0
2 years ago
In how many ways can you spell the word ROOM in the grid below? You can start on any letter R, then on each step you can step on
Zina [86]

Answer:

  84? Not sure but pretty sure

Step-by-step explanation:

In a straight line, the word can only be spelled on the diagonals, and there are only two diagonals in each direction that have 2 O's.

If 90° and reflex turns are allowed, then the number substantially increases.

Corner R: can only go to the adjacent diagonal O, and from there to one other O, then to any of the 3 M's, for a total of 3 paths.

2nd R from the left: can go to either of two O's, one of which is the same corner O as above. So it has the same 3 paths. The center O can go to any of 4 Os that are adjacent to an M, for a total of 10 more paths. That's 13 paths from the 2nd R.

Middle R can go the three O's on the adjacent row, so can access the three paths available from each corner O along with the 10 paths available from the center O, for a total of 16 paths.

Then paths accessible from the top row of R's are 3 +10 +16 +10 +3 = 42 paths. There are two such rows of R's so a total of 84 paths.

6 0
2 years ago
Read 2 more answers
According to the WHO MONICA Project the mean blood pressure for people in China is 128 mmHg with a standard deviation of 23 mmHg
Sati [7]

Answer:

a) Mean blood pressure for people in China.

b) 38.21% probability that a person in China has blood pressure of 135 mmHg or more.

c) 71.30% probability that a person in China has blood pressure of 141 mmHg or less.

d) 8.51% probability that a person in China has blood pressure between 120 and 125 mmHg.

e) Since Z when X = 135 is less than two standard deviations from the mean, it is not unusual for a person in China to have a blood pressure of 135 mmHg

f) 157.44mmHg

Step-by-step explanation:

When the distribution is normal, we use the z-score formula.

In a set with mean \mu and standard deviation \sigma, the zscore of a measure X is given by:

Z = \frac{X - \mu}{\sigma}

The Z-score measures how many standard deviations the measure is from the mean. After finding the Z-score, we look at the z-score table and find the p-value associated with this z-score. This p-value is the probability that the value of the measure is smaller than X, that is, the percentile of X. Subtracting 1 by the pvalue, we get the probability that the value of the measure is greater than X.

If X is two standard deviations from the mean or more, it is considered unusual.

In this question:

\mu = 128, \sigma = 23

a.) State the random variable.

Mean blood pressure for people in China.

b.) Find the probability that a person in China has blood pressure of 135 mmHg or more.

This is 1 subtracted by the pvalue of Z when X = 135.

Z = \frac{X - \mu}{\sigma}

Z = \frac{135 - 128}{23}

Z = 0.3

Z = 0.3 has a pvalue of 0.6179

1 - 0.6179 = 0.3821

38.21% probability that a person in China has blood pressure of 135 mmHg or more.

c.) Find the probability that a person in China has blood pressure of 141 mmHg or less.

This is the pvalue of Z when X = 141.

Z = \frac{X - \mu}{\sigma}

Z = \frac{141 - 128}{23}

Z = 0.565

Z = 0.565 has a pvalue of 0.7140

71.30% probability that a person in China has blood pressure of 141 mmHg or less.

d.)Find the probability that a person in China has blood pressure between 120 and 125 mmHg.

This is the pvalue of Z when X = 125 subtracted by the pvalue of Z when X = 120. So

X = 125

Z = \frac{X - \mu}{\sigma}

Z = \frac{125 - 128}{23}

Z = -0.13

Z = -0.13 has a pvalue of 0.4483

X = 120

Z = \frac{X - \mu}{\sigma}

Z = \frac{120 - 128}{23}

Z = -0.35

Z = -0.35 has a pvalue of 0.3632

0.4483 - 0.3632 = 0.0851

8.51% probability that a person in China has blood pressure between 120 and 125 mmHg.

e.) Is it unusual for a person in China to have a blood pressure of 135 mmHg? Why or why not?

From b), when X = 135, Z = 0.3

Since Z when X = 135 is less than two standard deviations from the mean, it is not unusual for a person in China to have a blood pressure of 135 mmHg.

f.) What blood pressure do 90% of all people in China have less than?

This is the 90th percentile, which is X when Z has a pvalue of 0.28. So X when Z = 1.28. Then

X = 120

Z = \frac{X - \mu}{\sigma}

1.28 = \frac{X - 128}{23}

X - 128 = 1.28*23

X = 157.44

So

157.44mmHg

6 0
2 years ago
Other questions:
  • What is the approximate percent decrease when a fish count goes down from 850 to 500?
    11·2 answers
  • Supervisor: "Congratulations. You received a score of 3.4 on your annual review. Merit increases are given out starting at .5% a
    9·2 answers
  • 2. A statistics student plans to use a TI-84 Plus calculator on her final exam. From past experience, she estimates that there i
    8·1 answer
  • A rainwater collection system uses a cylindrical storage tank with a diameter of
    12·2 answers
  • A gas station attendant has some antifreeze that is 40% alcohol and another type that is 60% alcohol. He wishes to make 1000 gal
    11·1 answer
  • Classify the expression: 5x + 3x2 − 7x3 + 2.
    9·2 answers
  • Which system of equations below has no solution? A. y = 4x + 5 and y = 4x – 5 B. y = 4x + 5 and 2y = 8x + 10 C. y = 4x + 5 and y
    8·1 answer
  • While starting salaries have fallen for college graduates in many of the top hiring fields, there is some good news for business
    9·1 answer
  • Mandy used the input and output in this table to write ratios. She concluded that because they are not all equivalent, this is n
    10·2 answers
  • Steven bagged 52 pounds of potatoes. About what is that measure in kilograms?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!