ผลต่างระหว่างรุ่นของ "Probstat/random word"
ไปยังการนำทาง
ไปยังการค้นหา
Jittat (คุย | มีส่วนร่วม) |
Jittat (คุย | มีส่วนร่วม) |
||
แถว 1: | แถว 1: | ||
+ | : ''This is part of [[probstat]] course.''' | ||
+ | |||
Download [http://theory.cpe.ku.ac.th/~jittat/probstat/2014/words/words.txt words.txt] which is a list of common 4325 English words. (I obtain this list from [https://www.englishclub.com/vocabulary/common-words.htm], which took it from [http://www.wordfrequency.info/]. The original list of 5000 words contain duplicates because some word appears in many parts of speech. I also removed words with punctuation marks (e.g., o'clock).) | Download [http://theory.cpe.ku.ac.th/~jittat/probstat/2014/words/words.txt words.txt] which is a list of common 4325 English words. (I obtain this list from [https://www.englishclub.com/vocabulary/common-words.htm], which took it from [http://www.wordfrequency.info/]. The original list of 5000 words contain duplicates because some word appears in many parts of speech. I also removed words with punctuation marks (e.g., o'clock).) | ||
รุ่นแก้ไขเมื่อ 02:48, 21 สิงหาคม 2557
- This is part of probstat course.'
Download words.txt which is a list of common 4325 English words. (I obtain this list from [1], which took it from [2]. The original list of 5000 words contain duplicates because some word appears in many parts of speech. I also removed words with punctuation marks (e.g., o'clock).)
Random experiment: Pick one random word from the list.
Probability
Compute the probabilities of the following events.
- Pick a word with an alphabet 'a'.
- Pick a word witn an alphabet 'z'.
- Pick a word with both alphabet 'a' and alphabet 'z'.
- Pick a word with an alphabet 'b'.
- Pick a word with alphabets 'a' and 'b'.
- Pick a word that contains 'a' or 'b'. (Can you find this one without running a program?)
- Pick a word that contains 'na'.
- Pick a word that contains 'nal'.
- Pick a word with no vowels.
- Pick a word that contains more than 3 vowels. (Vowels are 'a', 'e', 'i', 'o', and 'u'.)
Conditional probability
Compute the conditional probabilities of the following events.
- Probability that you pick a word with an alphabet 'a' given that you pick a word with 'z'.
- Probability that you pick a word with 'nal' given that you pick a word with 'na'.
- Probability that you pick a word with 'l' given that you pick a word with 'na'.
- Probability that you pick a word with an alphabet 'c' given that you pick a word with 'r'.
- Probability that you pick a word with an alphabet 'r' given that you pick a word with 'c'.
Answer these questions.
- Given that we pick a word without vowels, which character has the highest probability of occurring? What's the probability?