Has the curve flattened? During the Coronavirus pandemic, statistics such as number of new daily cases are gathered to h

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Has the curve flattened? During the Coronavirus pandemic, statistics such as number of new daily cases are gathered to h

Post by answerhappygod »

Has The Curve Flattened During The Coronavirus Pandemic Statistics Such As Number Of New Daily Cases Are Gathered To H 1
Has The Curve Flattened During The Coronavirus Pandemic Statistics Such As Number Of New Daily Cases Are Gathered To H 1 (176.89 KiB) Viewed 32 times
Has the curve flattened? During the Coronavirus pandemic, statistics such as number of new daily cases are gathered to help study the growth or spread of the virus. A country's cumulative new case data after 100 cases is provided for this problem. The data is taken https://informationisbeautiful.net/data/ (https://informationisbeautiful.net/data/) and shows accumulative data for 128 days shown in the figure below. No. cases 1.5 For Y(x): x 105 0.5H 0 20 Accumulative Case Number et = 40 n=0 60 80 Days One important statistical parameter is the maximum value. Finding the maximum value and the relative location of the ma like the date of the occuracne of the maximum number of cases, can help in further studies of the progression or digressi 100 From the above, data can be modeled with an exponential function in the form of Y(x) = C*(1-exp(-X/D)), where C and Di parameters of the model. However an exponential model can be hard to work with. An exponential model can be lineariz Taylor expansion (https://en.wikipedia.org/wiki/Taylor_se ... l_function). In other words: 1+x+ + 2 + 3 + + 4 120 The output is: ▪ polyNomOrder: the order of polynomial best fitting data. naluNamConff: the coofficients of the nolunomial osustion 140 2 Y(x) = C + (1 - 0 5) = C + [ - X + ² = $ •+...] 2! Write a program that finds the linearization parameters for this data set. Between orders 2 to 5, which polynomial order is the data? The dataset is accumultive data, so no negative data points exist. However, some polynomial models may have data points due to modeling error. The nonphysical data points don't have any significant effect in the modeling for the pu problem. The best polynomial fit order can be decided visually by plotting the original data and the linearized model, and doing a vi Given: ▪ accumNum: a 1D array containing accumulative number of cases for 128 days.
▪ puntivomoven. The concients on the polynomial equation. Restrictions: polyfit() cannot be used for this problem, as this system is an overdetermined system of linear equations. Th coefficients should be found solving the system of linear euqations. Script> 1 accumNum = importdata('cData.txt'); 2 X= [0: length (accumNum)-1]'; 3 Save C Reset 4 % To recreate the plot in the description of the problem. 5 figure (1); 6 plot(X, accumNum, 'r.' ); 7 title('Infection'); 8 ho on; 9 12 polyNomOrder = 13 MATLAB Documentation (https://www.mathworks.com/help/) 10% polyNomOrder is the plolynomial order that best fits the data. 11 % Visually check to guess an order between 2-5 14% Write the coefficent model Xc*A = AccumNum 15 Xc = zeros( length (accumNum), polyNomOrder); 16 17% Use for loops or another means to calculate Xc = [X(i), X(i)^2, X(i)^3 ...]; 18 XC = 19 20% Write the coefficent model Xc PolyNomCoeff = AccumNum 21 %% XC = [X(i), X(i)^2, X(i)^3 ...]; 22 polyNomCoeff = 23 Assessment: 24 % Shows the data and the model in one figure and can be compared. 25 % How closely does the model match the data? Experiment with changing PolynomOrder 26 plot( X, Xc*polyNomCoeff, 'b-' ); 27 hold off; Is the order of the polynomial determined correctly? Are the coefficients calculated correctly? ▶ Run Script Submit
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply