¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

Similar documents
¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè3²ó

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè3²ó

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè3²ó

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè7²ó

untitled

80 X 1, X 2,, X n ( λ ) λ P(X = x) = f (x; λ) = λx e λ, x = 0, 1, 2, x! l(λ) = n f (x i ; λ) = i=1 i=1 n λ x i e λ i=1 x i! = λ n i=1 x i e nλ n i=1 x

1 1 ( ) ( % mm % A B A B A 1

!!! 2!

2 A I / 58

2 I I / 61

cpall.dvi

最小2乗法

05 I I / 56

k2 ( :35 ) ( k2) (GLM) web web 1 :

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè9²ó

tokei01.dvi

講義のーと : データ解析のための統計モデリング. 第2回

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè3²ó

GNUPLOT GNUPLOT GNUPLOT 1 ( ) GNUPLO

Rによる計量分析:データ解析と可視化 - 第3回 Rの基礎とデータ操作・管理


r2.dvi

分布

yamadaiR(cEFA).pdf

AR(1) y t = φy t 1 + ɛ t, ɛ t N(0, σ 2 ) 1. Mean of y t given y t 1, y t 2, E(y t y t 1, y t 2, ) = φy t 1 2. Variance of y t given y t 1, y t

kubostat2017b p.1 agenda I 2017 (b) probability distribution and maximum likelihood estimation :

Debian での数学ことはじめ。 - gnuplot, Octave, R 入門



gnuplot.dvi

Stata11 whitepapers mwp-037 regress - regress regress. regress mpg weight foreign Source SS df MS Number of obs = 74 F(

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè1²ó

25 II :30 16:00 (1),. Do not open this problem booklet until the start of the examination is announced. (2) 3.. Answer the following 3 proble

I I / 68

橡kenkyuhoukoku8.PDF

kubostat2018d p.2 :? bod size x and fertilization f change seed number? : a statistical model for this example? i response variable seed number : { i

Isogai, T., Building a dynamic correlation network for fat-tailed financial asset returns, Applied Network Science (7):-24, 206,

きれいなグラフを作ろう!gnuplot 入門 1. 基本 1.1. プロット :test.plt plot x, sin(x) 1.2. データファイルのプロット 1:data.plt plot "data.dat" 1.3. データファイルのプロット 2:data2.plt plot "data2

(pdf) (cdf) Matlab χ ( ) F t

2 1 Introduction

I L01( Wed) : Time-stamp: Wed 07:38 JST hig e, ( ) L01 I(2017) 1 / 19

こんにちは由美子です

10

( ) 1.1 Polychoric Correlation Polyserial Correlation Graded Response Model Partial Credit Model Tetrachoric Correlation ( ) 2 x y x y s r 1 x 2


joho09.ppt

ohp1.dvi

こんにちは由美子です

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè1²ó

(Nov/2009) 2 / = (,,, ) /8

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè1²ó

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

Ver.1 1/17/2003 2

programmingII2019-v01

Ruby Ruby ruby Ruby G: Ruby>ruby Ks sample1.rb G: Ruby> irb (interactive Ruby) G: Ruby>irb -Ks irb(main):001:0> print( ) 44=>

ECCS. ECCS,. ( 2. Mac Do-file Editor. Mac Do-file Editor Windows Do-file Editor Top Do-file e

第122号.indd

C 2 / 21 1 y = x 1.1 lagrange.c 1 / Laglange / 2 #include <stdio.h> 3 #include <math.h> 4 int main() 5 { 6 float x[10], y[10]; 7 float xx, pn, p; 8 in

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè9²ó

x1 GNUPLOT 2 x4 12 x1 Gnuplot Gnuplot,,. gnuplot, PS (Post Script), PS ghostview.,.,,,.,., gnuplot,,, (x2). x1.1 Gnuplot (gnuplot, quit) gnuplot,. % g

H22 BioS (i) I treat1 II treat2 data d1; input group patno treat1 treat2; cards; ; run; I

資料

y i OLS [0, 1] OLS x i = (1, x 1,i,, x k,i ) β = (β 0, β 1,, β k ) G ( x i β) 1 G i 1 π i π i P {y i = 1 x i } = G (

1. ( ) 1.1 t + t [m]{ü(t + t)} + [c]{ u(t + t)} + [k]{u(t + t)} = {f(t + t)} (1) m ü f c u k u 1.2 Newmark β (1) (2) ( [m] + t ) 2 [c] + β( t)2

(2-1) x, m, 2 N(m, 2 ) x REAL*8 FUNCTION NRMDST (X, M, V) X,M,V REAL*8 x, m, 2 X X N(0,1) f(x) standard-norm.txt normdist1.f x=0, 0.31, 0.5

Excel97関数編

if clear = 1 then Q <= " "; elsif we = 1 then Q <= D; end rtl; regs.vhdl clk 0 1 rst clear we Write Enable we 1 we 0 if clk 1 Q if rst =

4.9 Hausman Test Time Fixed Effects Model vs Time Random Effects Model Two-way Fixed Effects Model

untitled

II - ( 02 ) 1,,,, 2, 3. ( ) HP,. 2 MATLAB MATLAB, C Java,,., MATLAB, Workspace, Workspace. Workspace who. whos. MATLAB, MATLAB Workspace. 2.1 Workspac

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè11²ó

untitled

Microsoft Word - 計量研修テキスト_第5版).doc

こんにちは由美子です

Studies of Foot Form for Footwear Design (Part 9) : Characteristics of the Foot Form of Young and Elder Women Based on their Sizes of Ball Joint Girth

情報活用資料


kubostat2015e p.2 how to specify Poisson regression model, a GLM GLM how to specify model, a GLM GLM logistic probability distribution Poisson distrib

y = x 4 y = x 8 3 y = x 4 y = x 3. 4 f(x) = x y = f(x) 4 x =,, 3, 4, 5 5 f(x) f() = f() = 3 f(3) = 3 4 f(4) = 4 *3 S S = f() + f() + f(3) + f(4) () *4

C言語によるアルゴリズムとデータ構造

1 I EViews View Proc Freeze

12†^1

Time Variation of Earthquake Volume and Energy-Density with Special Reference to Tohnankai and Mikawa Earthquake Akira IKAMi and Kumizi IIDA Departmen

確率論と統計学の資料

平成13年度日本分析センター年報

kubostat2017e p.1 I 2017 (e) GLM logistic regression : : :02 1 N y count data or

A Nutritional Study of Anemia in Pregnancy Hematologic Characteristics in Pregnancy (Part 1) Keizo Shiraki, Fumiko Hisaoka Department of Nutrition, Sc

I J

1 1 [1] ( 2,625 [2] ( 2, ( ) /

untitled

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

さいたま国際マラソン2015_フルマラソンの部.indd

populatio sample II, B II? [1] I. [2] 1 [3] David J. Had [4] 2 [5] 3 2

untitled

1 Tokyo Daily Rainfall (mm) Days (mm)

kubostat2017c p (c) Poisson regression, a generalized linear model (GLM) : :

nakayama15icm01_l7filter.pptx


I

Transcription:

2 212 4 13

1 (4/6) : ruby 2 / 35

( ) : gnuplot 3 / 35

( ) 4 / 35

(summary statistics) : (mean) (median) (mode) : (range) (variance) (standard deviation) 5 / 35

(mean): x = 1 n (median): { xr+1 m, m = 2r + 1 x median = (x r + x r+1 )/2 m, m = 2r n i=1 (mode): x i f(x) mode median mean median mode mean x 6 / 35

(percentiles) pth-percentile: p% median = 5th-percentile 1 9 8 total observations (%) 7 6 5 4 3 2 1-4 -3-2 -1 1 2 3 4 sorted variable x 7 / 35

(range): (variance): σ 2 = 1 nx (x i x) 2 n i=1 (standatd deviation): σ 68% (mean ± stddev) 95% (mean ± 2stddev) f(x) 1 mean median exp(-x**2/2).8.6.4.2-5 -4-3 -2-1 1 2 3 4 5 68% x 95% 8 / 35

(variance): σ 2 = 1 nx (x i x) 2 n i=1 σ 2 = 1 nx (x i x) 2 n i=1 = 1 nx (xi 2 2x i x + x 2 ) n i=1 = 1 nx nx n ( xi 2 2 x x i + n x 2 ) i=1 i=1 = 1 nx xi 2 2 x 2 + x 2 n i=1 = 1 nx xi 2 x 2 n i=1 9 / 35

normalized traffic volume 4 2-2 -4 cdf 1.9.8.7.6.5.4.3.2.1 1.5 1.5 -.5-1 5 1 15 2 25 3 35 time (sec) -4-3 -2-1 1 2 3 4 normalized traffic volume -1.5-1.5-1 -.5.5 1 1.5 1 / 35

: sample data from a book: P. K. Janert Gnuplot in Action # Minutes Count 133 1 134 7 135 1 136 4 137 3 138 3 141 7 142 24... :2,355 :171.3 :14.1 :176 11 / 35

: (2) 18 16 14 12 count 1 8 6 4 2 12 14 16 18 2 22 24 finish time (minutes) 12 / 35

: (3) 25 2 15 rank 1 5 12 14 16 18 2 22 24 finish time (minutes) 13 / 35

XY XY : ( ) XY 3D ( : ) 14 / 35

15 / 35

X Y 4 normalized traffic volume 2-2 -4 5 1 15 2 25 3 35 time (sec) 16 / 35

(1/2) X : Y : 16 14 12 frequency 1 8 6 4 2-4 -3-2 -1 1 2 3 4 normalized traffic volume 17 / 35

(2/2) ( ) ( ) 18 / 35

(probability density function; pdf) 1 : X x f (x) = P[X = x].4.35.3.25 pdf.2.15.1.5-4 -3-2 -1 1 2 3 4 normalized traffic volume 19 / 35

(cumulative distribution function; cdf) : x f (x) = P[X = x] : x F (x) = P[X <= x] 1.9.8.7.6 cdf.5.4.3.2.1-4 -3-2 -1 1 2 3 4 normalized traffic volume 2 / 35

CDF CDF CDF 18 ping rtt 18 ping rtt 16 16 14 14 12 12 histogram 1 8 histogram 1 8 6 6 4 4 2 2 3 4 5 6 7 8 9 1 response time (msec) 3 4 5 6 7 8 9 1 response time (msec) 1.9.8.7.6 CDF.5.4.3.2.1 8241 samples 1 samples 3 4 5 6 7 8 9 1 response time (msec) ( ) ( )1 ( )CDF 21 / 35

(scatter plots) 2 X : X Y : Y X Y 1.5 1.5 1.5 1 1 1.5.5.5 -.5 -.5 -.5-1 -1-1 -1.5-1.5-1 -.5.5 1 1.5-1.5-1.5-1 -.5.5 1 1.5-1.5-1.5-1 -.5.5 1 1.5 : ( ).7 ( ). ( ) -.5 22 / 35

gnuplot http://gnuplot.info/ grace GUI http://plasma-gate.weizmann.ac.il/grace/ 23 / 35

: : P. K. Janert Gnuplot in Action http://web.sfc.keio.ac.jp/~kjc/classes/sfc212s-measurement/marathon.txt 24 / 35

: ( ) # regular expression to read minutes and count re = /^(\d+)\s+(\d+)/ sum = # sum of data n = # the number of data ARGF.each_line do line if re.match(line) min = $1.to_i cnt = $2.to_i sum += min * cnt n += cnt end end mean = Float(sum) / n printf "n:%d mean:%.1f\n", n, mean % ruby mean.rb marathon.txt n:2355 mean:171.3 25 / 35

: : σ 2 = 1 n n i=1 (x i x) 2 # regular expression to read minutes and count re = /^(\d+)\s+(\d+)/ data = Array.new sum = # sum of data n = # the number of data ARGF.each_line do line if re.match(line) min = $1.to_i cnt = $2.to_i sum += min * cnt n += cnt for i in 1.. cnt data.push min end end end mean = Float(sum) / n sqsum =. data.each do i sqsum += (i - mean)**2 end var = sqsum / n stddev = Math.sqrt(var) printf "n:%d mean:%.1f variance:%.1f stddev:%.1f\n", n, mean, var, stddev % ruby stddev.rb marathon.txt n:2355 mean:171.3 variance:199.9 stddev:14.1 26 / 35

: : σ 2 = 1 n n i=1 x 2 i x 2 # regular expression to read minutes and count re = /^(\d+)\s+(\d+)/ sum = # sum of data n = # the number of data sqsum = # su of squares ARGF.each_line do line if re.match(line) min = $1.to_i cnt = $2.to_i sum += min * cnt n += cnt sqsum += min**2 * cnt end end mean = Float(sum) / n var = Float(sqsum) / n - mean**2 stddev = Math.sqrt(var) printf "n:%d mean:%.1f variance:%.1f stddev:%.1f\n", n, mean, var, stddev % ruby stddev2.rb marathon.txt n:2355 mean:171.3 variance:199.9 stddev:14.1 27 / 35

: # regular expression to read minutes and count re = /^(\d+)\s+(\d+)/ data = Array.new ARGF.each_line do line if re.match(line) min = $1.to_i cnt = $2.to_i for i in 1.. cnt data.push min end end end data.sort! # just in case data is not sorted n = data.length # number of array elements r = n / 2 # when n is odd, n/2 is rounded down if n % 2!= median = data[r] else median = (data[r - 1] + data[r])/2 end printf "r:%d median:%d\n", r, median % ruby median.rb marathon.txt r:1177 median:176 28 / 35

: gnuplot gnuplot 29 / 35

plot "marathon.txt" using 1:2 with boxes ( ) set boxwidth 1 set xlabel "finish time (minutes)" set ylabel "count" set yrange [:18] set grid y plot "marathon.txt" using 1:2 with boxes notitle 16 14 12 1 8 6 4 "marathon.txt" using 1:2 count 18 16 14 12 1 8 6 4 2 12 14 16 18 2 22 24 2 12 14 16 18 2 22 24 finish time (minutes) 3 / 35

: CDF : # Minutes Count 133 1 134 7 135 1 136 4 137 3 138 3 141 7 142 24... : # Minutes Count CumulativeCount 133 1 1 134 7 8 135 1 9 136 4 13 137 3 16 138 3 19 141 7 26 142 24 5... 31 / 35

: CDF (2) ruby code: re = /^(\d+)\s+(\d+)/ cum = ARGF.each_line do line begin if re.match(line) # matched time, cnt = $~.captures cum += cnt.to_i puts "#{time}\t#{cnt}\t#{cum}" end end end gnuplot command: set boxwidth 1 set xlabel "finish time (minutes)" set ylabel "CDF" set grid y plot "marathon-cdf.txt" using 1:($3 / 2355) with lines notitle 32 / 35

CDF 1.9.8.7.6 CDF.5.4.3.2.1 12 14 16 18 2 22 24 finish time (minutes) 33 / 35

( ) : gnuplot 34 / 35

3 (4/2) : 35 / 35