Winamp & Shoutcast Forums Math related question about a playlist

 22nd November 2007, 04:00 #1 NuttySquirrel Junior Member   Join Date: Sep 2004 Posts: 33 Math related question about a playlist This isn't really a Winamp issue, but I have a question about a playlist. I have a playlist that has 352 songs. I'd like to add a certain amount of Christmas songs so that the likelihood of one being played is 1/4 or .25. How would I figure out how many to add in? I know its got to be simple math but I'm just not thinking about it right.
 22nd November 2007, 04:38 #2 Wildrose-Wally The Albertan   Join Date: Mar 2001 Posts: 6,122 Add 117 Christmas songs.
 22nd November 2007, 04:42 #3 NuttySquirrel Junior Member   Join Date: Sep 2004 Posts: 33 Thanks! How'd you get the number if I may ask?
22nd November 2007, 05:33   #4
davatron
Junior Member

Join Date: Oct 2007
Posts: 3
Quote:
 Originally posted by NuttySquirrel Thanks! How'd you get the number if I may ask?
Here's the setup:
#of xmas songs/#total songs = 0.25

Here's the algebra involved.

Let X = Number of songs to add

X/(352+X)=0.25

X = 88+0.25X

0.75X=88

X = 117.3(Repeating)

Since there is no way to add .3(Repeating) songs, just round down. This will make the probability slightly lower than .25 (somewhere in the neighborhood of .2494 .. which obviously is VERY close to .25

You can round up to 118 to have a slightly higher chance-- 0.25106

Good luck,
-Davis

 22nd November 2007, 05:46 #5 Razzinno Piffle Producer     Join Date: May 2006 Location: the secret files of my pc Posts: 2,588 If algebra isn't your bag, just divide 352 by 3, since 352 is going to represent 3 fourths of your playlist.
 22nd November 2007, 15:06 #6 NuttySquirrel Junior Member   Join Date: Sep 2004 Posts: 33 Ah, that's what I was doing wrong! I was dividing 352 by 4 when I should have been dividing it by 3. Thanks for the help and hope you all have a great Thanksgiving!
 Winamp & Shoutcast Forums Math related question about a playlist