Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 import arviz as az 2 from scipy import stats 3 import os 4 import pandas as pd 5 import numpy as np 6 import
import arviz as az
from scipy import stats import os import pandas as pd import numpy as np import matplotlib. pyplot as plt
usecols I 'LOA', LBP 'BEAM', 'DEPTH', 'DRAFT', PROP
POWER', 'AUX POWER', 'TEU', 'SPEED'
cwd
os path.abspath contentgdriveMyDriveContainerShipData.xls
shipsdata pdreadexcelcwd usecols LLBP 'TEU',
SPEED'
shipsdata head
list shipsdataLBP
list shipsdataTEU
x list values
Y listz. values
xx x mean ax plt subplots Figsize
betac alphac stats.linregress x Y:
import pymc as pm
with pm Model as ship modelt:
x
pm
Normal
a
muy
mean
B pmHalfNormal B sd
pm HalfNormal
sd
ypred
pm
Normall'ypred',
mua
B
x
sde observedy
tracet pm sample
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started