Submit Search
Upload
配列数式
•
0 likes
•
1,210 views
Maruyama Tetsutaro
Follow
Japanese version only
Read less
Read more
Report
Share
Report
Share
1 of 7
Download now
Download to read offline
Recommended
shot note で手書き資料作成
shot note で手書き資料作成
Maruyama Tetsutaro
円錐曲線の極座標表示
円錐曲線の極座標表示
Maruyama Tetsutaro
keynoteでslideshare
keynoteでslideshare
Maruyama Tetsutaro
ランダム・シャッフル
ランダム・シャッフル
Maruyama Tetsutaro
Zipf分布に従う乱数の生成方法
Zipf分布に従う乱数の生成方法
Maruyama Tetsutaro
Online Matching and Ad Allocaton 8章&9章半分
Online Matching and Ad Allocaton 8章&9章半分
Maruyama Tetsutaro
ユークリッド距離以外の距離で教師無しクラスタリング
ユークリッド距離以外の距離で教師無しクラスタリング
Maruyama Tetsutaro
集中不等式のすすめ [集中不等式本読み会#1]
集中不等式のすすめ [集中不等式本読み会#1]
Kentaro Minami
Recommended
shot note で手書き資料作成
shot note で手書き資料作成
Maruyama Tetsutaro
円錐曲線の極座標表示
円錐曲線の極座標表示
Maruyama Tetsutaro
keynoteでslideshare
keynoteでslideshare
Maruyama Tetsutaro
ランダム・シャッフル
ランダム・シャッフル
Maruyama Tetsutaro
Zipf分布に従う乱数の生成方法
Zipf分布に従う乱数の生成方法
Maruyama Tetsutaro
Online Matching and Ad Allocaton 8章&9章半分
Online Matching and Ad Allocaton 8章&9章半分
Maruyama Tetsutaro
ユークリッド距離以外の距離で教師無しクラスタリング
ユークリッド距離以外の距離で教師無しクラスタリング
Maruyama Tetsutaro
集中不等式のすすめ [集中不等式本読み会#1]
集中不等式のすすめ [集中不等式本読み会#1]
Kentaro Minami
How to Develop Experiment-Oriented Programs
How to Develop Experiment-Oriented Programs
Kenta Oono
機械学習向けプログラミング言語の使い分け - RCO の場合
機械学習向けプログラミング言語の使い分け - RCO の場合
Maruyama Tetsutaro
Stochastic Gradient MCMC
Stochastic Gradient MCMC
Kenta Oono
高速・省メモリにlibsvm形式で ダンプする方法を研究してみた
高速・省メモリにlibsvm形式で ダンプする方法を研究してみた
Keisuke Hosaka
Introduction of “Fairness in Learning: Classic and Contextual Bandits”
Introduction of “Fairness in Learning: Classic and Contextual Bandits”
Kazuto Fukuchi
Differential privacy without sensitivity [NIPS2016読み会資料]
Differential privacy without sensitivity [NIPS2016読み会資料]
Kentaro Minami
Conditional Image Generation with PixelCNN Decoders
Conditional Image Generation with PixelCNN Decoders
suga93
Interaction Networks for Learning about Objects, Relations and Physics
Interaction Networks for Learning about Objects, Relations and Physics
Ken Kuroki
Introduction of "TrailBlazer" algorithm
Introduction of "TrailBlazer" algorithm
Katsuki Ohto
Fast and Probvably Seedings for k-Means
Fast and Probvably Seedings for k-Means
Kimikazu Kato
InfoGAN: Interpretable Representation Learning by Information Maximizing Gen...
InfoGAN: Interpretable Representation Learning by Information Maximizing Gen...
Shuhei Yoshida
Improving Variational Inference with Inverse Autoregressive Flow
Improving Variational Inference with Inverse Autoregressive Flow
Tatsuya Shirakawa
Fractality of Massive Graphs: Scalable Analysis with Sketch-Based Box-Coverin...
Fractality of Massive Graphs: Scalable Analysis with Sketch-Based Box-Coverin...
Kenko Nakamura
Learning to learn by gradient descent by gradient descent
Learning to learn by gradient descent by gradient descent
Hiroyuki Fukuda
Value iteration networks
Value iteration networks
Fujimoto Keisuke
Development and Experiment of Deep Learning with Caffe and maf
Development and Experiment of Deep Learning with Caffe and maf
Kenta Oono
Safe and Efficient Off-Policy Reinforcement Learning
Safe and Efficient Off-Policy Reinforcement Learning
mooopan
Dual Learning for Machine Translation (NIPS 2016)
Dual Learning for Machine Translation (NIPS 2016)
Toru Fujino
Matching networks for one shot learning
Matching networks for one shot learning
Kazuki Fujikawa
5分でわかるベイズ確率
5分でわかるベイズ確率
hoxo_m
Lambda and rundeck
Lambda and rundeck
Maruyama Tetsutaro
Mining of massive datasets chapter3
Mining of massive datasets chapter3
Maruyama Tetsutaro
More Related Content
Viewers also liked
How to Develop Experiment-Oriented Programs
How to Develop Experiment-Oriented Programs
Kenta Oono
機械学習向けプログラミング言語の使い分け - RCO の場合
機械学習向けプログラミング言語の使い分け - RCO の場合
Maruyama Tetsutaro
Stochastic Gradient MCMC
Stochastic Gradient MCMC
Kenta Oono
高速・省メモリにlibsvm形式で ダンプする方法を研究してみた
高速・省メモリにlibsvm形式で ダンプする方法を研究してみた
Keisuke Hosaka
Introduction of “Fairness in Learning: Classic and Contextual Bandits”
Introduction of “Fairness in Learning: Classic and Contextual Bandits”
Kazuto Fukuchi
Differential privacy without sensitivity [NIPS2016読み会資料]
Differential privacy without sensitivity [NIPS2016読み会資料]
Kentaro Minami
Conditional Image Generation with PixelCNN Decoders
Conditional Image Generation with PixelCNN Decoders
suga93
Interaction Networks for Learning about Objects, Relations and Physics
Interaction Networks for Learning about Objects, Relations and Physics
Ken Kuroki
Introduction of "TrailBlazer" algorithm
Introduction of "TrailBlazer" algorithm
Katsuki Ohto
Fast and Probvably Seedings for k-Means
Fast and Probvably Seedings for k-Means
Kimikazu Kato
InfoGAN: Interpretable Representation Learning by Information Maximizing Gen...
InfoGAN: Interpretable Representation Learning by Information Maximizing Gen...
Shuhei Yoshida
Improving Variational Inference with Inverse Autoregressive Flow
Improving Variational Inference with Inverse Autoregressive Flow
Tatsuya Shirakawa
Fractality of Massive Graphs: Scalable Analysis with Sketch-Based Box-Coverin...
Fractality of Massive Graphs: Scalable Analysis with Sketch-Based Box-Coverin...
Kenko Nakamura
Learning to learn by gradient descent by gradient descent
Learning to learn by gradient descent by gradient descent
Hiroyuki Fukuda
Value iteration networks
Value iteration networks
Fujimoto Keisuke
Development and Experiment of Deep Learning with Caffe and maf
Development and Experiment of Deep Learning with Caffe and maf
Kenta Oono
Safe and Efficient Off-Policy Reinforcement Learning
Safe and Efficient Off-Policy Reinforcement Learning
mooopan
Dual Learning for Machine Translation (NIPS 2016)
Dual Learning for Machine Translation (NIPS 2016)
Toru Fujino
Matching networks for one shot learning
Matching networks for one shot learning
Kazuki Fujikawa
5分でわかるベイズ確率
5分でわかるベイズ確率
hoxo_m
Viewers also liked
(20)
How to Develop Experiment-Oriented Programs
How to Develop Experiment-Oriented Programs
機械学習向けプログラミング言語の使い分け - RCO の場合
機械学習向けプログラミング言語の使い分け - RCO の場合
Stochastic Gradient MCMC
Stochastic Gradient MCMC
高速・省メモリにlibsvm形式で ダンプする方法を研究してみた
高速・省メモリにlibsvm形式で ダンプする方法を研究してみた
Introduction of “Fairness in Learning: Classic and Contextual Bandits”
Introduction of “Fairness in Learning: Classic and Contextual Bandits”
Differential privacy without sensitivity [NIPS2016読み会資料]
Differential privacy without sensitivity [NIPS2016読み会資料]
Conditional Image Generation with PixelCNN Decoders
Conditional Image Generation with PixelCNN Decoders
Interaction Networks for Learning about Objects, Relations and Physics
Interaction Networks for Learning about Objects, Relations and Physics
Introduction of "TrailBlazer" algorithm
Introduction of "TrailBlazer" algorithm
Fast and Probvably Seedings for k-Means
Fast and Probvably Seedings for k-Means
InfoGAN: Interpretable Representation Learning by Information Maximizing Gen...
InfoGAN: Interpretable Representation Learning by Information Maximizing Gen...
Improving Variational Inference with Inverse Autoregressive Flow
Improving Variational Inference with Inverse Autoregressive Flow
Fractality of Massive Graphs: Scalable Analysis with Sketch-Based Box-Coverin...
Fractality of Massive Graphs: Scalable Analysis with Sketch-Based Box-Coverin...
Learning to learn by gradient descent by gradient descent
Learning to learn by gradient descent by gradient descent
Value iteration networks
Value iteration networks
Development and Experiment of Deep Learning with Caffe and maf
Development and Experiment of Deep Learning with Caffe and maf
Safe and Efficient Off-Policy Reinforcement Learning
Safe and Efficient Off-Policy Reinforcement Learning
Dual Learning for Machine Translation (NIPS 2016)
Dual Learning for Machine Translation (NIPS 2016)
Matching networks for one shot learning
Matching networks for one shot learning
5分でわかるベイズ確率
5分でわかるベイズ確率
More from Maruyama Tetsutaro
Lambda and rundeck
Lambda and rundeck
Maruyama Tetsutaro
Mining of massive datasets chapter3
Mining of massive datasets chapter3
Maruyama Tetsutaro
業務に活かすデータサイエンスとは?
業務に活かすデータサイエンスとは?
Maruyama Tetsutaro
日本の伝統色
日本の伝統色
Maruyama Tetsutaro
Gnuplotあれこれ
Gnuplotあれこれ
Maruyama Tetsutaro
Ubuntuで最新パッケージを導入
Ubuntuで最新パッケージを導入
Maruyama Tetsutaro
Zshでデキるプロンプト
Zshでデキるプロンプト
Maruyama Tetsutaro
More from Maruyama Tetsutaro
(7)
Lambda and rundeck
Lambda and rundeck
Mining of massive datasets chapter3
Mining of massive datasets chapter3
業務に活かすデータサイエンスとは?
業務に活かすデータサイエンスとは?
日本の伝統色
日本の伝統色
Gnuplotあれこれ
Gnuplotあれこれ
Ubuntuで最新パッケージを導入
Ubuntuで最新パッケージを導入
Zshでデキるプロンプト
Zshでデキるプロンプト
配列数式
1.
配列数式 まるやま 2013/05/10 1 / 7
2.
こんなデータがあったとする -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 0 0.5 1
1.5 2 2.5 3 result causality 2 / 7
3.
こんなデータがあったとする 横軸が原因、縦軸が結果 Excel 的に言うと、A1∼A400 セルに原因の値 B1∼B400
セルに、対応する結果の値が入っているとする 結果が正の値のデータは、原因と結果に相関がありそう! 結果が負の値のデータは、まぁいいとして 相関が有るのか無いのか調べるのは、相関係数! 3 / 7
4.
Excelで相関係数の計算 Excel で相関係数の計算をするのは、簡単 例えば C1
セルに以下を入力する =POWER(CORREL(A1:A400,B1:B400),2) このデータで実際に計算してみたら、0.41 微妙な値… それもそのはず あまり相関の無さそうな、結果が負のデータも一緒に計算し ているから 恣意的かもしれないけど、結果が正のデータだけで、相関係 数を計算したい 結果が負のデータを消す? 結果が正のデータを抜き出してコピー? めんどくさい… 配列数式を使おう! 4 / 7
5.
配列数式 C2 セルに以下を入力する =POWER(CORREL(IF(B1:B400>0,A1:A400), IF(B1:B400>0,B1:B400)),2) 入力した後に、Ctrl+Shift+Return を押す! すると上の式全体が
{} で括られる 手で {} を書いても、ダメ これ(IF の部分)が配列数式! この IF は、else 部分を省略した形 厳密に書くと、IF(B1:B400>0,A1:A400,0) となる A1:A400 というセルの配列の中から、対応する B 列の値が正 の値のみを抜き出して、配列の形で出力する、という意味 入力した後に修正しようとして C2 セルをダブルクリックす ると、配列数式が解除されてしまう 修正した後に、もう一度 Ctrl+Shift+Return する このデータで実際に計算してみると、0.82 見事に相関がありそうな値になった! 5 / 7
6.
複数の条件を組み合わせた配列数式 結果の値が正、かつ、結果の値が2未満のもの IF((B1:B400>0)*(B1:B400<2),A1:A400) 結果の値が1未満、もしくは、結果の値が1より大きいもの IF((B1:B400<-1)+(B1:B400>1),A1:A400) IF の条件式は、あくまで数式の形であること 配列数式の場合は、AND, OR
は使えない もちろん普通の IF 文は AND, OR が使えるけど AND の代わりに*, OR の代わりに+を使う 6 / 7
7.
配列数式のExcel VBAマクロ 先ほどの配列数式を Excel
VBA マクロで書くと、以下になる Range(“C2”).FormulaArray = “=POWER(CORREL(IF(” & Range(“B1:B400”) & “>0,” & Range(“A1:A400”) & “),IF(” & Range(“B1:B400”) & “>0,” & Range(“B1:B400”) & “)),2)” なんか VBA で書いたほうが簡単だなぁ ちなみに、VBA マクロ以外、LibreOffice でも全く同じことが 出来ます 7 / 7
Download now