Posts

Showing posts from March 19, 2019

SVG: how to scale font sizes when scaling SVG document?

Image
0 Questions like this, this, this, this, and this on SVG scaling did not help. What's the best way to scale font sizes when scaling SVG documents? Assume an original SVG document of 500x1000. To fit into our design viewport, we scale the document to 250x500 and allow users to do some editing like repositioning and changing text. When editing is done, we scale back to 500x1000 before exporting as a PNG image. Currently, we manually recompute the font sizes with each scale. If the font size was 20 at the original 500x1000 size, we change the font size to 10 when scaling down to 250x500. We're leery of using the scale transform attribute as users may reposition or rotate elements while editing the 250x500 version. We need the 500x1000 version to look proportionally like the 250x500 version. Is th

Compute the maximum likelihood estimator for $θ$.

Image
0 $begingroup$ Let $X_1, X_2, . . . , X_n$ be a random sample from a Bernoulli distribution with parameter $θ$ . Compute the maximum likelihood estimator for $θ$ . In my opinion this is the correct way to solve it: $L(Theta)=theta_1*(1-theta_1)*...theta_n*(1-theta_n)=theta^n*(1-theta)^n$ $l(Theta)=n*ln(theta)+n*ln(1-theta)$ $l'(theta)=frac{n}{theta}-frac{n}{1-theta}=0$ , $theta=frac{1}{2}$ For the official solution it should be $frac{sum_{i=1}^nX_i}{n}$ , why MLE is incorrect, where should I put the $x$ that in my solution is not present? statistics share | cite | improve this question asked Jan 25 at 14:49