楼主: aruba
3169 4

Introduction to Scientific Programming and Simulation Using R [推广有奖]

  • 0关注
  • 0粉丝

初中生

23%

还不是VIP/贵宾

-

威望
0
论坛币
4740 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
216 点
帖子
10
精华
0
在线时间
10 小时
注册时间
2007-12-16
最后登录
2014-11-21

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Preface v
I Programming 1
1 Setting up 3
1.1 Installing R 3
1.2 Starting R 3
1.3 Working directory 4
1.4 Writing scripts 5
1.5 Help 5
1.6 Supporting material 5
2 R as a calculating environment 11
2.1 Arithmetic 11
2.2 Variables 12
2.3 Functions 13
2.4 Vectors 15
2.5 Missing data 18
2.6 Expressions and assignments 19
2.7 Logical expressions 20
2.8 Matrices 23
2.9 The workspace 25
2.10 Exercises 25
xiii
© 2009 by Taylor & Francis Group, LLC
xiv CONTENTS
3 Basic programming 29
3.1 Introduction 29
3.2 Branching with if 31
3.3 Looping with for 33
3.4 Looping with while 36
3.5 Vector-based programming 38
3.6 Program flow 39
3.7 Basic debugging 41
3.8 Good programming habits 42
3.9 Exercises 43
4 I/O: Input and Output 49
4.1 Text 49
4.2 Input from a file 51
4.3 Input from the keyboard 53
4.4 Output to a file 55
4.5 Plotting 56
4.6 Exercises 58
5 Programming with functions 63
5.1 Functions 63
5.2 Scope and its consequences 68
5.3 Optional arguments and default values 70
5.4 Vector-based programming using functions 70
5.5 Recursive programming 74
5.6 Debugging functions 76
5.7 Exercises 78
6 Sophisticated data structures 85
6.1 Factors 85
6.2 Dataframes 88
6.3 Lists 94
6.4 The apply family 98
6.5 Exercises 105
© 2009 by Taylor & Francis Group, LLC
CONTENTS xv
7 Better graphics 109
7.1 Introduction 109
7.2 Graphics parameters: par 111
7.3 Graphical augmentation 113
7.4 Mathematical typesetting 114
7.5 Permanence 118
7.6 Grouped graphs: lattice 119
7.7 3D-plots 123
7.8 Exercises 124
8 Pointers to further programming techniques 127
8.1 Packages 127
8.2 Frames and environments 132
8.3 Debugging again 134
8.4 Object-oriented programming: S3 137
8.5 Object-oriented programming: S4 141
8.6 Compiled code 144
8.7 Further reading 146
8.8 Exercises 146
II Numerical techniques 149
9 Numerical accuracy and program efficiency 151
9.1 Machine representation of numbers 151
9.2 Significant digits 154
9.3 Time 156
9.4 Loops versus vectors 158
9.5 Memory 160
9.6 Caveat 161
9.7 Exercises 162
© 2009 by Taylor & Francis Group, LLC
xvi CONTENTS
10 Root-finding 167
10.1 Introduction 167
10.2 Fixed-point iteration 168
10.3 The Newton-Raphson method 173
10.4 The secant method 176
10.5 The bisection method 178
10.6 Exercises 181
11 Numerical integration 187
11.1 Trapezoidal rule 187
11.2 Simpson’s rule 189
11.3 Adaptive quadrature 194
11.4 Exercises 198
12 Optimisation 201
12.1 Newton’s method for optimisation 202
12.2 The golden-section method 204
12.3 Multivariate optimisation 207
12.4 Steepest ascent 209
12.5 Newton’s method in higher dimensions 213
12.6 Optimisation in R and the wider world 218
12.7 A curve fitting example 219
12.8 Exercises 220
III Probability and statistics 225
13 Probability 227
13.1 The probability axioms 227
13.2 Conditional probability 230
13.3 Independence 232
13.4 The Law of Total Probability 233
13.5 Bayes’ theorem 234
13.6 Exercises 235
© 2009 by Taylor & Francis Group, LLC
CONTENTS xvii
14 Random variables 241
14.1 Definition and distribution function 241
14.2 Discrete and continuous random variables 242
14.3 Empirical cdf’s and histograms 245
14.4 Expectation and finite approximations 246
14.5 Transformations 251
14.6 Variance and standard deviation 256
14.7 The Weak Law of Large Numbers 257
14.8 Exercises 261
15 Discrete random variables 267
15.1 Discrete random variables in R 267
15.2 Bernoulli distribution 268
15.3 Binomial distribution 268
15.4 Geometric distribution 270
15.5 Negative binomial distribution 273
15.6 Poisson distribution 274
15.7 Exercises 277
16 Continuous random variables 281
16.1 Continuous random variables in R 281
16.2 Uniform distribution 282
16.3 Lifetime models: exponential and Weibull 282
16.4 The Poisson process and the gamma distribution 287
16.5 Sampling distributions: normal, χ2, and t 292
16.6 Exercises 297
17 Parameter Estimation 303
17.1 Point Estimation 303
17.2 The Central Limit Theorem 309
17.3 Confidence intervals 314
17.4 Monte-Carlo confidence intervals 321
17.5 Exercises 322
© 2009 by Taylor & Francis Group, LLC
xviii CONTENTS
IV Simulation 329
18 Simulation 331
18.1 Simulating iid uniform samples 331
18.2 Simulating discrete random variables 333
18.3 Inversion method for continuous rv 338
18.4 Rejection method for continuous rv 339
18.5 Simulating normals 345
18.6 Exercises 348
19 Monte-Carlo integration 355
19.1 Hit-and-miss method 355
19.2 (Improved) Monte-Carlo integration 358
19.3 Exercises 360
20 Variance reduction 363
20.1 Antithetic sampling 363
20.2 Importance sampling 367
20.3 Control variates 372
20.4 Exercises 374
21 Case studies 377
21.1 Introduction 377
21.2 Epidemics 378
21.3 Inventory 390
21.4 Seed dispersal 405
22 Student projects 421
22.1 The level of a dam 421
22.2 Roulette 425
22.3 Buffon’s needle and cross 428
22.4 Insurance risk 430
22.5 Squash 433
22.6 Stock prices 438
© 2009 by Taylor & Francis Group, LLC
CONTENTS xix
Glossary of R commands 441
Programs and functions developed in the text 447
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:introduction Programming Simulation Scientific troduction Using Programming Simulation introduction Scientific

Introduction to Scientific Programming and Simulation Using R.pdf

7.64 MB

需要: 5 个论坛币  [购买]

沙发
aceldy 发表于 2010-1-3 00:47:39 |只看作者 |坛友微信交流群
thank you very much~~~

good book  

使用道具

藤椅
陵子 发表于 2011-1-28 20:25:55 |只看作者 |坛友微信交流群
谢谢分享~~~~~~~~~·

使用道具

板凳
chiaolee 发表于 2012-2-22 19:25:11 |只看作者 |坛友微信交流群
貴喔
患難生忍耐,忍耐生老練,老練生盼望;盼望不至於羞恥

使用道具

报纸
吉林小王子 在职认证  发表于 2012-2-22 21:52:00 |只看作者 |坛友微信交流群

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-11-4 10:51