Hedonic price method multivariate regression in R | Interpretation of linear-linear, log-linear and log-log model

I am aware that there are similar questions on this site, however, none of them seem to answer my question sufficiently. I am performing a multivariate regression in order to predict real estate da

View details »

coin fairness using bayesian approach

I am trying to understand the Bayesian logic. Let's say we flip the coin 50 times and 35 were heads. What is our best estimate of the true heads rate? First, I followed the likelihood definition wh

View details »

Interpretation of correlation results [on hold]

What can we say for the results, if they are correlated or no when we have: r=0.49, p=1.3x10^-6 This question is just about interpretation of results. Thanks

View details »

Adjusting intercept in GLM to predict price of a similar product

Is it generally ok to change the intercept value in a GLM to predict a price of a similar product that I don't have enough data on? Here is my dilemma, I have a tech product with various features a

View details »

Random-effects-meta-analysis-simulation: zero-estimates for tau^2

I am working on simulating a random-effects-model for comparison of the DerSimonian-Laird-method vs. Hartung-Knapp-Sidik-Jonkman-method in R. To do so, I chose different combinations of mu (true tre

View details »

How to calculate time complexity of given algorithm ( ridge regression)?

i have following expression and i need to calculate time complexity of this algorithm. could anybody help to get correct time complexity of this algorithms. for( i = 0; i < maxiter; i++) { x^

View details »

What's the meaning of linear regression: least square method?

I know the formula for fitting a line on the dataset is Y = b0 + b1*x and we can find b1 and b0 by the following equations: b1 = Σ [ (xi – x)(yi – y) ] / Σ [ (xi – x)^2] and b0 = y - b1*x

View details »

How do I find the overall error of a neural network in R using the neuralnet package?

I am relatively new to programming in R and I'm currently working on a project to create a neural network with the neuralnet package. Normally after I finish training a neural network I plot it wh

View details »

Comparing means of of 2 groups with different in-groups

I want to test the difference between two means but I'm not sure whether it is statistically valid to do so. The 2 groups I want to compare both have 90 AUC scores and come from 3 different experim

View details »

Computing conditional probabilities in a Bayesian Network with AND

Take this network: https://i.stack.imgur.com/nHnqk.png How would I calculate P(J|S∩E)? I don't understand how they can be given since they are not connected directly. Any suggestions would be greatly appreciated!

View details »

Compare glmer to glm after mice imputation

I would like to test the significance of my random effects term after multiple imputation with mice. I have two nested models which I try to compare with pool compare, however this creates some erro

View details »

Python: contour plot probability density MCMC

I wrote a markov chain monte carlo program that samples a 2.5D probability density. 2.5 because the first two dimensions are connected and we look at the map of T=t1-t2 vs Gamma. (see hist2d represe

View details »

encase 50% of signal in a contour

I have a dataset on a meshgrid that is well normalized and I need to draw a contour that encases 50% of the data inside of it that is centered around the bright pixel in the middle. How does one do that?

View details »

How is median equal to the mode in the bell-shaped “normal” distribution

I found a note in internet that Median equal to the mode in the bell-shaped “normal” distribution.

View details »

Evaluating integral using Riemann sums

How to evaluate J=P(0<=Z<=1), where Z~N(0,1) using Riemann sums? so J is the integral from 0 to 1 of the function (1/sqrt(2*pi))*exp^((-x^2)/2) Here is my approach to implement this in R m<-

View details »

Build model for daily probability of meeting a certain end of period goal

I was hoping for some consultation with how to go about the following: To give context, I work for an agency that manages advertisements on social media for general motors - specifically their car

View details »

How to create a data frame in the success/number of trials format for elrm starting from excel

I'm trying to generate a data frame in the success/number of trials syntax in order to proceed with an Exact logistic regression (as shown here https://stats.idre.ucla.edu/r/dae/exact-logistic-regr

View details »

R: Error: Error in reshape : Length of 'varying' must be product of length 'v.names' and 'times'

while executing the the reshape function (see below) I get the following error: Error in reshape : Length of 'varying' must be product of length 'v.names' and 'times' even though they have the same

View details »

Simulation on random walk

Consider a Markov Chain as the random walk over the integers. Consider also Sn r.v. that takes values on S={-1,0,1} with probabilities beta,gamma and alpha. Start with X1=0. Then Xn=X_{n-1}+Sn, for

View details »

What is the best approach and tools to apply Jaccard's Ratio and Kolmogorov–Smirnov to two textlists?

I am using Kolmogorov-Smirnov and Jaccard's Ratio to identify if a correlation exists between 2 lists of text words (the lists are ranked 1-n, different number of items in each list and there is onl

View details »