Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / A "low chance of that happening" question

Author
Message
Kryogenik
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location: Heidelberg, Germany
Posted: 6th Jan 2010 17:41
This question has been keeping me up at night, see if you guys can help me out. Anyway, take the following. A guy makes a program that writes random sound and visual data each frame to a dvd. If it goes 30 frames a second for 23 minutes or so, what are the chances(percent or whatever) it will come out as an episode of the colbert report, or something? Assume its a blu-ray disc with 1080p full hd and 7.1 surround sound. I'm not sure how you would figure this out, but it is geek culture I don't mean dvd menus or anything, just the actual episode. Thanks in advance.

Codesurge is so awsome, thanks Hyrichter.
Silvester
19
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 6th Jan 2010 17:46
Well, there's already one in a million chance the first PIXEL will even be right.. And the second one will be that million multiplied by another million, so there's barely any chance of such a thing happening, for every pixel to be right you'd have to multiply the chance it might happen by another million or so... So to get 3 pixels right you've got like a one to a three million chance or so?

Note that this is not based on the actual amount of pixels on the film, but a rough speculation of how to calculate such a thing.


EDP Map Editor[2D]
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 6th Jan 2010 17:51
Since you're already up at night, why don't you give it a shot and let us know how it turns out. It couldn't be any more meaningless than the question itself.

Brian.

Diru
16
Years of Service
User Offline
Joined: 25th Jan 2009
Location: England
Posted: 6th Jan 2010 18:02
1080p = 1920px * 1080px = 2073600 ~ 2*10^6 pixels on screen
256^3 = 16777216 ~ 1.6*10^7 possible values for each pixel

So there's a 1/(1.6*10^7) chance of one pixel being correct.
A (1/(1.6*10^7))^2*10^6 chance of a single frame being correct.

At 30 FPS, there is a ((1/(1.6*10^7))^2*10^6)^30 of a second being correct.

23 minutes = 60*23 = 1380 seconds

(((1/(1.6*10^7))^2*10^6)^30)^1380 of the whole episode having the correct frames.

I don't know much about sound to attempt that. If my maths is wrong could someone please correct me
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 6th Jan 2010 18:14
44100 samples/sec @ 16-bit (65536 possible positions) on Stereo.

44100x65536x2 per second. What's that?

Athlon64 2.7gHz->OC 3.9gHz, 31C, MSi 9500GT->OC 1gHz core/2gHz memory, 48C, 4Gb DDR2 667, 500Gb Seagate + 80Gb Maxtor + 40Gb Maxtor = 620Gb, XP Home
Air cooled, total cost £160
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 6th Jan 2010 19:43
So overall, a good chance!

Radical hamsters skipping furiously into the blue ether, questioning their very existence while breathing out the bitter fog of smoked haddock.
Diru
16
Years of Service
User Offline
Joined: 25th Jan 2009
Location: England
Posted: 6th Jan 2010 19:48
44100*65536*2 = 5780275200 ~ 5.8*10^9
5.8*10^9*1380 = 8*10^12

So a 1 in 8*10^12 chance of the sound being correct?

So overall:

((((1/(1.6*10^7))^2*10^6)^30)^1380)^8*10^12

I'm probably wrong though.
AndrewT
18
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 6th Jan 2010 20:26
Quote: "So a 1 in 8*10^12 chance of the sound being correct?"


Per second.

i like orange
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 6th Jan 2010 20:37
Ah, yes, but he's already evaluating the video per second so wouldn't that work with the audio per second?

Athlon64 2.7gHz->OC 3.9gHz, 31C, MSi 9500GT->OC 1gHz core/2gHz memory, 48C, 4Gb DDR2 667, 500Gb Seagate + 80Gb Maxtor + 40Gb Maxtor = 620Gb, XP Home
Air cooled, total cost £160
Maindric
15
Years of Service
User Offline
Joined: 22nd Jul 2009
Location:
Posted: 6th Jan 2010 20:38
You also have that much of a chance of getting a Family guy episode or anything else in video.

Eddie Gordo
22
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 6th Jan 2010 20:54
96-kHz 32-bit is the going to be the maximum audio specs capable of blu-ray with 8 channels... just so you know...

~Cyrano De Bergerac~
Cash Curtis II
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 6th Jan 2010 21:26
Approximately 0. That's been rounded up. You should get a real hobby.


Download the game!
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 6th Jan 2010 23:18
@Cash Curtis
just LOL

Windows Vista 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
DJ Almix
19
Years of Service
User Offline
Joined: 25th Feb 2006
Location: Freedom
Posted: 6th Jan 2010 23:33


I would say infinite.

Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 7th Jan 2010 01:09
c'mon, this is just like saying if we made dbpro pick a random color for each pixel in each frame for 30 frames a second would i turn into a movie, of course it wouldn't, no matter what the chances are, It's still impossible.

Windows Vista 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 7th Jan 2010 01:11
IMPROBABLE.

Though in the case of a computer doing it, are there any good enough randomizers out there that could actually make enough data for it not to be the same thing over and over again?

Athlon64 2.7gHz->OC 3.9gHz, 31C, MSi 9500GT->OC 1gHz core/2gHz memory, 48C, 4Gb DDR2 667, 500Gb Seagate + 80Gb Maxtor + 40Gb Maxtor = 620Gb, XP Home
Air cooled, total cost £160
ionstream
20
Years of Service
User Offline
Joined: 4th Jul 2004
Location: Overweb
Posted: 7th Jan 2010 01:49
This question is difficult to answer because audio isn't completely discreet (at least, recognizing it as an audio from the Colbert Report is not). But lets take a look at a hypothetical, to get things in perspective.

Lets say for simplicity's sake, a sample of audio is stored as a 2-byte word (the standard might be 4, I'm not sure). This means there are 2^16, or 65536 possibilities for that sample to be. So the odds of getting the first sample right are 1 in 65536. The odds of getting the first two samples right is 1 in 65536 squared, or 1 in 4,294,967,296.

I'm not sure what format Colbert is in, but a show on TV for a half hour has about 22 minutes of actual content (the rest being commercials), or 1320 seconds. A mono episode might be sampled at 44000hz, having a total of 1320*44000 samples of audio in the entire episode, which is 58,080,000.

So if getting the first 2 samples right is 1/65536^2, then getting all 58,080,000 samples correct is 1 in 65536^58080000. Python went out of memory when trying to calculate this number.

Not so good!

Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 7th Jan 2010 02:20
Also known as impossible. Face it, it would NEVER happen, even if you did it trillions of times, you just wouldn't get an actual epidsode from it.

Windows Vista 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 7th Jan 2010 06:28
Quote: "Also known as impossible."


No. Also, there do exist 'truly random' RNGs so it's possible, just improbable as mentioned earlier, if you think it's impossible then No.

Happy Cheesecake
15
Years of Service
User Offline
Joined: 16th Jun 2009
Location: My non-vice-presidential refrigerator.
Posted: 7th Jan 2010 06:41
Yes, it could happen. But it won't. Ever. Nobody will do it and nothing's going to make it happen now, later, or far into the future. Nobody will have the motivation, therefore the possibility of it happening is 0. Impossible.

Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 7th Jan 2010 08:22
Quote: "Yes, it could happen."


Quote: "Impossible."


Nice contradiction.

Happy Cheesecake
15
Years of Service
User Offline
Joined: 16th Jun 2009
Location: My non-vice-presidential refrigerator.
Posted: 7th Jan 2010 08:26
Fine then, let me rephrase that for your tastes.

Yes, it could happen. But it won't. Ever. Nobody will do it and nothing's going to make it happen now, later, or far into the future. Nobody will have the motivation, therefore the possibility of it happening is 0.

Happy?

Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 7th Jan 2010 08:50
Not really, no, because somebody could have the motivation. You can't speak for 7 billion people on this Earth. Sure, it's extremely unlikely, but not impossible.

dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 7th Jan 2010 09:36
Quote: "Yes, it could happen."

Quote: "therefore the possibility of it happening is 0."


Cognitive dissonance?

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Jan 2010 10:38 Edited at: 7th Jan 2010 10:42
There are 16.7 million possible pixel colors. So you have a 1 in 16.7 million chance of getting the first pixel in the first frame correct.

The probability that you'll get 2 pixels correct is 16.7^2(millions).

Full HD resolution is 1920x1080, or 2,073,600 pixels. So technically, your chance is getting just 1 frame correct in your video is:

16.7(million)^2073600 = "windows cannot calculate"

That's just 1 single frame. At 30 frames per second for 23 minutes would be:

Chance of 1 frame: 16,700,000^2,073,600
30fps for 23min: 30*(23*60) = 41,400 frames

1 in (16,700,000^2,073,600)^41,400 = 16,700,000^85,847,040,000

So theoretically, yes it's possible (mind you this is video only), but I doubt even a super computer could calculate fast enough to give you a solution within a year.

How about a compressed version of the show, let's say 256 colors at 320x240 and 24fps. And we'll only calculate a 5 minute preview.

(256^76,800)^[24*(5*60)] = 256^552,960,000

Quote: "This question has been keeping me up at night,"

I assure you I won't be losing any sleep over this.


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke
Dazzag
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Cyprus
Posted: 7th Jan 2010 11:01
Hasn't this already been done in a previous thread? Think it got to the level of calculating the amount of diskspace you would require for a single image, not to mention the amount of time you would need to check each frame to see if it is what you want or a HAL type level of program to check things for you.

So nah, no chance of being kept awake. I do remember thinking the same thing as a kid around 1983, staying awake, doing the sums, and realising (even at the time on my extemely limited Spectrum 48k) that it was impossible, before going back to sleep.

Cheers

I am 99% probably lying in bed right now... so don't blame me for crappy typing
Current fave quote : "She was like a candle in the wind.... unreliable...."
Kryogenik
15
Years of Service
User Offline
Joined: 22nd Sep 2009
Location: Heidelberg, Germany
Posted: 7th Jan 2010 21:26
"Its impossible" "It could happen" "I won't be losing sleep"
I knew stuff like this would happen its like mentioning goto's(don't get into one of those talks). And plus, I'm not even in high school yet, and when I said keeping me up at night, I meant I thought it would be cool to know that sometimes. Its not like I wouldn't fall asleep until 4 because of a question like this. Thanks for the answers though, I thought I'd get nothing but flames.

Codesurge is so awesome, thanks Hyrichter.
Takar
15
Years of Service
User Offline
Joined: 11th Aug 2009
Location:
Posted: 7th Jan 2010 22:22
The real question here is "Who cares?"
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 8th Jan 2010 00:17
You can tell this is a computer geek forum though - a very digital take on the old monkeys/works of shakespeare thing...

I must side with all the people here who have so aptly demonstrated a complete lack of caring, in all their varied, special little ways.

Dazzag
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Cyprus
Posted: 8th Jan 2010 08:40 Edited at: 8th Jan 2010 08:43
Golly, this one went quite nicely compared to the last one if I remember rightly...

Quote: "I knew stuff like this would happen its like mentioning goto's"
Actually the main part of one of our systems is a Unix based language (normally running on IBMs and DGs in our case) that we have used for over 20 years (although obviously new versions come out each year or so), and after a lot of testing GOTOs (in this language at least) were found to be the fastest loop. When it comes to tight loops on massive amounts of data (say overnight MIS extracts that need to process double figure GBs of data and produce files in the GBs) then they are mandatory and you basically fail QA in some circumstances if you don't use them. An old example had a report taking 10 hours to run that was reduced to just over 9 hours with the use of GOTOs. Doesn't sound so amazing but when you are talking about seriously expensive systems with loads of tasks going on overnight (especially when you are limited to single figure amount of processors) then every second counts with upgrades in hardware costing a load of money (both for the hardware/software and the support costs)

Quote: "I must side with all the people here who have so aptly demonstrated a complete lack of caring, in all their varied, special little ways"
I'll make a will to leave my house to the "make any image ever" charity.

Cheers

Ps. If it makes you feel any better the same thought really did keep me awake at night for a little while as a kid. Maths stuff normally did. Such as the thought "How many seconds old am I?". No sleep till I worked it out...

I am 99% probably lying in bed right now... so don't blame me for crappy typing
Current fave quote : "She was like a candle in the wind.... unreliable...."
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th Jan 2010 03:45
Quote: "After the group had worked for 42,162,500,000 billion billion monkey-years [aug.2004], one of the "monkeys" typed, “VALENTINE. Cease toIdor:eFLP0FRjWK78aXzVOwm)-‘;8.t" The first 19 letters of this sequence can be found in "The Two Gentlemen of Verona". Other teams have reproduced 18 characters from "Timon of Athens", 17 from "Troilus and Cressida", and 16 from "Richard II"."


I stand corrected, we do have computers able to calculate the answers. Though they never say how long in "human-years" the simulation ran.

billion billion monkey-years, lol


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 10th Jan 2010 00:00
Quote: "IMPROBABLE.

Though in the case of a computer doing it, are there any good enough randomizers out there that could actually make enough data for it not to be the same thing over and over again?"


There's a an actual mathematical ratio where something moves from possible to impossible, and this has crossed into the impossible.


Senior Web Developer - Nokia
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 10th Jan 2010 03:25
This is just like saying if my two year old sister bashed my keyboard for half an hour, would it be the code for the next call of duty? No.

Theres like 1/125 chance of the first key hit being s, so thats (1/125)^7 chance of the first line being 'sync on'.

Windows Vista 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM

Login to post a reply

Server time is: 2025-05-25 06:37:10
Your offset time is: 2025-05-25 06:37:10