SlideShare una empresa de Scribd logo
1 de 3
Descargar para leer sin conexión
5.1 Please solve a) and b) in python/Winbugs. You can find the dataset needed below:
D H V
4.4 38 2
4.6 33 2.2
5 40 3
5.1 49 4.3
5.1 37 3
5.2 41 2.9
5.2 41 3.5
5.5 39 3.4
5.5 50 5
5.6 69 7.2
5.9 58 6.4
5.9 50 5.6
7.5 45 7.7
7.6 51 10.3
7.6 49 8
7.8 59 12.1
8 56 11.1
8.1 85 16.8
8.4 59 13.6
8.6 78 16.6
8.9 93 20.2
9.1 65 17
9.2 67 17.7
9.3 76 19.4
9.3 64 17.1
9.8 71 23.9
9.9 72 22
9.9 79 23.1
9.9 69 22.6
10.1 71 22
10.2 80 27
10.2 82 27
10.3 81 27.4
10.4 75 25.2
10.6 75 25.5
11 71 25.8
11.1 81 32.8
11.2 91 35.4
11.5 66 26
11.7 65 29
12 72 30.2
12.2 66 28.2
12.2 72 32.4
12.5 90 41.3
12.9 88 45.2
13 63 31.5
13.1 69 37.8
13.1 65 31.6
13.4 73 43.1
13.8 69 36.5
13.8 77 43.3
14.3 64 41.3
14.3 77 58.9
14.6 91 65.6
14.8 90 59.3
14.9 68 41.4
15.1 96 61.5
15.2 91 66.7
15.2 97 68.2
15.3 95 73.2
15.4 89 65.9
15.7 73 55.5
15.9 99 73.6
16 90 65.9
16.8 90 71.4
17.8 91 80.2
18.3 96 93.8
18.3 100 97.9
19.4 94 107
23.4 104 163.5 Spring23 HW 5.1. Pinus echinata (shortleaf pine) forests provided
innumerable railroad ties for our nation's expanding railroad network in the late 19th and early
20th century. The wood is now used for general construction, exterior and interior finishing, and
pulpwood. Volume is the most widely used measure of wood quantity and is often estimated in
standing trees for the assessment of economic value or commercial utilization potential. Volume
is usually estimated from such measurements as diameter and merchantable height. The
proposed equation for volume is V=0D1H2 where D is the diameter at breast height (1.3m) and
H is the merchantable height. Parameters 0,1 and 2 depend on the tree species while is
multiplicative error with lognormal distribution with parameters =0 and 2. Bruce and
Schumacher (1935) provided data on 70 shortleaf pine trees consisting of D (in), H (ft), and V
(cubic ft). The dataset is in file shortleaf0.dat. (a)Set the model as logV=0+1logD+2logH+ where
N(0,2). Estimate parameters 0,1 and 2 and provide their 95% credible intervals. (b)For D=15 in
and H=89ft, estimate the mean volume and find 95% credible set. Hint. Be careful in (b), the
model is for logV and the estimate and CS is needed for V.

Más contenido relacionado

Similar a 5.1 Please solve a) and b) in pythonWinbugs. You can find the datas.pdf

250903944 3 homework2010_3
250903944 3 homework2010_3250903944 3 homework2010_3
250903944 3 homework2010_3
Jerry Snow
 
NG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
NG3S903 - Electronic Systems Engineering - Fault Modelling TechniquesNG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
NG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
Chris Francis
 
Reverse-Engineering a Proprietary Sound Sample Format
Reverse-Engineering a Proprietary Sound Sample FormatReverse-Engineering a Proprietary Sound Sample Format
Reverse-Engineering a Proprietary Sound Sample Format
Andrew Bulhak
 
Chapter Eight(3)
Chapter Eight(3)Chapter Eight(3)
Chapter Eight(3)
bolovv
 
What the Fax!?
What the Fax!?What the Fax!?
What the Fax!?
Priyanka Aash
 
HW2.pdfCSEEEE 230 Computer Organization and Assembly La.docx
HW2.pdfCSEEEE 230 Computer Organization and Assembly La.docxHW2.pdfCSEEEE 230 Computer Organization and Assembly La.docx
HW2.pdfCSEEEE 230 Computer Organization and Assembly La.docx
adampcarr67227
 

Similar a 5.1 Please solve a) and b) in pythonWinbugs. You can find the datas.pdf (20)

250903944 3 homework2010_3
250903944 3 homework2010_3250903944 3 homework2010_3
250903944 3 homework2010_3
 
Robust Watermarking through Dual Band IWT and Chinese Remainder Theorem
Robust Watermarking through Dual Band IWT and Chinese Remainder TheoremRobust Watermarking through Dual Band IWT and Chinese Remainder Theorem
Robust Watermarking through Dual Band IWT and Chinese Remainder Theorem
 
IRJET- VLSI Architecture for Reversible Radix-2 FFT Algorithm using Programma...
IRJET- VLSI Architecture for Reversible Radix-2 FFT Algorithm using Programma...IRJET- VLSI Architecture for Reversible Radix-2 FFT Algorithm using Programma...
IRJET- VLSI Architecture for Reversible Radix-2 FFT Algorithm using Programma...
 
Developing digital signal clustering method using local binary pattern histog...
Developing digital signal clustering method using local binary pattern histog...Developing digital signal clustering method using local binary pattern histog...
Developing digital signal clustering method using local binary pattern histog...
 
NG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
NG3S903 - Electronic Systems Engineering - Fault Modelling TechniquesNG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
NG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
 
M4L12.ppt
M4L12.pptM4L12.ppt
M4L12.ppt
 
Efficient video compression using EZWT
Efficient video compression using EZWTEfficient video compression using EZWT
Efficient video compression using EZWT
 
Laboratory 7
Laboratory 7Laboratory 7
Laboratory 7
 
Reverse-Engineering a Proprietary Sound Sample Format
Reverse-Engineering a Proprietary Sound Sample FormatReverse-Engineering a Proprietary Sound Sample Format
Reverse-Engineering a Proprietary Sound Sample Format
 
GSP 215 Effective Communication - tutorialrank.com
GSP 215  Effective Communication - tutorialrank.comGSP 215  Effective Communication - tutorialrank.com
GSP 215 Effective Communication - tutorialrank.com
 
Statistical analysis of network data and evolution on GPUs: High-performance ...
Statistical analysis of network data and evolution on GPUs: High-performance ...Statistical analysis of network data and evolution on GPUs: High-performance ...
Statistical analysis of network data and evolution on GPUs: High-performance ...
 
Combinational logic
Combinational logicCombinational logic
Combinational logic
 
Colored inversion
Colored inversionColored inversion
Colored inversion
 
Chapter Eight(3)
Chapter Eight(3)Chapter Eight(3)
Chapter Eight(3)
 
What the Fax!?
What the Fax!?What the Fax!?
What the Fax!?
 
GPUs for GEC Competition @ GECCO-2013
GPUs for GEC Competition @ GECCO-2013GPUs for GEC Competition @ GECCO-2013
GPUs for GEC Competition @ GECCO-2013
 
HW2.pdfCSEEEE 230 Computer Organization and Assembly La.docx
HW2.pdfCSEEEE 230 Computer Organization and Assembly La.docxHW2.pdfCSEEEE 230 Computer Organization and Assembly La.docx
HW2.pdfCSEEEE 230 Computer Organization and Assembly La.docx
 
MIMUscope Instruction Manual
MIMUscope Instruction ManualMIMUscope Instruction Manual
MIMUscope Instruction Manual
 
Gráficas en python
Gráficas en python Gráficas en python
Gráficas en python
 
GSP 215 RANK Become Exceptional--gsp215rank.com
GSP 215 RANK Become Exceptional--gsp215rank.comGSP 215 RANK Become Exceptional--gsp215rank.com
GSP 215 RANK Become Exceptional--gsp215rank.com
 

Más de rambagra74

5.1.a Contrast the functions of the DNA and protein components of ch.pdf
5.1.a Contrast the functions of the DNA and protein components of ch.pdf5.1.a Contrast the functions of the DNA and protein components of ch.pdf
5.1.a Contrast the functions of the DNA and protein components of ch.pdf
rambagra74
 
5. Cyanobacteria live mostly in aquatic habitats but they can also b.pdf
5. Cyanobacteria live mostly in aquatic habitats but they can also b.pdf5. Cyanobacteria live mostly in aquatic habitats but they can also b.pdf
5. Cyanobacteria live mostly in aquatic habitats but they can also b.pdf
rambagra74
 
5. Design and implement a method contains 2 for BinarySearchTree, fu.pdf
5. Design and implement a method contains 2 for BinarySearchTree, fu.pdf5. Design and implement a method contains 2 for BinarySearchTree, fu.pdf
5. Design and implement a method contains 2 for BinarySearchTree, fu.pdf
rambagra74
 
7. Lawn Spray Inc. desarrolla y produce equipos de pulverizaci�n.pdf
7. Lawn Spray Inc. desarrolla y produce equipos de pulverizaci�n.pdf7. Lawn Spray Inc. desarrolla y produce equipos de pulverizaci�n.pdf
7. Lawn Spray Inc. desarrolla y produce equipos de pulverizaci�n.pdf
rambagra74
 

Más de rambagra74 (20)

5.27 Company H has an insurance policy for which it pays an annual.pdf
5.27 Company H has an insurance policy for which it pays an annual.pdf5.27 Company H has an insurance policy for which it pays an annual.pdf
5.27 Company H has an insurance policy for which it pays an annual.pdf
 
5.1.a Contrast the functions of the DNA and protein components of ch.pdf
5.1.a Contrast the functions of the DNA and protein components of ch.pdf5.1.a Contrast the functions of the DNA and protein components of ch.pdf
5.1.a Contrast the functions of the DNA and protein components of ch.pdf
 
5.2 Par�s a Mosc�. En su programa de estudios de verano en el extr.pdf
5.2 Par�s a Mosc�. En su programa de estudios de verano en el extr.pdf5.2 Par�s a Mosc�. En su programa de estudios de verano en el extr.pdf
5.2 Par�s a Mosc�. En su programa de estudios de verano en el extr.pdf
 
5. Cyanobacteria live mostly in aquatic habitats but they can also b.pdf
5. Cyanobacteria live mostly in aquatic habitats but they can also b.pdf5. Cyanobacteria live mostly in aquatic habitats but they can also b.pdf
5. Cyanobacteria live mostly in aquatic habitats but they can also b.pdf
 
5. The Federal Reserves organization1) There are (5712) Feder.pdf
5. The Federal Reserves organization1) There are (5712)   Feder.pdf5. The Federal Reserves organization1) There are (5712)   Feder.pdf
5. The Federal Reserves organization1) There are (5712) Feder.pdf
 
5. Mrs. Toguchi wants to determine if politicians tend to have highe.pdf
5. Mrs. Toguchi wants to determine if politicians tend to have highe.pdf5. Mrs. Toguchi wants to determine if politicians tend to have highe.pdf
5. Mrs. Toguchi wants to determine if politicians tend to have highe.pdf
 
41. a and b 41. Introductory Statistics Course Withdrawals. A univer.pdf
41. a and b 41. Introductory Statistics Course Withdrawals. A univer.pdf41. a and b 41. Introductory Statistics Course Withdrawals. A univer.pdf
41. a and b 41. Introductory Statistics Course Withdrawals. A univer.pdf
 
41) �La justificaci�n legal como �nico criterio �tico es adecuada de.pdf
41) �La justificaci�n legal como �nico criterio �tico es adecuada de.pdf41) �La justificaci�n legal como �nico criterio �tico es adecuada de.pdf
41) �La justificaci�n legal como �nico criterio �tico es adecuada de.pdf
 
40. What is the common challenge in the world of financea. It gen.pdf
40. What is the common challenge in the world of financea. It gen.pdf40. What is the common challenge in the world of financea. It gen.pdf
40. What is the common challenge in the world of financea. It gen.pdf
 
4.a. Calculate Target�s current ratio as of January 29, 2022 (show cur.pdf
4.a. Calculate Target�s current ratio as of January 29, 2022 (show cur.pdf4.a. Calculate Target�s current ratio as of January 29, 2022 (show cur.pdf
4.a. Calculate Target�s current ratio as of January 29, 2022 (show cur.pdf
 
5. Earth HistoryPaleogeography - World. Check and double-click the .pdf
5. Earth HistoryPaleogeography - World. Check and double-click the .pdf5. Earth HistoryPaleogeography - World. Check and double-click the .pdf
5. Earth HistoryPaleogeography - World. Check and double-click the .pdf
 
5. Design and implement a method contains 2 for BinarySearchTree, fu.pdf
5. Design and implement a method contains 2 for BinarySearchTree, fu.pdf5. Design and implement a method contains 2 for BinarySearchTree, fu.pdf
5. Design and implement a method contains 2 for BinarySearchTree, fu.pdf
 
7. Para comprender mejor la prehistoria de la isla hawaiana de Lana.pdf
7. Para comprender mejor la prehistoria de la isla hawaiana de Lana.pdf7. Para comprender mejor la prehistoria de la isla hawaiana de Lana.pdf
7. Para comprender mejor la prehistoria de la isla hawaiana de Lana.pdf
 
7. Lawn Spray Inc. desarrolla y produce equipos de pulverizaci�n.pdf
7. Lawn Spray Inc. desarrolla y produce equipos de pulverizaci�n.pdf7. Lawn Spray Inc. desarrolla y produce equipos de pulverizaci�n.pdf
7. Lawn Spray Inc. desarrolla y produce equipos de pulverizaci�n.pdf
 
701 () � Kenneth_Laudon,_J... a a+ as Part One Ogriesions, Mrugemer.pdf
701 () �  Kenneth_Laudon,_J... a a+ as Part One Ogriesions, Mrugemer.pdf701 () �  Kenneth_Laudon,_J... a a+ as Part One Ogriesions, Mrugemer.pdf
701 () � Kenneth_Laudon,_J... a a+ as Part One Ogriesions, Mrugemer.pdf
 
71 of all students at a college still need to take another math class.pdf
71 of all students at a college still need to take another math class.pdf71 of all students at a college still need to take another math class.pdf
71 of all students at a college still need to take another math class.pdf
 
7.4.3 4.3 Consider a set of independent data observations x1,�.pdf
7.4.3 4.3 Consider a set of independent data observations x1,�.pdf7.4.3 4.3 Consider a set of independent data observations x1,�.pdf
7.4.3 4.3 Consider a set of independent data observations x1,�.pdf
 
7.16 LAB Smallest and largest numbers in a listWrite a program th.pdf
7.16 LAB Smallest and largest numbers in a listWrite a program th.pdf7.16 LAB Smallest and largest numbers in a listWrite a program th.pdf
7.16 LAB Smallest and largest numbers in a listWrite a program th.pdf
 
7. El balance general de Tucker Company reflejaba activos por $12,.pdf
7. El balance general de Tucker Company reflejaba activos por $12,.pdf7. El balance general de Tucker Company reflejaba activos por $12,.pdf
7. El balance general de Tucker Company reflejaba activos por $12,.pdf
 
4.3 Expresi�n positiva y cort�s Revise las siguientes declaracio.pdf
4.3 Expresi�n positiva y cort�s Revise las siguientes declaracio.pdf4.3 Expresi�n positiva y cort�s Revise las siguientes declaracio.pdf
4.3 Expresi�n positiva y cort�s Revise las siguientes declaracio.pdf
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

5.1 Please solve a) and b) in pythonWinbugs. You can find the datas.pdf

  • 1. 5.1 Please solve a) and b) in python/Winbugs. You can find the dataset needed below: D H V 4.4 38 2 4.6 33 2.2 5 40 3 5.1 49 4.3 5.1 37 3 5.2 41 2.9 5.2 41 3.5 5.5 39 3.4 5.5 50 5 5.6 69 7.2 5.9 58 6.4 5.9 50 5.6 7.5 45 7.7 7.6 51 10.3 7.6 49 8 7.8 59 12.1 8 56 11.1 8.1 85 16.8 8.4 59 13.6 8.6 78 16.6 8.9 93 20.2 9.1 65 17 9.2 67 17.7 9.3 76 19.4 9.3 64 17.1 9.8 71 23.9 9.9 72 22 9.9 79 23.1 9.9 69 22.6 10.1 71 22 10.2 80 27 10.2 82 27 10.3 81 27.4
  • 2. 10.4 75 25.2 10.6 75 25.5 11 71 25.8 11.1 81 32.8 11.2 91 35.4 11.5 66 26 11.7 65 29 12 72 30.2 12.2 66 28.2 12.2 72 32.4 12.5 90 41.3 12.9 88 45.2 13 63 31.5 13.1 69 37.8 13.1 65 31.6 13.4 73 43.1 13.8 69 36.5 13.8 77 43.3 14.3 64 41.3 14.3 77 58.9 14.6 91 65.6 14.8 90 59.3 14.9 68 41.4 15.1 96 61.5 15.2 91 66.7 15.2 97 68.2 15.3 95 73.2 15.4 89 65.9 15.7 73 55.5 15.9 99 73.6 16 90 65.9 16.8 90 71.4 17.8 91 80.2 18.3 96 93.8 18.3 100 97.9 19.4 94 107
  • 3. 23.4 104 163.5 Spring23 HW 5.1. Pinus echinata (shortleaf pine) forests provided innumerable railroad ties for our nation's expanding railroad network in the late 19th and early 20th century. The wood is now used for general construction, exterior and interior finishing, and pulpwood. Volume is the most widely used measure of wood quantity and is often estimated in standing trees for the assessment of economic value or commercial utilization potential. Volume is usually estimated from such measurements as diameter and merchantable height. The proposed equation for volume is V=0D1H2 where D is the diameter at breast height (1.3m) and H is the merchantable height. Parameters 0,1 and 2 depend on the tree species while is multiplicative error with lognormal distribution with parameters =0 and 2. Bruce and Schumacher (1935) provided data on 70 shortleaf pine trees consisting of D (in), H (ft), and V (cubic ft). The dataset is in file shortleaf0.dat. (a)Set the model as logV=0+1logD+2logH+ where N(0,2). Estimate parameters 0,1 and 2 and provide their 95% credible intervals. (b)For D=15 in and H=89ft, estimate the mean volume and find 95% credible set. Hint. Be careful in (b), the model is for logV and the estimate and CS is needed for V.