Question

In: Statistics and Probability

Sally is tracking her spending. Every day for n days, Sally tracks the exact amount of...

Sally is tracking her spending. Every day for n days, Sally tracks the exact amount of dollars he spends that day, which is a nonnegative real number but not necessarily an integer. For positive integers i ≤ n, he spends xi dollars on day i. For example, on day 1, he spends x1 dollars. At the end of the n days, he calculates the average daily amount he spends on his food to be averagex = (x1 + x2 + · · · + xn)/n.

a) Prove that on at least one of the n days, Jarett paid at least averagex dollars.
(b) Prove that on fewer than half of the n days, Jarett paid strictly more than 2averagex dollars.

Solutions

Expert Solution

a) Assume that Jarett paid less than avgx in all the days.

x1 + x2 + x3 + ... = n.avgx

Let xi = (avgx - ki) be the amount spend on ith day. Where ki is a positive number

(avgx-k1) + (avgx-k2) + (avgx-k3) + (avgx-k4) + ..... = n.avgx

n.avgx - (k1 + k2 + k3 + k4 +...) = n.avgx

(k1 + k2 + k3 + k4 +...) = 0

since ki is a positive number their sum cannot be 0. So this is a contraditction. Which means that Jarett cannot spend less than avgx in all the days.

The only ase where (k1 + k2 + k3 + k4 +...) = 0 is when k1 = k2 = k3 =... = ki = 0.

So in at least one day he has to pay avgx

b) Let us assume that jarett paid more than 2avgx for m number of days where m = n/2 or more days.

m = n/2+a; a>0

n/2+a+b = n; a+b = n/2

Total spend for these days is m.(2avgx+ji)

= (n/2+a).(2avgx) +(j1+j2+j3+..jm)

= n.avgx + 2a.avgx +  (j1+j2+j3+..jb) > n.avgx

Which is wrong since ji>0. So our assumption that m > n/2 is wrong.

Therefore m < n/2


Related Solutions

Alicia is an accountant for Winston Pharmaceuticals. Her duties include tracking research and development spending in...
Alicia is an accountant for Winston Pharmaceuticals. Her duties include tracking research and development spending in the new product development division. Over the course of the past six months, Alicia notices that a great deal of funds have been spent on a particular project for a new drug. She hears "through the grapevine" that the company is about to patent the drug and expects it to be a major advance in antibiotics. Alicia believes that this new drug will greatly...
Consider the data sheet below that tracks employee hours worked over four days:    Day 1 Day...
Consider the data sheet below that tracks employee hours worked over four days:    Day 1 Day 2 Day 3 Day 4 Employee 1 5 8 6 2 Employee 2 2 0 8 6 Employee 3 6 4 9 5 Employee 4    7 8 8 4 Employee 5   3 6 2 8 Employee 6   9 5 1 7 Based on the above information, write a Java program that performs the following tasks: Task 1) Recreate the matrix as a two-dimensional...
Sally Artisan Bakery makes a variety of organic bread. The bakery is open every day from...
Sally Artisan Bakery makes a variety of organic bread. The bakery is open every day from 7 AM to 6 PM. At 4 PM each day, the bakery marks down its goods by 25%. It also offers a 10% discount every Sunday before 10 AM. Design a spreadsheet that displays the current date/time in one cell. Have your spreadsheet display the correct amount due when the user enters a sale amount, assuming no taxes will be charged.
suppose a woman wants to estimate her exact day of ovulation for contraceptive purposes. A theory...
suppose a woman wants to estimate her exact day of ovulation for contraceptive purposes. A theory exists that at the time of ovulation the body temperature rises 0.5 to 1.0 degrees F thus, changes in body temperature can be used to goes the day of ovulation. suppose that for this purpose a woman measures her body temperature on awakening on the first 10 days after menstruation and obtains the following data: 95.8, 96.5, 97.4, 97.4, 97.3, 96.0, 97.1, 97.3, 96.2,...
A bug collector collects bugs every day for seven days. Design a program that keeps a...
A bug collector collects bugs every day for seven days. Design a program that keeps a running total of the number of bugs collected during the seven days. The loop should ask for the number of bugs collected for each day, and when the loop is finished, the program should display the total number of bugs collected. Finally, compute and display the average number of bugs collected. You should have 2 functions defined: A main – control program flow A...
A bug collector collects bugs every day for five days. Write a program that keeps a...
A bug collector collects bugs every day for five days. Write a program that keeps a running total of the number of bugs collected during the five days. The loop should ask for the number of bugs collected for each day, and when the loop is finished, the program should display the total number of bugs collected. need this in Python
2. A 20-year old student wants to save $3 a day for her retirement. Every day...
2. A 20-year old student wants to save $3 a day for her retirement. Every day she places $3 in a drawer. At the end of the year, she invests the accumulated savings ($1,095) in a brokerage account with an expected annual return of 12%. a) How much money will she save when she turns 65 years old? b) If she does not start saving until she is 40 years old, how much will she have by age 65?
You eat five days per week at the same restaurant, and every day you order a...
You eat five days per week at the same restaurant, and every day you order a sandwich and a drink. There are 26 sandwiches including 6 vegetarian options, and 15 drinks including 4 caffeine-free drinks. On Tuesdays, you like to eat healthy, so you always choose a vegetarian sandwich and a caffeine free drink on Tuesdays. The other days you can eat any sandwich and drink any drink - but you never repeat a sandwich or a drink in the...
You eat five days per week at the same restaurant, and every day you order a...
You eat five days per week at the same restaurant, and every day you order a sandwich and a drink. There are 26 sandwiches including 6 vegetarian options, and 15 drinks including 4 caffeine-free drinks. On Tuesdays, you like to eat healthy, so you always choose a vegetarian sandwich and a caffeine free drink on Tuesdays. The other days you can eat any sandwich and drink any drink - but you never repeat a sandwich or a drink in the...
You eat five days per week at the same restaurant, and every day you order a...
You eat five days per week at the same restaurant, and every day you order a sandwich and a drink. There are 20 sandwiches including 6 vegetarian options, and 14 drinks including 4 caffeine-free drinks. On Tuesdays, you like to eat healthy, so you always choose a vegetarian sandwich and a caffeine free drink on Tuesdays. The other days you can eat any sandwich and drink any drink - but you never repeat a sandwich or a drink in the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT