2009-01-01から1年間の記事一覧
J. Rouwendal, A. Blaeij, P. Rietveld, E. Verhoef, The information content of a stated choice experiment: A new method and its application to the value of a statistical life, Transportation Research Part B, Vol.44, pp.136-151, 2010.SPで時間…
E. S. Maskin, J.G. Riley, 1985, Auction Theory with Private Values, The American Economic Review, Vol. 75, No. 2, pp.150-155.AERの古めの論文であるが,private valueやasymmetryに対してのインプリがあり,短くて読みやすいが内容はそこそこおもし…
また気付いたら1ヶ月くらい経っているという….先日,初めて英語プレゼンをする機会があり,しかもそれが自分の分野の大御所であるMoshe Ben-Akivaの前であり,そして自分の研究の進捗が散々なものであるという状況で非常に辛いものではありましたが,大変経…
A.R.Pinjari, C.R.Bhat, D.A.Hensher, 2009, Residential self-selection effects in an activity time-use behavior model, Transportation Research Part B, Vol.43, Issue.7, pp.729-748.交通行動の分析だけでなく,住宅立地選択と活動時間選択を同時に扱…
1900年1月1日は月曜日である。 9月、4月、6月、11月は30日まであり、2月を除く他の月は31日まである。 2月は28日まであるが、うるう年のときは29日である。 うるう年は西暦が4で割り切れる年に起こる。しかし、西暦が400で割り切れず100で割り切れる年はうる…
以下の三角形の頂点から下まで移動するとき、その数値の合計の最大値は23になる。 3 7 5 2 4 6 8 5 9 3 この例では 3 + 7 + 4 + 9 = 23 以下の三角形を頂点から下まで移動するとき、その最大の合計値を求めよ。 75 95 64 17 47 82 18 35 87 10 20 04 82 47 6…
1 から 5 までの数字を英単語で書けば one, two, three, four, five であり、全部で 3 + 3 + 4 + 4 + 5 = 19 の文字が使われている。 では 1 から 1000 (one thousand) までの数字をすべて英単語で書けば、全部で何文字になるか。 注: 空白文字やハイフンを…
2^15 = 32768 であり、これの各数字の合計は 3 + 2 + 7 + 6 + 8 = 26 となる。 同様にして、2^1000 の各数字の合計を求めよ。 久々にやる.こういうのは簡単だなぁ. library(gmp) a1 <- as.bigz(2^1000) b1 <- numeric() for(i in 1:302){ b1[i] <- as.nume…
正の整数に以下の式で繰り返し生成する数列を定義する。 n → n/2 (n が偶数) n → 3n + 1 (n が奇数) 13からはじめるとこの数列は以下のようになる。 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1 13から1まで10個の項になる。この数列はどのような数字からは…
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91…
2 × 2 のマス目の左上からスタートした場合、引き返しなしで右下にいくルートは 6 つある。 では、20 × 20 のマス目ではいくつのルートがあるか。 はいはい,瞬殺.中高生でもやり方わかるよ.コラッツの問題は詰まりそうだったので先にこっちを仕上げてみた…
以下の50桁の数字100個の総和の上位10桁を求めよ。 37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 74324986199524741059474233309513058123726617309629 91942213363574161572522430563301811072…
三角数の数列は自然数の和で表わされ、7番目の三角数は 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28 である。三角数の最初の10項は1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...となる。 最初の7項について、その約数を列挙すると、以下のとおり。 1: 1 3: 1,3 6: 1,2,3,6 …
10以下の素数の和は2 + 3 + 5 + 7 = 17である. 200万以下の全ての素数の和を計算しなさい. これはエラトステネスの篩のおかげで瞬殺です.エラトステネス様様です. eratosthenes <- function(x){ x_0 <- (x-1)/2 d <- rep(TRUE, x_0) l <- (sqrt(x) - 1) / …
ピタゴラスの三つ組(ピタゴラスの定理を満たす整数)とはa a2 + b2 = c2 を満たす数の組である. 例えば, 32 + 42 = 9 + 16 = 25 = 52である. a + b + c = 1000となるピタゴラスの三つ組が一つだけ存在する. このa,b,cの積を計算しなさい. これは組が一つだけ…
以下の1000桁の数字から5つの連続する数字を取り出してその積を計算する。そのような積の中で最大のものの値はいくらか 7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017…
素数を小さい方から6つ並べると 2, 3, 5, 7, 11, 13 であり、6番目の素数は 13 である。 10001 番目の素数を求めよ。 もう問題は日本語訳でいいや.この問題は結局,今まで避けてきた素数列が必要となるのでそれをつくることを考える.とりあえず素数でない…
The sum of the squares of the first ten natural numbers is, 1^(2) + 2^(2) + ... + 10^(2) = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)^(2) = 55^(2) = 3025 Hence the difference between the sum of the sq…
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest number that is evenly divisible by all of the numbers from 1 to 20? 単なる最小公倍数なのですぐにやり方はわかる…
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. 結構悩んだあげくに力技で解く.…
ここ数年,流行の行動経済学の新著.前著の『セイラー教授の〜』同様,内容は確かにおもしろいのだけど,結局は読み物でしかないのが残念.タイトルも英題のNudgeから実践行動経済学という明らかにビジネスな人たちを対象にしたタイトルになってしまっている…
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? この問題,難しくてなかなか良い方法が思いつかなかったので,とりあえず頭から割っていくことに…. x <- 600851475143 p <- 1 for (i in …
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Find the sum of all the even-valued terms in the sequence w…
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. 一日一論文も三日坊主で続かない毎日ですが,思いつきでP…
J. I. McGill and G J. Van Ryzin, Revenue Management: Research Overview and Prospects, Transportation Science, Vol. 33, pp.233-256, 1999.Revenue Management (古くはYield Managementと呼ばれた)における包括的なレビュー論文.当然ではあるが,長い…
6月下旬に『パターン認識と機械学習』(通称:PRML)を2日間でオーバービューするというゼミをやりました.素人だらけで,詳しい人が誰もおらず大変でしたが,やり遂げたことに価値があるのではないかと思います.PRML合宿のまとめサイトつくりました. http:/…
Jofre-Bonet, M. Pesendorfer, M, 2003, Estimation of a Dynamic Auction Game, Econometrica, Vol.71, No.5, pp.1443-1489.かなり難しかった.再度読む必要はあるけど,構造自体は読み込むことでよくわかった.実証においては評価値分布が非常に重要という…
3日目.自分が出たセッションを要約.間違ってる可能性が高いので,原典にあたってください.●SA08 Dynamic Models I Exploring Revenue Concentration within the Firm Using an Agent Based Simulation Keith Hermiz IBMのsaleは一部のユーザーに偏ってい…
2日目.自分が出たセッションを要約.間違ってる可能性が高いので,原典にあたってください.●FA05 Decision Neuroscience: Progress, Opportunities and Challenges A Salesforce-Specific Theory of Mind Scale Willem J.M.I. Verbeke, Roeland C. Dietvo…
自分が出たセッションを要約.間違ってる可能性が高いので,原典にあたってください.●TA08 Structural Econometric Models Counterfactual Prediction with Panel Data Kanishka Misra, Benjamin Handel panel dataの分析のために,サミュエルソン型の選択…