Question #233881

Question:

Determine The Probability Density Function For The Following Cumulative Distribution Function. 

Use this Website: https://drive.google.com/file/d/1FmcXlipfxYqiXFOSWql6G7vJ4llu0N5O/view?usp=sharing


Need the codes for MATHLab

Note:

->> Need the right codes for the App Called MathLab, use the codes to get the answer.


1
Expert's answer
2021-09-07T00:33:12-0400

fx(x;σ2)=12πσ2ex22σ2f_x(x; \sigma^2)= \frac{1}{\sqrt{2 \pi \sigma^2}} e^{-\frac{x^2}{2 \sigma^2}}

By factorization theorem , we can write it as

=g(inxi2σ2)h(x)=g(\sum_i^n x_i^2 \sigma^2)*h(x)

Therefore

T=1nxi2T=\sum_1^n x_i^2 is sufficient statistic for σ2\sigma^2 where h(x)=1h(x)=1

% Clearing Screen
clc

% Setting x as symbolic variable
syms x;

% Input Section
y = input('Enter non-linear equations: ');
a = input('Enter initial guess: ');
e = input('Tolerable error: ');
N = input('Enter maximum number of steps: ');
% Initializing step counter
step = 1;

% Finding derivate of given function
g = diff(y,x);

% Finding Functional Value
fa = eval(subs(y,x,a));

while abs(fa)> e
    fa = eval(subs(y,x,a));
    ga = eval(subs(g,x,a));
    if ga == 0
        disp('Division by zero.');
        break;
    end
    
    b = a - fa/ga;
    fprintf('step=%d\ta=%f\tf(a)=%f\n',step,a,fa);
    a = b;
    
    if step>N
       disp('Not convergent'); 
       break;
    end
    step = step + 1;
end

fprintf('Root is %f\n', a);

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS