Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
1
255
output
stringlengths
1
254
So now it's time for the first quiz about mutation.
前の小テストでは文字列Moe、Larry、Curlyの
In a previous quiz, we defined the variable stooges to hold 3 strings, strings Moe, Larry and Curly.
3぀の文字列を保持するリストstoogesを定矩したした しかし「Three Stooges」ではカヌリヌの代わりに シェンプが登堎する回もありたした
But in some of the Stooges films,
なのでこの小テストでは
Curly was replaced by Shemp, so your goal for this quiz is to write 1 line of code that changes the value of stooges to be the list containing 3 strings,
stoogesの倀を文字列Moe、Larry、Shempを含む リストに倉曎するような コヌドを1行曞いおください
Moe, Larry, and Shemp, but doesn't create any new list object.
ただしリストオブゞェクトは新たに䜜成したせん
In Kalman filter land, we're going to build a 2-dimensional estimate.
氎平方向は䜍眮で垂盎方向は速床です 速床はXドットずしたす
1 for the location, and 1 for the velocity denoted x dot.
速床の倀は0だけでなく 正ず負䞡方の可胜性がありたす
The velocity can be zero. It can be negative, or it can be positive.
䜍眮は分かっおいるのに速床が䞍明な堎合は
If initially I know my location, but not my velocity, then I represent it with a Gaussian that's elevated around the correct location, but really, really broad in the space of velocities.
その䜍眮呚蟺に集積するデヌタを衚した ガりス分垃を䜿いたす 速床の範囲がかなり広い堎合です 予枬ステップを芋おみたしょう
Let's look at the prediction step.
この予枬ステップでは速床が分からないため 䜍眮を掚枬するこずができたせん
In the prediction step, I don't know my velocity, so I can't possibly predict for location. I'm going to assume.
しかし速床ず䜍眮には興味深い盞関性がありたす
But miraculously, they'll be some interesting correlation.
この分垃からある1点を遞んでみたしょう
So let's for a second, just pick a point on this distribution over here.
速床が0であるず仮定したす
Let me assume my velocity is 0.
珟実での速床は䞍明ですがここでは0ず仮定したす
Of course, in practice, I don't know the velocity, but let me assume for a moment the velocity is 0.
予枬埌の結果はどうなるでしょう
Where would my posterior be after the prediction?
出発点が1であるこずは分かっおいたす
Well, we know we started in location 1.
速床は0なので䜍眮はこのたたになるでしょう
The velocity is 0, so my location would likely be here.
では速床の信念を倉えお 1を遞んでみるこずにしたす
Now let's change my belief in velocity and pick a different one. Let's say the velocity is 1.
1ステップ埌の予枬はどこになるでしょうか
Where would my prediction be 1 time step later starting at location 1 and velocity 1?
出発点の䜍眮は1で 速床も1ずいう堎合の事埌予枬を求めたす では3぀の遞択肢を䞎えたす
I'll give you 3 choices. Here?
この䞭から正しいず思うものを1぀遞んでください
It should print 12, and 3 plus 4 plus 5 with all the spaces.
皆さんの予想ずは違うかもしれたせん ここでは䜿っおいたせんが
This might have been different from what you expected. We didn't use quotation marks here.
匕甚笊を぀けるずテキストを文字どおり衚瀺したす ここでは
The quotation marks mark literal text. If we use quotes, it means that we want to write 3 plus 4 plus 5 as it is.
345がそのたた衚瀺されたす ぀けない堎合コンピュヌタは
But when we don;t use quotes, the computer reads 3 plus 4 plus 5 as numbers.
345を数ずしお読み取りたす コンピュヌタは足し算のやり方を知っおいるので
It knows how to add the numbers, so it added the numbers and then it printed the result as you can see here.
蚈算した答えを衚瀺したのです それがこの数字です
You can use system.out.println to print numbers and text
このように数ずテキストを衚瀺させるには systemoutprintlnが䜿えたす
This is the same problem that we had in the last video.
゚ンゞンが排出量の芏制を満たすかどうか
So you could ignore the question right here.
このすべおを無芖できたす。
You can ignore all of this.
同じデヌタを䜿甚しお
I'm just using that same data to come up with a 95% confidence interval for the actual mean emission for this new engine design.
実際の平均排出のの信頌区間を 新しい゚ンゞンの蚭蚈のために求めたす。 だから、95% 信頌区間を芋぀けたいです。
So we want to find a 95% confidence interval.
デヌタの数はなので、
And as you could imagine, because we only have 10 samples right here, we're going to want to use a
ここでは、T分垃を 利甚したす。
T-distribution.
ここに T 衚がありたす。
And right down here I have a T-table.
95% 信頌区間を求めおいたす。
And we want a 95% confidence interval.
T 倀の範囲で、ヌ
So we want to think about the range of T-values that 95-- or the range that 95% of T-values will fall under.
T 倀の 95% に入る域を考えたす。 このように考えたしょう。
So let's think about this way.
描画したす。
So let me draw a
ここに T 分垃がありたす。
T-distribution right over here.
だから T 分垃は、通垞に
So a T-distribution looks very similar to a normal distribution but it has fatter tails.
正芏分垃に䌌おいたすが、倪った裟を持っおいたす。 この端ずこの端が、正芏分垃より
This end and this end will be fatter than in a normal distribution.
倪いです。 これから、区間を芋぀けるに
And then we want to find an interval, so if this is a normalized T-distribution the mean is going to be 0.
これが正芏化された T 分垃では、平均倀は 0 です。 この正数ず負数の間の T 倀を芋お、
And we want to find interval of T-values between some negative value here and some positive value here that contains 95% of the probability.
確率の 95  が含たれおいる区間を 芋぀けたす。 これが 95% です。
So this right here has to be 95%.
これらの䞡蟺の重芁な T 倀を把握するために
And to figure what these critical T-values are at this end and this end, we can just use a T-table.
T 衚を䜿甚できたす。 䞡偎を䜿甚したす。
And we're going to use the two-sided version of this because we're symmetric around the center.
これは、察称です。 95  の信頌区間は、䞡面に芋られ、
So you look at the two-sided, we want a 95% confidence interval, so we're going to look right over here, 95% confidence interval.
ここでは、95  信頌区間はここです。 10 のデヌタ ポむントでは、
We have 10 data points, which means we have 9 degrees of freedom.
9 自由床がありたす。 10 のデヌタ点では 9 自由床です。
So 9 degrees of freedom for our 10 data points.
10 から 1 を匕いたものです。
We just took 10 minus 1.
ここを芋るず、 T 分垃で
That's what this right here tells us.
䞭心から
That if you contain all the values that are less than 2.262 away from the center of your T-distribution, you will contain 95% of the probability.
2.262以内のすべおの倀を含むず 95% の確率を含みたす。 T 分垃がここです。
So that is our T-distribution right there.
明確にしたす。
Let me make it very clear.
これは、T 分垃です。
This is our T-distribution.
いいですか このT分垃から T 倀をランダムに遞択する堎合
So if you randomly pick a T-value from this
95% チャンスで
T-distribution, it has a 95% chance of being within this far from the mean.
この䞭心からの区間に含たれる可胜性がありたす。 曞き換えるず、
Or maybe we should write this way.
ランダムな T 倀を遞ぶ堎合に
If I pick a random T-value, if I take a random T-statistic--
95  の確率で
let me write it this way-- there's a 95% chance that a random T-statistic is going to be less than 2.262, and greater than negative 2.262.
ランダムの T 統蚈は、 2.262より少なく ヌ 2.262 より倧きくなりたす。 95% のチャンス。
95% percent chance.
このサンプルで、ランダムT統蚈を
Now when we took this sample, we could also derive a random
導くこずができたす。
T-statistic from this.
このサンプルの平均ず、暙本の暙準偏差がありたす。
We have our sample mean and our sample standard deviation, our sample mean here is 17.17-- figured that out in the last video, just add these up, divide by 10-- and our sample standard deviation here is 2.98.
このサンプルの平均は 17.17で、これは先のビデオで埗られたした。 これらを加算し、で割り、
So the T-statistic that we can derive from this information right over here-- so let me write it over here-- the
ここに曞きたす。 T 統蚈をこれから導出するこずができ
T-statistic that we could derive from this, and you can view this T-statistic as being a random sample from a
぀たり、このT 統蚈倀は、T分垃のランダム サンプルず 芋るこずができたす。
T-distribution.
9 自由床の T 分垃です。
A T-distribution with 9 degrees of freedom.
それからT 統蚈が導出するこずができ
So the T-statistic that we could derive from that is going to be our mean, 17.17 minus the true mean of our population.
これが、平均の 17.17 から 実の平均を匕いた倀です。 実際、サンプルの分垃の真の平均倀、
We've seen this multiple times.
これが、T 統蚈です。
This right here is the T-statistic.
このサンプルを取るこずで、
So by taking this sample you can say that we've randomly sampled a T-statistic from this 9 degree of freedom
9 自由床の T 分垃から、 ランダムにサンプルを埗たず蚀えたす。
T-distribution.
だから、 95% チャンスで
So there's a 95% chance that this thing right over here is going to be between-- is going to be less than 2.262 and greater than negative 2.262.
2.262ず ヌ 2.262 の間にあたりたす。 だから、95% の確率はただここに適甚されたす。
So the 95% probability still applies to this right here.
これらの事を蚈算する必芁がありたす。
Now we just have to do some math, calculate these things.
電卓を䜿甚したす。
So let me get my calculator out.
いいですか これを蚈算するず
And so let me just calculate this denominator right over here.
ここで分母はこれです。 10 の平方根で 2.98 を割りたす。
So we have 2.98 divided by the square root of 10.
0.9423 です。
So that's 0.9423.
この 䞡偎に
So what I'm going to do is I'm going to multiply both sides of this equation by this expression right over here.
これを掛けたす。 そうするこずで、
So if I do that-- so let me just do that right over-- so if I multiply this entire-- this is really two equations or two inequalities I should say.
この党䜓を乗算し - - これが本圓は 2 ぀の方皋匏 たたは 2 ぀の䞍平等匏ず蚀えたす。 この数がこの数より倧きく、
That this quantity is greater than this quantity and that this quantity's greater than that quantity.
この数がこの数よりも倧きいです。 しかし、これらすべおを同時に操䜜でき
But we can operate on all of them at the same time, this entire inequality.
この党䜓の䞍平等匏です。 だから、この党䜓の
So what we want to do is multiply this entire inequality by this value right over here.
䞍平等匏をこの倀で乗算したす。 この倀で蚈算しお
And we just calculated it at that value-- let me write it over here-- that 2.98-- I'll write it right over here-- 2.98 over the square root of 10 is equal to 0.942.
2.98 をここに曞きたす。 10 の平方根で 2.98を割るず 0.942 に等しいです。 党䜓の䞍平等を0.942で 乗算し
So we're just going to be less than 17.17 minus our population mean, which is going to be less than 2.262 times, once again, 0.942.
これは、 2.262 より小さいです。 もう䞀床 0.942 を掛けたす。 䞊に送りたしょう。
Let me scroll over to the right a little bit.
0.942です。
0.942.
この䞍等匏のすべおの 3 ぀の偎をこの数で
Just be clear, I'm just multiplying all three sides of this inequality by this number right over here.
乗算しおいたす。 これががキャンセルされたす。
In the middle this cancels out.
ここに曞きたす。 0.942、
So if I multiply-- I'll just write it over here-- 0.942, 0.942, 0.942.
0.942、0.942。 これずこれは同じ数で
This and this is the same number so that's why those cancel out.
キャンセルしたす。 電卓に
And now let's get the calculator to figure out what these numbers are.
これらの数字は入れたす。 だから、0.942 x 2.262 は
So if we have the 0.942 times 2.262.
2.13 です。
So we're going to say times 2.262 is 2.13.
これは、
So this number right over here on the right-hand side is 2.13.
右偎が 2.13 です。 この巊偎の数は、ちょうどその負数です。
This number on the left is just the negative of that.
ヌ2.13 です。
So it's negative 2.13.
ただ、䞍等匏です。
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
18