Click here to Skip to main content
15,886,199 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralAssigning random lives: an algorithm Pin
DQNOK15-Apr-08 13:15
professionalDQNOK15-Apr-08 13:15 
GeneralRe: Assigning random lives: an algorithm Pin
Alan Balkany16-Apr-08 4:33
Alan Balkany16-Apr-08 4:33 
GeneralRe: Assigning random lives: an algorithm Pin
DQNOK16-Apr-08 5:53
professionalDQNOK16-Apr-08 5:53 
GeneralRe: Assigning random lives: an algorithm Pin
Alan Balkany16-Apr-08 6:03
Alan Balkany16-Apr-08 6:03 
GeneralRe: Assigning random lives: an algorithm Pin
DQNOK16-Apr-08 6:07
professionalDQNOK16-Apr-08 6:07 
GeneralRe: Assigning random lives: an algorithm Pin
DQNOK16-Apr-08 6:24
professionalDQNOK16-Apr-08 6:24 
Generalgenerating random values from a PDF: GOT IT. [modified] Pin
DQNOK16-Apr-08 7:36
professionalDQNOK16-Apr-08 7:36 
GeneralRe: Assigning random lives: an algorithm Pin
DQNOK16-Apr-08 6:02
professionalDQNOK16-Apr-08 6:02 
OK, you've got me thinking...

The PDF appropriate for a given used part is the subset of the original PDF that is (thinking graphically) "to the right" of that part's age. BUT, this part of the graph doesn't have unit area (the area under this part of the curve is no longer unity). But even that doesn't seem such a large handicap; just normalize it by the area that IS there.

If I could somehow mathematically model this "left-truncated" PDF, I could -- as you alluded to in your response, use it to assign a random life. As you pointed out, taking the mean of the remainder of the original PDF gives the best EXPECTED life; I just need to figure out how to use that remainder to assign a random life.

Hmmmmm... Maybe it's not so hard. I'll have to think about it a while.

David
---------
Empirical studies indicate that 20% of the people drink 80% of the beer. With C++ developers, the rule is that 80% of the developers understand at most 20% of the language. It is not the same 20% for different people, so don't count on them to understand each other's code.
http://yosefk.com/c++fqa/picture.html#fqa-6.6

---------

Generalhamilton algorithm Pin
phap12-Apr-08 4:17
phap12-Apr-08 4:17 
GeneralRe: hamilton algorithm Pin
soap brain12-Apr-08 4:51
soap brain12-Apr-08 4:51 
QuestionRe: hamilton algorithm Pin
CPallini12-Apr-08 5:42
mveCPallini12-Apr-08 5:42 
GeneralRe: hamilton algorithm Pin
soap brain12-Apr-08 5:48
soap brain12-Apr-08 5:48 
GeneralRe: hamilton algorithm Pin
phap12-Apr-08 6:52
phap12-Apr-08 6:52 
GeneralRe: hamilton algorithm Pin
pmarfleet12-Apr-08 8:07
pmarfleet12-Apr-08 8:07 
GeneralRe: hamilton algorithm Pin
73Zeppelin22-Apr-08 1:03
73Zeppelin22-Apr-08 1:03 
GeneralRe: hamilton algorithm Pin
soap brain22-Apr-08 1:06
soap brain22-Apr-08 1:06 
GeneralRe: hamilton algorithm Pin
73Zeppelin22-Apr-08 1:33
73Zeppelin22-Apr-08 1:33 
GeneralRe: hamilton algorithm Pin
soap brain22-Apr-08 1:58
soap brain22-Apr-08 1:58 
GeneralRe: hamilton algorithm Pin
73Zeppelin22-Apr-08 2:10
73Zeppelin22-Apr-08 2:10 
GeneralRe: hamilton algorithm Pin
soap brain22-Apr-08 2:49
soap brain22-Apr-08 2:49 
GeneralRe: hamilton algorithm Pin
73Zeppelin22-Apr-08 3:30
73Zeppelin22-Apr-08 3:30 
GeneralRe: hamilton algorithm [modified] Pin
soap brain22-Apr-08 17:23
soap brain22-Apr-08 17:23 
GeneralRe: hamilton algorithm Pin
73Zeppelin22-Apr-08 22:21
73Zeppelin22-Apr-08 22:21 
GeneralRe: hamilton algorithm Pin
soap brain22-Apr-08 22:30
soap brain22-Apr-08 22:30 
GeneralRe: hamilton algorithm Pin
soap brain22-Apr-08 22:53
soap brain22-Apr-08 22:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.