답변 있음

How may I show a mixture distribution?

Here is an example of plotting a mixture that produces a graph similar to yours example: pd1 = makedist('normal',1,1); % proba...

How may I show a mixture distribution?

Here is an example of plotting a mixture that produces a graph similar to yours example: pd1 = makedist('normal',1,1); % proba...

4달 전 | 1

| 수락됨

답변 있음

How to design a Class to apply operations for a collection of data?

This is perhaps a bit subjective, but personally I would strongly prefer the solution with classes that process only a single au...

How to design a Class to apply operations for a collection of data?

This is perhaps a bit subjective, but personally I would strongly prefer the solution with classes that process only a single au...

4달 전 | 0

| 수락됨

답변 있음

histogram normalization not working

The histogram is not wrong, because pdf values can be more than 1. pdf values are normalized such that the total area under the...

histogram normalization not working

The histogram is not wrong, because pdf values can be more than 1. pdf values are normalized such that the total area under the...

4달 전 | 0

답변 있음

Equal Bin Sizes in Histogram Probability Distribution Function (PDF)

The histogram function has a parameter 'BinEdges' that will allow you to specify any bins you like. So, make whatever bin edges...

Equal Bin Sizes in Histogram Probability Distribution Function (PDF)

The histogram function has a parameter 'BinEdges' that will allow you to specify any bins you like. So, make whatever bin edges...

4달 전 | 1

답변 있음

Minimization of Chi-Square Statistic using the Simplex Algorithm

One way to proceed is to write a function which accepts a vector of values for your three parameters, and returns the chi-square...

Minimization of Chi-Square Statistic using the Simplex Algorithm

One way to proceed is to write a function which accepts a vector of values for your three parameters, and returns the chi-square...

4달 전 | 0

답변 있음

How to generate correlated samples from a single distribution? Each sample should be correlated with the previous.

If you don't like the sorting solution, then I think you must consider the joint and conditional distribution of two successive ...

How to generate correlated samples from a single distribution? Each sample should be correlated with the previous.

If you don't like the sorting solution, then I think you must consider the joint and conditional distribution of two successive ...

4달 전 | 0

| 수락됨

답변 있음

Inverse Cumulative distribution function

Suppose you have a function called thisCDF which computes the CDF for your distribution. Then define function x = inverseF(p) ...

Inverse Cumulative distribution function

Suppose you have a function called thisCDF which computes the CDF for your distribution. Then define function x = inverseF(p) ...

4달 전 | 0

| 수락됨

답변 있음

How to generate correlated samples from a single distribution? Each sample should be correlated with the previous.

If you don't care about the order of the data points, one option that seems to fulfill your stated requirements is the following...

How to generate correlated samples from a single distribution? Each sample should be correlated with the previous.

If you don't care about the order of the data points, one option that seems to fulfill your stated requirements is the following...

4달 전 | 0

답변 있음

I want this for loop to dispaly the smallest calculated value of PE. What would be the best way of going about this?

% something like this: minPE = realmax; for t1 = 0:1:90,t2 = 0:1:90; t1; t2; h1 = -b1*cosd(t1); ...

I want this for loop to dispaly the smallest calculated value of PE. What would be the best way of going about this?

% something like this: minPE = realmax; for t1 = 0:1:90,t2 = 0:1:90; t1; t2; h1 = -b1*cosd(t1); ...

4달 전 | 0

답변 있음

Normally distributed Random numbers generator issue

As the other posters have said, you aren't necessarily going to get an exactly normal-looking distribution if you generate the n...

Normally distributed Random numbers generator issue

As the other posters have said, you aren't necessarily going to get an exactly normal-looking distribution if you generate the n...

4달 전 | 0

답변 있음

Repeated-Measures ANOVA across several conditions rather than timepoints

fitrm wants all the data for a single subject to be on a single row of the data table. In your case, that would mean a table ne...

Repeated-Measures ANOVA across several conditions rather than timepoints

fitrm wants all the data for a single subject to be on a single row of the data table. In your case, that would mean a table ne...

5달 전 | 0

| 수락됨

답변 있음

Converting a weibull figure to a histogram

histogram takes a list of data values (your x's) and tabulates how often each occurs. if you don't already have data values, yo...

Converting a weibull figure to a histogram

histogram takes a list of data values (your x's) and tabulates how often each occurs. if you don't already have data values, yo...

5달 전 | 0

| 수락됨

답변 있음

How to fit a dataset with two independant variables (of different dimensions) and one dependant variable?

You need give nlinfit the corresponding 60 values of t and T. Something like this (but check the order of the resulting 60 poin...

How to fit a dataset with two independant variables (of different dimensions) and one dependant variable?

You need give nlinfit the corresponding 60 values of t and T. Something like this (but check the order of the resulting 60 poin...

5달 전 | 0

답변 있음

How can I get two-tailed inverse of the student's t-distribution?

Not sure if this is really what you want, but in MATLAB: a=tinv(1-(1-.9973)/2,10-1) a = 4.0942

How can I get two-tailed inverse of the student's t-distribution?

Not sure if this is really what you want, but in MATLAB: a=tinv(1-(1-.9973)/2,10-1) a = 4.0942

5달 전 | 1

| 수락됨

답변 있음

How to stop figure windows from popping up when there is no data to plot.

The commands f1=figure('Name','Figure x'); f2=figure('Name','Figure y'); make the two windows pop up, so you must change your...

How to stop figure windows from popping up when there is no data to plot.

The commands f1=figure('Name','Figure x'); f2=figure('Name','Figure y'); make the two windows pop up, so you must change your...

5달 전 | 1

| 수락됨

답변 있음

How to calculate the confidence interval from distributions overlap

I wouldn't call this a confidence interval either, but I think you can compute the shaded area probability like this: % Values ...

How to calculate the confidence interval from distributions overlap

I wouldn't call this a confidence interval either, but I think you can compute the shaded area probability like this: % Values ...

5달 전 | 0

답변 있음

probability density function normalization

The pdf values are defined so that the total area under the pdf curve equals 1, but these values will exceed 1 (and, hence, not ...

probability density function normalization

The pdf values are defined so that the total area under the pdf curve equals 1, but these values will exceed 1 (and, hence, not ...

5달 전 | 0

| 수락됨

답변 있음

Generate random numbers without repetition according to a probability distribution

I assume you mean a discrete distribution since the probability of repetition is zero in a continuous one. In that case, the ea...

Generate random numbers without repetition according to a probability distribution

I assume you mean a discrete distribution since the probability of repetition is zero in a continuous one. In that case, the ea...

5달 전 | 0

답변 있음

How can I evaluate characteristic functions in MatLab?

It seems like your question contains its own answer: mu = 1; sigma = 1; t = -2.5:0.01:2.5; cf = exp(i*mu*t - sigma^2*t.^2/2)...

How can I evaluate characteristic functions in MatLab?

It seems like your question contains its own answer: mu = 1; sigma = 1; t = -2.5:0.01:2.5; cf = exp(i*mu*t - sigma^2*t.^2/2)...

5달 전 | 1

답변 있음

How to perform 1way-ANOVA with matrices

manova might be a better approach, since it allows you to combine information from all three variables (x,y,z) into a single tes...

How to perform 1way-ANOVA with matrices

manova might be a better approach, since it allows you to combine information from all three variables (x,y,z) into a single tes...

5달 전 | 1

| 수락됨

답변 있음

Passing Covariance Matrix in Likelihood Maximization

Sometimes this kind of problem can be solved by adding code within the LogLik function to make sure that a legal (i.e., positive...

Passing Covariance Matrix in Likelihood Maximization

Sometimes this kind of problem can be solved by adding code within the LogLik function to make sure that a legal (i.e., positive...

5달 전 | 0

| 수락됨

답변 있음

how can i calculate z^2 distibution?

The distribution of z^2/a^2 is a chi-square with 1 df.

how can i calculate z^2 distibution?

The distribution of z^2/a^2 is a chi-square with 1 df.

5달 전 | 0

답변 있음

How can I get randperm to return a permutation of a vector that has no entries at their original positions?

I don't think randperm can do that by itself, but I think this would work for an even number of items in the original vector: o...

How can I get randperm to return a permutation of a vector that has no entries at their original positions?

I don't think randperm can do that by itself, but I think this would work for an even number of items in the original vector: o...

5달 전 | 0

답변 있음

R code to matlab, or simply generating a zero mean gaussian and finding the covariance matrix

x=normrnd(0,1,5000,1); v=normrnd(0,0.3,5000,1); y=0.5*x+v; cov=mean(x.*y)-(mean(x)*mean(y)); cov s=cov*(sqrt(var(x)))*(sqrt...

R code to matlab, or simply generating a zero mean gaussian and finding the covariance matrix

x=normrnd(0,1,5000,1); v=normrnd(0,0.3,5000,1); y=0.5*x+v; cov=mean(x.*y)-(mean(x)*mean(y)); cov s=cov*(sqrt(var(x)))*(sqrt...

5달 전 | 0

| 수락됨

답변 있음

Generating a histogram from lognormally distributed data

What about something like this: mu = 0.015; % mean particle size sg = 1.6; % standar...

Generating a histogram from lognormally distributed data

What about something like this: mu = 0.015; % mean particle size sg = 1.6; % standar...

5달 전 | 1

답변 있음

How to integral a pdf of a continuous random variable to calculate its entropy

Try this: pd = makedist('beta','a',50,'b',40); fun = @(x) pdf(pd,x) .* log( pdf(pd,x) ); H = -integral(fun,0,1)

How to integral a pdf of a continuous random variable to calculate its entropy

Try this: pd = makedist('beta','a',50,'b',40); fun = @(x) pdf(pd,x) .* log( pdf(pd,x) ); H = -integral(fun,0,1)

5달 전 | 0

| 수락됨

답변 있음

Fit data to beta distribution

There is information here about how to fit a univariate distribution from an empirical CDFs with MATLAB. Unfortunately, it is a ...

Fit data to beta distribution

There is information here about how to fit a univariate distribution from an empirical CDFs with MATLAB. Unfortunately, it is a ...

5달 전 | 0

| 수락됨

답변 있음

how to create a pdf function of two variables that are in different uniform distribution

If they are independent then the joint pdf is the product of the marginal pdfs, so in this case pdf(x,y) = 0.01

how to create a pdf function of two variables that are in different uniform distribution

If they are independent then the joint pdf is the product of the marginal pdfs, so in this case pdf(x,y) = 0.01

5달 전 | 0

답변 있음

Calculate Exponetial Moving Covariance

Not really a hand, but maybe some hints...Let's say you have variables x and y, and you want the exponentially weighted rolling ...

Calculate Exponetial Moving Covariance

Not really a hand, but maybe some hints...Let's say you have variables x and y, and you want the exponentially weighted rolling ...

6달 전 | 0

| 수락됨

답변 있음

Select sample from an array

Maybe this: ints = [2:7:259 3:7:259 4:7:259 5:7:259]; srtints = sort(ints); X1 = x(:,srtints);

Select sample from an array

Maybe this: ints = [2:7:259 3:7:259 4:7:259 5:7:259]; srtints = sort(ints); X1 = x(:,srtints);

6달 전 | 0

| 수락됨