Jump to content

Wikipedia:Sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Clearing the sandbox (BOT EDIT) (Peachy 2.0 (alpha 8))
No edit summary
Tag: Reverted
Line 5: Line 5:
* Feel free to try your editing skills below *
* Feel free to try your editing skills below *
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-->
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-->
The following file shows the view counts for "Baby Shark" and other music videos as of November 24, 2024, at 05:00 UTC. This is midnight at the start of the day for residents of the Eastern Time Zone. In the United States, this time zone includes Massachusetts, New York, New Hampshire, and several other states, as well as Washington, D.C. In this table, "Total Views" refers to the cumulative (a.k.a. "lifetime") view count of the official music video for the song. "Release Date" is the upload date of the music video. This is the "Published" date in the video's description box on the music video's YouTube page.

"Relative Popularity" is calculated using the following formula:

Relative Popularity = X / (X + Y), where X is the number of views on the music video in question, and Y is the number of views on the "Baby Shark" video.

"Baby Shark" is the most viewed YouTube video, so for any non-"Baby Shark" video, "Relative Popularity" is strictly less than 0.5 or 50%.

The "31-Bit Integer" is defined with the following formula: '''31-Bit Integer''' = ceil(2,147,483,647 × [1 − (Relative Popularity)]), where "ceil" denotes the ceiling function. Recall that, for any real number x, ceil(x) is the nearest integer to x without being smaller than x. Remember, "floor" always rounds downwards, and "ceil" always rounds upwards, while "round" can go either way.

As for the number 2,147,483,647, this seemingly arbitrary 10-digit number is not so arbitrary. It is the largest value for a signed 32-bit integer because 2<sup>31</sup> − 1 = 2,147,483,647. This number is prime, making it a Mersenne prime.

"31-Bit Integer (RNG)" is very similar to "31-Bit Integer", except that the prime number 2,147,483,563 is used instead. This number is calculated by subtracting 84 from the other prime, and 2,147,483,563 is also prime. This prime is used in the [[Number Theory/32-bit Linear congruential generator|32-bit linear congruential generator]], which is used for pseudorandom number generation on Texas Instruments calculators.

'''31-Bit Integer (RNG)''' = ceil(2,147,483,563 × [1 − (Relative Popularity)]) [Exception: If this formula gives a value of 2,147,483,563, a value of 2,147,483,562 will be used instead.]

For all entries, "31-Bit Integer (RNG)" will be very close to "31-Bit Integer", though the latter will be slightly less than the former.


{| class="wikitable sortable"
|-
! Release Date
! Artist
! Song Title
! Total Views
! Relative Popularity
! 31-Bit Integer
! 31-Bit Integer (RNG)
|-
| style="text-align:right;"| June 16, 2009
| style="text-align:right;"| Taylor Swift
| style="text-align:right;"| Love Story
| style="text-align:right;"| 765,609,064
| style="text-align:right;"| 0.047582184
| style="text-align:right;"| 2,040,196,741
| style="text-align:right;"| 2,040,196,661
|-
| style="text-align:right;"| September 25, 2009
| style="text-align:right;"| Miley Cyrus
| style="text-align:right;"| Party In The USA
| style="text-align:right;"| 1,026,786,138
| style="text-align:right;"| 0.062794908
| style="text-align:right;"| 2,012,632,610
| style="text-align:right;"| 2,012,632,531
|-
| style="text-align:right;"| November 24, 2009
| style="text-align:right;"| Lady Gaga
| style="text-align:right;"| Bad Romance
| style="text-align:right;"| 1,878,028,068
| style="text-align:right;"| 0.109170760
| style="text-align:right;"| 1,913,041,226
| style="text-align:right;"| 1,913,041,151
|-
| style="text-align:right;"| November 24, 2009
| style="text-align:right;"| Justin Bieber
| style="text-align:right;"| One Time
| style="text-align:right;"| 793,990,961
| style="text-align:right;"| 0.049259214
| style="text-align:right;"| 2,041,700,292
| style="text-align:right;"| 2,041,700,212
|-
| style="text-align:right;"| February 19, 2010
| style="text-align:right;"| Justin Bieber
| style="text-align:right;"| Baby
| style="text-align:right;"| 3,266,876,528
| style="text-align:right;"| 0.175718692
| style="text-align:right;"| 1,770,130,629
| style="text-align:right;"| 1,770,130,560
|-
| style="text-align:right;"| May 13, 2011
| style="text-align:right;"| Taylor Swift
| style="text-align:right;"| Mean
| style="text-align:right;"| 229,714,706
| style="text-align:right;"| 0.014768516
| style="text-align:right;"| 2,115,768,500
| style="text-align:right;"| 2,115,768,417
|-
| style="text-align:right;"| December 2, 2011
| style="text-align:right;"| Lady Gaga
| style="text-align:right;"| Marry The Night
| style="text-align:right;"| 99,140,392
| style="text-align:right;"| 0.006427763
| style="text-align:right;"| 2,133,680,131
| style="text-align:right;"| 2,133,680,048
|-
| style="text-align:right;"| January 13, 2017
| style="text-align:right;"| Luis Fonsi
| style="text-align:right;"| Despacito
| style="text-align:right;"| 8,593,682,421
| style="text-align:right;"| 0.359292896
| style="text-align:right;"| 1,375,908,029
| style="text-align:right;"| 1,375,907,975
|-
| style="text-align:right;"| November 30, 2018
| style="text-align:right;"| Ariana Grande
| style="text-align:right;"| Thank U Next
| style="text-align:right;"| 829,379,955
| style="text-align:right;"| 0.051342024
| style="text-align:right;"| 2,037,227,490
| style="text-align:right;"| 2,037,227,410

Revision as of 09:51, 24 November 2024

The following file shows the view counts for "Baby Shark" and other music videos as of November 24, 2024, at 05:00 UTC. This is midnight at the start of the day for residents of the Eastern Time Zone. In the United States, this time zone includes Massachusetts, New York, New Hampshire, and several other states, as well as Washington, D.C. In this table, "Total Views" refers to the cumulative (a.k.a. "lifetime") view count of the official music video for the song. "Release Date" is the upload date of the music video. This is the "Published" date in the video's description box on the music video's YouTube page.

"Relative Popularity" is calculated using the following formula:

Relative Popularity = X / (X + Y), where X is the number of views on the music video in question, and Y is the number of views on the "Baby Shark" video.

"Baby Shark" is the most viewed YouTube video, so for any non-"Baby Shark" video, "Relative Popularity" is strictly less than 0.5 or 50%.

The "31-Bit Integer" is defined with the following formula: 31-Bit Integer = ceil(2,147,483,647 × [1 − (Relative Popularity)]), where "ceil" denotes the ceiling function. Recall that, for any real number x, ceil(x) is the nearest integer to x without being smaller than x. Remember, "floor" always rounds downwards, and "ceil" always rounds upwards, while "round" can go either way.

As for the number 2,147,483,647, this seemingly arbitrary 10-digit number is not so arbitrary. It is the largest value for a signed 32-bit integer because 231 − 1 = 2,147,483,647. This number is prime, making it a Mersenne prime.

"31-Bit Integer (RNG)" is very similar to "31-Bit Integer", except that the prime number 2,147,483,563 is used instead. This number is calculated by subtracting 84 from the other prime, and 2,147,483,563 is also prime. This prime is used in the 32-bit linear congruential generator, which is used for pseudorandom number generation on Texas Instruments calculators.

31-Bit Integer (RNG) = ceil(2,147,483,563 × [1 − (Relative Popularity)]) [Exception: If this formula gives a value of 2,147,483,563, a value of 2,147,483,562 will be used instead.]

For all entries, "31-Bit Integer (RNG)" will be very close to "31-Bit Integer", though the latter will be slightly less than the former.


Release Date Artist Song Title Total Views Relative Popularity 31-Bit Integer 31-Bit Integer (RNG)
June 16, 2009 Taylor Swift Love Story 765,609,064 0.047582184 2,040,196,741 2,040,196,661
September 25, 2009 Miley Cyrus Party In The USA 1,026,786,138 0.062794908 2,012,632,610 2,012,632,531
November 24, 2009 Lady Gaga Bad Romance 1,878,028,068 0.109170760 1,913,041,226 1,913,041,151
November 24, 2009 Justin Bieber One Time 793,990,961 0.049259214 2,041,700,292 2,041,700,212
February 19, 2010 Justin Bieber Baby 3,266,876,528 0.175718692 1,770,130,629 1,770,130,560
May 13, 2011 Taylor Swift Mean 229,714,706 0.014768516 2,115,768,500 2,115,768,417
December 2, 2011 Lady Gaga Marry The Night 99,140,392 0.006427763 2,133,680,131 2,133,680,048
January 13, 2017 Luis Fonsi Despacito 8,593,682,421 0.359292896 1,375,908,029 1,375,907,975
November 30, 2018 Ariana Grande Thank U Next 829,379,955 0.051342024 2,037,227,490 2,037,227,410