回答済み
How to make Anova table for data from a factorial experiment
x = readtable('mack_data.txt'); x.Properties.VariableNames = {'o1','o2','o3','o4','o5','m1','m2','m3','m4','m5'}; withinDesign...

7ヶ月 前 | 2

| 採用済み

回答済み
How to create a cumulative frequency array
This is inelegant, but it works: cumFreq = zeros(size(V)); for i=1:numel(V) cumFreq(i) = sum(Z<V(i)); end

7ヶ月 前 | 1

| 採用済み

回答済み
Define a density function and draw N samples of it
I don't think that density function is right--seems like you at least need to include the mixture probabilities in there--e.g., ...

7ヶ月 前 | 0

回答済み
Function to create struct with parameters
Maybe you would like something like this? month = 1; year = 1951; day = 11; inp = CreateStruct(month,day,year) function o...

7ヶ月 前 | 0

| 採用済み

回答済み
How do I declare correlation between a random variable with beta distribution and a random variable with normal distribution?
Something like this would work, though you would have to adjust rho by trial and error to get the final corr(x1,x2) value that y...

7ヶ月 前 | 0

| 採用済み

回答済み
Extract columns into new variables efficently
A= [1 1 2 2 3 3 1 1 2 2 3 3; 1 1 2 2 3 3 1 1 2 2 3 3]; B = [10 20 30 40 50 60 70 80 90 100 110 120; 1 2 3 4 5 6 7 8 9 10 11 12]...

7ヶ月 前 | 0

| 採用済み

回答済み
Random numbers with specific sum and varying maximum
How about first picking the maximum "thismax" randomly from whatever distribution you want, and then using randfixedsum to gener...

8ヶ月 前 | 0

回答済み
Using ranova and multcompare, ranova doen't show significance (p=0.33) but multcompare shows significance between groups (p<0.001)
Note that your anova table doesn't have enough lines--there is no main effect of IndVar, just the IndVar*Time interaction (p=0.3...

8ヶ月 前 | 0

| 採用済み

回答済み
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...

8ヶ月 前 | 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...

8ヶ月 前 | 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...

8ヶ月 前 | 1

回答済み
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...

8ヶ月 前 | 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...

8ヶ月 前 | 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 ...

8ヶ月 前 | 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) ...

8ヶ月 前 | 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...

8ヶ月 前 | 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); ...

8ヶ月 前 | 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...

8ヶ月 前 | 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...

9ヶ月 前 | 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...

9ヶ月 前 | 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...

9ヶ月 前 | 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

9ヶ月 前 | 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...

9ヶ月 前 | 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 ...

9ヶ月 前 | 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 ...

9ヶ月 前 | 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...

9ヶ月 前 | 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)...

9ヶ月 前 | 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...

9ヶ月 前 | 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...

9ヶ月 前 | 0

| 採用済み

回答済み
how can i calculate z^2 distibution?
The distribution of z^2/a^2 is a chi-square with 1 df.

9ヶ月 前 | 0

もっと読み込む