question
stringlengths
37
38.8k
group_id
stringlengths
2
6
sentence_embeddings
listlengths
768
768
<p>I have a continuous variable $y$. Using univariate linear regression I have tested $a, b$ and $c$ as independent variables against $y$ as a dependent variable.</p> <p>I have gotten different $R^2$ and $p$-values.</p> <ul> <li>$Y + a: R^2 = 0.60, p &lt; 0.01$</li> <li>$Y + b: R^2 = 0.20, p &lt; 0.04$</li> <li>$Y + ...
g61116
[ 0.04246289283037186, -0.04303917661309242, -0.028104182332754135, 0.002063761930912733, 0.01571664772927761, -0.02820928394794464, 0.02777165174484253, -0.001413195044733584, -0.024800969287753105, -0.04377403482794762, 0.025310460478067398, 0.06286381185054779, 0.012015127576887608, 0.001...
<p>I'm trying to analyze the intra-rater reliability of an occupational therapy assessment.</p> <p>The assessment consists of 57 items, where some items are ratio data and some items are ordinal data. In my study 31 raters rated 4 subjects (on video) twice (time 1 and time 2) with a six week interval. So I have scores...
g61117
[ -0.03743389993906021, -0.041839562356472015, -0.0021384938154369593, -0.06979232281446457, -0.009344743564724922, -0.021896542981266975, 0.046246159821748734, 0.012415037490427494, -0.055752113461494446, 0.026738274842500687, 0.016985232010483742, 0.03637295588850975, 0.038430359214544296, ...
<p>Here's my understanding of the kernel trick. The motivation is to find a linear separator in a higher dimensional space than what you have (because the data are not currently linearly separable.) You take the dot product, and then apply the transformation to the result, saving you the time of applying the transfor...
g61118
[ 0.004033349454402924, 0.02696309983730316, -0.005731444340199232, -0.08577939122915268, -0.035038553178310394, -0.05921013280749321, 0.06210244819521904, 0.017789138481020927, -0.03032436966896057, 0.0013339899014681578, -0.01681019365787506, -0.04249252378940582, 0.07304652780294418, -0.0...
<p>I have two functions that provide an implementation of the t-distribution.</p> <p>A webpage with a <a href="http://www.math.ucla.edu/~tom/distributions/tDist.html" rel="nofollow">Javascript algorithm</a>. The algorithm takes two input <strong><code>x-value</code></strong> and <code>degrees_of_freedom</code>.</p> <...
g61119
[ 0.027306417003273964, 0.004288375843316317, 0.0009780841646715999, -0.03315688297152519, -0.001472941366955638, -0.04020847752690315, 0.0035781366750597954, 0.02147653140127659, -0.043775252997875214, -0.008745578117668629, -0.05656756833195686, 0.0086522176861763, 0.0761016309261322, -0.0...
<p>I am trying to use R to predict the absolute risk of developing adverse events in a cohort, and to compare that with the observed outcome. Should I use <code>survreg</code> or <code>coxph</code> to do this? Anyone kind enough to explain how to do this with R code? </p> <p>The mean follow up period of my cohort is o...
g61120
[ 0.04471558332443237, -0.07751351594924927, 0.00012891610094811767, -0.028861645609140396, -0.035390812903642654, -0.024338196963071823, -0.010808837600052357, 0.04335584118962288, -0.008833491243422031, -0.02723606303334236, 0.046387914568185806, 0.033056069165468216, 0.06573129445314407, ...
<p>Sorry about the noob question, we tried looking through the answers but couldn't make sense of it. We are very basic with our math/stat knowledge, so please bear with us if this makes less relevant sense.</p> <p>We have a data set - For example sake - scores (out of 100) in <em>N</em> Subjects for 800 students. </p...
g17571
[ 0.016141291707754135, -0.01543649472296238, 0.004507807083427906, -0.04534570872783661, -0.020005598664283752, -0.006008179858326912, -0.01156651321798563, 0.0012896908447146416, -0.0335126593708992, -0.02553696371614933, 0.004381907172501087, 0.02476879023015499, 0.09434453397989273, -0.0...
<p>I need to calculate the log-likelihood for a linear regression model in MATLAB. </p> <p>Although the theoretical result is well know and given in several sources, I want to find a numerical example so that I can check my code is correct.</p> <p>Can anyone point me to one?</p> <p>I realize that the parameters are ...
g61121
[ 0.023764990270137787, -0.03063821606338024, 0.021859124302864075, -0.029897527769207954, 0.0034553923178464174, -0.03986186161637306, -0.01966750994324684, 0.024260740727186203, -0.03877587243914604, 0.019527696073055267, -0.01909506507217884, 0.020042112097144127, 0.05436370521783829, -0....
<p>I have two data sets, A and B. Both have a large number of continuous variables. I believe that A is related to B. But there are no defined classes in either A or B. I could do a bunch of correlation tests to see if any of the variables in A are strongly correlated with B. But many variables in A are likely dependen...
g17572
[ 0.023593783378601074, -0.04968547821044922, 0.020014507696032524, -0.04652431979775429, -0.01755683124065399, -0.011400485411286354, -0.01972770318388939, 0.013488833792507648, 0.0000856087208376266, -0.07396678626537323, 0.037540532648563385, 0.0164883341640234, 0.04310566559433937, 0.039...
<p>I am measuring for the existence of response in cell signal measurements. What I did was first apply a smoothing algorithm (Hanning) to the time series of data, then detect peaks. What I get is this: <img src="http://i.stack.imgur.com/3bAEP.png" alt="time series of cell signal response"></p> <p>If I wanted to make ...
g47299
[ 0.02573036029934883, -0.03188423812389374, -0.03909160941839218, -0.010216858237981796, 0.017772536724805832, -0.017760321497917175, 0.011966043151915073, 0.027106694877147675, -0.062256284058094025, -0.004615486599504948, -0.04034460335969925, 0.06242409348487854, 0.07532510906457901, 0.0...
<p>I'm working in R through an excellent <a href="http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf" rel="nofollow">PCA tutorial by Lindsay I Smith</a> and am getting stuck in the last stage. The R script below takes us up to the stage (on p.19) where the original data is being reconstructed...
g61122
[ 0.023879576474428177, -0.07377362251281738, 0.004777288530021906, -0.057885464280843735, 0.008658848702907562, -0.0010897638276219368, 0.10161136835813522, 0.0015302320243790746, -0.0461178719997406, -0.025336189195513725, 0.039174553006887436, 0.037432994693517685, 0.03908398747444153, 0....
<p>For a classification project we are using the randomForest package in R, which wraps the <a href="http://www.stat.berkeley.edu/~breiman/RandomForests/cc_home.htm" rel="nofollow">Breiman</a> Fortran random forest implementation, to assess the importance of each of our features. I would like to calculate p-values for ...
g61123
[ -0.02590218000113964, -0.03869742527604103, -0.022519219666719437, -0.002232625614851713, 0.022570932283997536, -0.02307538129389286, 0.022738542407751083, 0.048080604523420334, -0.06916552782058716, -0.03252893313765526, -0.02796752005815506, 0.007525708060711622, 0.05957940220832825, 0.0...
<p><strong>Disclaimer:</strong> <em>this is directly related to a homework problem. The example I am giving is based off the homework problem (because I am more interested in how to solve it than in what the answer is).</em></p> <p><strong>Data given:</strong></p> <ul> <li>Number of people surveyed: 50</li> <li>Sum ...
g47302
[ 0.020546702668070793, -0.007627451792359352, -0.01567918434739113, -0.015548557974398136, -0.021892886608839035, -0.019610382616519928, 0.006742210127413273, 0.02226533740758896, 0.014037268236279488, -0.08171664923429489, -0.052918124943971634, 0.056728724390268326, 0.050877172499895096, ...
<p>Note: I'm not even sure how to best title this question, so if anyone has any ideas, please edit!</p> <p>Consider six independent draws from a distribution defined by a cdf $F(x)$ over 0-1. Let’s call them $X1, X2 . . . X6$. I want to define the distribution for X1+X3, if I know the following information:</p> <u...
g535
[ -0.006520097143948078, 0.04139535129070282, -0.030217841267585754, -0.07386656850576401, -0.0482485257089138, -0.05459219217300415, -0.07484424859285355, -0.020466137677431107, -0.020474284887313843, -0.03561396896839142, -0.007824530825018883, -0.02739761583507061, 0.03112448938190937, -0...
<p>I am having a problem with the <em>random</em> term in <code>lme</code> and <code>lmer</code>. In a repeated measures setting, we usually have the following variables: <code>id</code>, <code>response</code>, <code>factor(s)</code> and <code>time</code>. I've seen <code>random = ~ 1 | id</code>, <code>random = ~ time...
g49613
[ -0.016307562589645386, -0.03370925784111023, -0.011617876589298248, -0.08572887629270554, -0.006507990416139364, -0.009149152785539627, 0.020117344334721565, -0.03743869438767433, 0.00408999715000391, -0.003686211770400405, -0.026824651286005974, 0.03363737463951111, -0.0031631276942789555, ...
<p>Let's say I have 100 parts. I sample one part and find it defective. I then sample another five parts and do <em>not</em> find them defective. What statistical procedure would I use that combines this information to provide a confidence interval or failure rate?</p>
g61124
[ 0.06374118477106094, -0.03155004233121872, -0.009488748386502266, -0.03267744183540344, -0.008202617056667805, 0.009788201190531254, 0.03998465836048126, 0.016082128509879112, -0.009578695520758629, -0.06898168474435806, 0.024490831419825554, 0.005891560576856136, 0.034664057195186615, -0....
<p>Sorry to keep bothering you guys with this thing, but another stupid question: Given the following data (from my previous <a href="http://stats.stackexchange.com/questions/13352/how-do-you-deal-with-a-multiple-choice-observation-in-bayesian-inference-when/13363#13363">question</a>), how would one calculate the cond...
g61125
[ -0.0013867516536265612, -0.013545317575335503, 0.0014301743358373642, -0.034035682678222656, -0.027528053149580956, 0.004696848802268505, 0.05375652760267258, 0.03707268461585045, -0.042834844440221786, -0.027238648384809494, 0.03976918384432793, 0.00015549111412838101, 0.05329710245132446, ...
<p>I have used <code>rpart.control</code> for <code>minsplit=2</code>, and got the following results from <code>rpart()</code> function. In order to avoid overfitting the data, do I need to use splits 3 or splits 7? Shouldn't I use splits 7? Please let me know.</p> <p>Variables actually used in tree construction: </p>...
g47308
[ 0.04607902839779854, -0.018594099208712578, 0.00457873335108161, -0.030521070584654808, -0.02420063689351082, -0.022463753819465637, 0.002591255120933056, 0.0017981348792091012, -0.0174386166036129, -0.04236931726336479, -0.018857641145586967, -0.017508292570710182, -0.040609344840049744, ...
<p>I am using stratified sampling and neyman's optimal allocation to compute the best sample size for each stratum. neyman's optimal allocation is given by the formula,</p> <p>$$n_h = n \frac{N_h * S_h}{\sum_i N_i * S_i}$$</p> <p>where $$\sum_h n_h = n$$ $$\sum_i N_i = N$$</p> <p>and $n$ is the total sample size, $n...
g61126
[ 0.01988079957664013, -0.011012573726475239, 0.001069326652213931, -0.031201224774122238, -0.03422624617815018, -0.005950792692601681, 0.003988105803728104, 0.007330766413360834, -0.06502731889486313, 0.025474822148680687, 0.003680997062474489, -0.02967977710068226, -0.030132144689559937, 0...
<p>I have germination data in percentages (with a few zeros) and wish to fit a GLM on them to explore how different seed origins and levels of treatment affect them.</p> <p>My results are not exactly 'counts', but is it ok to use Poisson family (ultimately quasi-poisson)? </p> <p>I don't want to transform them to pro...
g61127
[ 0.02836908958852291, 0.020970067009329796, 0.000847582530695945, -0.031167197972536087, -0.0008752896683290601, -0.010204787366092205, -0.002098955912515521, 0.018933888524770737, -0.036901116371154785, -0.0369013175368309, 0.0005988880875520408, -0.026074396446347237, 0.017070721834897995, ...
<p>Using R, I have developed three models: </p> <ul> <li>linear regression using <code>lm()</code>;</li> <li>decision tree using <code>rpart()</code>;</li> <li>k-nearest neighbor using <code>kknn()</code>. </li> </ul> <p>I would like to conduct leave-one-out cross-validation tests and compare these models. However, ...
g47312
[ 0.026325318962335587, -0.08054384589195251, -0.018788155168294907, -0.031651005148887634, 0.005325634963810444, -0.00802706927061081, 0.016900459304451942, 0.017998024821281433, -0.028298400342464447, 0.05985594168305397, 0.04495006054639816, 0.021265888586640358, 0.06878773868083954, 0.03...
<p>Let us say I have the following pair wise test data:</p> <pre><code>batch 1 2 3 4 5 6 7 8 10 non-control 18 16 15 19 36 24 25 30 31 control 20 23 25 19 28 24 26 21 22 </code></pre> <p>Each data point is measurement of some attribute X in some units</p> <p>The ...
g61128
[ 0.02996060624718666, -0.03444989398121834, -0.005796249955892563, -0.02265455760061741, 0.03599809482693672, -0.008241035975515842, 0.0371946282684803, 0.04697877913713455, 0.01578701101243496, -0.03569154441356659, -0.013875704258680344, 0.052917033433914185, 0.017373643815517426, 0.00844...
<p>I have Training data like following :</p> <p>1 1:128.319 2:71.4336 3:130.255 4:292.948 5:96.3541 6:71.942 7:136.189 8:71.5032 9:148.21 10:304.011 11:90.3781 12:99.4496 13:164.268 14:138.892 15:220.871 16:139.198 17:151.709</p> <p>1 1:118.431 2:97.5874 3:92.0313 4:242.383 5:32.5916 6:91.4476 7:122.88 8:86.6046 9:10...
g61129
[ -0.013014648109674454, -0.0483190082013607, 0.027540480718016624, -0.011285265907645226, 0.05631400644779205, 0.03632960841059685, 0.04220966994762421, 0.020237769931554794, -0.04036437347531319, 0.005040289368480444, -0.0023811187129467726, 0.017594726756215096, 0.027762029320001602, 0.00...
<p>Suppose I wanted to test for a difference in BOTH the mean and variance, how would I go about constructing a test statistic for this purpose? <br><br> I suppose my null hypothesis would be that the mean and variance in one population are the same as the mean and variance in another, whilst the alternative hypothesis...
g61130
[ 0.024075476452708244, -0.03500453382730484, 0.005034154746681452, -0.029929770156741142, -0.0022485372610390186, -0.004638062324374914, -0.017290662974119186, 0.04894072189927101, 0.014388307929039001, -0.057118553668260574, 0.001541439793072641, 0.011962423101067543, 0.03226105123758316, ...
<p>Cases and observations.</p> <p>It is my understanding that sample size is determined by the number of individuals taking part in an experiment (from my undergrad Psychology stats course). For each individual a mean is calculated from the result of each trial. These means are entered as data in SPSS. The mantra of t...
g61131
[ 0.007355190347880125, 0.004028695169836283, -0.0060607148334383965, -0.026267044246196747, -0.03706671670079231, -0.02665184624493122, -0.0070995367132127285, 0.05185471102595329, -0.028093388304114342, -0.04235789179801941, 0.045422542840242386, -0.02326231263577938, 0.04088200256228447, ...
<p>I am doing multivariate analysis using logistic regression to see the relationship between one categorical outcome variable and a group of continuous and categorical explanatory variables. I did preliminary explanatory analysis using chi-square for the categorical covariates and t-tests and Mann-Whitney tests for th...
g61132
[ -0.013783706352114677, 0.0021878057159483433, 0.010411921888589859, -0.037647638469934464, -0.01239793561398983, -0.025432225316762924, -0.030809743329882622, 0.01681051403284073, -0.01914846897125244, 0.012674001976847649, 0.02399073727428913, -0.009304387494921684, 0.027844399213790894, ...
<p>I am currently working on a simulation study in which I compare two methods for analysing data from a repeated measures design. Let's say there are n subjects, and each subject goes through i conditions of the experiment. In each condition, there are j trials. So for each subject, I have i*j values. Since the data I...
g17582
[ 0.014241807162761688, -0.022394346073269844, -0.009528257884085178, -0.059369221329689026, 0.008036946877837181, 0.014676951803267002, -0.007451721467077732, -0.014383911155164242, -0.011332123540341854, 0.010738158598542213, 0.02356836199760437, -0.0321258045732975, 0.021606456488370895, ...
<p>I'm using both nltk NaiveBayesClassifier and SklearnClassifier for classification of sentences. Is there is a way to find which is the best classification. For eg: If i give "You are looking not so great" , one is classifying it as "Positive" and other as "Negative". I just want to know which is correct or which is ...
g61133
[ -0.00675901398062706, -0.06685313582420349, -0.00047080483636818826, -0.009273760952055454, -0.0180777907371521, -0.03276151418685913, 0.005777683109045029, 0.04823274165391922, -0.027446936815977097, -0.012421194463968277, 0.05306356027722359, 0.01911178231239319, 0.07662823796272278, 0.0...
<p>I have to group $A$ ($\bar X_1 =20, N_1=10$) and group $B$ ($\bar X_2 = 25, N_2=15$). Is there a way I can compare these two groups and get some statistical significance? I was thinking about using the $t$-test, but the standard deviation is not provided.</p>
g17588
[ -0.04605867713689804, 0.015218650922179222, -0.020099947229027748, -0.0573376789689064, 0.02722269482910633, -0.026900198310613632, 0.025904210284352303, -0.01792515255510807, -0.06194246560335159, 0.005015580914914608, 0.03477214276790619, 0.02373514510691166, -0.028017038479447365, 0.042...
<p>I have read the <a href="http://en.wikipedia.org/wiki/Weighted_arithmetic_mean" rel="nofollow">Wikipedia article</a>, and know that the unbiased weighted sample covariance matrix for the row vector $\mathbf{x}_i$ is $$\Sigma=\frac{1}{\sum_{i=1}^{N}w_i - 1}\sum_{i=1}^N w_i \left(\mathbf{x}_i - \mu^*\right)^T\left(\ma...
g61134
[ 0.00841208454221487, 0.0016576707130298018, -0.021619612351059914, -0.042173419147729874, 0.05005047470331192, -0.0075304023921489716, 0.04073110595345497, 0.0018483102321624756, -0.07101458311080933, 0.017344264313578606, -0.02712370455265045, 0.022252101451158524, 0.002910630078986287, 0...
<p>I am reading the book related to SEM (Byrne, 1998) and it is stated that regression of the observed variables on the factor, and the variances of both the errors of measurement and the factor, as well the error covariance, are of primary interest. Why is error variance important in CFA, and particularly error covari...
g17589
[ 0.02877822332084179, -0.02866251952946186, -0.008847442455589771, -0.03416026011109352, 0.036640942096710205, 0.060542017221450806, 0.08141784369945526, 0.04312342777848244, -0.011061158962547779, -0.03927597030997276, 0.002910145092755556, 0.0036620371975004673, 0.017772557213902473, 0.03...
<p>For my research question, I want to find out if two different group types (IV) vary across position categories (DV) for eight different limbs. My data is nominal, so I'll be testing this by doing 8 chi square/Fisher's exact tests, one for each limb. For example, the group <em>x</em> lower leg contingency table is a ...
g61135
[ 0.0020177888218313456, -0.028749968856573105, 0.01115990150719881, -0.04863828048110008, 0.01927744783461094, -0.07453087717294693, 0.047647714614868164, -0.002104588085785508, -0.01822165586054325, -0.01818026788532734, 0.03473373129963875, 0.021109670400619507, -0.003199282567948103, 0.0...
<p>I want to predict whether a loan is default or fully paid, with about 20 features and 10,000 historical observations.</p> <p>Among the data over 85% are fully paid, 15% are default, I want to try classification tree, but it won't split. Do I have to balance the outcome first? That is to say, I randomly sample 1500 ...
g61136
[ 0.000012562459232867695, 0.00004705633909907192, -0.0033001438714563847, -0.029151584953069687, 0.013757514767348766, -0.08332626521587372, 0.04140368476510048, 0.008534383028745651, 0.012086496688425541, -0.0473933145403862, 0.0014269717503339052, 0.025110432878136635, 0.0027878719847649336...
<p>I read <a href="http://www.evanmiller.org/how-not-to-run-an-ab-test.html" rel="nofollow">this article</a> on "how not to run an A/B test".</p> <p>And I still don't understand what exactly the author's reasoning is. Can someone dumb it down for me?</p> <p>I think what it might be saying is that reading the results ...
g61137
[ 0.013258099555969238, 0.001760959974490106, -0.009185214526951313, 0.0024394490756094456, 0.026332978159189224, -0.0051093557849526405, 0.0868770033121109, 0.0225120410323143, 0.0036511372309178114, -0.04333395138382912, 0.03503274917602539, -0.021505840122699738, 0.003505917266011238, 0.0...
<p>I have two continuous variables, X and Y, that are correlated - they are not independent. To correct for non-independence, I have a known correlation structure, a matrix S.</p> <p>If one calls <code>gls(Y ~ X, correlation = S)</code>, what I think happens is that, internally, gls() transforms X and Y in some way so...
g43445
[ 0.008028443902730942, -0.013933271169662476, -0.023179879412055016, -0.0034248102456331253, 0.03535822406411171, -0.010454222559928894, 0.012705571949481964, 0.007621268276125193, -0.03478875756263733, -0.02516530454158783, -0.036773692816495895, 0.0568784661591053, 0.032473500818014145, -...
<p>We ask a set of users to independently detect and annotate all the buildings on a map. We do not have a priori knowledge about the location or event the existence of buildings on this map.</p> <p>I would like to aggregate/cluster their annotations in a way that only 'consensual' annotations are taking into account....
g17593
[ 0.014982354827225208, -0.014024117961525917, -0.012577847577631474, 0.022473180666565895, 0.001877909293398261, 0.021128548309206963, 0.021783292293548584, 0.05439641699194908, 0.016508175060153008, 0.04010269418358803, 0.033875152468681335, 0.0102698914706707, 0.05487659201025963, 0.01926...
<p>I am working to investigate association between environmental pollution and daily hospital admission due to various causes. This outcome data has excess zeros on days when there are no admissions for specific causes. I would like to adjust for temperature and humidity using smooth terms. Usually Poisson generali...
g61138
[ 0.011170631274580956, -0.07508029788732529, -0.024167655035853386, -0.06455051898956299, -0.032403863966464996, 0.00700405752286315, 0.07815797626972198, 0.03439854085445404, -0.05363362655043602, -0.015381012111902237, -0.005912718363106251, 0.005047815851867199, 0.053955644369125366, 0.0...
<p>This question might be very basic, but yet it makes me wonder, so I wanted to ask you for an opinion.</p> <p>How much calculation is allowed or desired when creating a variable? Are there at all any limitations? Is it perhaps desired to "mess" with data as little as possible and use it in its purest form?</p> <p>F...
g17595
[ 0.01524717453867197, 0.011426747776567936, 0.0027782784309238195, -0.021150825545191765, 0.015839239582419395, -0.013899986632168293, -0.006173932924866676, -0.008084343746304512, -0.06149300932884216, -0.04623475298285484, 0.049480147659778595, 0.0155895771458745, -0.037020761519670486, -...
<p>In this <a href="http://www.casact.org/pubs/proceed/proceed97/97553.pdf" rel="nofollow">paper</a>, Kreps studies the effect of sample size on parameter estimates in normal and lognormal distributions. Three methods are studied: 1) infinite, 2) approximate, and 3) effective. The idea is that in reinsurance industry, ...
g17596
[ 0.00868266448378563, -0.006841767113655806, 0.005890264175832272, -0.03514484688639641, -0.02633032388985157, -0.004227695055305958, 0.04575343057513237, -0.04250597953796387, -0.03795035928487778, 0.02010873518884182, -0.0032085543498396873, 0.04791020229458809, 0.04035275802016258, -0.00...
<p>Can anyone help give a conceptual explanation to how predictions are made for new data when using smooths /splines for a predictive model? For example, given a model created using <code>gamboost</code> in the <code>mboost</code> package in R, with p-splines, how are predictions for new data made? What is used from t...
g61139
[ -0.0023382785730063915, -0.04558158665895462, -0.0052857669070363045, -0.023227889090776443, -0.04355866461992264, -0.02080717124044895, 0.039847005158662796, 0.04054594784975052, -0.016488928347826004, -0.05968862399458885, -0.0411144495010376, 0.07152670621871948, 0.10190673172473907, -0...
<p>I got a little confused with the squares and the sums. As far as I know, the variance or total sum of squares (TSS) is smth like</p> <p>$\sum_{i}^{n} (x_i - \bar x)^2$</p> <p>and the sum of squares within (SSW) is</p> <p>$\sum_{j}^{K} \sum_{i}^{n} (x_i - c_j)^2 \qquad i \in C_j$ where k ist the number of clusters...
g61140
[ -0.010339690372347832, 0.03493916615843773, -0.017642734572291374, -0.071971096098423, -0.004454419016838074, -0.014444034546613693, 0.03675241768360138, -0.0020660709124058485, 0.0049371374770998955, -0.02423674613237381, -0.022105524316430092, 0.06143788620829582, 0.07946057617664337, 0....
<p>The following is a worked example found in past papers of my university, but haven't been able to figure out to solve it (I have the answer, but do not understand how to get there). Any help in enlightening me would be much appreciated.</p> <p>A store sells on average four computers a day. Once every fourteen days ...
g792
[ -0.023670321330428123, 0.08044513314962387, -0.008388202637434006, -0.02261468395590782, -0.005803321488201618, 0.011810059659183025, 0.07101861387491226, 0.018721962347626686, -0.04036809876561165, 0.00858977995812893, -0.026506295427680016, -0.030813835561275482, 0.0025555063039064407, -...
<p>I am trying to compare differences in sites and years related to the environmental variables. For example, is there a significant difference in chlorophyll concentration (chlo) over the years (from 2002-08)? Or is there a difference in chlorophyll concentration between Seychelles, Indonesia and Brazil? I have starte...
g61141
[ 0.043375931680202484, -0.05722879245877266, 0.012628775089979172, -0.05323457345366478, -0.03458264470100403, 0.04210681468248367, 0.09538108855485916, -0.0194945577532053, -0.023889953270554543, 0.011511215940117836, 0.035887181758880615, 0.015210168436169624, 0.03152596950531006, -0.0303...
<p>Dose anybody know's what creating Laplacian Graph from similarity matrix brings us in spectral clustering ? or why we create it ? Here it's the Algorithm: Laplacian graph is : <strong>L= D-W.</strong> ,<strong>D:</strong> degree matrix of similarity graph, <strong>W=</strong> weighted adjacency matrix </p> <p><img...
g61142
[ 0.022069863975048065, 0.011626016348600388, 0.0062207384034991264, -0.05666368454694748, 0.00883890688419342, 0.0039486573077738285, 0.023493563756346703, 0.012283733114600182, -0.016347698867321014, -0.02551995776593685, -0.016179615631699562, 0.08742446452379227, 0.09984908252954483, 0.0...
<p>I have 400 responses to a 20 item questionnaire which purports to measure an attitudinal constuct in medical students. The instrument was validated in the US for a single year of medical students and the published data is very "clean"- all ritc values >0.3,alpha 0.84, PCA with a stable four factor structure etc. In ...
g17602
[ -0.019477728754281998, -0.04856795817613602, -0.020983049646019936, -0.04418189078569412, 0.020649265497922897, 0.02014094404876232, 0.07204222679138184, -0.018076101318001747, 0.004969492554664612, -0.03821627050638199, 0.007307358551770449, 0.02412751130759716, 0.038760554045438766, -0.0...
<p>$X$ and $Y \sim U(0,1)$.</p> <p>Let $$\eqalign{ g(x,y) &amp;= x &amp;\text{ if } &amp;x^2+y^2 \le 1 \\ &amp;=2 &amp;\text{ if } &amp;x^2+y^2 \gt 1 }$$</p> <p>and $Z = g(X,Y)$. How to find $F_Z(z), \mathbb{E}(Z)$, and $\mathbb{E}(Z | X^2+Y^2 \gt 1 )$?</p> <p>I would appreciate your help.</p>
g61143
[ -0.00015373132191598415, 0.024559924378991127, -0.026188502088189125, 0.04292846471071243, 0.06930093467235565, -0.05153747275471687, 0.04106447100639343, 0.007154964841902256, -0.02669343538582325, -0.006213812157511711, -0.06024673208594322, 0.037293896079063416, 0.06676412373781204, 0.0...
<p>What is the correct way to fit a multiple regression model where I have a combination of cubic and linearly related independent variables?</p> <p>If I transform the variable showing cubic relationship, how do I transform back the forecasted variable, given that it's the result of both non-transformed and transforme...
g17609
[ 0.03884284943342209, -0.028374744579195976, -0.00962524302303791, -0.024065418168902397, 0.010501432232558727, 0.010269339196383953, 0.007414030376821756, 0.02996724657714367, -0.026576636359095573, -0.05776433274149895, -0.006543838419020176, 0.024595387279987335, -0.0016932451399043202, ...
<p>Are there any tools in R that could be used to optimize the allocation of customers amongst possible offers, given constraints? Can anyone give hints/examples on their use? Hope my setup makes sense...</p> <p>Here is the problem setup:</p> <p><strong>There are the following:</strong></p> <ul> <li>$N$ customers ($...
g61144
[ -0.0178181491792202, 0.03856658190488815, -0.0015779624227434397, 0.030057597905397415, -0.00894270557910204, -0.045595355331897736, -0.01265796460211277, 0.0027257332112640142, -0.06597710400819778, -0.01605016179382801, 0.04089406132698059, 0.008363715372979641, 0.04261854663491249, 0.05...
<p>I have the following model:</p> <p>$$ y_{i} = \alpha + \beta{d_{i}} + X^{'}_{i}\gamma + \epsilon_{i} $$</p> <p>Where $d_{i}$ is a dummy variable and $X^{'}_{i}$ is a vector of control variables. I want to estimate the the causal effect of $d_{i}$. Suppose that the regression is saturated in $X_{i}$ so that $E(d_{i...
g28177
[ -0.0005104030715301633, -0.041487354785203934, -0.030912885442376137, -0.04481663554906845, 0.042623698711395264, -0.02931966818869114, 0.07098107784986496, 0.05286196991801262, -0.048483844846487045, -0.037035468965768814, -0.030093565583229065, 0.08737511187791824, 0.010989507660269737, ...
<p>I have some data that look like: <img src="http://i.stack.imgur.com/fBXQM.jpg" alt="enter image description here"> These data show between case (spinal cord injury) and control the number of drugs that patients in these populations were prescribed at any given time. I'm looking for a p-value to determine that the ...
g61145
[ 0.05002419278025627, 0.01733422838151455, 0.001472614472731948, -0.06466788053512573, -0.005626539699733257, -0.1010800376534462, -0.00450104707852006, -0.022206995636224747, 0.012963577173650265, 0.011177660897374153, 0.03557753562927246, -0.00887768343091011, 0.0585138164460659, 0.000996...
<p>I was wondering if there is a package I can use to convert my 22 annual observations to quarterly series?</p> <p>Will there be any harm in doing so? Will I lose any important data specific information? I want to run VARs in levels using TY method.</p>
g22114
[ -0.010792044922709465, -0.030006948858499527, 0.004459026735275984, -0.061146821826696396, -0.018313666805624962, -0.04015602916479111, 0.006310795433819294, -0.021743731573224068, -0.002468333812430501, -0.03143218532204628, 0.04962027817964554, 0.033175401389598846, 0.03513595461845398, ...
<p>I need to calculate a permutation-based p-value with significance level $\alpha$, how many permutations do I need ?</p> <p>From the article <a href="http://jmlr.org/papers/volume11/ojala10a/ojala10a.pdf" rel="nofollow">"Permutation Tests for Studying Classifier Performance"</a>, page 5 :</p> <blockquote> <p>"In ...
g61146
[ -0.0634891539812088, 0.03379886969923973, -0.019281819462776184, -0.0419858917593956, -0.009903926402330399, -0.05618629604578018, 0.0335022509098053, 0.046734072268009186, -0.029257597401738167, -0.0026770681142807007, -0.03824874758720398, 0.02284911647439003, 0.04456717148423195, 0.0369...
<p>Is there a package that includes a likelihood ratio test for time series data with an unknown number of breaks in R? My search wasn't very successful, yet...</p>
g17619
[ 0.0034700045362114906, -0.003627291414886713, -0.020506583154201508, -0.007406141608953476, -0.09263088554143906, -0.056108202785253525, 0.02197534404695034, 0.003979216329753399, 0.00026680578594096005, -0.002520577050745487, 0.017913538962602615, 0.011324138380587101, -0.013485496863722801...
<p>What are the assumptions for the proper use and interpretation of the Pearson's correlation coefficient? </p> <p>How is $\DeclareMathOperator{\cov}{cov}\cov(X,Y)$ affected by (mild) deviations of linearity? </p> <p>How is $\cov(X,Y)$ influenced by the presence of heteroscedasticity?</p>
g47332
[ 0.024897795170545578, -0.016268184408545494, -0.006487807258963585, -0.008402581326663494, 0.02672966755926609, 0.019943995401263237, 0.06426534056663513, -0.0333939790725708, 0.001993583980947733, -0.034236639738082886, -0.00012815461377613246, 0.022792022675275803, 0.006313732825219631, ...
<blockquote> <p>The lifetime of a machine is modelled by an exponential random variable $X$ with $P(X&gt;x) = e^{-\lambda x}, \lambda, x &gt; 0$. This machine cannot be repaired. A maintenance crew checks this machine at times $T, 2T, 3T, ...., $ where $T$ is a specified length of time</p> <p>Consider the events...
g61147
[ 0.022123515605926514, 0.018005283549427986, -0.02115771546959877, 0.003785017877817154, 0.013965939171612263, -0.011427543126046658, 0.032689742743968964, 0.037254173308610916, -0.044421516358852386, -0.020573699846863747, -0.020178379490971565, 0.058972377330064774, 0.03732578828930855, 0...
<p>I have 1 categorical factor (3 treatments) and 1 continuous factor (weight) and then I have 5 continuous response variables.</p> <p>From what I have read, I should not use a two way ANOVA as one of the factors is continuous. Is this correct? Should I be using a Multiple Regression instead?</p> <p>I was advised th...
g61148
[ 0.01144882757216692, -0.09193611145019531, -0.001901069888845086, -0.022947199642658234, -0.011967731639742851, 0.01570044457912445, 0.03512438014149666, 0.04105608910322189, -0.06077108532190323, 0.004302435088902712, 0.007689039222896099, -0.007387243676930666, -0.01601487770676613, 0.02...
<p>Is there a difference between the two uses of 95% in:</p> <ul> <li>mean + 2 standard deviations (statistically significant)</li> <li>confidence interval</li> </ul>
g15920
[ 0.006093963049352169, 0.022758036851882935, -0.013752113096415997, 0.022236229851841927, -0.03253602609038353, 0.02389826811850071, 0.020557107403874397, 0.008661968633532524, 0.003961180802434683, -0.02834666334092617, 0.013383263722062111, 0.02169877476990223, 0.06430099904537201, -0.026...
<p>The "proof" in my textbook was very short and only in the discrete case, I didn't understand it very well too. So I tried to derive the expression starting from the expected value of a continuous random variable. I started by letting the variable be a function of another variable but then I got stuck trying to chang...
g17627
[ 0.02742158994078636, -0.02638280764222145, 0.0028694032225757837, -0.035802364349365234, -0.023440273478627205, -0.017511582002043724, 0.031229328364133835, 0.011446619406342506, -0.026565654203295708, -0.049468994140625, -0.035560064017772675, 0.02411474660038948, 0.002474411390721798, -0...
<p>I have a variable X1 = (a - b) / (a + b). This variable shows a higher correlation to Y that any of (a, Y) and (b, Y).</p> <p>In a multiple regression model like Y ~ X1, X2, does it make sense to use the X1 formula, or should I always use the base variables a and b?</p> <p>In <a href="http://stats.stackexchange.co...
g61149
[ 0.03699532523751259, -0.04314741492271423, 0.006193665321916342, -0.013342784717679024, 0.0000021197397472860757, -0.049467042088508606, 0.019592484459280968, 0.0441240519285202, 0.01820651814341545, -0.0357871875166893, 0.03594853729009628, 0.023945961147546768, 0.0496838353574276, 0.0249...
<p>I've been reading the following (great!) book <a href="http://www.inference.phy.cam.ac.uk/itila/" rel="nofollow">http://www.inference.phy.cam.ac.uk/itila/</a>, which has sparked some questions about MLE.</p> <p>I'm comfortable with the notion that ML estimators are often biased.</p> <p>However, I was very curious ...
g61150
[ -0.0032057592179626226, -0.04136846587061882, 0.02137974090874195, -0.010221356526017189, 0.0071875471621751785, -0.0017649467336013913, 0.0017189739737659693, 0.04899943619966507, -0.03939032927155495, -0.00249690399505198, -0.007151533849537373, 0.011944828554987907, 0.07289286702871323, ...
<p>Concerning the <a href="http://en.wikipedia.org/wiki/Pearson%27s_chi-squared_test" rel="nofollow">Pearson chi-square test</a> there seems to be a subtle difference between the goodness-of-fit test and the test of independence.</p> <p>What is confusing is that both tests seem to be calculated in a very similar way.<...
g61151
[ 0.024792496114969254, -0.006930196192115545, 0.018376586958765984, -0.015744460746645927, 0.047884564846754074, -0.06681345403194427, 0.013559209182858467, 0.038259346038103104, -0.011955494992434978, -0.007474897429347038, -0.0012264623073861003, 0.007658713962882757, -0.015021007508039474,...
<p>I am new to statistics, so pardon any mistakes in my question.</p> <p>I have two time series $X_i$ and $Y_i$. Assuming that they're stationary AR(1) processes with possibly different means, how do I test for difference of means?</p> <p>I found this link (but tests only one sample) which discusses using gls: <a hre...
g17631
[ 0.012509592808783054, -0.01107973325997591, 0.010853534564375877, -0.0458344966173172, 0.0028150181751698256, -0.04553608596324921, -0.000810839410405606, -0.04578474164009094, -0.02976941131055355, -0.0028986050747334957, 0.0029177425894886255, 0.07511356472969055, 0.01006478350609541, -0...
<p>I have an experiment producing results (dependent variables) that don't pass tests of normality, thus I am testing hypotheses using non-parametric tests. My DVs are continuous, while my factors (independent variables) are ordinal or nominal. I've been using the Kruskal-Wallis test and Friedman test (using Matlab). M...
g61152
[ -0.0269729383289814, 0.026514923200011253, -0.01705319434404373, -0.009572274051606655, -0.020695621147751808, -0.010387495160102844, 0.02774038165807724, -0.009437778033316135, -0.007085586432367563, -0.026332320645451546, 0.004762990400195122, 0.002705847378820181, -0.0013042812934145331, ...
<p>I'd like to use Simple Exponential smoothing to forecast the lead-time demand for inventory control, I have monthly data and LT+1 is equal to 5 months, can I do a forecast using SES which gives me a one-period-ahead forecast and then multiply it by 5 to get the forecast for LT+1 ? what is the best solution to get h...
g546
[ 0.035061243921518326, -0.040322624146938324, 0.006507443729788065, 0.013280139304697514, -0.04473627358675003, -0.048381172120571136, 0.01722130738198757, 0.020032504573464394, -0.0019478719914332032, 0.003675224259495735, 0.041955046355724335, -0.009423977695405483, 0.09818631410598755, 0...
<p>I do not understand the persp plot, my example is:</p> <pre><code>c&lt;-mat.or.vec(5,2) c[1,1]&lt;-1 c[1,2]&lt;-1 c[2,1]&lt;-1 c[2,2]&lt;-1 c[3,1]&lt;-2 c[3,2]&lt;-0 c[4,1]&lt;-1 c[4,2]&lt;-1 c[5,1]&lt;-1 c[5,2]&lt;-1 persp(c,xlab = "X", theta = -60,ylab = "Y", zlab = "Z",ticktype = "detailed" ) </code></pre> <p>...
g17634
[ 0.04901811107993126, 0.0007743927999399602, -0.02177407220005989, -0.03320302814245224, 0.03273787349462509, -0.03227577358484268, 0.07010600715875626, 0.009418508969247341, -0.0482955276966095, -0.04975951090455055, -0.06116562709212303, 0.06259716302156448, 0.04837200045585632, -0.015725...
<p>Say I have some data for past 5 years and I have trained my classifier (anything decision tree, svm etc.) based on that i.e. given the appropriate input feature data and correct output labeling.</p> <p>Now for current year when I have to make prediction (predicting the output) I can supply the input feature data I ...
g61153
[ 0.011241772212088108, -0.0735662654042244, 0.01417811680585146, -0.033109232783317566, -0.043039098381996155, 0.01776997745037079, -0.014662886038422585, 0.04821520671248436, -0.04963754490017891, -0.03594094514846802, 0.01329812128096819, 0.041231390088796616, 0.06406679004430771, 0.01968...
<p>I have data with many correlated features, and I want to start by reducing the features with a smooth basis function, before running an LDA.</p> <p>I'm trying to use natural cubic splines in the <code>splines</code> package with the <code>ns</code> function. How do I go about assigning the knots?</p> <p>Here's th...
g61154
[ 0.03812488541007042, -0.02833404578268528, 0.002034488832578063, -0.06842091679573059, 0.013563848100602627, -0.01712026633322239, 0.06816115975379944, 0.031243400648236275, -0.05168236047029495, -0.01914748176932335, -0.03793489560484886, 0.03213508799672127, 0.07947481423616409, 0.023772...
<p>Linear model in matrix form is</p> <p>$ \mathbf{y}=\mathbf{X}\beta+\epsilon\textrm{ where }\epsilon\sim\mathbb{N}\left(0,\sigma^{2}\mathbf{V}\right). $</p> <p>Then $\beta$ can be estimated through generalized least squares as</p> <p>$ \widetilde{\beta}=\left(\mathbf{X}^{\prime}\mathbf{V}^{-1}\mathbf{X}\right)\mat...
g61155
[ -0.02831624262034893, -0.01350086648017168, -0.018138812854886055, -0.030209578573703766, 0.051939111202955246, -0.056701187044382095, 0.022465694695711136, -0.030788766220211983, 0.03407233580946922, 0.015207549557089806, -0.05768142640590668, 0.05774817615747452, -0.015757353976368904, 0...
<p>Per my <a href="http://stats.stackexchange.com/q/7115/1026">earlier question</a> I'm trying to find a reasonable metric for the semantic distance between two short text strings. One metric mentioned in the answers of that question was to use shortest hypernym path to create a metric for phrases. So for instance, i...
g61156
[ 0.04398708790540695, 0.06541307270526886, -0.007118454668670893, -0.07106979191303253, -0.022959191352128983, -0.049222104251384735, -0.05869987607002258, 0.03118612989783287, -0.06532040983438492, -0.012447784654796124, 0.034437648952007294, -0.06463713943958282, 0.03973458334803581, -0.0...
<p>In SPSS linear mixed model (analyze->mixed model->linear), one can opt for predicted values. In the SPSS data file, a column is added with new data, i.e., the predicted values. When I run a linear model via generalized linear mixed model in SPSS (analyze->mixed model->generalized linear, which is basically the same ...
g61157
[ -0.014182280749082565, -0.08569800108671188, 0.0019701968412846327, -0.020128097385168076, -0.0162355937063694, -0.01273584458976984, 0.003286347957327962, -0.016192646697163582, -0.07258683443069458, -0.07266920059919357, -0.030114514753222466, -0.0021993645932525396, 0.0674646645784378, ...
<h2>Background</h2> <p>Conventional approaches to fitting a priori models to observed data seek to find those model parameters that maximize the likelihood of the data. For more complicated models, this typically necessitates an iterative search across a reasonable parameter space, computing the likelihood of the data...
g61158
[ 0.006738591473549604, -0.04378107935190201, -0.006323555018752813, -0.028682036325335503, -0.01966552436351776, 0.021990016102790833, 0.027910608798265457, 0.005510601680725813, -0.11672600358724594, 0.03588235750794411, 0.03682556375861168, -0.01286415383219719, 0.030900588259100914, 0.06...
<p>Why bucketing of continuous variables is preferred in logistic regression ? What is the funda behind adjusted log odds ratio and unadjusted log odds ratio when we have a continuous variable ?</p>
g47345
[ 0.049264002591371536, -0.012644677422940731, -0.0007992059108801186, 0.002810127567499876, -0.018437065184116364, 0.03382677584886551, 0.06306986510753632, 0.030752915889024734, -0.05127403140068054, -0.06323211640119553, 0.036916013807058334, -0.013759976252913475, 0.0197769608348608, 0.0...
<ol> <li><p>From Casella's Statistical Inference:</p> <blockquote> <p>Definition 10.1.7 For an estimator $T_n$, if $\lim_{n\to \infty} k_n Var T_n = \tau^2 &lt; \infty$, where $\{k_n\}$ is a sequence of constants, then $\tau^2$ is called <strong>the limiting variance</strong> or <strong>limit of the variances</s...
g361
[ -0.0028877616859972477, 0.016170559450984, 0.00029997664387337863, 0.03207266703248024, 0.022253654897212982, -0.010466917417943478, 0.0068224393762648106, -0.03864730894565582, -0.04012318328022957, -0.0061730192974209785, -0.029922740533947945, -0.01357013825327158, 0.00810311734676361, ...
<p>The "exclusive or" function has a long and arduous history in the AI/machine learning communities. From my understanding of "association rule learning", xor would appear to be a problem for this type of learning. That is, suppose we have the following data:</p> <pre><code>A B C 0 0 0 0 1 1 1 ...
g61159
[ 0.04236668720841408, 0.046457406133413315, 0.017088117077946663, -0.025607850402593613, 0.03915229067206383, -0.05655249208211899, 0.00897367112338543, 0.03615492582321167, -0.014985702000558376, -0.007786743342876434, 0.04045676440000534, 0.0194135420024395, 0.04989398643374443, 0.0332388...
<p>I have an explanatory variable, <code>close</code>, which is the daily close price of a firm in the stock market.</p> <p>The following summarizes this explanatory variable:</p> <pre><code> quote at market close ------------------------------------------------------------- Percentiles ...
g61160
[ 0.017285384237766266, -0.012552660889923573, -0.010680869221687317, -0.003489338094368577, -0.005721879191696644, 0.0001687200419837609, 0.01151145901530981, 0.019252123311161995, -0.0009520734311081469, 0.025512132793664932, 0.033782459795475006, 0.03097257763147354, 0.03260420262813568, ...
<p>Let we have data of 3D (example angular velocity x, angular velocity y, angular velocity z).Can anyone explain/give example/how to differentiate between gaussian distribution and non-gaussian distribution of data since the difference is important for us to make decision whether to use Kalman filter or particle filte...
g47347
[ 0.06333788484334946, -0.02099641039967537, -0.00916491262614727, -0.027189219370484352, 0.05759705230593681, 0.02159247361123562, 0.03915225341916084, -0.03004608303308487, 0.004395090974867344, -0.0017270378302782774, 0.012093097902834415, 0.01618191972374916, 0.08391629159450531, -0.0299...
<p>Take a linear model with a block random effect ($b_i$) $$ y_{ij} = \mu + b_i + \beta x_{ij} + e_{ij} $$ with $b_i \sim N(0, \sigma_b^2)$, etc etc.</p> <p>If $\sigma^2_b = 0$, then the model reduces to a very simple linear model. To test the null hypothesis $H_0: \sigma_b^2 = 0$ versus the alternative $H_1: \sigma_...
g61161
[ 0.013472684659063816, -0.007212798111140728, -0.0026494567282497883, 0.0032932055182754993, 0.018803320825099945, -0.028006916865706444, -0.0033722114749252796, 0.02893965132534504, 0.008514009416103363, -0.0030761382076889277, 0.0037182457745075226, 0.02775459922850132, 0.009911994449794292...
<p>Could you please advise whether studentized residuals are meaningful when computed on a robust linear regression model using an M-estimator? </p> <p>I'd like to use it to detect outliers by doing something like this:</p> <pre><code>rfit = rlm(y~x, data=d) pt(rstudent(rfit), df=nrow(d)-3) </code></pre> <p>Is this...
g61162
[ 0.006972806993871927, -0.09809380024671555, 0.0012396053643897176, 0.020079245790839195, -0.06264641135931015, -0.006008204538375139, 0.016248876228928566, 0.02919248305261135, -0.024081353098154068, -0.011737585067749023, -0.007473601493984461, 0.02644428238272667, -0.007007512729614973, ...
<p>This question follows up my <a href="http://stats.stackexchange.com/questions/59107/logistic-regression-controlling-variables-not-significant-what-should-i-conclu">first one</a>.</p> <p>I ran logistic regressions on a period of a few years. The authors that created the model I'm using aggregated their yearly result...
g61163
[ -0.003930342849344015, 0.007023034617304802, -0.008498789742588997, -0.042051125317811966, 0.029318341985344887, -0.048990365117788315, 0.05773647502064705, 0.047064512968063354, -0.015595083124935627, -0.010047090239822865, -0.029701832681894302, 0.0013808676740154624, 0.1000920832157135, ...
<p>I'm plotting the following point using python (a and b have are non gaussian):</p> <pre><code> x=np.log10(a) y=np.log10(b) xmedian=np.median(x) ymedian=np.median(y) </code></pre> <p>and I need to add errorbars on the y from percentiles so I wrote (n is the number of points):</p> <pre><code> y1=np.percentile(y,...
g38119
[ -0.03357790783047676, -0.020074063912034035, 0.009634959511458874, -0.07430689036846161, 0.022511214017868042, 0.01845885068178177, 0.019848648458719254, -0.010677843354642391, -0.0634632408618927, -0.022346047684550285, 0.003855830291286111, 0.045271847397089005, 0.03571666404604912, 0.04...
<p>I've seen the concept of regret apply mostly to online learning problems, but while going through the definition it does seem that is not bounded to this setting.</p> <p>I'm trying to come with a simple example to explain this concept in terms of simple linear models.</p> <p>The Wikipedia page does try to do it, b...
g61164
[ -0.0029409551061689854, 0.008361662738025188, -0.0021550054661929607, -0.02924167551100254, 0.024906810373067856, -0.0009275376796722412, 0.029894329607486725, -0.03090105950832367, -0.057130590081214905, -0.023460593074560165, -0.013005119748413563, 0.022034844383597374, 0.03511510416865349...
<p>I am trying to fit an ARMA(p,q) model to the mean equation of my return series. The problem is, that the acf and pacf are pretty not usable, i.e. it is hard to find a good model to take account of the acf and pacf pattern. I am aware of the alternative of using no model at all for the mean equation.</p> <p>Neverthe...
g61165
[ 0.0561886802315712, -0.038693808019161224, 0.007074509747326374, -0.060078561305999756, 0.01524238009005785, 0.006337926257401705, 0.0372048020362854, -0.0010939453495666385, -0.03195244446396828, -0.03199676424264908, 0.009917651303112507, 0.02114611119031906, 0.047611601650714874, -0.019...
<p>I'm doing linear regressions where the dependent variable is a ratio that can range from 0.01 to 100.</p> <p>Is it ok to take the log of the dependent variable and the regression on that? I'm matching the results of a study and that is what they did.</p> <p>What is the difference of taking the log versus using the...
g61166
[ 0.03908922150731087, -0.01076758373528719, 0.0075920382514595985, -0.010550770908594131, -0.03912365436553955, -0.03651481121778488, -0.005989431869238615, 0.0026432969607412815, 0.000700748641975224, -0.017714612185955048, 0.04234389588236809, 0.004003291018307209, 0.00897147785872221, -0...
<p>I did numerical simulations of two different systems that returned me N=1000 histograms expressed as $\{x,y,y'\}$, where $x$ is the independent variable, $y=P(x)$ is the probability distribution (frequency of x), $y'=P_0(x)$ is the theoretical probability which is a Chi-Squared Distribuion with parameter one (this i...
g231
[ 0.010143235325813293, 0.01830102875828743, -0.01949436217546463, -0.06072472035884857, -0.0024937305133789778, -0.0277981199324131, 0.04956336319446564, 0.011086156591773033, -0.04986881837248802, -0.011517157778143883, 0.004293160047382116, 0.014363476075232029, 0.03309242054820061, 0.016...
<p>I'm reading Florens et al.'s 'Elements of Bayesian Statistics', currently working through chapter 1, 'Reduction of Bayesian Experiments'. I find most of it clear, except the definition of regular conditional experiments (p. 51) and everything that relies on this definition. I'll appreciate help in deciphering it. I ...
g61167
[ 0.027578257024288177, -0.0005159107386134565, -0.0021466317120939493, -0.03628792613744736, -0.005931839346885681, -0.051988035440444946, 0.0980682522058487, 0.01973358914256096, 0.00875380914658308, -0.017573190852999687, -0.033437784761190414, 0.03871610388159752, -0.003597753820940852, ...
<p>I have multiple years of daily aggregated data for which I want to conduct a multi-variable linear regression. Auto correlation is high with one particular variable included and there is a strong physical relationship for this to be the case. In my case I wish to minimize this effect by aggregating to a weekly lev...
g61168
[ 0.03552481532096863, -0.02053314447402954, -0.006746734492480755, -0.04647533595561981, -0.03636931627988815, -0.006122359540313482, 0.024582957848906517, -0.02680893987417221, 0.025350697338581085, 0.01707991026341915, 0.06675956398248672, -0.023261185735464096, 0.051790423691272736, 0.00...
<p>Suppose there is a matrix A with m rows and n columns. Each element is a 3 dimensional vector. This 3 dimensional vector have values of different orders. Can we calculate covariance of such matrix ?</p>
g3676
[ -0.012382983230054379, -0.029346339404582977, 0.008237883448600769, -0.030559947714209557, 0.02358919568359852, 0.037464406341314316, -0.02409650757908821, -0.0007077514310367405, -0.07960469275712967, 0.040636587888002396, 0.007014763541519642, 0.015768177807331085, -0.008442663587629795, ...
<p>Suppose, I do a experiment where I have an event 'a' true 1000 times in 1000 trials. So, the probability becomes 1000/1000 = 1. If I am going to do another trial, my prediction about event 'a's occurrence is 1.</p> <p><strong>Is there a way to factor in the calculation of probability the fact that I am not done wit...
g17645
[ 0.029945967718958855, -0.009157336317002773, 0.026045527309179306, -0.027067316696047783, 0.05214794725179672, -0.03347000852227211, 0.02245175652205944, 0.10516532510519028, -0.051044341176748276, -0.025833595544099808, -0.02349523827433586, 0.0167066790163517, -0.0171461533755064, 0.0381...
<p>Typically, in Bayesian bootstrap, you have samples {$x_1,...,x_n$} of a random variable $X$. Choose $\{p_1,...,p_n\}$ from a Dirichlet distribution, by sorting $\{0,1,u_1,...,u_{n-1}\}$ where $u_i$ are independent samples from $U \sim Uniform(0,1)$, and taking differences of sorted neighbors. Use $\{p_1,...,p_n\}$ a...
g61169
[ -0.045721422880887985, 0.035797398537397385, -0.005013474728912115, 0.014156471937894821, -0.013888368383049965, -0.0057761771604418755, 0.025508301332592964, -0.01921391300857067, -0.07138670235872269, 0.02731686644256115, -0.014285540208220482, 0.04813717305660248, 0.036594633013010025, ...
<p>I know in recommender systems you have a rating matrix and then you factorize this matrix into two matrices and then learn those matrices with gradient descent. In those matrices we specify the number of dimensions/latent features that we want. So one of them will be of size $number\_of\_users * k\_latent\_features$...
g61170
[ -0.012790319509804249, 0.007708196993917227, 0.001640821690671146, -0.013163337484002113, 0.049078505486249924, -0.007943348959088326, 0.05808205157518387, -0.0006338309030979872, -0.07901155948638916, -0.02172181010246277, -0.034755561500787735, 0.07366673648357391, 0.06279130280017853, 0...
<p>I have data for 5 replicates that were drawn from the same model and I want to fit all 5 replicates together so that I can find out the shared parameters. Specifically, if I have the underlying distribution - </p> <p>$$y = Ae^{-mx} + c$$</p> <p>and then I have 5 output files with x and y (x is the same for all rep...
g61171
[ 0.037162330001592636, -0.011127931997179985, 0.009228136390447617, -0.05937115103006363, -0.02417757920920849, 0.010266427882015705, -0.040591150522232056, 0.008186365477740765, -0.07748765498399734, 0.01112131867557764, -0.0526450090110302, -0.042352717369794846, 0.0014611170627176762, 0....
<p>I have some sentences. Within that sentences I have some special words:</p> <pre><code>word1 and word2 </code></pre> <p>word1 and word2 are exactly same but has different meanings. Given a sentence that contains <code>word1</code> or <code>word2</code> I will try to guess that special word at given sentence has a ...
g61172
[ -0.007188374176621437, -0.02194281853735447, 0.02053755894303322, -0.003202662570402026, -0.004664899315685034, 0.001140310545451939, -0.04158448055386543, 0.023668188601732254, -0.05933200195431709, 0.00018157674639951438, 0.0001257692783838138, -0.010773430578410625, -0.003505183383822441,...
<p>I'm using the function <code>compareGrowthCurves</code> in the R package statmod, but I can't seem to find an explanation of what types of curve this is valid for. Does anyone know if there are particular families of functions I shouldn't use this for? </p> <p>Specifically, I have data on bacterial growth and unde...
g61173
[ 0.040503595024347305, -0.09969346970319748, 0.007436067797243595, 0.007766506634652615, 0.031628623604774475, -0.028397085145115852, 0.06332797557115555, -0.07787663489580154, -0.04573296755552292, -0.04996688291430473, 0.009564896114170551, 0.037741728127002716, 0.07222963869571686, 0.014...
<p>I have data that has eta squared values and partial eta squared values calculated as a measure of effect size for group mean differences.</p> <ul> <li><p>What is the difference between eta squared and partial eta squared? Can they both be interpreted using the same Cohen's guidelines (1988 I think: 0.01 = small, 0....
g61174
[ 0.0010713705560192466, -0.009548338130116463, -0.007708897348493338, -0.08807502686977386, 0.013353495858609676, -0.03288814052939415, 0.024299588054418564, 0.030656125396490097, -0.03916887193918228, 0.008502744138240814, 0.049099795520305634, -0.03141414001584053, 0.04938167706131935, 0....
<p>I often run regressions from a low-n dataset (~100 observations). Often the results are only significant with the inclusion of control variables. However, I often see journal articles where people (always with a massive number of observations) claim to have run their regression "with and without control variables".<...
g61175
[ 0.02445799857378006, -0.015199984423816204, -0.021275721490383148, 0.02042456902563572, 0.0029377778992056847, -0.021868735551834106, 0.012890155427157879, 0.04461745172739029, 0.013049772940576077, -0.09883041679859161, 0.01754119247198105, -0.025302503257989883, 0.021424906328320503, 0.0...
<p>Is it possible to plot the estimated log hazard ration in R? For example,</p> <pre><code>require(survival) fit1 = coxph(Surv(futime, fustat) ~ rx, ovarian) </code></pre> <p>many thanks in advance. Tu</p>
g17655
[ -0.028380829840898514, -0.03164365142583847, -0.009189656004309654, -0.03634115681052208, -0.031138259917497635, -0.04429209977388382, 0.001116746454499662, -0.023262960836291313, -0.05703393742442131, -0.03582768142223358, -0.020194929093122482, 0.03077504225075245, 0.05916581302881241, -...
<p>I have checked with various sources, but I'm still puzzled: 1) What are the exact assumptions of Mood's Median Test? 2) Is homogenity of variance needed for both groups or is the same shape criterion sufficient? </p> <p>thank you a lot for your help in advance! </p>
g61176
[ -0.04112689197063446, -0.05702687427401543, -0.012292647734284401, -0.0034394364338368177, -0.0019526856485754251, 0.007559462916105986, 0.03649435564875603, 0.008536421693861485, -0.019858116284012794, -0.030968161299824715, 0.07999420166015625, 0.035729821771383286, -0.03701509162783623, ...
<p>I was reading about unit root test, when I started to get slightly confused about the setting for the Null hypothesis vs Alternative hypothesis, and so I thought of asking the experts opinion.</p> <p>In the augmented Dickey-Fuller test, the null hypothesis is that there IS a unit root. My confusion comes from the f...
g47378
[ 0.06126037985086441, 0.008815745823085308, 0.003098016604781151, -0.05100357159972191, 0.025292232632637024, -0.014536396600306034, 0.026189113035798073, 0.041165873408317566, 0.015231945551931858, -0.022568266838788986, 0.04953872784972191, 0.019103258848190308, 0.03851115331053734, 0.011...
<p>I was looking into the <code>DoE.wrapper</code> collection of packages for R and I was interested in generating a split-plot design like I might in JMP. In JMP I can specify all of my factors at the beginning and indicate which of these were "Hard" to change. I then specify how many whole plots that I wanted to ru...
g61177
[ -0.0029014733154326677, -0.01762828417122364, -0.013439030386507511, -0.03923666477203369, -0.042776770889759064, -0.06152689456939697, 0.08194421976804733, -0.018179329112172127, -0.026015719398856163, -0.0413333959877491, -0.02890000306069851, -0.004953238647431135, 0.02642483450472355, ...
<p>Which test should I use, if I want to compare the mean of the whole sample with the mean of the fraction of the sample?</p> <p>So for example the mean of the whole classroom taking the test and the mean of the girls from that classroom.</p> <p>Thank you very much!</p>
g61178
[ 0.03882085531949997, 0.0013908889377489686, -0.0011729922844097018, -0.042331941425800323, -0.00006882392335683107, -0.01804996468126774, 0.010799640789628029, 0.008195320144295692, 0.03806457296013832, -0.013775752857327461, 0.03679414466023445, 0.001221480080857873, 0.0017674855189397931, ...
<p>Can someone please give me some intuition as to when to choose either SVM or LR ? I want to understand the intuition behind what is the difference between the optimization criteria of learning the hyperplane of the two, where the respective aims are as follows: a) SVM: Try to maximize the margin between the closest ...
g17660
[ 0.04368293657898903, 0.012341516092419624, 0.01112737599760294, 0.05095641687512398, -0.03033926896750927, -0.05239619314670563, 0.003167724935337901, 0.013724022544920444, -0.05819146707653999, -0.04883987084031105, 0.0251344982534647, 0.028688199818134308, 0.04191078245639801, 0.06430496...