Magicwand started Masters degree in Operations Research

All non-Go discussions should go here.
DrStraw
Oza
Posts: 2180
Joined: Tue Apr 27, 2010 4:09 am
Rank: AGA 5d
GD Posts: 4312
Online playing schedule: Every tenth February 29th from 20:00-20:01 (if time permits)
Location: ʍoquıɐɹ ǝɥʇ ɹǝʌo 'ǝɹǝɥʍǝɯos
Has thanked: 237 times
Been thanked: 662 times
Contact:

Re: Magicwand started Masters degree in Operations Research

Post by DrStraw »

Magicwand wrote:I will ask my professor to make everyone feel better :)


If he has not already told you that it is done on the honor system then he is very lax. I always have it in big letters at the top of the test.
Still officially AGA 5d but I play so irregularly these days that I am probably only 3d or 4d over the board (but hopefully still 5d in terms of knowledge, theory and the ability to contribute).
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

I am trying to build excel plot of Cumulative normal probability vs residuals.
i got residuals of the data but how do i get probability of each residual data?

I am suppose to work it with minitab that automatically draw the graph...
but i am trying to understand instead of using mini-tab.

can someone give me help on how i get prob of each residual?

Edit:
Solved it!
Standarize it and use normsdist() function to get percentage...
thank you.

edit:
but graph i get is different from the graph on the answer book :(
back to square 1
Last edited by Magicwand on Fri Sep 13, 2013 1:57 pm, edited 1 time in total.
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
User avatar
wineandgolover
Lives in sente
Posts: 866
Joined: Sun Jul 25, 2010 6:05 am
GD Posts: 0
Has thanked: 318 times
Been thanked: 345 times

Re: Magicwand started Masters degree in Operations Research

Post by wineandgolover »

Umpteen years later and they still use minitab. Makes my day.
- Brady
Want to see videos of low-dan mistakes and what to learn from them? Brady's Blunders
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

wineandgolover wrote:Umpteen years later and they still use minitab. Makes my day.

i remember 23 or 22 years ago i used it in actuarial class 121 in university of toranto.
my impression of minitab is that excel can do same functions and why anyone want to pay for minitab?
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

i think actual file will help others help me better...
i have attached week 4 homework excel spread sheet.
now my question is why is my risidual vs normal prob curve different from answer book?
someone please help me because i can not figure this out.
Attachments
week4_Stat_HW.xlsx
(65.73 KiB) Downloaded 483 times
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
DrStraw
Oza
Posts: 2180
Joined: Tue Apr 27, 2010 4:09 am
Rank: AGA 5d
GD Posts: 4312
Online playing schedule: Every tenth February 29th from 20:00-20:01 (if time permits)
Location: ʍoquıɐɹ ǝɥʇ ɹǝʌo 'ǝɹǝɥʍǝɯos
Has thanked: 237 times
Been thanked: 662 times
Contact:

Re: Magicwand started Masters degree in Operations Research

Post by DrStraw »

Magicwand wrote:i think actual file will help others help me better...
i have attached week 4 homework excel spread sheet.
now my question is why is my risidual vs normal prob curve different from answer book?
someone please help me because i can not figure this out.


It would be nice to know what the problem was actually saying and asking. All I saw was a much of data and graphs.
Still officially AGA 5d but I play so irregularly these days that I am probably only 3d or 4d over the board (but hopefully still 5d in terms of knowledge, theory and the ability to contribute).
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

Yes it would be helpful :)
pink section is last week HW i did
this week i am using same data to
a)calculate R^2 which i got same answer as answerbook.
b) Prepare a normal probability plot of the residuals from the least squares model.
c) Plot the risiduals versus the fitted values and against X.
i got c) similar to answer book.
problem is b)
i standarized residual by dividing it by square root of sigma square.
then i used normsdist function in excel to get percentage of standarized residual d.
i plotted d vs percentage.
but the plot appears to be different.

what did i do wrong?
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
User avatar
drmwc
Lives in gote
Posts: 452
Joined: Sat Dec 01, 2012 2:18 pm
Rank: 4 Dan European
GD Posts: 0
Has thanked: 74 times
Been thanked: 100 times

Re: Magicwand started Masters degree in Operations Research

Post by drmwc »

I've also got a PhD in pure maths, altough I don't work anywhere near academia at the moment.

Was your chart for 11-53(b) similar to the book solution? You've used the same technique for both, so it would seem odd if one is right and the other wrong. The chart technique seems like a reasonable heuristic for showing normality (or not, as the case may be).

What did the book answer look like?
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

drmwc wrote:I've also got a PhD in pure maths, altough I don't work anywhere near academia at the moment.

Was your chart for 11-53(b) similar to the book solution? You've used the same technique for both, so it would seem odd if one is right and the other wrong. The chart technique seems like a reasonable heuristic for showing normality (or not, as the case may be).

What did the book answer look like?


what other students did was to use mini-tab to draw which was what answer book had.
i used what little math i know and used excel to draw the plot.
book answer was similar but didnt have funny curve that i had.
i can wait for my professor to reply to my homework... he will only decuct few points so really dont matter..
other than that plot i think i had everything else correct i think.

thank you for trying.
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

Problem 1
Each month, a gas station sells 4,000 gallons of gasoline. Each time the parent company refills the stations's tanks, it charges the station $50 plus 70¢, per gallon. The annual cost of holding a gallon of gasoline is 30¢.
We are given that K = $50, h = 30¢/gallon/year, and D = 48,000 gallons/ year.
a. How large should the station's order be?
The EOQ is q* = (2KD/h)1/2
= (2(50)(48000)/.3)1/2
= 4000

b. How many order per year will be placed?
Order/Year = D/q* = 48000/4000 = 12

c. How long will it be between orders?
Length of a cycle = q*/D = 4000/48000 = 1/12 = one month

d. Would the EOQ Assumptions be satisfied in this situation? Why or Why not?
EOQ Assumption:
1. Demand is deterministic and occurs at a constant rate.
2. If an order of any size (say, q units) is place, an ordering and setup cost K is incurred.
3. The lead time for each order is zero.
4. No shortages are allowed.
5. The cost per unit-year of holding inventory is h
In real situation such as above demand will not be constand and lead time can not be zero.
Lead time not being zero also means that shortage may occur.

e. If the lead time is two weeks, what is the reorder point? If the lead time is ten weeks, what is the reorder point? Assume 1 week = 1/52 year.

For a 2-week lead time, reorder point = 48,000 x 2/52 = 1,846.15 gallons.
For a 10-week lead time, reorder point = 1,230.77 gallons.

can someone explain how leadtime of 10 week ordering point is less that 2 week ordering point?
answerbook said following:
If Leadtime = 10 weeks, then Leadtime demand > EOQ. Assume that an order arrives at time T=0. then an order must have been placed at T = -10. We know that an order is placed every 52/12 = 13/3 weeks. thus an order was place at T = 0 we will have 4000 gallons in stock, we know that at the reorder point T = 3 (and any other reorder point) we will have
4000-(3/52)48,000 = 1231 in stock.

reading that paragraph many times and can not understand what they said.

thanks in advance.
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
tj86430
Gosei
Posts: 1348
Joined: Wed Apr 28, 2010 12:42 am
Rank: FGA 7k GoR 1297
GD Posts: 0
Location: Finland
Has thanked: 49 times
Been thanked: 129 times

Re: Magicwand started Masters degree in Operations Research

Post by tj86430 »

Magicwand wrote:can someone explain how leadtime of 10 week ordering point is less that 2 week ordering point?
answerbook said following:
If Leadtime = 10 weeks, then Leadtime demand > EOQ. Assume that an order arrives at time T=0. then an order must have been placed at T = -10. We know that an order is placed every 52/12 = 13/3 weeks. thus an order was place at T = 0 we will have 4000 gallons in stock, we know that at the reorder point T = 3 (and any other reorder point) we will have
4000-(3/52)48,000 = 1231 in stock.

reading that paragraph many times and can not understand what they said.

thanks in advance.

Which part you don't understand? What it says is that you have be over two cycles ahead in your reorders, because the lead time is so long. And because of that, you can have less left than with a lead time of two weeks.

Another way of putting it is this: reorder point = (48000 x lead time in weeks / 52) Modulus 4000.

lead time of two gives (48000 x 2 / 52) Modulus 4000 = 1846.15
lead time of ten gives (48000 x 10 / 52) Modulus 4000 = 1230.77

Similarly a lead time of twenty would give 2461.54 etc
Offending ad removed
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

tj86430 wrote:Which part you don't understand? What it says is that you have be over two cycles ahead in your reorders, because the lead time is so long. And because of that, you can have less left than with a lead time of two weeks.

Another way of putting it is this: reorder point = (48000 x lead time in weeks / 52) Modulus 4000.

lead time of two gives (48000 x 2 / 52) Modulus 4000 = 1846.15
lead time of ten gives (48000 x 10 / 52) Modulus 4000 = 1230.77

Similarly a lead time of twenty would give 2461.54 etc

understood ..thank you.
way you explain is much simpler than the answerbook.
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

A drug store sells 30 bottles of antibiotics per week. Each time it orders antibiotics, there is a fixed ordering cost of $10 and a cost of $10/bottle. Assume that the annual holding cost is 20% of the cost of a bottle of antibiotics, and suppose antibiotics spoil and cannot be sold if they spend more than one week in inventory. When the drug store places an order, how many bottles of antibiotics should be ordered?
My answer is : If antibiotics spoil in one week and they sell 30 bottles per week only solution is to order 30 bottles everyweek. but not comfortable with this answer. can anyone do better?
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
skydyr
Oza
Posts: 2495
Joined: Wed Aug 01, 2012 8:06 am
GD Posts: 0
Universal go server handle: skydyr
Online playing schedule: When my wife is out.
Location: DC
Has thanked: 156 times
Been thanked: 436 times

Re: Magicwand started Masters degree in Operations Research

Post by skydyr »

Magicwand wrote:A drug store sells 30 bottles of antibiotics per week. Each time it orders antibiotics, there is a fixed ordering cost of $10 and a cost of $10/bottle. Assume that the annual holding cost is 20% of the cost of a bottle of antibiotics, and suppose antibiotics spoil and cannot be sold if they spend more than one week in inventory. When the drug store places an order, how many bottles of antibiotics should be ordered?
My answer is : If antibiotics spoil in one week and they sell 30 bottles per week only solution is to order 30 bottles everyweek. but not comfortable with this answer. can anyone do better?


I can't help but wonder if there's a typo and they meant to say that the antibiotics spoil after one month or year or something.
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Magicwand started Masters degree in Operations Research

Post by Magicwand »

skydyr wrote:
Magicwand wrote:A drug store sells 30 bottles of antibiotics per week. Each time it orders antibiotics, there is a fixed ordering cost of $10 and a cost of $10/bottle. Assume that the annual holding cost is 20% of the cost of a bottle of antibiotics, and suppose antibiotics spoil and cannot be sold if they spend more than one week in inventory. When the drug store places an order, how many bottles of antibiotics should be ordered?
My answer is : If antibiotics spoil in one week and they sell 30 bottles per week only solution is to order 30 bottles everyweek. but not comfortable with this answer. can anyone do better?


I can't help but wonder if there's a typo and they meant to say that the antibiotics spoil after one month or year or something.

It is good to know that i am not the only one who think that way.
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
Post Reply