- #1

artiny

- 7

- 0

## Homework Statement

On this vector I didnt get the right answer:

x = [ 5 8 10 11 137 ] [/B]

q3: i = (p/100)*n = (75/100)*5 = 3.75 >> 4th in vector is 11

q1: i = (25/100)*5 = 1.25 >> 2nd is 8

in MATLAB is solution

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter artiny
- Start date

- #1

artiny

- 7

- 0

On this vector I didnt get the right answer:

x = [ 5 8 10 11 137 ] [/B]

q3: i = (p/100)*n = (75/100)*5 = 3.75 >> 4th in vector is 11

q1: i = (25/100)*5 = 1.25 >> 2nd is 8

in MATLAB is solution

- #2

- 38,831

- 8,219

1/10 are <= 5

3/10 are <= 8,

5/10 are <= 10

etc.

For the first quartile, we want find how many are <= 0.25. This is done by interpolation between1/10 and 3/10. 0.25 is positioned (0.25-0.1)/(0.3-0.1) along that interval, so gets that share of (8-5):

5 + (8-5)*(0.25-0.1)/(0.3-0.1) = 7.25.

Share:

- Last Post

- Replies
- 4

- Views
- 196

- Replies
- 3

- Views
- 266

- Last Post

- Replies
- 4

- Views
- 680

- Replies
- 9

- Views
- 325

- Replies
- 5

- Views
- 260

- Last Post

- Replies
- 2

- Views
- 457

- Replies
- 25

- Views
- 360

- Replies
- 6

- Views
- 227

- Replies
- 7

- Views
- 781

- Replies
- 2

- Views
- 237