Uses of Information Theory - Computerphile

Sdílet
Vložit
  • čas přidán 25. 06. 2024
  • Looking at some real world uses of information theory with Dr Tim Muller
    / computerphile
    / computer_phile
    This video was filmed and edited by Sean Riley.
    Computer Science at the University of Nottingham: bit.ly/nottscomputer
    Computerphile is a sister project to Brady Haran's Numberphile. More at www.bradyharan.com

Komentáře • 134

  • @Amonimus
    @Amonimus Před rokem +244

    "If you use Log 2, you're a computer scientist. If you use Log 10, you're an engineer."

    • @emuccino
      @emuccino Před rokem

      If you use natural log, you're a physicist

    • @tpobrienjr
      @tpobrienjr Před rokem +18

      what if you use ln?

    • @TheDavidlloydjones
      @TheDavidlloydjones Před rokem +23

      @@tpobrienjr space cadet intellectual.

    • @jhbonarius
      @jhbonarius Před rokem +11

      @@tpobrienjr then you're a biologist

    • @Kram1032
      @Kram1032 Před rokem +22

      @@tpobrienjr mathematician? - unless you study the general thing. Then you'd use base b

  • @Buzzfly
    @Buzzfly Před rokem +57

    Sean said that you learn a quarter of the dataset with 1 of the 4 dice results revealed. Later on he points out you learned roughly 2.6 bits of information, out of 10.3. 2.6 divided by 10.3 is 0.252... or almost exactly a quarter. Sounds like Sean was right! Maybe just not expressing the answer in a way that Tim expected.

    • @pirmelephant
      @pirmelephant Před rokem +16

      Yes, because case 1: log_2(6*6*6*6) = log_2(6^4) = 4*log_2(6)
      and case 2: log_2(6*6*6) = log_2(6^3) = 3*log_2(6)
      So one the difference is exactly a quarter.

    • @Geezon
      @Geezon Před rokem +4

      @@pirmelephant The entropy of the information is not the information itself, you don't learn a quarter of the information.

    • @pirmelephant
      @pirmelephant Před rokem +5

      @@Geezon Yes that's true. I just wanted to show that you learn exactly a quarter of the entropy and not a only almost exactly a quarter.

    • @luxhey
      @luxhey Před rokem +11

      @@pirmelephant Still not true.
      Every increment of one bit doubles the amount of information. So 2.6 bits is not 0.252% of 10.3 bits. Remember, there was a log calculation in there, so linearity is out the window.

    • @scottrothbaum8296
      @scottrothbaum8296 Před rokem +3

      ​@@luxhey When told the value of the first die, you do in fact learn 25% of the information. Bits of entropy = information. The number of possibilities isn't the information. If I told you that an mp4 of Back to the Future was 2 GB, and I gave you a 500 MB sample equating to the first 1/4 of the movie, you do in fact have 1/4 of the information.
      The number of possible arrangements of the bits went from 2^(2* 10^9) to 2^(5*10^6) when I gave you the first 1/4 of the movie, but your reasoning would suggest that we learned basically none of the information

  • @macemoth
    @macemoth Před rokem +4

    Having a coffee machine on his own desk is truly a proof that Dr Tim is a very smart man.

  • @Richardincancale
    @Richardincancale Před rokem +24

    We owe so much to the work of Turing and Shannon! In the satellite world discussion of the Shannon limit of information throughout is part of our daily life in optimising power, bandwidth and error correction codes!

  • @recklessroges
    @recklessroges Před rokem

    My favourite Dr Muller video so far! Really helps me with designing some solid k-anonymous data sets.

  • @Mutual_Information
    @Mutual_Information Před rokem +8

    👇Useful intuition from 9:20
    The information of an observation is the (log of) the factor by which the space of possibilities was reduced upon seeing that observation.

  • @AbelShields
    @AbelShields Před rokem +12

    9:15 you say "that's not quite right" that you've learned a quarter of the information but then go on to say that the entropy before is log2(6*6*6*6)=4log2(6), after the entropy is log2(6*6*6)=3log2(6), so I'd argue its kinda right... Unless I'm missing something?

    • @thishandleistaken.
      @thishandleistaken. Před rokem

      Good point. I'd like someone smarter to clarify

    • @Geezon
      @Geezon Před rokem +6

      @@thishandleistaken. The point was that it wasn't a set of 4 reduced to 3 by learning one of the dice values, it was a set of 1296 (all possible outcomes) reduced to 216 (possible outcomes for the other 3 dice). 1080 possibilities being removed is not 25% of 1296 it's 5/6th or ~83%.

    • @luxhey
      @luxhey Před rokem +1

      @@thishandleistaken. Every increment of one bit doubles the amount of information. So 2.6 bits is not 0.252% of 10.3 bits. Remember, there was a log calculation in there, so linearity is out the window.

    • @tomaz2007
      @tomaz2007 Před rokem +1

      "A quarter of entropy" is right, but that's not a quarter of information. Think of it like this: how much time does it take to brute-force a 6 bit password compared to an 8 bit one? It's not 25% less, it's 4x less.

  • @electrictommichael
    @electrictommichael Před rokem +2

    You can massively increase the entropy of the four words if you use more than one language or use names and brands and not just dictionary words

  • @wernercoetzee2316
    @wernercoetzee2316 Před rokem +23

    I have the exact same coffee machine, the auto off is very annoying, especially if it switches off just as you walk up to it to make a cup

    • @TomTheDutchy
      @TomTheDutchy Před rokem

      You can change the duration it stays on before turning off

    • @MichaelKingsfordGray
      @MichaelKingsfordGray Před rokem

      Drug addict.

    • @VRchitecture
      @VRchitecture Před 2 měsíci

      @@TomTheDutchyIt isn’t about the settings I guess but the life itself being ill-timed sometime 🤷🏻‍♂️

  • @nHans
    @nHans Před rokem +4

    Glad to hear you got better pens for future videos. The scratching noise doesn't bother me quite as much as the lack of legibility. As others too have pointed out, blue ink from a dried-out pen on blue-ruled paper is a bit hard to read.
    Do you get black Sharpies in the UK? I'm a fan-and believe me, it's _not_ because of Trump!

  • @Yupppi
    @Yupppi Před rokem +5

    Question: when you select your "random" words as a human and pick the xkcd method of four words, how does the hacker algorithm know that it's a human chosen so it limits the words to what words you know/would use/the wildest combination of words that have never before seen connections less than random? How does cracking the password get faster in practice for the hacker? How does he know it's words over random characters and four words of specific length to combine? Can he snoop the size of the password? I know the cracker can just try to combine every possible 4 words, but does that make it more plausible to crack the password in real life? I understand that in math theory they are not equivalent to this video, but does your password get cracked because of this? Or does some website actually not protect the passwords adequately and they just get leaked instead of cracked?

    • @ninopangolino1762
      @ninopangolino1762 Před rokem +6

      Actually, the hacker doesn't know that the password was chosen from human words. But, because brute forcing all the possible length/characters is so expensive (in terms of bits of work), the hacker might begin with a dictionary attack, then use some modifications of that same attack, like combinations of words, and finally pure brute force, like AAA, AAB and so on. So, trying to answer your question, it is faster because you try the word guessing technique before classical brute force attack.
      Of course, a little bit of social engineering might help...

    • @mariushusejacobsen3221
      @mariushusejacobsen3221 Před rokem +2

      The diceware method uses a very long list of words. This list is very long when compared with the number of words that a person can think of just off the top of their head. Thus a shorter list of more common words will suffice - or starting with only those more common words before trying the rest of the list, which in such a case will hit a match quicker.
      This all assumes the least one cracker using the assumption that diceware was used for generating the password.

  • @severoon
    @severoon Před rokem +2

    Is there some kind of measure of information utility that would allow us to mathematically distinguish between the two cases "we know die 1" and "we know dice 1 and 2 are the same"?

    • @entropie-3622
      @entropie-3622 Před rokem +1

      Not a specialist in the field but you could look at the entropy of projections of the distribution onto sub-selections of dice.
      In practice this could mean having a lower bound for the entropy of each individual dice, another bound for the distributions of each pair of dice, another for each triplet etc.
      In the given example if you know dice 1 the distribution of that dice will have no entropy.
      If, however, you only know that dice 1 and 2 have the same result the individual dice would not see an entropy reduction at all.
      In both cases the pair of dice 1 and 2 together will be subject of an entropy reduction by 1/2.
      So using that metric the 2nd distribution would perform better than the first distribution.

  • @nHans
    @nHans Před rokem +1

    So you can derive Information Theory from Probability Theory by taking the log to base 2? 🤔

  • @alexandrecuchi2400
    @alexandrecuchi2400 Před rokem

    Ok, but just as comparation, have all diferent values. How that change the possibilitys? I will try to calculate that, but! I'm still want to know if i'm right

  • @nicholaswillhite5888
    @nicholaswillhite5888 Před rokem +2

    How much does misspelled words increase entropy?

  • @bixnqq
    @bixnqq Před rokem

    What if I use words for password from different laguages? Would it somehow increase the strenght?

  • @swap3034
    @swap3034 Před rokem

    fanstastic thanks made my day

  • @LukeVilent
    @LukeVilent Před rokem

    What's your name? - Same as grandpa's. - And what's your grandpa's name? - Same as mine!

  • @nahco3994
    @nahco3994 Před rokem +3

    What about increasing the number of languages used in the passphrase? Wouldn't that drastically increase the entropy again?

    • @entropie-3622
      @entropie-3622 Před rokem

      If you know as many words in a second language using both would increase the entropy by 1 bit per word, I would not consider that a drastic improvement.
      It should be considered that the 11 bit per word entropy already assumes that you are only working with about 2000 possible words anyways so you could also just increase the selection of English words.
      At the end of the day the limiting factor is the given person's capacity to remember a password well, even though the words were chosen at random.
      The strategy of building a small story as a mnemonic device might suffer a bit, if the words randomly switch languages.

    • @nahco3994
      @nahco3994 Před rokem

      @@entropie-3622 How many languages are there on this planet? How would an attacker know which languages are being used? Do I have to know a language in order to use a word in a passphrase? Let's say my passphrase consists of 5 words, from 5 different languages. So which word lists do you pick?

    • @entropie-3622
      @entropie-3622 Před rokem

      @@nahco3994 Obviously if you could use any language that exists it will increase entropy quite a lot but for most people it will decrease their capacity to memorize the password quite a lot as well.
      If you just want a secure password not caring about the ability to memorize it (usually because you are using a password manager) it will always be best to just use a completely random string of characters.
      If you care about the ability to memorize the password most people will be restricted to 1 or maybe 2 foreign languages that they know well enough.
      Relying on the idea that the attacker will not be able to guess the used languages is usually not a good approach to security. Generally a password should be chosen in a way so that it is secure even if the attacker knows the distribution that was used to create it.

  • @styleisaweapon
    @styleisaweapon Před rokem +4

    Cant you post-process some edge sharpening on the blue channel to help with the pen?

    • @Computerphile
      @Computerphile  Před rokem +5

      I did have a play with that but the papers stripes were extremely close to the blue and by the time I isolated it his arms/hands looked a very strange colour indeed. Decided to live with it and buy some new pens for future! Apologies for how terribly feint they are, originally bought them because they seemed quieter than other pens and we get complaints about pen squeak -Sean

  • @TomeczekH
    @TomeczekH Před rokem +1

    The paper looks like musical staff but then I noticed it has 6 lines too close to each other. What is this paper for?

    • @MetPhotoDotNet
      @MetPhotoDotNet Před rokem +3

      This is traditional computing printer paper. It has been around for 50 years or more. It helps someone to read long text prints, in the past often computer code print outs.

    • @MichaelKingsfordGray
      @MichaelKingsfordGray Před rokem

      "Eyeline" tractor-feed paper.

  • @jhbonarius
    @jhbonarius Před rokem +3

    My Magnifica S also startles people when it auto cleans.
    Anyhow, even after doing my phd in signal processing in the edge of information theory (using stiff nonlinear ODEs in particle filters), I still find it very confusing. It requires such a different way of thinking.

    • @LetoDK
      @LetoDK Před rokem +1

      It's pretty simply actually: if the people aren't used to the behaviour of your coffee machine, the sudden onset of sound can come as a surprise. Doesn't really take a PhD to understand, but whatever

  • @ivanontech9156
    @ivanontech9156 Před rokem +6

    ‘’Courage taught me no matter how bad a crisis gets ... any sound investment will eventually pay off."

  • @alanegewarth3456
    @alanegewarth3456 Před rokem

    I propose anyone who can to solve these 3 chess problems problems:
    1 - Is it possible in a chess engine, like STOCKFISH NNUE or Google's ALPHA ZERO to translate their machine learned parameters into a HUMAN INTELIGIBLE ALGORITHM (as simplified as it can get) on how to best evaluate a chess position/choose the best move?
    2 - Can you mathmatically prove that there's a maximum number of parameters a chess engine must have to play a perfect game (always play the move that leads to the faster check mate OR maintains a drawing position ( or NOT LOSING NOR WINNING within the range of the next 50 moves, as todays chess rules)?
    3- If there's such a maximum number of parameter, can you find it?
    I'm a mediocre chess player and inthusiast, so that would be nice if you guys made a video about those questions. Thank you in advance!

    • @charon7320
      @charon7320 Před rokem

      james grime on the sister channel numberphile, has a video on chess games. thing is that you have more posibile moves as the games goes further, until you hit a maximum and number starts to drop. theoretically, all posibile moves can be simulated, programmed, and chosen best move in any case based on 'weights' as in language models.

  • @briankuhns9769
    @briankuhns9769 Před rokem +2

    It was 1/4 of the entropy. why did the guy correct him?

    • @luxhey
      @luxhey Před rokem +1

      It wasn't though. For every increment of 1 bit, the amount of information doubles. Remember we did a log calculation, so linearity is gone.

  • @drooplug
    @drooplug Před rokem

    Can someone explain why the xkcd format is 11 bits per word?

    • @entropie-3622
      @entropie-3622 Před rokem +1

      I would guess that there is an assumption that there are about 2000 "common English words" to choose from uniformly at random.

  • @4guysandacontroller
    @4guysandacontroller Před rokem +1

    I don't get it, but it sounds neat

  • @sveu3pm
    @sveu3pm Před rokem

    if you calculate entropy in n bits, then bit is 2 options, so its 2 on n combinations, not your set size on n.

  • @meguellatiyounes8659
    @meguellatiyounes8659 Před rokem +1

    How package managers solve dependencies?

    • @code-dredd
      @code-dredd Před rokem

      Direct Acyclic Graphs

    • @meguellatiyounes8659
      @meguellatiyounes8659 Před rokem

      @@code-dredd thanks alot,
      i just wanted videos for it.

    • @code-dredd
      @code-dredd Před rokem +1

      @@meguellatiyounes8659 There's at least one in this channel, but you have to search. Might need to look at Git videos, which rely on the same data structure.

  • @froop2393
    @froop2393 Před rokem +3

    xkcd 538 shows us that strong passwords don't help in all circumstances.
    Classic example of Theory != Real World

  • @MushookieMan
    @MushookieMan Před rokem +5

    Intuitively, conditional entropy appears when you are solving a sudoku or a minesweeper game.

  • @tarebf
    @tarebf Před rokem +1

    His conclusion is incorrect because not every disease is equally probable and thus the information gain can not be compared to dice rolling. But very interesting nonetheless.

  • @thishandleistaken.
    @thishandleistaken. Před rokem

    Very relevant, I was studying information theory

  • @zyswies3612
    @zyswies3612 Před rokem

    KL divergence my friend

  • @Geezon
    @Geezon Před rokem

    For those questioning why it isn't 25% learned from knowing one die. The question isn't what is the entropy of the information learned.
    Knowing one die isn't 1/4 of the information, it removes 5/6 of the total possibilities for 4 dice rolls.
    You learned 1/6 of the possible values for the one die but the other 3 dice have 216 combinations, from the set of 1296 possibilities of all 4 dice.
    So you learned about 83% - by discarding 1080 possibilities of the 4 dice.

    • @entropie-3622
      @entropie-3622 Před rokem

      "Information" in this context is the same as entropy, no one uses the term "information" to describe "number of possibilities".
      It seems to just have been an oversight of the lecturer trying to steer the conversation to the "number of possibilities" view of things somewhat disregarding Brady's correct intuition.

  • @YouPlague
    @YouPlague Před rokem

    permutations

  • @irwainnornossa4605
    @irwainnornossa4605 Před rokem

    0 belongs before 1, not after 9.

  • @JohnSmith-pu8rd
    @JohnSmith-pu8rd Před rokem

    Nf3

  • @Lion_McLionhead
    @Lion_McLionhead Před rokem

    This isn't the running channel.

  • @seaveredge
    @seaveredge Před rokem

    I was thinking, hmm familiar accent… apparently he did his master at the same university as I’m currently working, haha.

  • @thishandleistaken.
    @thishandleistaken. Před rokem +3

    This makes me wonder: Is information theory all about entropy? Is there anything else to learn in this field?

    • @code-dredd
      @code-dredd Před rokem

      We don't know what we don't know. It wasn't until the recent discoveries in modern cryptography that a new application for prime numbers was found, since the difficulty of trying to find prime factors lies at the foundation.

  • @theshuman100
    @theshuman100 Před rokem

    you can acquire information.
    but it may not be useful

  • @Jkauppa
    @Jkauppa Před rokem

    how much information is in consecutive uniform numbers, ie, sum of log (1->n)

    • @Jkauppa
      @Jkauppa Před rokem

      can you derive the real gamma function from the sum of discrete (integer) logarithm sequence

    • @Jkauppa
      @Jkauppa Před rokem

      but the left side p_i is always the same (1), but right side is always +1 to the previous

    • @Jkauppa
      @Jkauppa Před rokem

      what is that measurement then

    • @Jkauppa
      @Jkauppa Před rokem

      what is log(x+y)=log(x)+?, or log(n+1)=log(n)+?

    • @Jkauppa
      @Jkauppa Před rokem

      then the logsum will be something of the form of n*log(1) + (n-1)*log(?) + .... as +1 composite

  • @odysseus9672
    @odysseus9672 Před rokem +1

    The password doesn't have entropy. The method for generating the password had a lot of entropy.

  • @roberttalada5196
    @roberttalada5196 Před rokem

    My passwords are made up of only invisible Unicode control characters

  • @weksauce
    @weksauce Před rokem +1

    Sads me that likes were 128 and dislikes were 2, and I would have to un-power-of-two them to like this video :(

  • @timothynash4585
    @timothynash4585 Před rokem

    Crypto wallet recovery phrases like Metamask are a whole bunch of random words together

  • @MikeHunt-rw4gf
    @MikeHunt-rw4gf Před rokem

    Algorithm.

  • @likebot.
    @likebot. Před rokem +1

    My password is WomanManCameraTV

    • @likebot.
      @likebot. Před rokem

      ... and the last 5 digits of Pi.

    • @strehlow
      @strehlow Před rokem

      Mine is *********************

  • @segmentationviolator
    @segmentationviolator Před rokem +7

    The video is 3 minutes old but there is a comment 4 minutes old. Sus.

    • @intron9
      @intron9 Před rokem +1

      sussy

    • @blazerorb
      @blazerorb Před rokem

      Google has negative latency, dontcha know

  • @Ziferten
    @Ziferten Před rokem

    Guys seriously buy some new pe.... oh.

  • @dialecticalmonist3405

    He didn't say whether the die were 6-sided. Why would he assume they were 6-sided?

  • @biomatrix8154
    @biomatrix8154 Před rokem

    There r actually 95 different password enterable chars (including the space).

  • @JavadZahiri
    @JavadZahiri Před rokem +1

    Please don't use these type of papers again. They are very unreadable.

  • @c-LAW
    @c-LAW Před rokem +2

    Entropy = nonsense

    • @HapChandler876
      @HapChandler876 Před rokem +1

      What do you mean?

    • @nHans
      @nHans Před rokem +2

      ​@@HapChandler876 Meaning, they failed their thermodynamics and/or information theory course! 🤣

    • @dembro27
      @dembro27 Před rokem +1

      @@HapChandler876 Perhaps "nonsense" in the sense that entropy represents possibility space, which could be equated to noise; useless information; nonsense.

  • @shreeek7086
    @shreeek7086 Před rokem

    4th :O

  • @shreeek7086
    @shreeek7086 Před rokem

    Second too lol

  • @shreeek7086
    @shreeek7086 Před rokem

    3rd 😴

  • @shreeek7086
    @shreeek7086 Před rokem +1

    First ✌

  • @shreeek7086
    @shreeek7086 Před rokem

    5th!!! Bye