Introduction to Probability Theory ‧ 3- 1 ‧ Speaker: Chuang-Chieh Lin Advisor: Professor Maw-Shang Chang National Chung Cheng University Dept. CSIE, Computation.

Slides:



Advertisements
Similar presentations
資料蒐集的方法(三):實驗法(實驗設計) (第七章)
Advertisements

第三講 Recode、missing value、假設檢定與信賴區間
布林代數的應用--- 全及項(最小項)和全或項(最大項)展開式
第七章 抽樣與抽樣分配 蒐集統計資料最常見的方式是抽查。這 牽涉到兩個問題: 抽出的樣本是否具有代表性?是否能反應出母體的特徵?
:Word Morphing ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10508:word morphing 解題者:楊家豪 解題日期: 2006 年 5 月 21 日 題意: 第一行給你兩個正整數, 第一個代表下面會出現幾個字串,
Chapter 2 Random Vectors 與他們之間的性質 (Random vectors and their properties)
活動時間: 99 年 05 月 07 號 ( 五 ) 上午 9.20~12.10 活動地點:校本部科技大樓 4 樓 3401 E 化教學教室 電子系 - 光電實驗室 即時實驗現場互動.
3Com Switch 4500 切VLAN教學.
指導教授:陳淑媛 學生:李宗叡 李卿輔.  利用下列三種方法 (Edge Detection 、 Local Binary Pattern 、 Structured Local Edge Pattern) 來判斷是否為場景變換,以方便使用者來 找出所要的片段。
交易的動機. 討論:  為什麼人要進行交易? 討論:  試想像你走進一間唱片店,付了$100 給店主,買下你最喜愛歌手的最新唱片。  誰會得益 ?  誰又會有所損失?
Review of Chapter 3 - 已學過的 rules( 回顧 )- 朝陽科技大學 資訊管理系 李麗華 教授.
: OPENING DOORS ? 題組: Problem Set Archive with Online Judge 題號: 10606: OPENING DOORS 解題者:侯沛彣 解題日期: 2006 年 6 月 11 日 題意: - 某間學校有 N 個學生,每個學生都有自己的衣物櫃.
消費者物價指數反映生活成本。當消費者物價指數上升時,一般家庭需要花費更多的金錢才能維持相同的生活水準。經濟學家用物價膨脹(inflation)來描述一般物價持續上升的現象,而物價膨脹率(inflation rate)為物價水準的變動百分比。
Chapter 2 聯立線性方程式與矩陣 緒言 線性方程式組 (systems of linear equations) 出現 在多數線性模式 (linear model) 中。根據以往解 題的經驗,讀者們也許已發現方程式的解僅與 該方程式的係數有關,求解的過程也僅與係數 的運算有關,只要係數間的相關位置不改變,
STAT0_sampling Random Sampling  母體: Finite population & Infinity population  由一大小為 N 的有限母體中抽出一樣本數為 n 的樣 本,若每一樣本被抽出的機率是一樣的,這樣本稱 為隨機樣本 (random sample)
第 4 章 迴歸的同步推論與其他主題.
1. 假設以下的敘述為一未提供 “ 捷徑計算 ” 能力的程式段,試用程 式設計的技巧,使此敘述經此改 寫的動作後,具有與 “ 捷徑計算 ” 之 處理方法相同之處理模式。 if and then E1 else E2 endif.
STAT0_corr1 二變數的相關性  變數之間的關係是統計研究上的一大目標  討論二分類變數的相關性,以列聯表來表示  討論二連續隨機變數時,可以作 x-y 散佈圖觀察它 們的關係強度  以相關係數來代表二者關係的強度.
基礎物理總論 基礎物理總論 熱力學與統計力學(三) Statistical Mechanics 東海大學物理系 施奇廷.
Young/Freeman University Physics 11e. Ch 18 Thermal Properties of Matter © 2005 Pearson Education.
Monte Carlo Simulation Part.2 Metropolis Algorithm Dept. Phys. Tunghai Univ. Numerical Methods C. T. Shih.
具備人臉追蹤與辨識功能的一個 智慧型數位監視系統 系統架構 在巡邏模式中 ,攝影機會左右來回巡視,並 利用動態膚色偵測得知是否有移動膚色物體, 若有移動的膚色物體則進入到追蹤模式,反之 則繼續巡視。
聯合大學資工系 周念湘 BCC 數字系統. 聯合大學資工系 周念湘 2 r 進位:轉成 10 進位 r 代表「基底」  10 進位: r = 10  2 進位: r = 2 D r : 表示某個 r 進位的數 (r 不寫,表.
: Fast and Easy Data Compressor ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10043: Fast and Easy Data Compressor 解題者:葉貫中 解題日期: 2007 年 3.
選舉制度、政府結構與政 黨體系 Cox (1997) Electoral institutions, cleavage strucuters, and the number of parties.
: Count DePrimes ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11408: Count DePrimes 解題者:李育賢 解題日期: 2008 年 9 月 2 日 題意: 題目會給你二個數字 a,b( 2 ≦ a ≦ 5,000,000,a.
短缺,盈餘與均衡. 遊戲規則  老師想出售一些學生喜歡的小食。  老師首先講出價錢,有興趣買的請舉手。
: Multisets and Sequences ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11023: Multisets and Sequences 解題者:葉貫中 解題日期: 2007 年 4 月 24 日 題意:在這個題目中,我們要定義.
公司加入市場的決定. 定義  平均成本 = 總成本 ÷ 生產數量 = 每一單位產量所耗的成本  平均固定成本 = 總固定成本 ÷ 生產數量  平均變動成本 = 總變動成本 ÷ 生產數量.
- Calculus & It’s Application- Chapter 2 Introduction to Limits 朝陽科技大學 資訊管理系 李麗華 教授.
Analysis of Variance (ANOVA) CH 13 變異數分析. What is ANOVA? n 檢定 3 個或 3 個以上的母體平均數是否相等的統計檢定 n 檢定多個母體平均數是否相同 n 比較大二、大三、大四學生實習滿意度是否一樣 ? ( 來 自相同的 population)
:Nuts for nuts..Nuts for nuts.. ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 10944:Nuts for nuts.. 解題者:楊家豪 解題日期: 2006 年 2 月 題意: 給定兩個正整數 x,y.
The application of boundary element evaluation on a silencer in the presence of a linear temperature gradient Boundary Element Method 期末報告 指導老師:陳正宗終身特聘教授.
7.4 Lookback Options 指導教授:戴天時 報告者:陳博宇. 章節結構 Floating Strike Lookback Black-Scholes-Merton Equation Reduction of Dimension Computation.
外幣. 貨幣  你們可以說出不同國家使用的貨幣嗎?  你們每人會有四張沙地阿拉伯貨幣。 $1 One Saudi Arabian Riyal $1 One Saudi Arabian Riyal $1 One Saudi Arabian Riyal $1 One Saudi Arabian Riyal.
資料結構實習-一 參數傳遞.
公用品.  該物品的數量不會因一人的消費而受到 影響,它可以同時地被多人享用。 角色分配  兩位同學當我的助手,負責:  其餘各人是投資者,每人擁有 $100 , 可以投資在兩種資產上。  記錄  計算  協助同學討論.
Multi - Language 鄭傑仁 陳彥如. Preface 大三下時,經由系上安排進入一間製作 IP phone 的公司實 習,公司所生產的 IP phone 提供很廣泛的設定 ( 例如 : 韌體 資訊、網路設定、 SIP 設定、語音設定等 ) ,為了方便使用 者設定或查詢這些選項,話機本身都內建了.
: Lucky Number ★★★★☆ 題組: Proble Set Archive with Online Judge 題號: 10909: Lucky Number 解題者:李育賢 解題日期: 2008 年 4 月 25 日 題意:給一個奇數數列 1,3,5,7,9,11,13,15…
Section 4.2 Probability Models 機率模式. 由實驗看機率 實驗前先列出所有可能的實驗結果。 – 擲銅板:正面或反面。 – 擲骰子: 1~6 點。 – 擲骰子兩顆: (1,1),(1,2),(1,3),… 等 36 種。 決定每一個可能的實驗結果發生機率。 – 實驗後所有的實驗結果整理得到。
函式 Function Part.2 東海大學物理系‧資訊教育 施奇廷. 遞迴( Recursion ) 函式可以「呼叫自己」,這種動作稱為 「遞迴」 此程式的執行結果相當於陷入無窮迴圈, 無法停止(只能按 Ctrl-C ) 這給我們一個暗示:函式的遞迴呼叫可以 達到部分迴圈的效果.
: GCD - Extreme II ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11426: GCD - Extreme II 解題者:蔡宗翰 解題日期: 2008 年 9 月 19 日 題意: 最多 20,000 組測資,題目會給一個數字.
JAVA 程式設計與資料結構 第二十章 Searching. Sequential Searching Sequential Searching 是最簡單的一種搜尋法,此演 算法可應用在 Array 或是 Linked List 此等資料結構。 Sequential Searching 的 worst-case.
演算法 8-1 最大數及最小數找法 8-2 排序 8-3 二元搜尋法.
: Expect the Expected ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11427: Expect the Expected 解題者:李重儀 解題日期: 2008 年 9 月 21 日 題意:玩一種遊戲 (a game.
-Antidifferentiation- Chapter 6 朝陽科技大學 資訊管理系 李麗華 教授.
產出外界效果的權利. 外界效果  是社會成本和私人成本發生分歧的原因。 外界效果可以是成本,也可以是收益。
845: Gas Station Numbers ★★★ 題組: Problem Set Archive with Online Judge 題號: 845: Gas Station Numbers. 解題者:張維珊 解題日期: 2006 年 2 月 題意: 將輸入的數字,經過重新排列組合或旋轉數字,得到比原先的數字大,
Chapter 10 m-way 搜尋樹與B-Tree
JAVA 程式設計與資料結構 第十六章 Hash Tables. Introduction Hash Tables 結構為一個 Array ,稱之為 Bucket array 。 如果想要新增一個物件,要根據這個物件的特性 將其加入 Hash Table 內。 Bucket Array 用 A 來代替,其.
Probability Distribution 機率分配 汪群超 12/12. 目的:產生具均等分配的數值 (Data) ,並以 『直方圖』的功能計算出數值在不同範圍內出現 的頻率,及繪製數值的分配圖,以反應出該 機率分配的特性。
Chapter 7 Sampling Distribution
連續隨機變數 連續變數:時間、分數、重量、……
計數值抽樣計劃 使用 MIL-105D 表. 表 10-1 Sample Sizes Code Letters.
: Finding Paths in Grid ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11486: Finding Paths in Grid 解題者:李重儀 解題日期: 2008 年 10 月 14 日 題意:給一個 7 個 column.
:Problem E.Stone Game ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10165: Problem E.Stone Game 解題者:李濟宇 解題日期: 2006 年 3 月 26 日 題意: Jack 與 Jim.
1 Knapsack Cryptosystems 2 ◎ Merkle-Hellman Knapsack Cryptosystem 觀察: (1) 0/1 knapsack problem (i.e. sum of subset) 例:已知 C = 14, A = (1, 10, 5, 22, 3)
CH 14-可靠度工程之數學基礎 探討重點 失效時間之機率分配 指數模式之可靠度工程.
: How many 0's? ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11038: How many 0’s? 解題者:楊鵬宇 解題日期: 2007 年 5 月 15 日 題意:寫下題目給的 m 與 n(m
Statistical Distributions
Chapter 2 Combinatorial Analysis 主講人 : 虞台文. Content Unordered Samples without Replacement  Combinations Binomial Coefficients Some Useful Mathematic.
Introduction to Probability Theory ‧ 2- 2 ‧ Speaker: Chuang-Chieh Lin Advisor: Professor Maw-Shang Chang National Chung Cheng University Dept. CSIE, Computation.
Chapter 5 Expectations 主講人 : 虞台文. Content Introduction Expectation of a Function of a Random Variable Expectation of Functions of Multiple Random Variables.
Week 4 機率論. Basic Probability Concepts Random Trials Sample Spaces.
Chapter 3 Discrete Random Variables 主講人 : 虞台文. Content Random Variables The Probability Mass Functions Distribution Functions Bernoulli Trials Bernoulli.
Introduction to Probability Theory ‧ 2- 1 ‧ Speaker: Chuang-Chieh Lin Advisor: Professor Maw-Shang Chang National Chung Cheng University Dept. CSIE, Computation.
Chapter 5 Expectations 主講人:虞台文.
The Chernoff bound Speaker: Chuang-Chieh Lin Coworker: Chih-Chieh Hung
Handout Ch 5.
Presentation transcript:

Introduction to Probability Theory ‧ 3- 1 ‧ Speaker: Chuang-Chieh Lin Advisor: Professor Maw-Shang Chang National Chung Cheng University Dept. CSIE, Computation Theory Laboratory January 25, Preliminaries for Randomized Algorithms

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 2 Outline Chapter 3: Discrete random variables –Bernoulli and binomial distributions –Geometric distribution –Negative binomial distribution

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 3 Bernoulli trials ( 伯努利試驗 ) successfailureA Bernoulli trial is an experiment with two different possible outcomes, labeled success and failure. The sample space for a single Bernoulli trial is defined as T = {s, f}, where s represents the outcome success and f represents the outcome failure.

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 4 Bernoulli random variable If an experiment consists of a single Bernoulli trial with parameter p (so that P({s}) = p, and we denote q = 1 – p) and we let X be the number of successes to occur, then X is called a Bernoulli random variable with parameter p. Its probability function is very simple:

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 5 Bernoulli random variable (contd.) Mean and variance for a Bernoulli random variable X with parameter p:

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 6 Many experiments can be modeled as a sequence of independent Bernoulli trials. For example, –Ten scratch-off lottery tickets are purchased; each ticket either will or will not win some prize, where p is the probability of a success occurring for each. –Each of 100 patients with the same affliction is given medication A ; each patient will either be cured or not, with the same success probability p.

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 7 Binomial random variable ( 二項隨機變數 ) If Y is the number of success to occur in n repeated, independent Bernoulli trials, each with probability of success p, then Y is a binomial random variable with parameter n and p. The range for Y is R Y = {0, 1, 2,…, n}, and its probability function is where q = 1 – p

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 8 假設老王買了 10 張刮刮樂彩券。假設每張彩券贏得某個獎項的機會 是 1/9 ,而彩券彼此互相獨立。因此每張彩券可視為一次 Bernoulli trial ; 若令 X 代表會中獎的彩券張數,則 X 具有 n = 10, p = 1/9 的 binomial distribution 。 則 老王的彩券至少有三張會中獎的機率,便是

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 9 Means and variances for binomial random variables

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 10 Means and variances for binomial random variables (contd.)

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 11 Means and variances for binomial random variables (contd.) Thus

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 12 Before introducing the other probability distribution, we have to be familiar to infinite geometric series first.

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 13 Infinite geometric series When | q | < 1,

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 14 Infinite geometric series (contd.) Then we will obtain that An exercise.

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 15 Geometric distribution ( 幾何分佈 ) the first successLet N be the trial number of the first success in a sequence of independent Bernoulli trials, each with parameter p. The probability function for N is N is called a geometric random variable with parameter p.

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 16 Memoryless property ( 失憶性 ) If N is a geometric random variable with parameter p, then where a and b are any positive integers. This is the only discrete probability law to have this memoryless property.

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 17 舉例來說: 假設我們現在要搜尋一個得 SARS 的病患,而當我們找到第一個病患 就停止搜尋。不同的人之間為互相獨立的 Bernoulli trials , p = 0.1 。 假設我們已經檢查了 8 個人,都還沒出現成功的試驗 ( 找到一個得 SARS 的病患 ) ,則下一個人是 SARS 病患的機率並不會因此改變。這 即為失憶性 (memoryless property) 。

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 18 Means and variances for geometric random variables

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 19 Means and variances for geometric random variables (contd.) Since We have

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 20 Negative binomial distribution ( 負二項分佈 ) Independent Bernoulli trials, each with probability of success p, are performed until the rth success occurs. The number of trials required, N r, is called a negative binomial random variable with parameter r, p; its probability function is as follows:

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 21 Means and variances for negative binomial random variables

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 22 Means and variances for negative binomial random variables (contd.)

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 23 Means and variances for negative binomial random variables (contd.) Thus

Thank you.

Computation Theory Lab., Dept. CSIE, CCU, Taiwan 25 References [H01] 黃文典教授, 機率導論講義, 成大數學系, [L94] H. J. Larson, Introduction to Probability, Addison-Wesley Advanced Series in Statistics, 1994; 機率學的世界 , 鄭惟厚譯 , 天下文 化出版 。 [M97] Statistics: Concepts and Controversies, David S. Moore, 1997; 統 計 , 讓數字說話 , 鄭惟厚譯, 天下文化出版 。 [MR95] R. Motwani and P. Raghavan, Randomized Algorithms, Cambridge University Press, 1995.