Attribution Non-Commercial (BY-NC)

19 views

Attribution Non-Commercial (BY-NC)

- SUPPLY.pdf
- Decision Analysis Using Microsoft Excel.pdf
- Petersen Et Al-2011-Software Practice and Experience
- MMP using ACE
- Collective and Individual Month-wise Data Management Approach on the Data Collected in Kalam (Swat) Through Multiple Regression Analysis
- QTB FINAL PROJECT
- Pelabuhan
- MPT Syllabus 3
- Dried and Preserved
- Demand Forecasting
- Ordinary least squares
- Econ2209 Week 2
- Appenendix Final
- 10.2307@174241
- Syllabus563
- TDC in Statistics (General) 26
- Regressi On
- Assignment 1
- disciplinas pos labiduba.pdf
- w4l1 Causalmodels ANNOTATED FINAL

You are on page 1of 2

Simulation, statistics and data visualization are all commonly used in biomedical and biomolecular engineering.

In this project, you will create: 1) a function that creates a simulated data set (a linear relationship with noise);

2) another function to perform a linear regression on this data to obtain the slope and intercept of the best fit

line representing it; and 3) a third function, that plots the data and its regression line. You will also create a

driver program to test and demonstrate the operation of each of these functions.

Write a function that, given independent data vector x, slope m, intercept b, noise epsilon and random stream rs

parameters, returns a dependent data vector y. The pseudocode relationship for the dependent values is y

mx + b + epsilon*z where z is the standard normal distribution (which the Matlab function randn draws from

stream rs).

Write a function that, given independent and dependent data vectors x and y (respectively) returns the slope

and intercept of the line that best fits (in terms of minimizing the sum square error) this data. See Example 8.5

in Chapman for a full explanation of the method. Important quantities and equations follow:

y = Sum of y (dependent) values.

x = Sum of the squares of the x values (note: square before summing).

2

x = mean of x values =

x

n

y = mean of y values =

x

n

xy y x

x x x

2

Plot Results ( Data Visualization) – linPlot.m

Write a function that, given data vectors x and y and regression parameters m and b, plots the data and the best

fit line through it (as shown in the example below). The horizontal (x) limits on the regression line should be the

minimum and maximum values in the independent data vector x.

Enter desired intercept (arbitrary units): 8.0

Enter desired noise parameter (arbitrary units): 1.5

Regression results: slope = 0.495589, intercept = 7.982158

The driver program should create the independent data vector, x. This data should range from -10 to 10 and

include 101 values. It may be a simple sequence of values or a collection of uniformly distributed random values.

Be sure to state which in your documentation. It should than prompt the user for slope, intercept and noise

parameters. Finally, it should call the functions linGen, linReg and linPlot in sequence and correctly manage the

returned values, including displaying the calculated slope and intercept in the command window.

Submit your internally and externally (i.e. with report(s)) documented source code as a single zip file.

- SUPPLY.pdfUploaded bytoaniltiwari
- Decision Analysis Using Microsoft Excel.pdfUploaded byimran_chaudhry
- Petersen Et Al-2011-Software Practice and ExperienceUploaded byTiago Lemos de Oliveira
- MMP using ACEUploaded byMaqsood Iqbal
- QTB FINAL PROJECTUploaded byMirza Ehsan Ullah Mughal
- Collective and Individual Month-wise Data Management Approach on the Data Collected in Kalam (Swat) Through Multiple Regression AnalysisUploaded byfarazismail18
- PelabuhanUploaded byFirman Husain
- MPT Syllabus 3Uploaded byGnana Moorthy Deekshithar
- Dried and PreservedUploaded byShIva Leela ChoUdary
- Demand ForecastingUploaded bylonglong0216
- Ordinary least squaresUploaded byNha Nha
- Econ2209 Week 2Uploaded byjinglebelliez
- Appenendix FinalUploaded byMM Fakhrul Islam
- 10.2307@174241Uploaded byHamid Ullah
- Syllabus563Uploaded byjuan
- TDC in Statistics (General) 26Uploaded byShekhar Raj Kachari
- Regressi OnUploaded byfansuri80
- Assignment 1Uploaded bynurul_edah89
- disciplinas pos labiduba.pdfUploaded byPedro Macul
- w4l1 Causalmodels ANNOTATED FINALUploaded byGlennizze Galvez
- Simple Regression AnalysisUploaded byFitriana Susanti
- Int__Computacional_2016___Ex__1__Linear_Regression.pdfUploaded byRodrigo De Santis
- Linear Regression Chp1Uploaded bythermopolis3012
- 3_linear_regression-handout.pdfUploaded byTaylor Tam
- Topic_3Uploaded bySouleymane Coulibaly
- Operations Management_Final Exam Question PaperUploaded byatiq_iuk
- Sample Data for RegressionUploaded byAravindVenkatraman
- Model Exam December 2007 (Solutions)Uploaded bybetrayer69
- Functional Form Issues in the Regression Analysis of Financial Leverage RatiosUploaded byfirebirdshockwave
- Case Study ArkonUploaded byKother

- Automotive Wiring PrimerUploaded byrollrams
- Get All A’s in the Game of Life: Insights Along the WayUploaded bySusan Vernicek
- Marketing PlanUploaded byAlok Tiwari
- Partial Discharge PaperUploaded bynutzy1967
- Price Stability - Central Bank of Sri LankaUploaded byShaahid Raza
- Generator RoomUploaded byparthiv
- TIGERDIRECT, INC. v. TIGERDIRECTSUCKS.ORG - Document No. 6Uploaded byJustia.com
- sample movie maker rubricUploaded byapi-241837790
- Development of a Wearable Mechatronic Elbow BraceUploaded byMuizzuddin Rosli
- The Use of Standard Form of ContractUploaded byZinck Hansen
- Verma Environmentally Sound Management of E-waste and Practices of RecyclingUploaded byteni1968
- IQSSLUploaded bykanil
- ch17Uploaded bysakthivel
- 1558_KoreaSTEMI11Uploaded byChaitanya Jsk
- Herbal Therapy: Herbal Catnip in Reduced Risk and Treatment of Breast CancerUploaded bykyle J. Norton
- Manual Intel D865GVHZ.pdfUploaded bypedrojuan
- 667441277 abhishek wakankar cvUploaded byapi-298825054
- Sample PowUploaded bymario rufino jr.
- Topic 1 History of the English LanguageUploaded byChegu_Mervyn
- English Experience Press Grammar ZappersUploaded bycsui2
- C language bitsUploaded byGulshan Savanth
- computers 9 - photography unit planUploaded byapi-329060283
- Solar 2011 SumUploaded byEngr Tariq
- Altitude Encoder Calibration TesterUploaded byShammi Verma
- 82101FpbUploaded byprakasa88
- TenterneT Company ProfileUploaded byNgei M Ngei
- Conduction HmtUploaded bybalakalees
- Diving PhysicsUploaded byscubadru
- Irrigation & Drainage Engineering Houndout Adama UniversityUploaded bymuneeb_t
- how to use nrpeUploaded bysergiut