Chater 24 Regression and Interpolation

目次へ

Getting Started  with Mathematica, Third Edition

Chater 24   Regression and Interpolation

Regression

平均寿命:   {male life expectancy, female life expectancy}

data = {{70.0, 77.5}, {75.5, 81.5}, {43.0, 43.0}, {72.5, 74.2}, {59.8,
     63.2}, {68.1, 75.8}, {76.5, 82.4}, {64.7, 65.9}, {65.7, 69.0}};

A Model for Temperature

Boston の月平均温度:  {month, temperature in F}

bostonH = {{1, 36.4}, {2, 37.7}, {3, 45.0},
   {4, 56.6}, {5, 67.0}, {6, 76.6}, {7, 81.8},
   {8, 79.8}, {9, 72.3}, {10, 62.5}, {11, 51.6},
   {12, 40.3}, {13, 36.4}, {14, 37.7}, {15, 45.0}};

A U.S. Population Model

pop =
  {{1790, 3.929}, {1800, 5.308}, {1810, 7.240},
   {1820, 9.638}, {1830, 12.861}, {1840, 17.063},
   {1850, 23.192}, {1860, 31.443}, {1870, 38.558},
   {1880, 50.189}, {1890, 62.980}, {1900, 76.212},
   {1910, 92.228}, {1920, 106.021}, {1930, 123.203},
   {1940, 132.166}, {1950, 151.326}, {1960, 179.323},
   {1970, 203.302}, {1980, 226.542}, {1990, 248.710}};

振り子の周期を測る実験

"{振り子の長さ(cm), 周期(s)}"
lengthPeriod = {{96.5, 1.964}, {90.0, 1.903}, {79.0, 1.771}, 
                {71.3, 1.695}, {63.5, 1.596}, {107.0, 2.058}};

「当てはまりの良さ」を調べるデータ

data1 = {{5, 3.8}, {10, 39.1}, {15, 16.8}, {20, 21.9}, {25, 55.0}, {30, 23.0}, {35, 72.0}};
data2 = {{5, 9.4}, {10, 18.3}, {15, 26.2}, {20, 36.3}, {25, 37.4}, {30, 47.3}, {35, 56.3}};

目次へ