Guest User

Untitled

a guest
Apr 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "metadata": {},
  5. "cell_type": "markdown",
  6. "source": "問い:ある鉄道会社では、機関車に1...Nという番号を付けている。ある日、 $N_1,N_2, N_3$番の機関車を目撃したとすると、鉄道会社は何台の機関車を所有しているのか、推測せよ"
  7. },
  8. {
  9. "metadata": {},
  10. "cell_type": "markdown",
  11. "source": "考え方:鉄道会社が所有する機関車の台数の確率を$P(T)$とする、$N_1,N_2,N_3$が目撃される確率は\n$$P([N_1,N_2,N_3] \\mid T)=\\frac{\\theta(T-N_1)\\theta(T-N_2)\\theta(T-N_3)}{T^3} \\equiv \\frac{\\Theta([N], T)}{T^3}$$\n$T$が$N_1,N_2,N_3$のいずれかより小さい場合、確率がゼロになる"
  12. },
  13. {
  14. "metadata": {},
  15. "cell_type": "markdown",
  16. "source": "$N_1, N_2, N_3$が目撃されたときに、鉄道会社が$T$台の機関車を所有している確率は"
  17. },
  18. {
  19. "metadata": {},
  20. "cell_type": "markdown",
  21. "source": "\\begin{eqnarray}\nP(T \\mid [N_1,N_2,N_3]) \n&=& \\frac{P([N_1, N_2, N_3] \\mid T) \\ P(T)}{P([N_1,N_2,N_3])} \\\\\n&=& \\frac{\\frac{\\Theta([N],T)}{T^3}}{\\sum_{t=1}^{N_{max}} \\frac{\\Theta([N],t)}{t^3}}\n\\end{eqnarray}"
  22. },
  23. {
  24. "metadata": {},
  25. "cell_type": "markdown",
  26. "source": "ここで$P(T)=\\frac{1}{N_{max}}$は鉄道会社が$T$台の機関車を所有している場合の確率で、$P([N_1,N_2,N_3])$は全体で$[N_1,N_2,N_3]$番の機関車が観測される確率"
  27. },
  28. {
  29. "metadata": {},
  30. "cell_type": "markdown",
  31. "source": "鉄道会社が所有する機関車の期待値は\n\n$$<T> =\\frac{\\sum^{N_{max}}_{T=1}\\frac{\\Theta([N],T)}{T^2}}{\\sum_{t=1}^{N_{max}} \\frac{\\Theta([N],t)}{t^3}}$$"
  32. },
  33. {
  34. "metadata": {},
  35. "cell_type": "markdown",
  36. "source": "疑問:さてここで、$\\prod([N], T)$は結局のところ、$N_1,N_2,N_3$のうち最も大きい数で決まる。ということは、機関車問題で鉄道会社が所有する機関車の台数の確率と台数の期待値は観測された番号の内の最大の番号と観測した回数で決まる?"
  37. },
  38. {
  39. "metadata": {
  40. "trusted": true
  41. },
  42. "cell_type": "code",
  43. "source": "",
  44. "execution_count": null,
  45. "outputs": []
  46. }
  47. ],
  48. "metadata": {
  49. "kernelspec": {
  50. "name": "python3",
  51. "display_name": "Python 3",
  52. "language": "python"
  53. },
  54. "toc": {
  55. "nav_menu": {},
  56. "number_sections": true,
  57. "sideBar": true,
  58. "skip_h1_title": false,
  59. "title_cell": "Table of Contents",
  60. "title_sidebar": "Contents",
  61. "toc_cell": false,
  62. "toc_position": {},
  63. "toc_section_display": true,
  64. "toc_window_display": false
  65. },
  66. "language_info": {
  67. "name": "python",
  68. "version": "3.6.2",
  69. "mimetype": "text/x-python",
  70. "codemirror_mode": {
  71. "name": "ipython",
  72. "version": 3
  73. },
  74. "pygments_lexer": "ipython3",
  75. "nbconvert_exporter": "python",
  76. "file_extension": ".py"
  77. },
  78. "gist": {
  79. "id": "",
  80. "data": {
  81. "description": "stat/Untitled.ipynb",
  82. "public": true
  83. }
  84. }
  85. },
  86. "nbformat": 4,
  87. "nbformat_minor": 2
  88. }
Add Comment
Please, Sign In to add comment